summaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/mellanox/mlxsw/spectrum_ipip.h
diff options
context:
space:
mode:
authorPetr Machata2017-11-03 10:03:31 +0100
committerDavid S. Miller2017-11-04 01:15:17 +0100
commit474f0ff618ae4305637e972746b42fabe2245b99 (patch)
tree8afe7f32a7fe3bc5085718e03d3568615761ffff /drivers/net/ethernet/mellanox/mlxsw/spectrum_ipip.h
parentmlxsw: spectrum_router: Extract mlxsw_sp_netdevice_ipip_can_offload() (diff)
downloadkernel-qcow2-linux-474f0ff618ae4305637e972746b42fabe2245b99.tar.gz
kernel-qcow2-linux-474f0ff618ae4305637e972746b42fabe2245b99.tar.xz
kernel-qcow2-linux-474f0ff618ae4305637e972746b42fabe2245b99.zip
mlxsw: spectrum: Move mlxsw_sp_ipip_netdev_{s, d}addr{, 4}()
These functions ideologically belong to the IPIP module, and some follow-up work will benefit from their presence there. 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/spectrum_ipip.h')
-rw-r--r--drivers/net/ethernet/mellanox/mlxsw/spectrum_ipip.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/net/ethernet/mellanox/mlxsw/spectrum_ipip.h b/drivers/net/ethernet/mellanox/mlxsw/spectrum_ipip.h
index 6fb49129ce87..87becd152a5c 100644
--- a/drivers/net/ethernet/mellanox/mlxsw/spectrum_ipip.h
+++ b/drivers/net/ethernet/mellanox/mlxsw/spectrum_ipip.h
@@ -38,6 +38,10 @@
#include "spectrum_router.h"
#include <net/ip_fib.h>
+union mlxsw_sp_l3addr
+mlxsw_sp_ipip_netdev_saddr(enum mlxsw_sp_l3proto proto,
+ const struct net_device *ol_dev);
+
enum mlxsw_sp_ipip_type {
MLXSW_SP_IPIP_TYPE_GRE4,
MLXSW_SP_IPIP_TYPE_MAX,