]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
octeontx2-af: Flow control resource management
authorHariprasad Kelam <hkelam@marvell.com>
Wed, 9 Feb 2022 07:15:18 +0000 (12:45 +0530)
committerDavid S. Miller <davem@davemloft.net>
Wed, 9 Feb 2022 13:02:33 +0000 (13:02 +0000)
commite740003874edc13e468d19233f99787bedb4bb8e
treec7ef303e361d466a11d4714b9ef29a8413de2b13
parent1121f6b02e7a1fdb4330c0fe53b69cfa80e7bceb
octeontx2-af: Flow control resource management

CN10K MAC block (RPM) and Octeontx2 MAC block (CGX) both supports
PFC flow control and 802.3X flow control pause frames.

Each MAC block supports max 4 LMACS and AF driver assigns same
(MAC,LMAC) to PF and its VFs. As PF and its share same (MAC,LMAC)
pair we need resource management to address below scenarios

1. Maintain PFC and 8023X pause frames mutually exclusive.
2. Reject disable flow control request if other PF or Vfs
   enabled it.

Signed-off-by: Hariprasad Kelam <hkelam@marvell.com>
Signed-off-by: Sunil Kovvuri Goutham <sgoutham@marvell.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/marvell/octeontx2/af/cgx.c
drivers/net/ethernet/marvell/octeontx2/af/cgx.h
drivers/net/ethernet/marvell/octeontx2/af/lmac_common.h
drivers/net/ethernet/marvell/octeontx2/af/mbox.h
drivers/net/ethernet/marvell/octeontx2/af/rpm.c
drivers/net/ethernet/marvell/octeontx2/af/rpm.h
drivers/net/ethernet/marvell/octeontx2/af/rvu.h
drivers/net/ethernet/marvell/octeontx2/af/rvu_cgx.c
drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c