Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit d371ac1e authored by Ido Schimmel's avatar Ido Schimmel Committed by David S. Miller
Browse files

rocker: Ignore address families other than IPv4



As in previous patch, ignore IPv6 notifications since the driver doesn't
support these.

Signed-off-by: default avatarIdo Schimmel <idosch@mellanox.com>
Signed-off-by: default avatarJiri Pirko <jiri@mellanox.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 64e5e825
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -2192,6 +2192,10 @@ static int rocker_router_fib_event(struct notifier_block *nb,
{
	struct rocker *rocker = container_of(nb, struct rocker, fib_nb);
	struct rocker_fib_event_work *fib_work;
	struct fib_notifier_info *info = ptr;

	if (info->family != AF_INET)
		return NOTIFY_DONE;

	fib_work = kzalloc(sizeof(*fib_work), GFP_ATOMIC);
	if (WARN_ON(!fib_work))