RE: [PATCH 5/6] net: add smaller IPv4 cksum function for simple cases

2024-10-17 Thread Morten Brørup
> From: Stephen Hemminger [mailto:step...@networkplumber.org] > Sent: Thursday, 17 October 2024 21.35 > > On Thu, 17 Oct 2024 20:03:13 +0100 > Bruce Richardson wrote: > > > On Thu, Oct 17, 2024 at 07:15:10PM +0200, Morten Brørup wrote: > > > > +/** > > > > + * Process the IPv4 checksum of an IPv

Re: [PATCH 5/6] net: add smaller IPv4 cksum function for simple cases

2024-10-17 Thread Stephen Hemminger
On Thu, 17 Oct 2024 20:03:13 +0100 Bruce Richardson wrote: > On Thu, Oct 17, 2024 at 07:15:10PM +0200, Morten Brørup wrote: > > > +/** > > > + * Process the IPv4 checksum of an IPv4 header without any extensions. > > > + * > > > + * The checksum field does NOT have to be set by the caller, the fi

Re: [PATCH 5/6] net: add smaller IPv4 cksum function for simple cases

2024-10-17 Thread Bruce Richardson
On Thu, Oct 17, 2024 at 07:15:10PM +0200, Morten Brørup wrote: > > +/** > > + * Process the IPv4 checksum of an IPv4 header without any extensions. > > + * > > + * The checksum field does NOT have to be set by the caller, the field > > + * is skipped by the calculation. > > + * > > + * @param ipv4_

RE: [PATCH 5/6] net: add smaller IPv4 cksum function for simple cases

2024-10-17 Thread Morten Brørup
> +/** > + * Process the IPv4 checksum of an IPv4 header without any extensions. > + * > + * The checksum field does NOT have to be set by the caller, the field > + * is skipped by the calculation. > + * > + * @param ipv4_hdr > + * The pointer to the contiguous IPv4 header. > + * @return > + *

Re: [PATCH 5/6] net: add smaller IPv4 cksum function for simple cases

2024-10-17 Thread Bruce Richardson
On Thu, Oct 17, 2024 at 09:24:37AM -0700, Stephen Hemminger wrote: > On Thu, 17 Oct 2024 15:22:12 +0100 > Bruce Richardson wrote: > > > There are multiple instances in the DPDK app folder where we set up an > > IP header and then compute the checksum field by direct addition of > > nine uint16_t