[PATCH v11 12/18] net/idpf: add support for basic Tx datapath

Andrew Rybchenko andrew.rybchenko at oktetlabs.ru
Tue Oct 25 12:12:04 CEST 2022


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.xing at intel.com>
> Signed-off-by: Xiaoyun Li <xiaoyun.li at intel.com>
> Signed-off-by: Junfeng Guo <junfeng.guo at 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]




More information about the dev mailing list