summaryrefslogtreecommitdiffstats
path: root/drivers/net/can/ifi_canfd
diff options
context:
space:
mode:
authorFlorian Fainelli <f.fainelli@gmail.com>2017-10-20 14:39:46 -0700
committerDavid S. Miller <davem@davemloft.net>2017-10-23 03:06:47 +0100
commit4daa70cfb69186a4fe70fa2fefc271a41ece5085 (patch)
tree2602d75730fb21608ce2184402f1f9964aa4ac99 /drivers/net/can/ifi_canfd
parent5d80bcbb631ce035f37bce1924fe73ed0d77b546 (diff)
downloadblackbird-op-linux-4daa70cfb69186a4fe70fa2fefc271a41ece5085.tar.gz
blackbird-op-linux-4daa70cfb69186a4fe70fa2fefc271a41ece5085.zip
net: dsa: bcm_sf2: Simplify bcm_sf2_cfp_rule_get_all()
There is no need to do a HW search of the TCAMs which is something slow and expensive. Since we already maintain a bitmask of active CFP rules, just iterate over those, starting from bit 1 (after the reserved entry) to get a count and index position to store the rule later on. As a result we can remove the code in bcm_sf2_cfp_rule_get() which acted on the "search" argument, and remove that argument. Signed-off-by: Florian Fainelli <f.fainelli@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/can/ifi_canfd')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud