[Intel-wired-lan] [PATCH v5 6/7] net: Add geneve port offload support and refactor udp_offload

Jesse Gross jesse at kernel.org
Mon Nov 16 04:12:19 UTC 2015


On Sun, Nov 15, 2015 at 4:02 PM, Anjali Singhai Jain
<anjali.singhai at intel.com> wrote:
> This patch moves the calls to ndo_add/del ops for vxlan tunnel
> into udp_add/del_offload call. This way the ndo_add/del ops get called
> for not only vxlan tunnels but for any udp based tunnel.
>
> Note: The patch needs an AF_INET check somewhere in the GRO ops to
> make it complete.
>
> Signed-off-by: Kiran Patil <kiran.patil at intel.com>
> Signed-off-by: Anjali Singhai Jain <anjali.singhai at intel.com>

This looks great! Thanks a lot of doing this. I have just a couple
comments in this and the other patches but I think they are all really
minor.

I think we need to initialize the offload structure with IPv4/v6 for
both Geneve and FOU and the tunnel type for at least Geneve. I might
have missed it but it looks like we are doing this only for VXLAN (in
a previous patch). I think once we do that, it should be pretty easy
to have the check for AF_INET when we add or remove the port to the
GRO list.

One last thing that I noticed is that the UDP tunnel GRO registration
is not namespace aware but the callers in the various tunnel
implementations are per-namespace, potentially resulting in duplicate
entries in the list. This is not a new problem but it appears a bit
more pronounced because the interfaces to the UDP offload functions
now take the namespace as a parameter.


More information about the Intel-wired-lan mailing list