summaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/mellanox/mlx5/core/en.h
diff options
context:
space:
mode:
authorTariq Toukan2019-01-20 10:04:34 +0100
committerSaeed Mahameed2019-05-01 23:39:15 +0200
commit69dad68d1bcf26dde3cc4b08b08c2260ae575ab6 (patch)
tree339be7d901425d5d8e5c7f1d228850fd7e42be32 /drivers/net/ethernet/mellanox/mlx5/core/en.h
parentnet/mlx5e: Take common TIR context settings into a function (diff)
downloadkernel-qcow2-linux-69dad68d1bcf26dde3cc4b08b08c2260ae575ab6.tar.gz
kernel-qcow2-linux-69dad68d1bcf26dde3cc4b08b08c2260ae575ab6.tar.xz
kernel-qcow2-linux-69dad68d1bcf26dde3cc4b08b08c2260ae575ab6.zip
net/mlx5e: Turn on HW tunnel offload in all TIRs
Hardware requires that all TIRs that steer traffic to the same RQ should share identical tunneled_offload_en value. For that, the tunneled_offload_en bit should be set/unset (according to the HW capability) for all TIRs', not only the ones dedicated for tunneled (inner) traffic. Fixes: 1b223dd39162 ("net/mlx5e: Fix checksum handling for non-stripped vlan packets") Signed-off-by: Tariq Toukan <tariqt@mellanox.com> Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
Diffstat (limited to 'drivers/net/ethernet/mellanox/mlx5/core/en.h')
-rw-r--r--drivers/net/ethernet/mellanox/mlx5/core/en.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/ethernet/mellanox/mlx5/core/en.h b/drivers/net/ethernet/mellanox/mlx5/core/en.h
index 7e0c3d4de108..3a183d690e23 100644
--- a/drivers/net/ethernet/mellanox/mlx5/core/en.h
+++ b/drivers/net/ethernet/mellanox/mlx5/core/en.h
@@ -240,6 +240,7 @@ struct mlx5e_params {
bool rx_cqe_compress_def;
struct net_dim_cq_moder rx_cq_moderation;
struct net_dim_cq_moder tx_cq_moderation;
+ bool tunneled_offload_en;
bool lro_en;
u8 tx_min_inline_mode;
bool vlan_strip_disable;