[PATCH v3] net/gve : Update EOP & csum bit in txd rte_mbuf chain
Tathagat Priyadarshi
tathagat.dpdk at gmail.com
Thu Aug 1 20:58:28 CEST 2024
Thanks for your suggestion Stephen, I have already updated the patch with
v4 & fixed the typo. Will consider your suggestion in the next version of
the patch.
On Fri, 2 Aug 2024 at 00:24, Stephen Hemminger <stephen at networkplumber.org>
wrote:
> On Thu, 1 Aug 2024 17:27:53 +0000
> Tathagat Priyadarshi <tathagat.dpdk at gmail.com> wrote:
>
> > + if (ol_flags & GVE_TX_CKSUM_OFFLOAD_MASK_DQO)
> > + csum = 1;
> > + else
> > + cusm = 0;
> > +
>
> Obvious typo, did you do a final test build?
>
> Could also use logical inverse operator instead of if() which will
> generate better code sometimes.
>
> csum = !!(ol_flags & GVE_TX_CKSUM_OFFLOAD_MASK_DQO);
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mails.dpdk.org/archives/stable/attachments/20240802/b43b96e7/attachment.htm>
More information about the stable
mailing list