aquantia: Do not purge addresses when setting the number of rings
authorIzabela Bakollari <ibakolla@redhat.com>
Wed, 23 Nov 2022 10:10:08 +0000 (11:10 +0100)
committerDavid S. Miller <davem@davemloft.net>
Fri, 25 Nov 2022 09:28:46 +0000 (09:28 +0000)
commit2a83891130512dafb321418a8e7c9c09268d8c59
treea701af310c7bf508eb01e0e06691ecc33f0d626d
parent39701603519e5b43a717b6db6fef9144800fdad8
aquantia: Do not purge addresses when setting the number of rings

IPV6 addresses are purged when setting the number of rx/tx
rings using ethtool -G. The function aq_set_ringparam
calls dev_close, which removes the addresses. As a solution,
call an internal function (aq_ndev_close).

Fixes: c1af5427954b ("net: aquantia: Ethtool based ring size configuration")
Signed-off-by: Izabela Bakollari <ibakolla@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/aquantia/atlantic/aq_ethtool.c
drivers/net/ethernet/aquantia/atlantic/aq_main.c
drivers/net/ethernet/aquantia/atlantic/aq_main.h