octeontx2-af: Fix LMAC config in cgx_lmac_rx_tx_enable
stable inclusion from stable-v5.10.164 commit 14e72a56e16c1924f07c0719fcf04b64a55a9af7 category: bugfix bugzilla: https://gitee.com/openeuler/kernel/issues/I7T7G4 Reference: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=14e72a56e16c1924f07c0719fcf04b64a55a9af7 -------------------------------- [ Upstream commit b4e9b876 ] PF netdev can request AF to enable or disable reception and transmission on assigned CGX::LMAC. The current code instead of disabling or enabling 'reception and transmission' also disables/enable the LMAC. This patch fixes this issue. Fixes: 1435f66a ("octeontx2-af: CGX Rx/Tx enable/disable mbox handlers") Signed-off-by: NAngela Czubak <aczubak@marvell.com> Signed-off-by: NHariprasad Kelam <hkelam@marvell.com> Reviewed-by: NLeon Romanovsky <leonro@nvidia.com> Link: https://lore.kernel.org/r/20230105160107.17638-1-hkelam@marvell.comSigned-off-by: NJakub Kicinski <kuba@kernel.org> Signed-off-by: NSasha Levin <sashal@kernel.org> Signed-off-by: Nsanglipeng <sanglipeng1@jd.com>
Showing
想要评论请 注册 或 登录