]> git.itanic.dy.fi Git - linux-stable/commit
nfp: fix NFP_NET_MAX_DSCP definition error
authorHuayu Chen <huayu.chen@corigine.com>
Thu, 11 May 2023 06:50:56 +0000 (08:50 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 24 May 2023 16:30:23 +0000 (17:30 +0100)
commite1a767ae657fdd0502ae07f0fdca1a38a81d2290
treeb22ea9de87eef92d7d6c507a4e39e84723ba421b
parentbc4f671161b6c3535b4b9e6fb6e408b064fb4f0f
nfp: fix NFP_NET_MAX_DSCP definition error

commit de9c1a23add9e7842ce63ce6f498a05c66344311 upstream.

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/net/ethernet/netronome/nfp/nic/main.h