net/bnxt: support updating IPID
authorAjit Khaparde <ajit.khaparde@broadcom.com>
Wed, 15 May 2019 18:08:13 +0000 (11:08 -0700)
committerFerruh Yigit <ferruh.yigit@intel.com>
Mon, 27 May 2019 16:09:07 +0000 (18:09 +0200)
Add support to update ipid during TSO.

Signed-off-by: Ajit Khaparde <ajit.khaparde@broadcom.com>
Reviewed-by: Somnath Kotur <somnath.kotur@broadcom.com>
Signed-off-by: Sriharsha Basavapatna <sriharsha.basavapatna@broadcom.com>
drivers/net/bnxt/bnxt_txr.c

index 6f55f3c..3a0d73a 100644 (file)
@@ -193,7 +193,8 @@ static uint16_t bnxt_start_xmit(struct rte_mbuf *tx_pkt,
                        uint16_t hdr_size;
 
                        /* TSO */
-                       txbd1->lflags |= TX_BD_LONG_LFLAGS_LSO;
+                       txbd1->lflags |= TX_BD_LONG_LFLAGS_LSO |
+                                        TX_BD_LONG_LFLAGS_T_IPID;
                        hdr_size = tx_pkt->l2_len + tx_pkt->l3_len +
                                        tx_pkt->l4_len + tx_pkt->outer_l2_len +
                                        tx_pkt->outer_l3_len;