public inbox for passt-dev@passt.top
 help / color / mirror / code / Atom feed
From: Stefano Brivio <sbrivio@redhat.com>
To: David Gibson <david@gibson.dropbear.id.au>,
	Laurent Vivier <lvivier@redhat.com>
Cc: passt-dev@passt.top
Subject: Re: [PATCH v2 1/2] udp: Allow checksum to be disabled
Date: Wed, 18 Sep 2024 08:04:41 +0200	[thread overview]
Message-ID: <20240918080441.23cc40f9@elisabeth> (raw)
In-Reply-To: <ZuoTseub0LX6MudK@zatzit.fritz.box>

On Wed, 18 Sep 2024 09:41:37 +1000
David Gibson <david@gibson.dropbear.id.au> wrote:

> On Wed, Sep 18, 2024 at 01:07:00AM +0200, Stefano Brivio wrote:
> > Nits only:
> > 
> > On Tue, 17 Sep 2024 09:30:57 +0200
> > Laurent Vivier <lvivier@redhat.com> wrote:
> >   
> > > We can need not to set the UDP checksum. Add a parameter to
> > > udp_update_hdr4() and udp_update_hdr6() to disable it.
> > > 
> > > Signed-off-by: Laurent Vivier <lvivier@redhat.com>
> > > ---
> > > 
> > > Notes:
> > >     v2: s/UPD/UDP/
> > > 
> > >  udp.c | 41 +++++++++++++++++++++++++++++++----------
> > >  1 file changed, 31 insertions(+), 10 deletions(-)
> > > 
> > > diff --git a/udp.c b/udp.c
> > > index 2ba00c9c20a8..95151efb9c46 100644
> > > --- a/udp.c
> > > +++ b/udp.c
> > > @@ -298,11 +298,13 @@ static void udp_splice_send(const struct ctx *c, size_t start, size_t n,
> > >   * @bp:		Pointer to udp_payload_t to update
> > >   * @toside:	Flowside for destination side
> > >   * @dlen:	Length of UDP payload
> > > + * @no_udp_csum: Do not set UDP checksum  
> > 
> > The description of all the other arguments are aligned, with tabs. You
> > could just add one tab to all the others and have them aligned.
> > 
> > Actually, this could simply be 'no_csum', it's obviously UDP. Same for
> > no_tcp_csum in 2/2.  
> 
> I had been going to suggest the same thing, but then I realised the
> current name does disambiguate it from the IPv4 header checksum.

Ah, right, never mind then.

-- 
Stefano


  reply	other threads:[~2024-09-18  6:04 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-09-17  7:30 [PATCH v2 0/2] Allow UDP and TCP checksum to be disabled Laurent Vivier
2024-09-17  7:30 ` [PATCH v2 1/2] udp: Allow " Laurent Vivier
2024-09-17 10:09   ` David Gibson
2024-09-17 23:07   ` Stefano Brivio
2024-09-17 23:41     ` David Gibson
2024-09-18  6:04       ` Stefano Brivio [this message]
2024-09-17  7:30 ` [PATCH v2 2/2] tcp: " Laurent Vivier

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20240918080441.23cc40f9@elisabeth \
    --to=sbrivio@redhat.com \
    --cc=david@gibson.dropbear.id.au \
    --cc=lvivier@redhat.com \
    --cc=passt-dev@passt.top \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://passt.top/passt

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for IMAP folder(s).