diff options
author | Alexander Lobakin <alobakin@marvell.com> | 2020-07-20 21:08:02 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2020-07-20 17:59:43 -0700 |
commit | 1d4e4ecccb114449454592e24ad790e20f397c05 (patch) | |
tree | 49c9b719df2ae2b4a0951febdf19e865aa2dd871 /drivers/net/ethernet/qlogic/qede/qede_main.c | |
parent | bdb5d8ec47611ca61e168349f233e1dd1ed063f4 (diff) | |
download | linux-1d4e4ecccb114449454592e24ad790e20f397c05.tar.bz2 |
qede: populate supported link modes maps on module init
Simplify and lighten qede_set_link_ksettings() by declaring static link
modes maps and populating them on module init. This way we save plenty
of text size at the low expense of __ro_after_init and __initconst data
(the latter will be purged after module init is done).
Signed-off-by: Alexander Lobakin <alobakin@marvell.com>
Signed-off-by: Igor Russkikh <irusskikh@marvell.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/qlogic/qede/qede_main.c')
-rw-r--r-- | drivers/net/ethernet/qlogic/qede/qede_main.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/net/ethernet/qlogic/qede/qede_main.c b/drivers/net/ethernet/qlogic/qede/qede_main.c index a653dd0e5c22..6f2171dc0dea 100644 --- a/drivers/net/ethernet/qlogic/qede/qede_main.c +++ b/drivers/net/ethernet/qlogic/qede/qede_main.c @@ -263,6 +263,8 @@ int __init qede_init(void) pr_info("qede_init: %s\n", version); + qede_forced_speed_maps_init(); + qed_ops = qed_get_eth_ops(); if (!qed_ops) { pr_notice("Failed to get qed ethtool operations\n"); |