]> git.baikalelectronics.ru Git - kernel.git/commit
mlxsw: spectrum_router: Abort on source-specific routes
authorIdo Schimmel <idosch@mellanox.com>
Thu, 3 Aug 2017 11:28:30 +0000 (13:28 +0200)
committerDavid S. Miller <davem@davemloft.net>
Thu, 3 Aug 2017 22:36:01 +0000 (15:36 -0700)
commite122fffee5004f9bbe0bc0e07da89fb5fd5aed72
tree8484539919d7c58a2779386beb6ec4772c0eda61
parentb746e5341272d17df99db5a9bea1e7056b322090
mlxsw: spectrum_router: Abort on source-specific routes

Without resorting to ACLs, the device performs route lookup solely based
on the destination IP address.

In case source-specific routing is needed, an error is returned and the
abort mechanism is activated, thus allowing the kernel to take over
forwarding decisions.

Instead of aborting, we can trap specific destination prefixes where
source-specific routes are present, but this will result in a lot more
code that is unlikely to ever be used.

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