aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/include/net/netevent.h
diff options
context:
space:
mode:
authorIdo Schimmel <idosch@mellanox.com>2016-07-05 11:27:42 +0200
committerDavid S. Miller <davem@davemloft.net>2016-07-05 09:06:29 -0700
commit2a4501ae18b52fcdf553404286e6cefabd1d17ec (patch)
treec2b4b9b55c76d3f60edf71c52df71bbdfb51daf9 /include/net/netevent.h
parentmlxsw: reg: Add Router Algorithmic LPM Unicast Host Table Dump register (diff)
downloadwireguard-linux-2a4501ae18b52fcdf553404286e6cefabd1d17ec.tar.xz
wireguard-linux-2a4501ae18b52fcdf553404286e6cefabd1d17ec.zip
neigh: Send a notification when DELAY_PROBE_TIME changes
When the data plane is offloaded the traffic doesn't go through the networking stack. Therefore, after first resolving a neighbour the NUD state machine will transition it from REACHABLE to STALE until it's finally deleted by the garbage collector. To prevent such situations the offloading driver should notify the NUD state machine on any neighbours that were recently used. The driver's polling interval should be set so that the NUD state machine can function as if the traffic wasn't offloaded. Currently, there are no in-tree drivers that can report confirmation for a neighbour, but only 'used' indication. Therefore, the polling interval should be set according to DELAY_FIRST_PROBE_TIME, as a neighbour will transition from REACHABLE state to DELAY (instead of STALE) if "a packet was sent within the last DELAY_FIRST_PROBE_TIME seconds" (RFC 4861). Send a netevent whenever the DELAY_FIRST_PROBE_TIME changes - either via netlink or sysctl - so that offloading drivers can correctly set their polling interval. Signed-off-by: Ido Schimmel <idosch@mellanox.com> Signed-off-by: Jiri Pirko <jiri@mellanox.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/net/netevent.h')
-rw-r--r--include/net/netevent.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/net/netevent.h b/include/net/netevent.h
index d8bbb38584b6..f440df172b56 100644
--- a/include/net/netevent.h
+++ b/include/net/netevent.h
@@ -24,6 +24,7 @@ struct netevent_redirect {
enum netevent_notif_type {
NETEVENT_NEIGH_UPDATE = 1, /* arg is struct neighbour ptr */
NETEVENT_REDIRECT, /* arg is struct netevent_redirect ptr */
+ NETEVENT_DELAY_PROBE_TIME_UPDATE, /* arg is struct neigh_parms ptr */
};
int register_netevent_notifier(struct notifier_block *nb);