]> git.baikalelectronics.ru Git - kernel.git/commit
net: mscc: ocelot: use a consistent cookie for MRP traps
authorVladimir Oltean <vladimir.oltean@nxp.com>
Wed, 16 Feb 2022 14:30:04 +0000 (16:30 +0200)
committerDavid S. Miller <davem@davemloft.net>
Thu, 17 Feb 2022 14:06:50 +0000 (14:06 +0000)
commit73a3da17813193f603e585ee9e15c3b7e90df9fa
tree5cf064bc0afe5fae317c9cf247af531367ba2045
parenta6b50757ddab9bc8c4fefffee46a867c75c86dc1
net: mscc: ocelot: use a consistent cookie for MRP traps

The driver uses an identifier equal to (ocelot->num_phys_ports + port)
for MRP traps installed when the system is in the role of an MRC, and an
identifier equal to (port) otherwise.

Use the same identifier in both cases as a consolidation for the various
cookie values spread throughout the driver.

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