Skip to content

Commit de9c1a2

Browse files
Huayu-Chendavem330
authored andcommitted
nfp: fix NFP_NET_MAX_DSCP definition error
The patch corrects the NFP_NET_MAX_DSCP definition in the main.h file. The incorrect definition result DSCP bits not being mapped properly when DCB is set. When NFP_NET_MAX_DSCP was defined as 4, the next 60 DSCP bits failed to be set. Fixes: 9b7fe80 ("nfp: add DCB IEEE support") Cc: [email protected] Signed-off-by: Huayu Chen <[email protected]> Acked-by: Simon Horman <[email protected]> Signed-off-by: Louis Peens <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent 01e8f6c commit de9c1a2

File tree

1 file changed

+1
-1
lines changed
  • drivers/net/ethernet/netronome/nfp/nic

1 file changed

+1
-1
lines changed

drivers/net/ethernet/netronome/nfp/nic/main.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99
#ifdef CONFIG_DCB
1010
/* DCB feature definitions */
11-
#define NFP_NET_MAX_DSCP 4
11+
#define NFP_NET_MAX_DSCP 64
1212
#define NFP_NET_MAX_TC IEEE_8021QAZ_MAX_TCS
1313
#define NFP_NET_MAX_PRIO 8
1414
#define NFP_DCB_CFG_STRIDE 256

0 commit comments

Comments
 (0)