]> asedeno.scripts.mit.edu Git - linux.git/commit
Merge branch 'net-dsa-bcm_sf2-Store-rules-in-lists'
authorDavid S. Miller <davem@davemloft.net>
Tue, 6 Nov 2018 23:05:23 +0000 (15:05 -0800)
committerDavid S. Miller <davem@davemloft.net>
Tue, 6 Nov 2018 23:05:23 +0000 (15:05 -0800)
commit5882d526d887e42ead4014d79620e5a8aa741151
treebb2e51336334c719836f0f9c3851a68517ad2205
parent95772ec991f2df6ed20c070803dde5716d1a78fa
parent80f8dea8767ef8fe357f1529fae0e6d8452b5fd2
Merge branch 'net-dsa-bcm_sf2-Store-rules-in-lists'

Florian Fainelli says:

====================
net: dsa: bcm_sf2: Store rules in lists

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
====================

Signed-off-by: David S. Miller <davem@davemloft.net>