net: mscc: ocelot: make ocelot_ace_rule support multiple ports
authorYangbo Lu <yangbo.lu@nxp.com>
Sat, 29 Feb 2020 14:31:05 +0000 (16:31 +0200)
committerDavid S. Miller <davem@davemloft.net>
Wed, 4 Mar 2020 02:57:29 +0000 (18:57 -0800)
commit29e59fd4fb488cdafde587c2dca6e8fc4123b6e8
treeb5b7f189bb875b9b46068afd82fe0677dd58696f
parentd658489225271bbe4245c13cd627bcb71b61517b
net: mscc: ocelot: make ocelot_ace_rule support multiple ports

The ocelot_ace_rule is port specific now. Make it flexible to
be able to support multiple ports too.

Signed-off-by: Yangbo Lu <yangbo.lu@nxp.com>
Signed-off-by: Vladimir Oltean <vladimir.oltean@nxp.com>
Tested-by: Horatiu Vultur <horatiu.vultur@microchip.com>
Reviewed-by: Allan W. Nielsen <allan.nielsen@microchip.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mscc/ocelot_ace.c
drivers/net/ethernet/mscc/ocelot_ace.h
drivers/net/ethernet/mscc/ocelot_flower.c