From: Nipun Gupta Date: Mon, 3 Jan 2022 10:01:26 +0000 (+0530) Subject: net/dpaa: enable checksum for shared MAC interface X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=72e9e0c9634a083db872c68b75f5f33be4a382fe;p=dpdk.git net/dpaa: enable checksum for shared MAC interface In case of shared MAC B0V bit in contextA is required to be set to set so that ASPID is 0. Signed-off-by: Brick Yang Signed-off-by: Nipun Gupta Acked-by: Hemant Agrawal --- diff --git a/drivers/net/dpaa/dpaa_ethdev.c b/drivers/net/dpaa/dpaa_ethdev.c index 966291ff07..b0c78ac0a1 100644 --- a/drivers/net/dpaa/dpaa_ethdev.c +++ b/drivers/net/dpaa/dpaa_ethdev.c @@ -1755,6 +1755,10 @@ static int dpaa_tx_queue_init(struct qman_fq *fq, /* no tx-confirmation */ opts.fqd.context_a.hi = 0x80000000 | fman_dealloc_bufs_mask_hi; opts.fqd.context_a.lo = 0 | fman_dealloc_bufs_mask_lo; + if (fman_ip_rev >= FMAN_V3) { + /* Set B0V bit in contextA to set ASPID to 0 */ + opts.fqd.context_a.hi |= 0x04000000; + } DPAA_PMD_DEBUG("init tx fq %p, fqid 0x%x", fq, fq->fqid); if (cgr_tx) {