summaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/mellanox/mlxsw/Kconfig
diff options
context:
space:
mode:
authorPetr Machata2018-02-27 14:53:48 +0100
committerDavid S. Miller2018-02-27 20:46:28 +0100
commit27cf76fe60ec6fbe2ba8844261b90a6aecbc42f0 (patch)
treecb61d1bbc15a19e807226bc7d89ee5e91673fea9 /drivers/net/ethernet/mellanox/mlxsw/Kconfig
parentmlxsw: Move a mirroring check to mlxsw_sp_span_entry_create (diff)
downloadkernel-qcow2-linux-27cf76fe60ec6fbe2ba8844261b90a6aecbc42f0.tar.gz
kernel-qcow2-linux-27cf76fe60ec6fbe2ba8844261b90a6aecbc42f0.tar.xz
kernel-qcow2-linux-27cf76fe60ec6fbe2ba8844261b90a6aecbc42f0.zip
mlxsw: spectrum_span: Support mirror to gretap
When a user requests mirror from a mlxsw physical port (possibly based on an ACL match) to a gretap netdevice, the driver needs to resolve the request to a particular physical port that the mirrored packets will egress through, and a suite of configuration keys (importantly, IP and MAC addresses). That means calling into routing and neighbor kernel code to simulate the decisions made by the system for packets passing through a gretap netdevice. Add a new instance of mlxsw_sp_span_entry_ops to support this. Signed-off-by: Petr Machata <petrm@mellanox.com> Reviewed-by: Ido Schimmel <idosch@mellanox.com> Signed-off-by: Jiri Pirko <jiri@mellanox.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/mellanox/mlxsw/Kconfig')
-rw-r--r--drivers/net/ethernet/mellanox/mlxsw/Kconfig2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/net/ethernet/mellanox/mlxsw/Kconfig b/drivers/net/ethernet/mellanox/mlxsw/Kconfig
index d56eea310509..830c3e28505e 100644
--- a/drivers/net/ethernet/mellanox/mlxsw/Kconfig
+++ b/drivers/net/ethernet/mellanox/mlxsw/Kconfig
@@ -78,6 +78,8 @@ config MLXSW_SPECTRUM
depends on IPV6 || IPV6=n
select PARMAN
select MLXFW
+ depends on NET_IPGRE
+ depends on !(MLXSW_CORE=y && NET_IPGRE=m)
default m
---help---
This driver supports Mellanox Technologies Spectrum Ethernet