]> git.baikalelectronics.ru Git - kernel.git/commit
mlxsw: spectrum_router: Use FIB notifications instead of switchdev calls
authorJiri Pirko <jiri@mellanox.com>
Mon, 26 Sep 2016 10:52:31 +0000 (12:52 +0200)
committerDavid S. Miller <davem@davemloft.net>
Wed, 28 Sep 2016 08:48:00 +0000 (04:48 -0400)
commit437869c72d0d4bebce33284a7680f19c67e48be1
tree511588702e27d07674648f53af8a291be4fbc66f
parentf905f663f27e3296c6d5fac8aeb4a02e6ce51071
mlxsw: spectrum_router: Use FIB notifications instead of switchdev calls

Until now, in order to offload a FIB entry to HW we use switchdev op.
However that has limits. Mainly in case we need to make the HW aware of
all route prefixes configured in kernel. HW needs to know those in order
to properly trap appropriate packets and pass the to kernel to do
the forwarding. Abort mechanism is now handled within the mlxsw driver.

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