diff options
author | Vladimir Oltean <vladimir.oltean@nxp.com> | 2020-06-17 02:58:42 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2020-06-18 20:20:46 -0700 |
commit | c6ae970bcc8e6f0b761111680ba78f7be43fb05a (patch) | |
tree | 0305cbd75ab8f78bd193c388a15fbb0c72efb427 /Documentation/gpu | |
parent | 5b3b396c77677b51a6bd1aacd0fe2a04d1efa0ff (diff) | |
download | linux-c6ae970bcc8e6f0b761111680ba78f7be43fb05a.tar.bz2 |
net: dsa: sja1105: fix checks for VLAN state in redirect action
This action requires the VLAN awareness state of the switch to be of the
same type as the key that's being added:
- If the switch is unaware of VLAN, then the tc filter key must only
contain the destination MAC address.
- If the switch is VLAN-aware, the key must also contain the VLAN ID and
PCP.
But this check doesn't work unless we verify the VLAN awareness state on
both the "if" and the "else" branches.
Fixes: dfacc5a23e22 ("net: dsa: sja1105: support flow-based redirection via virtual links")
Signed-off-by: Vladimir Oltean <vladimir.oltean@nxp.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'Documentation/gpu')
0 files changed, 0 insertions, 0 deletions