net/dpaa: fix LS1043 alignment check
authorNipun Gupta <nipun.gupta@nxp.com>
Tue, 5 Nov 2019 14:23:14 +0000 (19:53 +0530)
committerThomas Monjalon <thomas@monjalon.net>
Wed, 6 Nov 2019 00:13:15 +0000 (01:13 +0100)
On LS1043, we are good to check 128 byte alignment of offset to
transmit out the packet

Fixes: f8c7a17a48c9 ("net/dpaa: support Tx scatter gather for non-DPAA buffer")
Cc: stable@dpdk.org
Signed-off-by: Nipun Gupta <nipun.gupta@nxp.com>
Acked-by: Hemant Agrawal <hemant.agrawal@nxp.com>
drivers/net/dpaa/dpaa_rxtx.c

index bbe6150..5dba1db 100644 (file)
@@ -927,7 +927,7 @@ dpaa_eth_queue_tx(void *q, struct rte_mbuf **bufs, uint16_t nb_bufs)
                         * the buffer in such case.
                         */
                        if (dpaa_svr_family == SVR_LS1043A_FAMILY &&
-                                       (mbuf->data_off & 0xFF) != 0x0)
+                                       (mbuf->data_off & 0x7F) != 0x0)
                                realloc_mbuf = 1;
                        seqn = mbuf->seqn;
                        if (seqn != DPAA_INVALID_MBUF_SEQN) {