Skip to content

Commit

Permalink
net: mscc: ocelot: delete OCELOT_MRP_CPUQ
Browse files Browse the repository at this point in the history
MRP frames are configured to be trapped to the CPU queue 7, and this
number is reflected in the extraction header. However, the information
isn't used anywhere, so just leave MRP frames to go to CPU queue 0
unless needed otherwise.

Signed-off-by: Vladimir Oltean <vladimir.oltean@nxp.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
Vladimir Oltean authored and David S. Miller committed Feb 17, 2022
1 parent c518afe commit 36fac35
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 3 deletions.
1 change: 0 additions & 1 deletion drivers/net/ethernet/mscc/ocelot_mrp.c
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,6 @@ static int ocelot_mrp_copy_add_vcap(struct ocelot *ocelot, int port, int prio)
filter->action.mask_mode = OCELOT_MASK_MODE_PERMIT_DENY;
filter->action.port_mask = 0x0;
filter->action.cpu_copy_ena = true;
filter->action.cpu_qu_num = OCELOT_MRP_CPUQ;

err = ocelot_vcap_filter_add(ocelot, filter, NULL);
if (err)
Expand Down
2 changes: 0 additions & 2 deletions include/soc/mscc/ocelot.h
Original file line number Diff line number Diff line change
Expand Up @@ -105,8 +105,6 @@
#define REG_RESERVED_ADDR 0xffffffff
#define REG_RESERVED(reg) REG(reg, REG_RESERVED_ADDR)

#define OCELOT_MRP_CPUQ 7

enum ocelot_target {
ANA = 1,
QS,
Expand Down

0 comments on commit 36fac35

Please sign in to comment.