From patchwork Wed Jan 21 23:36:25 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Olivier Matz X-Patchwork-Id: 2445 Return-Path: X-Original-To: patchwork@dpdk.org Delivered-To: patchwork@dpdk.org Received: from [92.243.14.124] (localhost [IPv6:::1]) by dpdk.org (Postfix) with ESMTP id BB4255A73; Thu, 22 Jan 2015 00:37:01 +0100 (CET) Received: from mail-wg0-f43.google.com (mail-wg0-f43.google.com [74.125.82.43]) by dpdk.org (Postfix) with ESMTP id D491E5AA3 for ; Thu, 22 Jan 2015 00:36:52 +0100 (CET) Received: by mail-wg0-f43.google.com with SMTP id y19so317564wgg.2 for ; Wed, 21 Jan 2015 15:36:52 -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=Kjl5z+ap0N6Xierz+ssVfTB7fiqLiUakqVB6Ikr0R2c=; b=TYdjVd9su2I3M5nOQ+0r3i0Ns5pBqIjs0ldRs8A3qdlXxzrZZvCDwdGsNLOjl/rsaC b90jxtkWDpJNXCg4z9Alyyi/YJGsrdJPlXHHNgk70aLTUiCn1m5wKaoHSQqNKAeJPJMu DVfi2cOJ8+ki1SRQYVkzxLjyuJoqb5ZDht1PhVUAynfc1O3SRaVLlbbvUruKjx9IFMei oKQpve4ng7joySWcUCTcjZPdKPV7qJ48Kd+rmUonIw9TUE/a3aS8+GYGVEbMHWLtjjxU oBXxlzZu2dJkCUXb+rLXI+qaH1WWRDKeTJS7dqyjYIZJl0Et4GPask8V7sWhLIlG7EDD u1kw== X-Gm-Message-State: ALoCoQnWlA884ULxuwAHCQfPVPlsIplysm7Zf7/SZQcGZtWP2jlOBUSkZmbCd8t7f35gbVj9B3nB X-Received: by 10.194.203.104 with SMTP id kp8mr83209953wjc.103.1421883412628; Wed, 21 Jan 2015 15:36:52 -0800 (PST) Received: from glumotte.dev.6wind.com (guy78-3-82-239-227-177.fbx.proxad.net. [82.239.227.177]) by mx.google.com with ESMTPSA id wa5sm1710761wjc.8.2015.01.21.15.36.51 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 21 Jan 2015 15:36:52 -0800 (PST) From: Olivier Matz To: dev@dpdk.org Date: Thu, 22 Jan 2015 00:36:25 +0100 Message-Id: <1421883395-27235-7-git-send-email-olivier.matz@6wind.com> X-Mailer: git-send-email 2.1.3 In-Reply-To: <1421883395-27235-1-git-send-email-olivier.matz@6wind.com> References: <1421883395-27235-1-git-send-email-olivier.matz@6wind.com> Subject: [dpdk-dev] [RFC 06/16] 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: , Errors-To: dev-bounces@dpdk.org Sender: "dev" 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. */