mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-05 02:21:52 +09:00
octeontx2-pf: Clear RSS enable flag on interace down
[ Upstream commitf12098ce9b] RSS configuration can not be get/set when interface is in down state as they required mbox communication. RSS enable flag status is used for set/get configuration. Current code do not clear the RSS enable flag on interface down which lead to mbox error while trying to set/get RSS configuration. Fixes:85069e95e5("octeontx2-pf: Receive side scaling support") Signed-off-by: Geetha sowjanya <gakula@marvell.com> Signed-off-by: Hariprasad Kelam <hkelam@marvell.com> Signed-off-by: Sunil Kovvuri Goutham <sgoutham@marvell.com> Signed-off-by: David S. Miller <davem@davemloft.net> Signed-off-by: Sasha Levin <sashal@kernel.org>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
11e94cfa9d
commit
b553f45c76
@@ -1616,6 +1616,7 @@ int otx2_stop(struct net_device *netdev)
|
||||
struct otx2_nic *pf = netdev_priv(netdev);
|
||||
struct otx2_cq_poll *cq_poll = NULL;
|
||||
struct otx2_qset *qset = &pf->qset;
|
||||
struct otx2_rss_info *rss;
|
||||
int qidx, vec, wrk;
|
||||
|
||||
netif_carrier_off(netdev);
|
||||
@@ -1628,6 +1629,10 @@ int otx2_stop(struct net_device *netdev)
|
||||
/* First stop packet Rx/Tx */
|
||||
otx2_rxtx_enable(pf, false);
|
||||
|
||||
/* Clear RSS enable flag */
|
||||
rss = &pf->hw.rss_info;
|
||||
rss->enable = false;
|
||||
|
||||
/* Cleanup Queue IRQ */
|
||||
vec = pci_irq_vector(pf->pdev,
|
||||
pf->hw.nix_msixoff + NIX_LF_QINT_VEC_START);
|
||||
|
||||
Reference in New Issue
Block a user