Skip to contentSkip to conversation

cxgb4 : Fix DCB priority groups being returned in wrong order

PATCH Applied Anish Bhatt 2 participants 2 messages Nov 21, 2014

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 cxgb4 : Fix DCB priority groups being returned in wrong order

Peer priority groups were being reversed, but this was missed in the previous fix sent out for this issue.

v2 : Previous patch was doing extra unnecessary work, result is the same. Please ignore previous patch

Fixes ee7bc3cdc270 ('cxgb4 : dcb open-lldp interop fixes')
---
 drivers/net/ethernet/chelsio/cxgb4/cxgb4_dcb.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/net/ethernet/chelsio/cxgb4/cxgb4_dcb.c +1 -1
index cca6049..4fe3360 100644
@@ -1082,7 +1082,7 @@ static int cxgb4_cee_peer_getpg(struct net_device *dev, struct cee_pg *pg)
 	pgid = be32_to_cpu(pcmd.u.dcb.pgid.pgid);
 
 	for (i = 0; i < CXGB4_MAX_PRIORITY; i++)
-		pg->prio_pg[i] = (pgid >> (i * 4)) & 0xF;
+		pg->prio_pg[7 - i] = (pgid >> (i * 4)) & 0xF;
 
 	INIT_PORT_DCB_READ_PEER_CMD(pcmd, pi->port_id);
 	pcmd.u.dcb.pgrate.type = FW_PORT_DCB_TYPE_PGRATE;
Signature · 1 line
2.1.3
maintainer Applied
#1 lore raw

From: Anish Bhatt <[email protected]>
Date: Thu, 20 Nov 2014 17:11:46 -0800

Quoted 9 lines

Peer priority groups were being reversed, but this was missed in the previous fix sent out for this issue.

v2 : Previous patch was doing extra unnecessary work, result is the same. Please ignore previous patch

Fixes ee7bc3cdc270 ('cxgb4 : dcb open-lldp interop fixes')

Applied.