]> 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)
commit34232feab7626d164a25aed9e79805127593210e
tree5cf064bc0afe5fae317c9cf247af531367ba2045
parente8d05eb264fc6378cc6d5c302bde2e1e51e82c02
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