From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wg0-f51.google.com (mail-wg0-f51.google.com [74.125.82.51]) by dpdk.org (Postfix) with ESMTP id 5CD84B3DF for ; Wed, 4 Feb 2015 10:26:03 +0100 (CET) Received: by mail-wg0-f51.google.com with SMTP id k14so518874wgh.10 for ; Wed, 04 Feb 2015 01:26:03 -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=f3hw5pa1neZymoUSn6O4ZCbsZupKqfmITDi7RGapUaR/tT64nRfDBSuR+tNY6XdbP/ yY3woXIchNzzlFmdwBztZMYeRAhbmLbu6fJOYdWX18DKoz/ntSV2Ndmgz6pckf/SVvTq xXQPQ0cR0U3Vdueu6Xeb34cK0kBj6MKnl2YE+6OzgLY0G1k3oQ+GnqML2Fq/pUpAJj84 G46pDPSdzwyudNAb/RvtqviiWGzF6F0xO0fo1g7+MmvyyGPMy7u66+BNXXDSADXcnukC QrKLIs/90RHomHn3byc1xbPCc0TslIvTVZcLBmle4toiaPKKQJOkWxiNsDNd4XSqrSNj qgtA== X-Gm-Message-State: ALoCoQmcHQ8khcJY3WzgFX/9XxOFxqE4Q2wz4fObkTQc2s41czmu75qAOZN1sfJlOWUtnOLGtIII X-Received: by 10.180.95.162 with SMTP id dl2mr2461024wib.31.1423041963259; Wed, 04 Feb 2015 01:26:03 -0800 (PST) Received: from glumotte.dev.6wind.com (6wind.net2.nerim.net. [213.41.180.237]) by mx.google.com with ESMTPSA id a13sm2346491wic.3.2015.02.04.01.26.02 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 04 Feb 2015 01:26:02 -0800 (PST) From: Olivier Matz To: dev@dpdk.org Date: Wed, 4 Feb 2015 10:25:20 +0100 Message-Id: <1423041925-26956-16-git-send-email-olivier.matz@6wind.com> X-Mailer: git-send-email 2.1.4 In-Reply-To: <1423041925-26956-1-git-send-email-olivier.matz@6wind.com> References: <1422623775-8050-1-git-send-email-olivier.matz@6wind.com> <1423041925-26956-1-git-send-email-olivier.matz@6wind.com> Subject: [dpdk-dev] [PATCH v2 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: Wed, 04 Feb 2015 09:26:03 -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