-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
gue: Receive side for Generic UDP Encapsulation
This patch adds support receiving for GUE packets in the fou module. The fou module now supports direct foo-over-udp (no encapsulation header) and GUE. To support this a type parameter is added to the fou netlink parameters. For a GUE socket we define gue_udp_recv, gue_gro_receive, and gue_gro_complete to handle the specifics of the GUE protocol. Most of the code to manage and configure sockets is common with the fou. Signed-off-by: Tom Herbert <therbert@google.com> Signed-off-by: David S. Miller <davem@davemloft.net>
- Loading branch information
Tom Herbert
authored and
David S. Miller
committed
Oct 3, 2014
1 parent
efc98d0
commit 37dd024
Showing
3 changed files
with
217 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
#ifndef __NET_GUE_H | ||
#define __NET_GUE_H | ||
|
||
struct guehdr { | ||
union { | ||
struct { | ||
#if defined(__LITTLE_ENDIAN_BITFIELD) | ||
__u8 hlen:4, | ||
version:4; | ||
#elif defined (__BIG_ENDIAN_BITFIELD) | ||
__u8 version:4, | ||
hlen:4; | ||
#else | ||
#error "Please fix <asm/byteorder.h>" | ||
#endif | ||
__u8 next_hdr; | ||
__u16 flags; | ||
}; | ||
__u32 word; | ||
}; | ||
}; | ||
|
||
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters