From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wi0-f170.google.com (mail-wi0-f170.google.com [209.85.212.170]) by dpdk.org (Postfix) with ESMTP id 1D5AAB410 for ; Fri, 13 Feb 2015 10:23:13 +0100 (CET) Received: by mail-wi0-f170.google.com with SMTP id hi2so10656440wib.1 for ; Fri, 13 Feb 2015 01:23:13 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=9z1YXSM3ncSlSIfGuaEA0kC/hIM7a5i/7rmmqjuPdCY=; b=jBVzr58evuylBgCL69b/SaYNK6iVxS5rE8GZxYe6hUa6OAT189//cDcxdx+zodk2N3 1etad9qTYVCM2Uuws3yWCLaSjE8CgVF3gu//y/EuWynfYMDdevRNfPs1fJX+Tkae2igz wWJ/GgUb7h+KjSgHvRxjCSGNrtTPtw/0KfqKEHVB9DPjWyhz2ppewe3Px5bOuZgVwwoQ RXx0kYvpqooyLG1qG+J0+W1TCB8qfvdpsQ/EZewpOmyK3fmU2D1Dt85ZVdsAfByXUAMM m9k3uWnNvdeZcjMV8Ji9QO7cer4H/PDT3Jz0wmD0BBWxbov9Pin/PlMde2xKt2JOqPR7 O8Hw== X-Gm-Message-State: ALoCoQnMs0Yqp/IcRHBFn6NyNVG10gXvAZ1mpTwsb+EuzhquSx0TY0TOHYxg0a0PtGjdx+kQYm2a X-Received: by 10.180.100.104 with SMTP id ex8mr4826827wib.57.1423819392843; Fri, 13 Feb 2015 01:23:12 -0800 (PST) Received: from glumotte.dev.6wind.com (6wind.net2.nerim.net. [213.41.180.237]) by mx.google.com with ESMTPSA id a5sm2100153wib.20.2015.02.13.01.23.12 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 13 Feb 2015 01:23:12 -0800 (PST) From: Olivier Matz To: dev@dpdk.org Date: Fri, 13 Feb 2015 10:22:46 +0100 Message-Id: <1423819371-24222-16-git-send-email-olivier.matz@6wind.com> X-Mailer: git-send-email 2.1.4 In-Reply-To: <1423819371-24222-1-git-send-email-olivier.matz@6wind.com> References: <1423041925-26956-1-git-send-email-olivier.matz@6wind.com> <1423819371-24222-1-git-send-email-olivier.matz@6wind.com> Subject: [dpdk-dev] [PATCH v3 15/20] ethdev: add outer IP offload capability flag X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 13 Feb 2015 09:23:13 -0000 From: Jijiang Liu If the flag is advertised by a PMD, the NIC supports the outer IP checksum TX offload of tunneling packets, therefore an application can set the PKT_TX_OUTER_IP_CKSUM flag in mbufs when transmitting on this port. Signed-off-by: Jijiang Liu Acked-by: Olivier Matz --- lib/librte_ether/rte_ethdev.h | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/librte_ether/rte_ethdev.h b/lib/librte_ether/rte_ethdev.h index 1200c1c..84160c3 100644 --- a/lib/librte_ether/rte_ethdev.h +++ b/lib/librte_ether/rte_ethdev.h @@ -916,6 +916,7 @@ struct rte_eth_conf { #define DEV_TX_OFFLOAD_SCTP_CKSUM 0x00000010 #define DEV_TX_OFFLOAD_TCP_TSO 0x00000020 #define DEV_TX_OFFLOAD_UDP_TSO 0x00000040 +#define DEV_TX_OFFLOAD_OUTER_IPV4_CKSUM 0x00000080 /**< Used for tunneling packet. */ struct rte_eth_dev_info { struct rte_pci_device *pci_dev; /**< Device PCI information. */ -- 2.1.4