diff options
author | Huayu Chen <huayu.chen@corigine.com> | 2023-05-11 08:50:56 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2023-05-12 08:55:47 +0100 |
commit | de9c1a23add9e7842ce63ce6f498a05c66344311 (patch) | |
tree | 3447af78640b18bf30a10b2d4c2aa32dcb1353b9 /drivers/net/ethernet/netronome | |
parent | 01e8f6cd108b8702d206c6352d919c045b842b82 (diff) | |
download | lwn-de9c1a23add9e7842ce63ce6f498a05c66344311.tar.gz lwn-de9c1a23add9e7842ce63ce6f498a05c66344311.zip |
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: 9b7fe8046d74 ("nfp: add DCB IEEE support")
Cc: stable@vger.kernel.org
Signed-off-by: Huayu Chen <huayu.chen@corigine.com>
Acked-by: Simon Horman <simon.horman@corigine.com>
Signed-off-by: Louis Peens <louis.peens@corigine.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/netronome')
-rw-r--r-- | drivers/net/ethernet/netronome/nfp/nic/main.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/ethernet/netronome/nfp/nic/main.h b/drivers/net/ethernet/netronome/nfp/nic/main.h index 094374df42b8..38b8b10b03cd 100644 --- a/drivers/net/ethernet/netronome/nfp/nic/main.h +++ b/drivers/net/ethernet/netronome/nfp/nic/main.h @@ -8,7 +8,7 @@ #ifdef CONFIG_DCB /* DCB feature definitions */ -#define NFP_NET_MAX_DSCP 4 +#define NFP_NET_MAX_DSCP 64 #define NFP_NET_MAX_TC IEEE_8021QAZ_MAX_TCS #define NFP_NET_MAX_PRIO 8 #define NFP_DCB_CFG_STRIDE 256 |