[dpdk-dev] [PATCH 26/28] bnxt: use only long BDs in Tx path

Ajit Khaparde ajit.khaparde at broadcom.com
Tue Mar 28 05:49:01 CEST 2017


Devices before Cu+B1 cannot mix long and short buffer descriptors.
Use the long BD in all cases.

Signed-off-by: Ajit Khaparde <ajit.khaparde at broadcom.com>
---
 drivers/net/bnxt/bnxt_txr.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/drivers/net/bnxt/bnxt_txr.c b/drivers/net/bnxt/bnxt_txr.c
index 6870b16..6222f62 100644
--- a/drivers/net/bnxt/bnxt_txr.c
+++ b/drivers/net/bnxt/bnxt_txr.c
@@ -159,6 +159,10 @@ static uint16_t bnxt_start_xmit(struct rte_mbuf *tx_pkt,
 		TX_BD_LONG_FLAGS_LHINT_LT2K
 	};
 
+	/* Devices before Cu+B1 need to avoid mixing long and short BDs
+	 * Revisit this fix once Cu+B1 is available.
+	 */
+	long_bd = true;
 	if (tx_pkt->ol_flags & (PKT_TX_TCP_SEG | PKT_TX_TCP_CKSUM |
 				PKT_TX_UDP_CKSUM | PKT_TX_IP_CKSUM |
 				PKT_TX_VLAN_PKT))
-- 
2.10.1 (Apple Git-78)



More information about the dev mailing list