mlxsw: spectrum_router: Implement fib4 add/del switchdev obj ops
authorJiri Pirko <jiri@mellanox.com>
Mon, 4 Jul 2016 06:23:11 +0000 (08:23 +0200)
committerDavid S. Miller <davem@davemloft.net>
Tue, 5 Jul 2016 01:25:15 +0000 (18:25 -0700)
commit61c503f976b5449e6d7d31f74adbc29d6ce06125
tree09f8f3c6c9701723a3ff36828bdb90b4e8b57e3f
parentd5a1c749d22c6f86c3ee2c2c38b13220ae871114
mlxsw: spectrum_router: Implement fib4 add/del switchdev obj ops

Implement ipv4 FIB entries addition and removal. Initially, we support
local and broadcast routes using "ip2me" trap action.
Also, unicast routes without nexthop are supported using "local" action.

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