net: Rename NETEVENT_MULTIPATH_HASH_UPDATE
authorDavid Ahern <dsahern@gmail.com>
Fri, 2 Mar 2018 16:32:16 +0000 (08:32 -0800)
committerDavid S. Miller <davem@davemloft.net>
Sun, 4 Mar 2018 18:04:22 +0000 (13:04 -0500)
Rename NETEVENT_MULTIPATH_HASH_UPDATE to
NETEVENT_IPV4_MPATH_HASH_UPDATE to denote it relates to a change
in the IPv4 hash policy.

Signed-off-by: David Ahern <dsahern@gmail.com>
Reviewed-by: Ido Schimmel <idosch@mellanox.com>
Reviewed-by: Nikolay Aleksandrov <nikolay@cumulusnetworks.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mellanox/mlxsw/spectrum_router.c
include/net/netevent.h
net/ipv4/sysctl_net_ipv4.c

index 69f16c605b9d8887a3217abd0a9cef4397ab08d3..93d48c1b2bf832f03fa826557f21fdeb33689096 100644 (file)
@@ -2430,7 +2430,7 @@ static int mlxsw_sp_router_netevent_event(struct notifier_block *nb,
                mlxsw_core_schedule_work(&net_work->work);
                mlxsw_sp_port_dev_put(mlxsw_sp_port);
                break;
-       case NETEVENT_MULTIPATH_HASH_UPDATE:
+       case NETEVENT_IPV4_MPATH_HASH_UPDATE:
                net = ptr;
 
                if (!net_eq(net, &init_net))
index 40e7bab684905c2a5c924837064f4a4b0e18b1da..baee605a94ab355cf928b833e9117b9b5a00951b 100644 (file)
@@ -26,7 +26,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 */
+       NETEVENT_IPV4_MPATH_HASH_UPDATE, /* arg is struct net ptr */
 };
 
 int register_netevent_notifier(struct notifier_block *nb);
index 89683d868b37132297fe8ad9d52180b0c9a0fbfe..011de9a20ec630b79986847ac907b8cc85ed024a 100644 (file)
@@ -400,7 +400,7 @@ static int proc_fib_multipath_hash_policy(struct ctl_table *table, int write,
 
        ret = proc_dointvec_minmax(table, write, buffer, lenp, ppos);
        if (write && ret == 0)
-               call_netevent_notifiers(NETEVENT_MULTIPATH_HASH_UPDATE, net);
+               call_netevent_notifiers(NETEVENT_IPV4_MPATH_HASH_UPDATE, net);
 
        return ret;
 }