OSDN Git Service

net: microchip: sparx5: Improve the error handling for linked rules
authorSteen Hegelund <steen.hegelund@microchip.com>
Tue, 14 Feb 2023 10:40:44 +0000 (11:40 +0100)
committerPaolo Abeni <pabeni@redhat.com>
Thu, 16 Feb 2023 07:59:48 +0000 (08:59 +0100)
commitb5b0c364598835739451e6cd8a9dd84d41089c02
tree67c5ea96bdb62c81d269a799ecc2ef84ecd35a98
parent0518e914f34ae539a1a6f4a19ead3b1d5d9881f4
net: microchip: sparx5: Improve the error handling for linked rules

Ensure that an error is returned if the VCAP instance was not found.
The chain offset (diff) is allowed to be zero as this just means that the
user did not request rules to be linked.

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