[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20170323.150500.1211908608737471263.davem@davemloft.net>
Date: Thu, 23 Mar 2017 15:05:00 -0700 (PDT)
From: David Miller <davem@...emloft.net>
To: parameswaran.r7@...il.com
Cc: netdev@...r.kernel.org, kleptog@...na.org, jchapman@...alix.com,
nprachan@...cade.com, rshearma@...cade.com,
stephen@...workplumber.org, sdietric@...cade.com,
ciwillia@...cade.com, lboccass@...cade.com, dfawcus@...cade.com,
bhong@...cade.com, jblunck@...cade.com,
linux-kernel@...r.kernel.org
Subject: Re: [PATCH net-next v4 1/2] New kernel function to get IP overhead
on a socket.
From: "R. Parameswaran" <parameswaran.r7@...il.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@...cade.com>
Just use the IPv4/IPv6 header size for now, just like the VXLAN
driver does.
Thanks.
Powered by blists - more mailing lists