summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorOr Gerlitz <ogerlitz@mellanox.com>2018-10-25 15:41:58 +0000
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2018-11-23 08:17:04 +0100
commit5351b859a6dd60787e78982ef5e1072704806b6d (patch)
tree2cc62500bccc6256713ba969b2945cb38451b4b9 /scripts
parent961842dcc1fd7523acc8a4b2db5e9cacaa703af3 (diff)
net/mlx5e: Don't match on vlan non-existence if ethertype is wildcarded
[ Upstream commit d3a80bb5a3eac311ddf28387402593977574460d ] For the "all" ethertype we should not care whether the packet has vlans. Besides being wrong, the way we did it caused FW error for rules such as: tc filter add dev eth0 protocol all parent ffff: \ prio 1 flower skip_sw action drop b/c the matching meta-data (outer headers bit in struct mlx5_flow_spec) wasn't set. Fix that by matching on vlan non-existence only if we were also told to match on the ethertype. Fixes: cee26487620b ('net/mlx5e: Set vlan masks for all offloaded TC rules') Signed-off-by: Or Gerlitz <ogerlitz@mellanox.com> Reported-by: Slava Ovsiienko <viacheslavo@mellanox.com> Reviewed-by: Jianbo Liu <jianbol@mellanox.com> Reviewed-by: Roi Dayan <roid@mellanox.com> Signed-off-by: Saeed Mahameed <saeedm@mellanox.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'scripts')
0 files changed, 0 insertions, 0 deletions