Patch "net/mlx5e: Use the proper UAPI values when offloading TC vlan actions" has been added to the 4.10-stable tree
This is a note to let you know that I've just added the patch titled
net/mlx5e: Use the proper UAPI values when offloading TC vlan actions
to the 4.10-stable tree which can be found at:
http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary
The filename of the patch is:
net-mlx5e-use-the-proper-uapi-values-when-offloading-tc-vlan-actions.patch
and it can be found in the queue-4.10 subdirectory.
If you, or anyone else, feels it should not be added to the stable tree, please let <[email protected]> know about it.
Quoted 1 line
From foo@baz Mon Mar 27 18:18:08 CEST 2017
From: Or Gerlitz <[email protected]>
Date: Tue, 21 Mar 2017 15:59:15 +0200
Subject: net/mlx5e: Use the proper UAPI values when offloading TC vlan actions
From: Or Gerlitz <[email protected]>
[ Upstream commit 09c91ddf2cd33489c2c14edfef43ae38d412888e ]
Currently we use the non UAPI values and we miss erring on the modify action which is not supported, fix that.
--- drivers/net/ethernet/mellanox/mlx5/core/en_tc.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-)
drivers/net/ethernet/mellanox/mlx5/core/en_tc.c +4 -2
@@ -974,14 +974,16 @@ static int parse_tc_fdb_actions(struct m }if (is_tcf_vlan (a)) { -if (tcf_vlan_action (a) ==VLAN_F_POP ) { +if (tcf_vlan_action (a) ==TCA_VLAN_ACT_POP ) { attr->action |=MLX5_FLOW_CONTEXT_ACTION_VLAN_POP ; - }else if (tcf_vlan_action (a) ==VLAN_F_PUSH ) { + }else if (tcf_vlan_action (a) ==TCA_VLAN_ACT_PUSH ) {if (tcf_vlan_push_proto (a) !=htons (ETH_P_8021Q ))return -EOPNOTSUPP ; attr->action |=MLX5_FLOW_CONTEXT_ACTION_VLAN_PUSH ; attr->vlan =tcf_vlan_push_vid (a); + }else {/* action is TCA_VLAN_ACT_MODIFY */ +return -EOPNOTSUPP ; }continue ; }
Patches currently in stable-queue which might be from [email protected] are
queue-4.10/net-mlx5e-change-the-tc-offload-rule-add-del-code-path-to-be-per-nic-or-e-switch.patch queue-4.10/net-mlx5-add-missing-entries-for-set-query-rate-limit-commands.patch queue-4.10/net-mlx5e-avoid-supporting-udp-tunnel-port-ndo-for-vf-reps.patch queue-4.10/net-mlx5e-use-the-proper-uapi-values-when-offloading-tc-vlan-actions.patch queue-4.10/net-mlx5-e-switch-don-t-allow-changing-inline-mode-when-flows-are-configured.patch queue-4.10/net-openvswitch-set-the-ipv6-source-tunnel-key-address-attribute-correctly.patch