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:
parent
3d7a584430
commit
28b3ca7b9c
@ -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 {
|
||||
|
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user