Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1608074
| Path | csiph.com!news.mixmin.net!news.unit0.net!news.panservice.it!bofh.it!news.nic.it!robomod |
|---|---|
| From | "R. Parameswaran" <parameswaran.r7@gmail.com> |
| Newsgroups | linux.kernel |
| Subject | Re: [PATCH net-next v4 1/2] New kernel function to get IP overhead on a socket. |
| Date | Fri, 24 Mar 2017 03:00:02 +0100 |
| Message-ID | <tomGe-2CL-27@gated-at.bofh.it> (permalink) |
| References | <tnXou-1mG-19@gated-at.bofh.it> <toj5D-ic-11@gated-at.bofh.it> |
| Dkim-Signature | v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:date:to:cc:subject:in-reply-to:message-id:references :user-agent:mime-version; bh=GmGqxbsuGlRoKOM8bkJxIv1KC5UAeFTWDQonzyKZz9E=; b=s8zXu8hwZcUXc4Ujev/uVTXjk7SMF01ENg4sNVYYCyrBySNjEDBjQC/revF0TpVldh fWcZLIghyWOixYv2DVE6qVmEMfR1v5aGFiSeu6UnEQDdInMjho8VZYeLeUvEZM3KgKeG PVZC39uxWt1awdfVQWqXun7Mq3Y7isVf12jeMirwfZ3DCJW7tBsuw7ZHM3qLW3/YwnsB 8cDG9/5GH6Etc3fXhQPWCBF90dR9xl/SWFYpeQJISvgWokun2/t6M0UHEhKvgXMmvcz1 eocF3tGB6UDCmyErCIdipz8agilRJ/uJgSW7Ywozs0SFJPrF7zdz5ggbDd6XrczhnHgI zicQ== |
| X-Google-Dkim-Signature | v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:date:to:cc:subject:in-reply-to:message-id :references:user-agent:mime-version; bh=GmGqxbsuGlRoKOM8bkJxIv1KC5UAeFTWDQonzyKZz9E=; b=SX9e/a3wCi6+nbVsmzZjSEoov+9FeKOOm6xApkUxrzWL/RCkwQONga84csLTMKpdFO UREMoJkAp9SOQFj2zgNQhNiv4TUglaSntKY/Ynysg7K/J+fH9cRkVgfUX2tn286ewekC WNMAnNOFv3oCoDfhXqD83m1de+LT27s785opprQ0EVKiUkkflueZrYruglwjNcTFZ/iz CNgch8gxS0yZ8RBg5cfoPHwPbXMyFhaFr8nwKAjc44Wv7Vhi+402dUWTXAf4s36yU86V +X6LDL7eFiXM8RWxQsj8vNHN6dDhxKcepfJ+Vf6mSrnU3E4GYdJ/q4rOF2opIeRxSv8X V9RQ== |
| X-Gm-Message-State | AFeK/H2PZFpKPN843DmZtV0Hshdlfd6wIXZo8JzWWZbLclGtIUnGz/DTbwb7gerasDKYmQ== |
| X-Received | by 10.98.139.78 with SMTP id j75mr6250278pfe.122.1490320321710; Thu, 23 Mar 2017 18:52:01 -0700 (PDT) |
| X-Google-Original-From | "R. Parameswaran" <verac@vera100.eng.brocade.com> |
| User-Agent | Alpine 2.11 (DEB 23 2013-08-11) |
| MIME-Version | 1.0 |
| Content-Type | TEXT/PLAIN; charset=US-ASCII |
| Sender | robomod@news.nic.it |
| List-ID | <linux-kernel.vger.kernel.org> |
| X-Mailing-List | linux-kernel@vger.kernel.org |
| Approved | robomod@news.nic.it |
| Lines | 52 |
| Organization | linux.* mail to news gateway |
| X-Original-Cc | kleptog@svana.org, jchapman@katalix.com, davem@redhat.com, nprachan@brocade.com, rshearma@brocade.com, stephen@networkplumber.org, sdietric@brocade.com, ciwillia@brocade.com, lboccass@brocade.com, dfawcus@brocade.com, bhong@brocade.com, jblunck@brocade.com, linux-kernel@vger.kernel.org, netdev@vger.kernel.org |
| X-Original-Date | Thu, 23 Mar 2017 18:51:44 -0700 (PDT) |
| X-Original-Message-ID | <alpine.DEB.2.11.1703231809410.19388@vera100.eng.brocade.com> |
| X-Original-References | <alpine.DEB.2.11.1703221554000.9002@vera100.eng.brocade.com> <20170323.150500.1211908608737471263.davem@davemloft.net> |
| X-Original-Sender | linux-kernel-owner@vger.kernel.org |
| Xref | csiph.com linux.kernel:1608074 |
Show key headers only | View raw
Hi Dave, Please see inline: On Thu, 23 Mar 2017, David Miller wrote: > From: "R. Parameswaran" <parameswaran.r7@gmail.com> > Date: Wed, 22 Mar 2017 15:59:13 -0700 (PDT) > > > A new function, kernel_sock_ip_overhead(), is provided > > to calculate the cumulative overhead imposed by the IP > > Header and IP options, if any, on a socket's payload. > > The new function returns an overhead of zero for sockets > > that do not belong to the IPv4 or IPv6 address families. > > > > Signed-off-by: R. Parameswaran <rparames@brocade.com> > > Just use the IPv4/IPv6 header size for now, just like the VXLAN > driver does. > Actually, that's how the original posting was - it was changed in response to a review comment from James Chapman requesting the IP Options overhead to be factored in and for this to be calculated in a new standalone function that can be reused in other situations. The review comment makes sense to me - the kernel seems to do a good job of accounting for the cumulative size of IP Options and if the information is available, it may make sense to factor it in. I guess you are concerned about compatibility between vxlan and L2TP? There may be one difference - the socket for vxlan appears to be opened/controlled entirely within kernel code (seems to call udp_sock_create() which does not appear to turn on any options), but in the case of L2TP, it is possible for the tunnel socket to be opened from user space, if a user space control plane daemon is running. Regardless of how user space daemons are written right now, it is possible in theory for the user space code to turn on options on the L2TP tunnel socket. So it seems that IP options might be enabled on the L2TP socket, but are probably unlikely on the vxlan socket? I'd suggest giving this a few days for James to respond. At that time if there is agreement that we don't need to factor options, I can rework it. thanks, Ramkumar > Thanks. >
Back to linux.kernel | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
[PATCH net-next v4 1/2] New kernel function to get IP overhead on a socket. "R. Parameswaran" <parameswaran.r7@gmail.com> - 2017-03-23 00:00 +0100
Re: [PATCH net-next v4 1/2] New kernel function to get IP overhead on a socket. Tom Herbert <tom@herbertland.com> - 2017-03-23 00:10 +0100
Re: [PATCH net-next v4 1/2] New kernel function to get IP overhead on a socket. David Miller <davem@davemloft.net> - 2017-03-23 23:10 +0100
Re: [PATCH net-next v4 1/2] New kernel function to get IP overhead on a socket. "R. Parameswaran" <parameswaran.r7@gmail.com> - 2017-03-24 03:00 +0100
Re: [PATCH net-next v4 1/2] New kernel function to get IP overhead on a socket. James Chapman <jchapman@katalix.com> - 2017-03-24 14:20 +0100
Re: [PATCH net-next v4 1/2] New kernel function to get IP overhead on a socket. kbuild test robot <lkp@intel.com> - 2017-03-24 02:10 +0100
csiph-web