linux/drivers/net/dsa/sja1105
Vladimir Oltean c6ae970bcc 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: dfacc5a23e ("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>
2020-06-18 20:20:46 -07:00
..
Kconfig net: dsa: sja1105: support flow-based redirection via virtual links 2020-05-07 17:31:57 -07:00
Makefile net: dsa: sja1105: support flow-based redirection via virtual links 2020-05-07 17:31:57 -07:00
sja1105_clocking.c net: dsa: sja1105: enable internal pull-down for RX_DV/CRS_DV/RX_CTL and RX_ER 2020-04-20 11:00:27 -07:00
sja1105_dynamic_config.c net: dsa: sja1105: fix port mirroring for P/Q/R/S 2020-05-30 18:00:36 -07:00
sja1105_dynamic_config.h net: dsa: sja1105: Use the correct style for SPDX License Identifier 2019-10-15 20:16:26 -07:00
sja1105_ethtool.c dsa: sja1105: fix semicolon.cocci warnings 2020-05-10 11:05:46 -07:00
sja1105_flower.c net: dsa: sja1105: implement tc-gate using time-triggered virtual links 2020-05-07 17:31:57 -07:00
sja1105_main.c net: dsa: sja1105: avoid invalid state in sja1105_vlan_filtering 2020-05-29 16:49:50 -07:00
sja1105_ptp.c net: dsa: sja1105: fix PTP timestamping with large tc-taprio cycles 2020-06-15 13:45:59 -07:00
sja1105_ptp.h net: dsa: sja1105: implement tc-gate using time-triggered virtual links 2020-05-07 17:31:57 -07:00
sja1105_sgmii.h net: dsa: sja1105: Add support for the SGMII port 2020-03-20 08:55:21 -07:00
sja1105_spi.c net: dsa: sja1105: offload the Credit-Based Shaper qdisc 2020-05-28 11:01:22 -07:00
sja1105_static_config.c net: dsa: sja1105: fix port mirroring for P/Q/R/S 2020-05-30 18:00:36 -07:00
sja1105_static_config.h net: dsa: sja1105: fix port mirroring for P/Q/R/S 2020-05-30 18:00:36 -07:00
sja1105_tas.c net: dsa: sja1105: implement tc-gate using time-triggered virtual links 2020-05-07 17:31:57 -07:00
sja1105_tas.h net: dsa: sja1105: implement tc-gate using time-triggered virtual links 2020-05-07 17:31:57 -07:00
sja1105_vl.c net: dsa: sja1105: fix checks for VLAN state in redirect action 2020-06-18 20:20:46 -07:00
sja1105_vl.h net: dsa: sja1105: suppress -Wmissing-prototypes in sja1105_vl.c 2020-06-01 12:13:47 -07:00
sja1105.h net: dsa: sja1105: suppress -Wmissing-prototypes in sja1105_static_config.c 2020-05-30 18:00:36 -07:00