Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

net: microchip: Remove unused declarations

Commit 264a9c5c9dff ("net: sparx5: Remove unused GLAG handling in PGID")
removed sparx5_pgid_alloc_glag() but not its declaration.
Commit 27d293cceee5 ("net: microchip: sparx5: Add support for rule count by cookie")
removed vcap_rule_iter() but not its declaration.
Commit 8beef08f4618 ("net: microchip: sparx5: Adding initial VCAP API support")
declared but never implemented vcap_api_set_client().

Signed-off-by: Yue Haibing <yuehaibing@huawei.com>
Reviewed-by: Simon Horman <horms@kernel.org>
Link: https://lore.kernel.org/r/20230821135556.43224-1-yuehaibing@huawei.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>

authored by

Yue Haibing and committed by
Jakub Kicinski
dff96d7c efa47e80

-7
-1
drivers/net/ethernet/microchip/sparx5/sparx5_main.h
··· 414 414 }; 415 415 416 416 void sparx5_pgid_init(struct sparx5 *spx5); 417 - int sparx5_pgid_alloc_glag(struct sparx5 *spx5, u16 *idx); 418 417 int sparx5_pgid_alloc_mcast(struct sparx5 *spx5, u16 *idx); 419 418 int sparx5_pgid_free(struct sparx5 *spx5, u16 idx); 420 419
-3
drivers/net/ethernet/microchip/vcap/vcap_api.h
··· 277 277 struct list_head list; /* list of vcap instances */ 278 278 }; 279 279 280 - /* Set client control interface on the API */ 281 - int vcap_api_set_client(struct vcap_control *vctrl); 282 - 283 280 #endif /* __VCAP_API__ */
-3
drivers/net/ethernet/microchip/vcap/vcap_api_client.h
··· 226 226 bool vcap_is_next_lookup(struct vcap_control *vctrl, int cur_cid, int next_cid); 227 227 /* Is this chain id the last lookup of all VCAPs */ 228 228 bool vcap_is_last_chain(struct vcap_control *vctrl, int cid, bool ingress); 229 - /* Provide all rules via a callback interface */ 230 - int vcap_rule_iter(struct vcap_control *vctrl, 231 - int (*callback)(void *, struct vcap_rule *), void *arg); 232 229 /* Match a list of keys against the keysets available in a vcap type */ 233 230 bool vcap_rule_find_keysets(struct vcap_rule *rule, 234 231 struct vcap_keyset_list *matches);