Add UDP_GRO from Linux 5.0 to netinet/udp.h
diff mbox series

Message ID alpine.DEB.2.21.1903212058410.14918@digraph.polyomino.org.uk
State New
Headers show
Series
  • Add UDP_GRO from Linux 5.0 to netinet/udp.h
Related show

Commit Message

Joseph Myers March 21, 2019, 8:58 p.m. UTC
This patch adds the new constant UDP_GRO from Linux 5.0 to glibc.

Tested for x86_64.

2019-03-21  Joseph Myers  <joseph@codesourcery.com>

	* sysdeps/gnu/netinet/udp.h (UDP_GRO): New macro.

Comments

Gabriel F. T. Gomes March 23, 2019, 11:03 p.m. UTC | #1
On Thu, Mar 21 2019, Joseph Myers wrote:
> This patch adds the new constant UDP_GRO from Linux 5.0 to glibc.

Looks good to me.

$ git show v4.20:include/uapi/linux/udp.h | grep -E "UDP_GRO"
$ git show v5.0:include/uapi/linux/udp.h | grep -E "UDP_GRO"
#define UDP_GRO		104	/* This socket can receive UDP GRO packets */

> +#define UDP_GRO		104	/* This socket can receive UDP GRO packets.  */

OK.

Patch
diff mbox series

diff --git a/sysdeps/gnu/netinet/udp.h b/sysdeps/gnu/netinet/udp.h
index fc82bae381..b6822cb3e2 100644
--- a/sysdeps/gnu/netinet/udp.h
+++ b/sysdeps/gnu/netinet/udp.h
@@ -82,6 +82,7 @@  struct udphdr
 #define UDP_NO_CHECK6_RX 102	/* Disable accepting checksum for UDP
 				   over IPv6.  */
 #define UDP_SEGMENT	103	/* Set GSO segmentation size.  */
+#define UDP_GRO		104	/* This socket can receive UDP GRO packets.  */
 
 /* UDP encapsulation types */
 #define UDP_ENCAP_ESPINUDP_NON_IKE 1	/* draft-ietf-ipsec-nat-t-ike-00/01 */