aboutsummaryrefslogtreecommitdiffstats
path: root/include/net/netevent.h
diff options
context:
space:
mode:
authorIdo Schimmel <idosch@mellanox.com>2017-11-02 17:14:05 +0100
committerDavid S. Miller <davem@davemloft.net>2017-11-03 15:40:41 +0900
commit3ae6ec08292f01c6782d1a80be0b2cc675e0ecfc (patch)
treeb08c733cb6ff19687b9e35792ee3ed302232e091 /include/net/netevent.h
parentcxgb4: fix error return code in cxgb4_set_hash_filter() (diff)
downloadlinux-dev-3ae6ec08292f01c6782d1a80be0b2cc675e0ecfc.tar.xz
linux-dev-3ae6ec08292f01c6782d1a80be0b2cc675e0ecfc.zip
ipv4: Send a netevent whenever multipath hash policy is changed
Devices performing IPv4 forwarding need to update their multipath hash policy whenever it is changed. Inform these devices by generating a netevent. Signed-off-by: Ido Schimmel <idosch@mellanox.com> Reviewed-by: Petr Machata <petrm@mellanox.com> Signed-off-by: Jiri Pirko <jiri@mellanox.com> Acked-by: David Ahern <dsahern@gmail.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 f440df172b56..e3f0e8f2f6e8 100644
--- a/include/net/netevent.h
+++ b/include/net/netevent.h
@@ -25,6 +25,7 @@ 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 */
+ NETEVENT_MULTIPATH_HASH_UPDATE, /* arg is struct net ptr */
};
int register_netevent_notifier(struct notifier_block *nb);