From: Ido Schimmel <idosch@idosch.org>
To: Leonid Komaryanskiy <lkomaryanskiy@gmail.com>
Cc: netdev@vger.kernel.org, dmytro_firsov@epam.com, petrm@nvidia.com
Subject: Re: ip_forward notification for driver
Date: Thu, 10 Nov 2022 10:15:37 +0200 [thread overview]
Message-ID: <Y2yzKfSPJ7h2arO/@shredder> (raw)
In-Reply-To: <CAHRDKfRZEw3Mq9GP3rCf2U10Y7X7N61BNZCa95tKESZkVD2qAg@mail.gmail.com>
On Thu, Nov 10, 2022 at 09:51:35AM +0200, Leonid Komaryanskiy wrote:
> I'm working on L3 routing offload for switch device and have a
> question about ip_forwarding. I want to disable/enable forwarding on
> the hardware side according to changing value in
> /proc/sys/net/ipv4/ip_forward. As I see, inet_netconf_notify_devconf
> just sends rtnl_notify for userspace. Could I ask you for advice, on
> how can I handle updating value via some notifier or some other Linux
> mechanism in driver?
You can look into netevents. See NETEVENT_IPV4_MPATH_HASH_UPDATE and
NETEVENT_IPV4_FWD_UPDATE_PRIORITY_UPDATE, for example.
next prev parent reply other threads:[~2022-11-10 8:15 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-11-10 7:51 ip_forward notification for driver Leonid Komaryanskiy
2022-11-10 8:15 ` Ido Schimmel [this message]
2022-12-01 15:21 ` Leonid Komaryanskiy
2022-12-04 9:05 ` Ido Schimmel
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=Y2yzKfSPJ7h2arO/@shredder \
--to=idosch@idosch.org \
--cc=dmytro_firsov@epam.com \
--cc=lkomaryanskiy@gmail.com \
--cc=netdev@vger.kernel.org \
--cc=petrm@nvidia.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox