diff options
| author | 2022-12-03 11:43:45 +0100 | |
|---|---|---|
| committer | 2022-12-06 13:26:43 +0100 | |
| commit | 610c32b2ce66d4aaa07b3a77a709bd4d2b268bb1 (patch) | |
| tree | 56b8abd6275711ab8166bb06436c590c47fcd616 /drivers/net/ethernet/microchip/vcap/vcap_api_client.h | |
| parent | net: mtk_eth_soc: enable flow offload support for MT7986 SoC (diff) | |
| download | wireguard-linux-610c32b2ce66d4aaa07b3a77a709bd4d2b268bb1.tar.xz wireguard-linux-610c32b2ce66d4aaa07b3a77a709bd4d2b268bb1.zip | |
net: microchip: vcap: Add vcap_get_rule
Add function vcap_get_rule which returns a rule based on the internal
rule id.
The entire functionality of reading and decoding the rule from the VCAP
was inside vcap_api_debugfs file. So move the entire implementation in
vcap_api as this is used also by vcap_get_rule.
Signed-off-by: Horatiu Vultur <horatiu.vultur@microchip.com>
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
Diffstat (limited to 'drivers/net/ethernet/microchip/vcap/vcap_api_client.h')
| -rw-r--r-- | drivers/net/ethernet/microchip/vcap/vcap_api_client.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/net/ethernet/microchip/vcap/vcap_api_client.h b/drivers/net/ethernet/microchip/vcap/vcap_api_client.h index 93a0fcb12a81..a354dcd741e2 100644 --- a/drivers/net/ethernet/microchip/vcap/vcap_api_client.h +++ b/drivers/net/ethernet/microchip/vcap/vcap_api_client.h @@ -170,6 +170,8 @@ int vcap_add_rule(struct vcap_rule *rule); int vcap_del_rule(struct vcap_control *vctrl, struct net_device *ndev, u32 id); /* Make a full copy of an existing rule with a new rule id */ struct vcap_rule *vcap_copy_rule(struct vcap_rule *rule); +/* Get rule from a VCAP instance */ +struct vcap_rule *vcap_get_rule(struct vcap_control *vctrl, u32 id); /* Update the keyset for the rule */ int vcap_set_rule_set_keyset(struct vcap_rule *rule, |
