OSDN Git Service

spectrum: Convert fib event handlers to use container_of on info arg
authorDavid Ahern <dsahern@gmail.com>
Wed, 18 Oct 2017 22:01:38 +0000 (15:01 -0700)
committerDavid S. Miller <davem@davemloft.net>
Sat, 21 Oct 2017 00:45:17 +0000 (01:45 +0100)
commit3c75f9b1b4de0a14f11b7e71a6bdc30b65648f20
tree325d238320cdc98898841c99d71d63dcbab5045a
parentba233b34741a1dc88d1e94db7deeb7b079ef4b9a
spectrum: Convert fib event handlers to use container_of on info arg

Use container_of to convert the generic fib_notifier_info into
the event specific data structure.

Signed-off-by: David Ahern <dsahern@gmail.com>
Reviewed-by: Ido Schimmel <idosch@mellanox.com>
Acked-by: Jiri Pirko <jiri@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mellanox/mlxsw/spectrum_router.c