]> git.baikalelectronics.ru Git - kernel.git/commit
net: mscc: ocelot: add a new ocelot_vcap_block_find_filter_by_id function
authorVladimir Oltean <vladimir.oltean@nxp.com>
Tue, 29 Sep 2020 22:27:32 +0000 (01:27 +0300)
committerDavid S. Miller <davem@davemloft.net>
Wed, 30 Sep 2020 01:26:24 +0000 (18:26 -0700)
commit168c3165c1dda5e97a32785828f962300937680f
tree911708bae7b8f2d9f344f12e7f73340f022b0ef3
parent08f21c3a369ca94d9367274f9dfb516471789ca6
net: mscc: ocelot: add a new ocelot_vcap_block_find_filter_by_id function

And rename the existing find to ocelot_vcap_block_find_filter_by_index.
The index is the position in the TCAM, and the id is the flow cookie
given by tc.

Signed-off-by: Vladimir Oltean <vladimir.oltean@nxp.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mscc/ocelot_vcap.c
drivers/net/ethernet/mscc/ocelot_vcap.h