octeontx2-pf: Avoid adding dcbnl_ops for LBK and SDP vf
PATCH 1/1 octeontx2-pf: Avoid adding dcbnl_ops for LBK and SDP vf
Priority flow control is not supported for LBK and SDP vf. This patch adds support to not add dcbnl_ops for LBK and SDP vf.
Fixes 8e67558177f8 ("octeontx2-pf: PFC config support with DCBx")
Signed-off-by Suman Ghosh <[email protected]>
--- drivers/net/ethernet/marvell/octeontx2/nic/otx2_vf.c | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-)
drivers/net/ethernet/marvell/octeontx2/nic/otx2_vf.c +6 -3
@@ -729,9 +729,12 @@ static int otx2vf_probe(struct pci_dev *pdev, const struct pci_device_id *id) }#ifdef CONFIG_DCB - err =otx2_dcbnl_set_ops (netdev); -if (err) - goto err_free_zc_bmap; +/* Priority flow control is not supported for LBK and SDP vf(s) */ +if (!(is_otx2_lbkvf (vf->pdev) ||is_otx2_sdp_rep (vf->pdev))) { + err =otx2_dcbnl_set_ops (netdev); +if (err) + goto err_free_zc_bmap; + }#endif otx2_qos_init (vf, qos_txqs);
Signature · 1 line
2.25.1
Quoted 5 lines · Suman Ghosh
Priority flow control is not supported for LBK and SDP vf. This patch adds support to not add
dcbnl_opsfor LBK and SDP vf.Fixes 8e67558177f8 ("octeontx2-pf: PFC config support with DCBx")Signed-off-by Suman Ghosh <[email protected]>
Reviewed-by Simon Horman <[email protected]>
This patch was applied to netdev/net.git (main) by Paolo Abeni <[email protected]>:
Hello:
This patch was applied to netdev/net.git (main)
by Paolo Abeni <[email protected]>:
Quoted 8 lines · On Mon, 19 May 2025 12:56:58 +0530 you wrote:
Priority flow control is not supported for LBK and SDP vf. This patch adds support to not add
dcbnl_opsfor LBK and SDP vf.Fixes 8e67558177f8 ("octeontx2-pf: PFC config support with DCBx")Signed-off-by Suman Ghosh <[email protected]>--- drivers/net/ethernet/marvell/octeontx2/nic/otx2_vf.c | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-)
Here is the summary with links:
- [net] octeontx2-pf: Avoid adding dcbnl_ops for LBK and SDP vf
https://git.kernel.org/netdev/net/c/184fb40f731b
You are awesome, thank you!
Signature · 2 lines
Deet-doot-dot, I am a bot. https://korg.docs.kernel.org/patchwork/pwbot.html