]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
octeontx2-af: Fix LMAC config in cgx_lmac_rx_tx_enable
authorAngela Czubak <aczubak@marvell.com>
Thu, 5 Jan 2023 16:01:07 +0000 (21:31 +0530)
committerJakub Kicinski <kuba@kernel.org>
Sat, 7 Jan 2023 03:34:14 +0000 (19:34 -0800)
commitb4e9b8763e417db31c7088103cc557d55cb7a8f5
tree32e847444c65534f137597aefea0b56f0fab78df
parentc244c092f1ed2acfb5af3d3da81e22367d3dd733
octeontx2-af: Fix LMAC config in cgx_lmac_rx_tx_enable

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: 1435f66a28b4 ("octeontx2-af: CGX Rx/Tx enable/disable mbox handlers")
Signed-off-by: Angela Czubak <aczubak@marvell.com>
Signed-off-by: Hariprasad Kelam <hkelam@marvell.com>
Reviewed-by: Leon Romanovsky <leonro@nvidia.com>
Link: https://lore.kernel.org/r/20230105160107.17638-1-hkelam@marvell.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/marvell/octeontx2/af/cgx.c
drivers/net/ethernet/marvell/octeontx2/af/cgx.h