OSDN Git Service

net: microchip: sparx5: Use chain ids without offsets when enabling rules
authorSteen Hegelund <steen.hegelund@microchip.com>
Tue, 14 Feb 2023 10:40:43 +0000 (11:40 +0100)
committerPaolo Abeni <pabeni@redhat.com>
Thu, 16 Feb 2023 07:59:48 +0000 (08:59 +0100)
commit0518e914f34ae539a1a6f4a19ead3b1d5d9881f4
tree159c7fbde1150f4bf5911b0eb1efba261a4561d6
parent38f6408c6071f1233644cc1d23e34ec5b36700d7
net: microchip: sparx5: Use chain ids without offsets when enabling rules

This improves the check performed on linked rules when enabling or
disabling them.  The chain id used must be the chain id without the offset
used for linking the rules.

Signed-off-by: Steen Hegelund <steen.hegelund@microchip.com>
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
drivers/net/ethernet/microchip/vcap/vcap_api.c