]> git.baikalelectronics.ru Git - kernel.git/commit
net: dsa: felix: fix incorrect action offsets for VCAP IS2
authorVladimir Oltean <vladimir.oltean@nxp.com>
Tue, 29 Sep 2020 11:20:24 +0000 (14:20 +0300)
committerDavid S. Miller <davem@davemloft.net>
Tue, 29 Sep 2020 20:24:17 +0000 (13:24 -0700)
commit9488d5106c6f582f09ebc8cd720389026bf15f3b
tree504420aa7b7179fabe6958a50e4e3f809c5a43c0
parent2ef5e7db24311adb1984d940a08973568860d77c
net: dsa: felix: fix incorrect action offsets for VCAP IS2

The port mask width was larger than the actual number of ports, and
therefore, all fields following this one were also shifted by the number
of excess bits. But the driver doesn't use the REW_OP, SMAC_REPLACE_ENA
or ACL_ID bits from the action vector, so the bug was inconsequential.

Signed-off-by: Vladimir Oltean <vladimir.oltean@nxp.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/dsa/ocelot/felix_vsc9959.c