mirror of
https://github.com/torvalds/linux.git
synced 2026-05-22 14:12:07 +02:00
net: prestera: acl: make read-only array client_map static const
Don't populate the read-only array client_map on the stack but instead make it static const. Also makes the object code a little smaller. Signed-off-by: Colin Ian King <colin.i.king@gmail.com> Link: https://lore.kernel.org/r/20220307221349.164585-1-colin.i.king@gmail.com Signed-off-by: Jakub Kicinski <kuba@kernel.org>
This commit is contained in:
parent
4587369b6c
commit
d82a6c5ef9
|
|
@ -91,7 +91,7 @@ static const struct rhashtable_params __prestera_acl_rule_entry_ht_params = {
|
|||
|
||||
int prestera_acl_chain_to_client(u32 chain_index, u32 *client)
|
||||
{
|
||||
u32 client_map[] = {
|
||||
static const u32 client_map[] = {
|
||||
PRESTERA_HW_COUNTER_CLIENT_LOOKUP_0,
|
||||
PRESTERA_HW_COUNTER_CLIENT_LOOKUP_1,
|
||||
PRESTERA_HW_COUNTER_CLIENT_LOOKUP_2
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user