diff options
author | Yangbo Lu <yangbo.lu@nxp.com> | 2020-02-29 17:31:05 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2020-03-04 05:57:29 +0300 |
commit | 29e59fd4fb488cdafde587c2dca6e8fc4123b6e8 (patch) | |
tree | b5b7f189bb875b9b46068afd82fe0677dd58696f /drivers/net/ethernet/mscc/ocelot_ace.h | |
parent | d658489225271bbe4245c13cd627bcb71b61517b (diff) | |
download | linux-29e59fd4fb488cdafde587c2dca6e8fc4123b6e8.tar.xz |
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>
Diffstat (limited to 'drivers/net/ethernet/mscc/ocelot_ace.h')
-rw-r--r-- | drivers/net/ethernet/mscc/ocelot_ace.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/net/ethernet/mscc/ocelot_ace.h b/drivers/net/ethernet/mscc/ocelot_ace.h index c08e3e8482e7..2927ac83741b 100644 --- a/drivers/net/ethernet/mscc/ocelot_ace.h +++ b/drivers/net/ethernet/mscc/ocelot_ace.h @@ -186,14 +186,14 @@ struct ocelot_ace_stats { struct ocelot_ace_rule { struct list_head list; - struct ocelot_port *port; + struct ocelot *ocelot; u16 prio; u32 id; enum ocelot_ace_action action; struct ocelot_ace_stats stats; - int chip_port; + u16 ingress_port_mask; enum ocelot_vcap_bit dmac_mc; enum ocelot_vcap_bit dmac_bc; |