net/ionic: log queue counters when tearing down
[dpdk.git] / drivers / net / sfc / sfc_tso.c
index d6f1119..b090ef1 100644 (file)
@@ -140,6 +140,13 @@ sfc_efx_tso_do(struct sfc_efx_txq *txq, unsigned int idx,
                tsoh = rte_pktmbuf_mtod(m, uint8_t *);
        }
 
+       /*
+        * 8000-series EF10 hardware requires that innermost IP length
+        * be greater than or equal to the value which each segment is
+        * supposed to have; otherwise, TCP checksum will be incorrect.
+        */
+       sfc_tso_innermost_ip_fix_len(m, tsoh, nh_off);
+
        /*
         * Handle IP header. Tx prepare has debug-only checks that offload flags
         * are correctly filled in in TSO mbuf. Use zero IPID if there is no