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/net/udp.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/net/udp.h')
-rw-r--r-- | include/net/udp.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/net/udp.h b/include/net/udp.h index 0676b272f6ac..741d888d0fdb 100644 --- a/include/net/udp.h +++ b/include/net/udp.h @@ -174,6 +174,10 @@ struct sk_buff **udp_gro_receive(struct sk_buff **head, struct sk_buff *skb, struct udphdr *uh, udp_lookup_t lookup); int udp_gro_complete(struct sk_buff *skb, int nhoff, udp_lookup_t lookup); +struct sk_buff *__udp_gso_segment(struct sk_buff *gso_skb, + netdev_features_t features, + unsigned int mss, __sum16 check); + static inline struct udphdr *udp_gro_udphdr(struct sk_buff *skb) { struct udphdr *uh; |