[ovs-dev] [PATCH v2 20/24] datapath: backport: udp: prevent skbs lingering in tunnel socket queues

Jesse Gross jesse at kernel.org
Fri Jul 1 00:20:11 UTC 2016


On Thu, Jun 30, 2016 at 1:06 AM, Pravin B Shelar <pshelar at ovn.org> wrote:
> Upstream commit:
>     commit e5aed006be918af163eb397e45aa5ea6cefd5e01
>     Author: Hannes Frederic Sowa <hannes at stressinduktion.org>
>
>     udp: prevent skbs lingering in tunnel socket queues
>
>     In case we find a socket with encapsulation enabled we should call
>     the encap_recv function even if just a udp header without payload is
>     available. The callbacks are responsible for correctly verifying and
>     dropping the packets.
>
>     Also, in case the header validation fails for geneve and vxlan we
>     shouldn't put the skb back into the socket queue, no one will pick
>     them up there.  Instead we can simply discard them in the respective
>     encap_recv functions.
>
>     Signed-off-by: Hannes Frederic Sowa <hannes at stressinduktion.org>
>     Signed-off-by: David S. Miller <davem at davemloft.net>
>
> Signed-off-by: Pravin B Shelar <pshelar at ovn.org>

Acked-by: Jesse Gross <jesse at kernel.org>


More information about the dev mailing list