]> 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)
commitddb3300082c5e6716a2825c114f6d220829ef6a0
tree504420aa7b7179fabe6958a50e4e3f809c5a43c0
parent53d824f5fd4026d8cb8e2b1f0ec7d2591cdd7ff7
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