netdevsim: Ignore IPv6 multipath notifications
authorIdo Schimmel <idosch@mellanox.com>
Tue, 18 Jun 2019 15:12:47 +0000 (18:12 +0300)
committerDavid S. Miller <davem@davemloft.net>
Tue, 18 Jun 2019 16:45:36 +0000 (09:45 -0700)
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>
drivers/net/netdevsim/fib.c

index 8c57ba7477726650bb6c0b188a2c8ebb989b14d7..83ba5113210df8396e8cc0813d46d9821dbabcfe 100644 (file)
@@ -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;