]> git.proxmox.com Git - mirror_ubuntu-hirsute-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)
commit085f5b91629f65fa1bce19e9dd65a2e46457fe27
tree911708bae7b8f2d9f344f12e7f73340f022b0ef3
parent642942637c29b641975cd40b723c2986db3bd91b
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