[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <Zn81FBrUNUMC6VvM@hog>
Date: Sat, 29 Jun 2024 00:11:32 +0200
From: Sabrina Dubroca <sd@...asysnail.net>
To: Antonio Quartulli <antonio@...nvpn.net>
Cc: netdev@...r.kernel.org, kuba@...nel.org, ryazanov.s.a@...il.com,
pabeni@...hat.com, edumazet@...gle.com, andrew@...n.ch
Subject: Re: [PATCH net-next v5 05/25] ovpn: add basic interface
creation/destruction/management routines
2024-06-27, 15:08:23 +0200, Antonio Quartulli wrote:
> +static void ovpn_setup(struct net_device *dev)
> +{
> + /* compute the overhead considering AEAD encryption */
> + const int overhead = sizeof(u32) + NONCE_WIRE_SIZE + 16 +
Is that 16 equal to OVPN_MAX_PADDING? Or some other constant that
would help figure out the details of that overhead?
> + sizeof(struct udphdr) +
> + max(sizeof(struct ipv6hdr), sizeof(struct iphdr));
> +
> + netdev_features_t feat = NETIF_F_SG | NETIF_F_LLTX |
[...]
> + dev->features |= feat;
> + dev->hw_features |= feat;
I'm not sure we want NETIF_F_LLTX to be part of hw_features, I think
it's more of a property of the device than something we want to let
users toggle. AFAICT no other virtual driver does that.
--
Sabrina
Powered by blists - more mailing lists