From patchwork Thu Mar 21 20:58:55 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Joseph Myers X-Patchwork-Id: 1060469 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (mailfrom) smtp.mailfrom=sourceware.org (client-ip=209.132.180.131; helo=sourceware.org; envelope-from=libc-alpha-return-100793-incoming=patchwork.ozlabs.org@sourceware.org; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=codesourcery.com Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; secure) header.d=sourceware.org header.i=@sourceware.org header.b="bIn8QJ0r"; dkim-atps=neutral Received: from sourceware.org (server1.sourceware.org [209.132.180.131]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 44QK0F29Lzz9sRG for ; Fri, 22 Mar 2019 07:59:09 +1100 (AEDT) DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:date:from:to:subject:message-id:mime-version :content-type; q=dns; s=default; b=kYyo3qa58wjrH0YuO8T3ad5uyR0Ot ltzyByo3K74SehxZf5p7VfUhCjYRSutJkLq2Ll5BECwSu4A0TJW4ho6LDqncZxH6 RNja4rogptIbGRWYHPzdKjP5XyAi/VljI1zTiL8McT7Veu7FtLo9srhCNsxLDfaB UXTMzRFat9fCBM= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:date:from:to:subject:message-id:mime-version :content-type; s=default; bh=9BbHxiLdExbc3QtZrQ1tpApE8AY=; b=bIn 8QJ0r6QQuhTymKrjQ0CfvmmZvrsvGhjI2Ht+huv0H28qd/oH6PSIxzgJQo7ZXWo5 wIOq8n0NW7xnuWgmy13aNkuTUxxBqRvt2migtnLRYZuz5aSptHMDyU1B6t9q/lIw yrEtT0gsf97HxmnyMQxUYvrbkyEZSQLF2fDANrQM= Received: (qmail 10027 invoked by alias); 21 Mar 2019 20:59:03 -0000 Mailing-List: contact libc-alpha-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: libc-alpha-owner@sourceware.org Delivered-To: mailing list libc-alpha@sourceware.org Received: (qmail 10016 invoked by uid 89); 21 Mar 2019 20:59:03 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-15.1 required=5.0 tests=AWL, BAYES_00, GIT_PATCH_0, GIT_PATCH_1, GIT_PATCH_2, GIT_PATCH_3, RCVD_IN_DNSWL_NONE, SPF_PASS autolearn=ham version=3.3.1 spammy=HX-Languages-Length:792, ipv6, IPv6 X-HELO: relay1.mentorg.com Date: Thu, 21 Mar 2019 20:58:55 +0000 From: Joseph Myers To: Subject: Add UDP_GRO from Linux 5.0 to netinet/udp.h Message-ID: User-Agent: Alpine 2.21 (DEB 202 2017-01-01) MIME-Version: 1.0 This patch adds the new constant UDP_GRO from Linux 5.0 to glibc. Tested for x86_64. 2019-03-21 Joseph Myers * sysdeps/gnu/netinet/udp.h (UDP_GRO): New macro. 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 */