]> git.baikalelectronics.ru Git - kernel.git/commit
net: Add GRO support for UDP encapsulating protocols
authorOr Gerlitz <ogerlitz@mellanox.com>
Mon, 20 Jan 2014 11:59:19 +0000 (13:59 +0200)
committerDavid S. Miller <davem@davemloft.net>
Wed, 22 Jan 2014 02:05:04 +0000 (18:05 -0800)
commit80c201072b21c5c1be6f8a8219b5997d55faacab
tree2893cba0f3c386795a7324c71851d165a68d891e
parent49adc085d46893d8f4180ee547ef89999df29a4f
net: Add GRO support for UDP encapsulating protocols

Add GRO handlers for protocols that do UDP encapsulation, with the intent of
being able to coalesce packets which encapsulate packets belonging to
the same TCP session.

For GRO purposes, the destination UDP port takes the role of the ether type
field in the ethernet header or the next protocol in the IP header.

The UDP GRO handler will only attempt to coalesce packets whose destination
port is registered to have gro handler.

Use a mark on the skb GRO CB data to disallow (flush) running the udp gro receive
code twice on a packet. This solves the problem of udp encapsulated packets whose
inner VM packet is udp and happen to carry a port which has registered offloads.

Signed-off-by: Shlomo Pongratz <shlomop@mellanox.com>
Signed-off-by: Or Gerlitz <ogerlitz@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/linux/netdevice.h
include/net/protocol.h
net/core/dev.c
net/ipv4/udp_offload.c