All of lore.kernel.org
 help / color / mirror / Atom feed
From: Edward Cree <ecree.xilinx@gmail.com>
To: John Ousterhout <ouster@cs.stanford.edu>, netdev@vger.kernel.org
Subject: Re: [PATCH net-next v3 02/12] net: homa: define Homa packet formats
Date: Thu, 12 Dec 2024 12:29:29 +0000	[thread overview]
Message-ID: <5d9d563c-a321-cc75-a986-49ddc1935681@gmail.com> (raw)
In-Reply-To: <20241209175131.3839-4-ouster@cs.stanford.edu>

On 09/12/2024 17:51, John Ousterhout wrote:
> Signed-off-by: John Ousterhout <ouster@cs.stanford.edu>
...> +/**
> + * define ETHERNET_MAX_PAYLOAD - Maximum length of an Ethernet packet,
> + * excluding preamble, frame delimeter, VLAN header, CRC, and interpacket gap;
> + * i.e. all of this space is available for Homa.
> + */
> +#define ETHERNET_MAX_PAYLOAD 1500

This would seem to bake in an assumption about Ethernet MTU, which is
 bad as this can vary on different Ethernet networks (e.g. jumbo frames
 on the one hand, or VxLAN on the other which reduces MTU to 1460 iirc).
In any case this define doesn't seem to be used anywhere in this patch
 series (nor in the version on Github), so I'd say just dike it out.

> +
> +/**
> + * struct common_header - Wire format for the first bytes in every Homa
> + * packet. This must (mostly) match the format of a TCP header to enable
> + * Homa packets to actually be transmitted as TCP packets (and thereby
> + * take advantage of TSO and other features).
> + */
> +struct common_header {

Arguably names like this should be namespaced (i.e. call it "struct
 homa_common_header"), as otherwise some other kernel .h file declaring
 a different "struct common_header" type for unrelated uses would cause
 compilation errors if both are included in the same unit.
Some of your typenames are namespaced and some aren't, and it's not clear
 how that division has been made.

> +	__u8 dummy1;

This is the flags byte in TCP, right?  Seems like you'd need to specify
 something about what goes here (or at least make it reserved) so as not
 to confuse TSO implementations.  I see HomaModule defines it as filled
 in with SYN|RST, at least the commit message here should say something
 about why you've not done the same in the kernel.

> +	__be16 dummy2;

Again, specify something here, even if it's only "reserved, must be 0"
 to allow for future extension.

> + *    No hijacking:

Assuming you don't intend to try to upstream TCP hijacking, this line
 probably doesn't want to be here as without context it'll just confuse
 the reader.

  reply	other threads:[~2024-12-12 12:29 UTC|newest]

Thread overview: 29+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-12-09 17:51 [PATCH net-next v3 00/12] Begin upstreaming Homa transport protocol John Ousterhout
2024-12-09 17:51 ` [PATCH net-next v3 01/12] inet: homa: define user-visible API for Homa John Ousterhout
2024-12-09 17:51 ` [PATCH net-next 01/12] net: " John Ousterhout
2024-12-09 17:54   ` John Ousterhout
2024-12-09 17:51 ` [PATCH net-next v3 02/12] net: homa: define Homa packet formats John Ousterhout
2024-12-12 12:29   ` Edward Cree [this message]
2024-12-13 18:32     ` John Ousterhout
2024-12-09 17:51 ` [PATCH net-next v3 03/12] net: homa: create shared Homa header files John Ousterhout
2024-12-17  6:36   ` Edward Cree
2024-12-18  5:46     ` John Ousterhout
2024-12-18 12:25       ` Edward Cree
2024-12-19 17:50         ` John Ousterhout
2024-12-09 17:51 ` [PATCH net-next v3 04/12] net: homa: create homa_pool.h and homa_pool.c John Ousterhout
2024-12-09 17:51 ` [PATCH net-next v3 05/12] net: homa: create homa_rpc.h and homa_rpc.c John Ousterhout
2024-12-09 17:51 ` [PATCH net-next v3 06/12] net: homa: create homa_peer.h and homa_peer.c John Ousterhout
2024-12-09 17:51 ` [PATCH net-next v3 07/12] net: homa: create homa_sock.h and homa_sock.c John Ousterhout
2024-12-09 17:51 ` [PATCH net-next v3 08/12] net: homa: create homa_incoming.c John Ousterhout
2024-12-09 17:51 ` [PATCH net-next v3 09/12] net: homa: create homa_outgoing.c John Ousterhout
2024-12-09 17:51 ` [PATCH net-next v3 10/12] net: homa: create homa_timer.c John Ousterhout
2024-12-09 17:51 ` [PATCH net-next v3 11/12] net: homa: create homa_plumbing.c homa_utils.c John Ousterhout
2024-12-10  6:08   ` D. Wythe
2024-12-11  1:59     ` John Ousterhout
2024-12-11  5:06       ` D. Wythe
2024-12-11 22:59         ` John Ousterhout
2024-12-11  6:39   ` D. Wythe
2024-12-11 23:01     ` John Ousterhout
2024-12-09 17:51 ` [PATCH net-next v3 12/12] net: homa: create Makefile and Kconfig John Ousterhout
2024-12-11  0:32   ` kernel test robot
2024-12-11 17:29     ` John Ousterhout

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=5d9d563c-a321-cc75-a986-49ddc1935681@gmail.com \
    --to=ecree.xilinx@gmail.com \
    --cc=netdev@vger.kernel.org \
    --cc=ouster@cs.stanford.edu \
    /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.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.