i40e: Fix ATR queue selection
Subsystems (2)
PATCH 1/1 i40e: Fix ATR queue selection
If traffic classes are not configured for PF, then use netdev_pick_tx function for selecting queue for packet transmission. Instead of calling i40e_swdcb_skb_tx_hash, call netdev_pick_tx, which ensures that packet is transmitted/received from CPU that is running the application.
Without this patch, ATR does not work. Receive/transmit uses queue selection based on SW DCB hashing method.
--- drivers/net/ethernet/intel/i40e/i40e_txrx.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-)
drivers/net/ethernet/intel/i40e/i40e_txrx.c +1 -2
@@ -3663,8 +3663,7 @@ u16 i40e_lan_select_queue(struct net_device *netdev,/* is DCB enabled at all? */ if (vsi->tc_config.numtc ==1 ) -return i40e_swdcb_skb_tx_hash (netdev, skb, - netdev->real_num_tx_queues); +return netdev_pick_tx (netdev, skb, sb_dev); prio = skb->priority; hw = &vsi->back->hw;
base-commit: e84671cd9648eb1f2b346378c100b4ebfbd1b01c
Signature · 1 line
2.18.4
PATCH 1/1 i40e: Fix ATR queue selection
Dear Arkadiusz,
Am 19.07.21 um 21:49 schrieb Arkadiusz Kubalewski:
Quoted 7 lines
If traffic classes are not configured for PF, then use
netdev_pick_txfunction for selecting queue for packet transmission. Instead of callingi40e_swdcb_skb_tx_hash, callnetdev_pick_tx, which ensures that packet is transmitted/received from CPU that is running the application.
Without this patch, ATR does not work. Receive/transmit uses queue selection based on SW DCB hashing method.
For the future, the problem statement should go first in my opinion.
Do you have a recipe, how to reproduce the problem?
Kind regards,
Paul
Quoted 24 lines
Fixes 821bd0c990ba ("i40e: Fix queue-to-TC mapping on Tx")Signed-off-by Przemyslaw Patynowski <[email protected]>Signed-off-by Arkadiusz Kubalewski <[email protected]>--- drivers/net/ethernet/intel/i40e/i40e_txrx.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-)drivers/net/ethernet/intel/i40e/i40e_txrx.c +1
-2@@ -3663,8 +3663,7 @@ u16 i40e_lan_select_queue(struct net_device *netdev,/* is DCB enabled at all? */ if (vsi->tc_config.numtc ==1 ) -return i40e_swdcb_skb_tx_hash (netdev, skb, - netdev->real_num_tx_queues); +return netdev_pick_tx (netdev, skb, sb_dev); prio = skb->priority; hw = &vsi->back->hw;base-commit:
e84671cd9648eb1f2b346378c100b4ebfbd1b01c
Kubalewski
PATCH 1/1 i40e: Fix ATR queue selection
Quoted 12 lines
Dear Arkadiusz,
Am 19.07.21 um 21:49 schrieb Arkadiusz Kubalewski:
Quoted 7 lines
If traffic classes are not configured for PF, then use
netdev_pick_txfunction for selecting queue for packet transmission. Instead of callingi40e_swdcb_skb_tx_hash, callnetdev_pick_tx, which ensures that packet is transmitted/received from CPU that is running the application.
Without this patch, ATR does not work. Receive/transmit uses queue selection based on SW DCB hashing method.
Quoted 8 lines
For the future, the problem statement should go first in my opinion.
Do you have a recipe, how to reproduce the problem?
Kind regards,
Paul
Hi Paul,
Yes, of course I have reproduction steps.
I will fix your findings in next patch.
Thank you!
BR,
Arkadiusz
Quoted 29 lines
Quoted 28 lines
Fixes 821bd0c990ba ("i40e: Fix queue-to-TC mapping on Tx")Signed-off-by Przemyslaw PatynowskiSigned-off-by Arkadiusz Kubalewski <[email protected]>--- drivers/net/ethernet/intel/i40e/i40e_txrx.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-)drivers/net/ethernet/intel/i40e/i40e_txrx.c +1
-2@@ -3663,8 +3663,7 @@ u16 i40e_lan_select_queue(struct net_device *netdev,/* is DCB enabled at all? */ if (vsi->tc_config.numtc == 1) -return i40e_swdcb_skb_tx_hash (netdev, skb, - netdev->real_num_tx_queues); +return netdev_pick_tx (netdev, skb, sb_dev); prio = skb->priority;hw = &vsi->back->hw;base-commit:
e84671cd9648eb1f2b346378c100b4ebfbd1b01c