Skip to content

net: dsa: bcm_sf2: Store rules in lists

Florian Fainelli netdev 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest5 patches 2 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/5net: dsa: bcm_sf2: Keep copy of inserted rulesdrivers/net/dsa/bcm_sf2.c drivers/net/dsa/bcm_sf2.h drivers/net/dsa/bcm_sf2_cfp.c+137 -110 replies
2/5net: dsa: bcm_sf2: Split rule handling from HW operationdrivers/net/dsa/bcm_sf2_cfp.c+54 -350 replies
3/5net: dsa: bcm_sf2: Restore CFP rules during system resumedrivers/net/dsa/bcm_sf2.c drivers/net/dsa/bcm_sf2.h drivers/net/dsa/bcm_sf2_cfp.c+41 -00 replies
4/5net: dsa: bcm_sf2: Get rid of unmarshalling functionsdrivers/net/dsa/bcm_sf2_cfp.c+0 -3100 replies
5/5net: systemport: Restore Broadcom tag match filters upon resumedrivers/net/ethernet/broadcom/bcmsysport.c drivers/net/ethernet/broadcom/bcmsysport.h+13 -00 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH net-next 0/5] net: dsa: bcm_sf2: Store rules in lists

Hi all,

This patch series changes the bcm-sf2 driver to keep a copy of the inserted rules as opposed to using the HW as a storage area for a number of reasons:

- this helps us with doing duplicate rule detection in a faster way, it would have required a full rule read before

- this helps with Pablo's on-going work to convert ethtool_rx_flow_spec to a more generic flow rule structure by having fewer code paths to convert to the new structure/helpers

- we need to cache copies to restore them during drive resumption, because depending on the low power mode the system has entered, the switch may have lost all of its context

Florian Fainelli (5):
net: dsa: bcm_sf2: Keep copy of inserted rules
net: dsa: bcm_sf2: Split rule handling from HW operation
net: dsa: bcm_sf2: Restore CFP rules during system resume
net: dsa: bcm_sf2: Get rid of unmarshalling functions
net: systemport: Restore Broadcom tag match filters upon resume

 drivers/net/dsa/bcm_sf2.c                  |   6 +
 drivers/net/dsa/bcm_sf2.h                  |   3 +
 drivers/net/dsa/bcm_sf2_cfp.c              | 497 ++++++++-------------
 drivers/net/ethernet/broadcom/bcmsysport.c |  12 +
 drivers/net/ethernet/broadcom/bcmsysport.h |   1 +
 5 files changed, 204 insertions(+), 315 deletions(-)
Signature · 1 line
2.17.1