diff options
author | Willem de Bruijn <willemb@google.com> | 2018-04-26 20:42:16 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2018-04-26 22:07:42 +0300 |
commit | ee80d1ebe5ba7f4bd74959c873119175a4fc08d3 (patch) | |
tree | 0bca8b68c30175a1f650f0230811d7edcd2ceed3 /include/linux/skbuff.h | |
parent | 1cd7884dfd78df6284d27b008823b0b4a808f196 (diff) | |
download | linux-ee80d1ebe5ba7f4bd74959c873119175a4fc08d3.tar.xz |
udp: add udp gso
Implement generic segmentation offload support for udp datagrams. A
follow-up patch adds support to the protocol stack to generate such
packets.
UDP GSO is not UFO. UFO fragments a single large datagram. GSO splits
a large payload into a number of discrete UDP datagrams.
The implementation adds a GSO type SKB_UDP_GSO_L4 to differentiate it
from UFO (SKB_UDP_GSO).
IPPROTO_UDPLITE is excluded, as that protocol has no gso handler
registered.
[ Export __udp_gso_segment for ipv6. -DaveM ]
Signed-off-by: Willem de Bruijn <willemb@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/linux/skbuff.h')
-rw-r--r-- | include/linux/skbuff.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/skbuff.h b/include/linux/skbuff.h index d274059529eb..a4a5c0c5cba8 100644 --- a/include/linux/skbuff.h +++ b/include/linux/skbuff.h @@ -573,6 +573,8 @@ enum { SKB_GSO_ESP = 1 << 15, SKB_GSO_UDP = 1 << 16, + + SKB_GSO_UDP_L4 = 1 << 17, }; #if BITS_PER_LONG > 32 |