Skip to content

Commit b553f45

Browse files
Geetha sowjanyagregkh
authored andcommitted
octeontx2-pf: Clear RSS enable flag on interace down
[ Upstream commit f12098c ] 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: 85069e9 ("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>
1 parent 11e94cf commit b553f45

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

  • drivers/net/ethernet/marvell/octeontx2/nic

‎drivers/net/ethernet/marvell/octeontx2/nic/otx2_pf.c‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1616,6 +1616,7 @@ int otx2_stop(struct net_device *netdev)
16161616
struct otx2_nic *pf = netdev_priv(netdev);
16171617
struct otx2_cq_poll *cq_poll = NULL;
16181618
struct otx2_qset *qset = &pf->qset;
1619+
struct otx2_rss_info *rss;
16191620
int qidx, vec, wrk;
16201621

16211622
netif_carrier_off(netdev);
@@ -1628,6 +1629,10 @@ int otx2_stop(struct net_device *netdev)
16281629
/* First stop packet Rx/Tx */
16291630
otx2_rxtx_enable(pf, false);
16301631

1632+
/* Clear RSS enable flag */
1633+
rss = &pf->hw.rss_info;
1634+
rss->enable = false;
1635+
16311636
/* Cleanup Queue IRQ */
16321637
vec = pci_irq_vector(pf->pdev,
16331638
pf->hw.nix_msixoff + NIX_LF_QINT_VEC_START);

0 commit comments

Comments
 (0)