qed: Improve the stack space of filter_config()
authorShai Malin <smalin@marvell.com>
Mon, 13 Sep 2021 07:50:24 +0000 (10:50 +0300)
committerDavid S. Miller <davem@davemloft.net>
Mon, 13 Sep 2021 11:41:32 +0000 (12:41 +0100)
commitf55e36d5ab76c3097ff36ecea60b91c6b0d80fc8
tree696ca10cd8d47e8281897c44327a61f92d3f3695
parent626bf91a292e2035af5b9d9cce35c5c138dfe06d
qed: Improve the stack space of filter_config()

As it was reported and discussed in: https://lore.kernel.org/lkml/CAHk-=whF9F89vsfH8E9TGc0tZA-yhzi2Di8wOtquNB5vRkFX5w@mail.gmail.com/
This patch improves the stack space of qede_config_rx_mode() by
splitting filter_config() to 3 functions and removing the
union qed_filter_type_params.

Reported-by: Naresh Kamboju <naresh.kamboju@linaro.org>
Signed-off-by: Ariel Elior <aelior@marvell.com>
Signed-off-by: Shai Malin <smalin@marvell.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/qlogic/qed/qed_l2.c
drivers/net/ethernet/qlogic/qede/qede_filter.c
include/linux/qed/qed_eth_if.h