]> 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)
commitd3a93b4c07d937a7a54ec14968f24a8380d8f5ba
tree511588702e27d07674648f53af8a291be4fbc66f
parentcef1bb030c20a8da51e5c2479830fd94b7930303
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