mirror of
https://github.com/torvalds/linux.git
synced 2024-12-09 20:51:43 +00:00
a6024562ff
This patch adds GRO functions (gro_receive and gro_complete) to UDP sockets. udp_gro_receive is changed to perform socket lookup on a packet. If a socket is found the related GRO functions are called. This features obsoletes using UDP offload infrastructure for GRO (udp_offload). This has the advantage of not being limited to provide offload on a per port basis, GRO is now applied to whatever individual UDP sockets are bound to. This also allows the possbility of "application defined GRO"-- that is we can attach something like a BPF program to a UDP socket to perfrom GRO on an application layer protocol. Signed-off-by: Tom Herbert <tom@herbertland.com> Signed-off-by: David S. Miller <davem@davemloft.net>
20 lines
524 B
C
20 lines
524 B
C
/*
|
|
* IPV6 GSO/GRO offload support
|
|
* Linux INET6 implementation
|
|
*
|
|
* This program is free software; you can redistribute it and/or
|
|
* modify it under the terms of the GNU General Public License
|
|
* as published by the Free Software Foundation; either version
|
|
* 2 of the License, or (at your option) any later version.
|
|
*/
|
|
|
|
#ifndef __ip6_offload_h
|
|
#define __ip6_offload_h
|
|
|
|
int ipv6_exthdrs_offload_init(void);
|
|
int udpv6_offload_init(void);
|
|
int udpv6_offload_exit(void);
|
|
int tcpv6_offload_init(void);
|
|
|
|
#endif
|