Skip to content

Commit 8f3968f

Browse files
author
Muralidharan Karicheri
committed
Merge pull request torvalds#212 in PROCESSOR-SDK/processor-sdk-linux from switch_tx_queues to processor-sdk-linux-4.19.y
* commit 'b1da5ce158c1dc79fd02783639acfecb789ac0ed': net: ti: prueth: switch uses 4 egress queues
2 parents 32c264e + b1da5ce commit 8f3968f

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

drivers/net/ethernet/ti/prueth.c

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4558,10 +4558,11 @@ static u16 prueth_get_tx_queue_id(struct prueth *prueth, struct sk_buff *skb)
45584558
pcp = 0;
45594559
else
45604560
pcp = (vlan_tci & VLAN_PRIO_MASK) >> VLAN_PRIO_SHIFT;
4561-
/* For switch, we use only QUEUE4 and QUEUE3 at the egress. QUEUE2 and
4562-
* QUEUE1 are used for port to port traffic
4561+
/* For HSR/PRP, we use only QUEUE4 and QUEUE3 at the egress. QUEUE2 and
4562+
* QUEUE1 are used for port to port traffic. Current version of SWITCH
4563+
* firmware uses 4 egress queues.
45634564
*/
4564-
if (PRUETH_HAS_SWITCH(prueth))
4565+
if (PRUETH_HAS_RED(prueth))
45654566
pcp >>= 1;
45664567

45674568
return emac_pcp_tx_priority_queue_map[pcp];

0 commit comments

Comments
 (0)