On 10/24/22 16:12, Junfeng Guo wrote:
Add basic Tx support in split queue mode and single queue mode.

Signed-off-by: Beilei Xing <beilei.x...@intel.com>
Signed-off-by: Xiaoyun Li <xiaoyun...@intel.com>
Signed-off-by: Junfeng Guo <junfeng....@intel.com>

[snip]

+/* TX prep functions */
+uint16_t
+idpf_prep_pkts(__rte_unused void *tx_queue, struct rte_mbuf **tx_pkts,
+              uint16_t nb_pkts)
+{
+       int i, ret;
+       struct rte_mbuf *m;
+
+       for (i = 0; i < nb_pkts; i++) {
+               m = tx_pkts[i];
+
+               if (m->pkt_len < IDPF_MIN_FRAME_SIZE) {
+                       rte_errno = EINVAL;
+                       return i;
+               }
+
+               ret = rte_net_intel_cksum_prepare(m);

I'm wondering what it does here if you don't support Tx
checksum offloads yet.

+               if (ret != 0) {
+                       rte_errno = -ret;
+                       return i;
+               }
+       }
+
+       return i;
+}
+

[snip]


Reply via email to