aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/mellanox/mlx5/core/en/tc_tun.h
diff options
context:
space:
mode:
authorOz Shlomo <ozsh@mellanox.com>2018-10-29 08:54:42 +0200
committerSaeed Mahameed <saeedm@mellanox.com>2018-12-10 15:53:04 -0800
commitdf2ef3bff193229973830fd3fd8acf29fa92715e (patch)
tree72cf1a5eb11e50a2377a9caf40da16cacb5f7727 /drivers/net/ethernet/mellanox/mlx5/core/en/tc_tun.h
parentnet: Add netif_is_gretap()/netif_is_ip6gretap() (diff)
downloadlinux-dev-df2ef3bff193229973830fd3fd8acf29fa92715e.tar.xz
linux-dev-df2ef3bff193229973830fd3fd8acf29fa92715e.zip
net/mlx5e: Add GRE protocol offloading
Add HW offloading support for TC flower filters configured on gretap/ip6gretap net devices. Signed-off-by: Oz Shlomo <ozsh@mellanox.com> Reviewed-by: Eli Britstein <elibr@mellanox.com> Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
Diffstat (limited to '')
-rw-r--r--drivers/net/ethernet/mellanox/mlx5/core/en/tc_tun.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/net/ethernet/mellanox/mlx5/core/en/tc_tun.h b/drivers/net/ethernet/mellanox/mlx5/core/en/tc_tun.h
index ad4fc93b17a1..706ce7bf15e7 100644
--- a/drivers/net/ethernet/mellanox/mlx5/core/en/tc_tun.h
+++ b/drivers/net/ethernet/mellanox/mlx5/core/en/tc_tun.h
@@ -13,7 +13,8 @@
enum {
MLX5E_TC_TUNNEL_TYPE_UNKNOWN,
- MLX5E_TC_TUNNEL_TYPE_VXLAN
+ MLX5E_TC_TUNNEL_TYPE_VXLAN,
+ MLX5E_TC_TUNNEL_TYPE_GRETAP
};
int mlx5e_tc_tun_init_encap_attr(struct net_device *tunnel_dev,