common/cnxk: fix channel to BPID mapping

As per recent change in Linux-5.4.x AF driver, mailbox is updated to
configure mapping between channel and BPID.
Due to mbox mismatch, PFC was broken. Patch syncs mailbox definition
for the same. Also fixes the PFC configuration issues.

Fixes: ff1400aa9d ("net/cnxk: add receive channel backpressure for SDP")
Cc: stable@dpdk.org

Signed-off-by: Sunil Kumar Kori <skori@marvell.com>
This commit is contained in:
Sunil Kumar Kori 2022-10-14 11:13:14 +05:30 committed by Jerin Jacob
parent 3d7a584430
commit 28b3ca7b9c
2 changed files with 4 additions and 4 deletions

View File

@ -1164,10 +1164,10 @@ struct nix_bp_cfg_req {
/* bpid_per_chan = 1 assigns separate bp id for each channel */
};
/* PF can be mapped to either CGX or LBK interface,
* so maximum 64 channels are possible.
/* PF can be mapped to either CGX or LBK or SDP interface,
* so maximum 256 channels are possible.
*/
#define NIX_MAX_CHAN 64
#define NIX_MAX_CHAN 256
#define NIX_CGX_MAX_CHAN 16
#define NIX_LBK_MAX_CHAN 1
struct nix_bp_cfg_rsp {

View File

@ -436,7 +436,7 @@ struct roc_nix {
bool rx_ptp_ena;
uint16_t cints;
#define ROC_NIX_MEM_SZ (6 * 1024)
#define ROC_NIX_MEM_SZ (6 * 1056)
uint8_t reserved[ROC_NIX_MEM_SZ] __plt_cache_aligned;
} __plt_cache_aligned;