diff options
author | Ido Schimmel <idosch@mellanox.com> | 2019-06-18 18:12:47 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2019-06-18 19:45:36 +0300 |
commit | d133e4f1fa12bff58e1203c7d6c75f993fb5dead (patch) | |
tree | ccc1aba809caf271753cfe716d6886f05971f87a | |
parent | f6c3bb75165cb4d0a0beb2ea6df5b392b7131645 (diff) | |
download | linux-d133e4f1fa12bff58e1203c7d6c75f993fb5dead.tar.xz |
netdevsim: Ignore IPv6 multipath notifications
In a similar fashion to previous patch, have netdevsim ignore IPv6
multipath notifications for now.
Signed-off-by: Ido Schimmel <idosch@mellanox.com>
Acked-by: Jiri Pirko <jiri@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
-rw-r--r-- | drivers/net/netdevsim/fib.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/drivers/net/netdevsim/fib.c b/drivers/net/netdevsim/fib.c index 8c57ba747772..83ba5113210d 100644 --- a/drivers/net/netdevsim/fib.c +++ b/drivers/net/netdevsim/fib.c @@ -190,6 +190,13 @@ static int nsim_fib_event_nb(struct notifier_block *nb, unsigned long event, case FIB_EVENT_ENTRY_ADD: /* fall through */ case FIB_EVENT_ENTRY_DEL: + if (info->family == AF_INET6) { + struct fib6_entry_notifier_info *fen6_info = ptr; + + if (fen6_info->multipath_rt) + return NOTIFY_DONE; + } + err = nsim_fib_event(data, info, event == FIB_EVENT_ENTRY_ADD); break; |