sfc: add code to register and unregister encap matches
authorEdward Cree <ecree.xilinx@gmail.com>
Mon, 27 Mar 2023 10:36:07 +0000 (11:36 +0100)
committerDavid S. Miller <davem@davemloft.net>
Wed, 29 Mar 2023 08:06:08 +0000 (09:06 +0100)
commit746224cdef013e2a7a4b83fa52881c5482f0c47d
treefd74be6de1396a97d8dbc3a82a35d29a66e80e31
parent2245eb0086d81e54dfc6492f649059465ebbed79
sfc: add code to register and unregister encap matches

Add a hashtable to detect duplicate and conflicting matches.  If match
 is not a duplicate, call MAE functions to add/remove it from OR table.
Calling code not added yet, so mark the new functions as unused.

Signed-off-by: Edward Cree <ecree.xilinx@gmail.com>
Reviewed-by: Simon Horman <simon.horman@corigine.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/sfc/tc.c
drivers/net/ethernet/sfc/tc.h