summaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/mellanox/mlx5/core/en_tc.c
diff options
context:
space:
mode:
authorEli Britstein2018-11-22 13:04:33 +0100
committerSaeed Mahameed2018-12-11 23:52:19 +0100
commit38c9d2697b9c0d928875ea45b5e2fd706df7ad7e (patch)
treee4b8c5459f441044a005e0ba09ecca21459959fe /drivers/net/ethernet/mellanox/mlx5/core/en_tc.c
parentnet/mlx5e: Annul encap action ordering requirement (diff)
downloadkernel-qcow2-linux-38c9d2697b9c0d928875ea45b5e2fd706df7ad7e.tar.gz
kernel-qcow2-linux-38c9d2697b9c0d928875ea45b5e2fd706df7ad7e.tar.xz
kernel-qcow2-linux-38c9d2697b9c0d928875ea45b5e2fd706df7ad7e.zip
net/mlx5e: Replace the split logic with extended destination
Currently the FTE encap flag applies to all destinations. To support mirroring encapsulated traffic to a local port the driver split the two destinations to two flow table entries: Table#0: - FWD to the local vport - Goto table#1 Table#1: - Encap and FWD to wire The firmware extended destination capabilities enable the driver to set an encapsulation flag per destination. Remove the split logic and use the extended destination mechanism instead. Note that split technique is still required for pedit and VLAN push scenarios. Signed-off-by: Eli Britstein <elibr@mellanox.com> Reviewed-by: Oz Shlomo <ozsh@mellanox.com> Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
Diffstat (limited to 'drivers/net/ethernet/mellanox/mlx5/core/en_tc.c')
-rw-r--r--drivers/net/ethernet/mellanox/mlx5/core/en_tc.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/net/ethernet/mellanox/mlx5/core/en_tc.c b/drivers/net/ethernet/mellanox/mlx5/core/en_tc.c
index e48fbb7d9735..1e3688a0c4f9 100644
--- a/drivers/net/ethernet/mellanox/mlx5/core/en_tc.c
+++ b/drivers/net/ethernet/mellanox/mlx5/core/en_tc.c
@@ -2513,7 +2513,6 @@ static int parse_tc_fdb_actions(struct mlx5e_priv *priv, struct tcf_exts *exts,
encap = true;
else
return -EOPNOTSUPP;
- attr->split_count = attr->out_count;
continue;
}