net: ipv4: Notify about changes to ip_forward_update_priority
authorPetr Machata <petrm@mellanox.com>
Tue, 31 Jul 2018 22:36:42 +0000 (00:36 +0200)
committerDavid S. Miller <davem@davemloft.net>
Wed, 1 Aug 2018 16:52:30 +0000 (09:52 -0700)
commitd18c5d1995aa322b722fa731397e28ebcd00b3c6
treee996b01d0941cbf65c04774c4ae2c999511bb547
parent432e05d328921c68c35bfdeff7d7b7400b8e3d1a
net: ipv4: Notify about changes to ip_forward_update_priority

Drivers may make offloading decision based on whether
ip_forward_update_priority is enabled or not. Therefore distribute
netevent notifications to give them a chance to react to a change.

Signed-off-by: Petr Machata <petrm@mellanox.com>
Reviewed-by: Ido Schimmel <idosch@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/net/netevent.h
net/ipv4/sysctl_net_ipv4.c