[PATCH v5 24/32] net/sssnic: support Tx packet burst
Ferruh Yigit
ferruh.yigit at amd.com
Tue Sep 26 15:10:41 CEST 2023
On 9/4/2023 5:56 AM, wanry at 3snic.com wrote:
> From: Renyong Wan <wanry at 3snic.com>
>
> Signed-off-by: Steven Song <steven.song at 3snic.com>
> Signed-off-by: Renyong Wan <wanry at 3snic.com>
>
<...>
> +static inline int
> +sssnic_ethdev_tx_offload_check(struct rte_mbuf *tx_mbuf,
> + struct sssnic_ethdev_tx_info *tx_info)
> +{
> + uint64_t ol_flags = tx_mbuf->ol_flags;
> +
> + if ((ol_flags & SSSNIC_ETHDEV_TX_OFFLOAD_MASK) == 0) {
> + tx_info->offload_en = 0;
> + return 0;
> + }
> +
> +#ifdef RTE_LIBRTE_ETHDEV_DEBUG
> + if (rte_validate_tx_offload(tx_mbuf) != 0) {
> + SSSNIC_TX_LOG(ERR, "Bad tx mbuf offload flags: %" PRIx64, ol_flags);
> + return -EINVAL;
> + }
> +#endif
>
'RTE_LIBRTE_ETHDEV_DEBUG' kept as backward compatibilty alias, better to
prefer fine grained RTE_ETHDEV_DEBUG_TX.
More information about the dev
mailing list