Skip to content

Commit bb55362

Browse files
sukadevdavem330
authored andcommitted
ibmvnic: Remove the proper scrq flush
Commit 65d6470 ("ibmvnic: clean pending indirect buffs during reset") intended to remove the call to ibmvnic_tx_scrq_flush() when the ->resetting flag is true and was tested that way. But during the final rebase to net-next, the hunk got applied to a block few lines below (which happened to have the same diff context) and the wrong call to ibmvnic_tx_scrq_flush() got removed. Fix that by removing the correct ibmvnic_tx_scrq_flush() and restoring the one that was incorrectly removed. Fixes: 65d6470 ("ibmvnic: clean pending indirect buffs during reset") Reported-by: Dany Madden <[email protected]> Signed-off-by: Sukadev Bhattiprolu <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent 3ddaed6 commit bb55362

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/net/ethernet/ibm/ibmvnic.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1731,7 +1731,6 @@ static netdev_tx_t ibmvnic_xmit(struct sk_buff *skb, struct net_device *netdev)
17311731
tx_send_failed++;
17321732
tx_dropped++;
17331733
ret = NETDEV_TX_OK;
1734-
ibmvnic_tx_scrq_flush(adapter, tx_scrq);
17351734
goto out;
17361735
}
17371736

@@ -1753,6 +1752,7 @@ static netdev_tx_t ibmvnic_xmit(struct sk_buff *skb, struct net_device *netdev)
17531752
dev_kfree_skb_any(skb);
17541753
tx_send_failed++;
17551754
tx_dropped++;
1755+
ibmvnic_tx_scrq_flush(adapter, tx_scrq);
17561756
ret = NETDEV_TX_OK;
17571757
goto out;
17581758
}

0 commit comments

Comments
 (0)