From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wg0-f45.google.com (mail-wg0-f45.google.com [74.125.82.45]) by dpdk.org (Postfix) with ESMTP id 9598658CB for ; Fri, 30 Jan 2015 14:16:42 +0100 (CET) Received: by mail-wg0-f45.google.com with SMTP id x12so26814806wgg.4 for ; Fri, 30 Jan 2015 05:16:42 -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=F84hYqC6hCmlQMO1NeXFKULesgB5EhZ6IkSXN9xrwGXY7KFjXSHOldpkztIITLY/Fk +/minarhNXkE+mcaG672u1Adi4ThwQAlYxaXlwJYw14fLnvejbaPvrRhT5eVNw3tTAgK GiXHFbY6D6Qn9ZQGUhQn5kZQC/gzT6VVGsLIdXpXE5X9hOuRR87FmjWFrHnkcF90g/qE IzX9+TicJNLm6DbEQ3ikG8KdQA/eteYgJVoNltFYRO+IokMNcjw6hJmQ2mJaIVJC9/gF 0WS7wumLN8jXFKU0WUhWKql0p5+ca1L/Q0VNFsSCepbB0E+3g3cJUBRAMMznz0MSPsp5 JWgw== X-Gm-Message-State: ALoCoQkPYL+AAQ4BiFuvCbmh2W6SNtotwc9XcQ6tlUyr0xcmFo0aGdOEoCbHqnWeAObyRLclbYcf X-Received: by 10.194.108.9 with SMTP id hg9mr11929909wjb.68.1422623802502; Fri, 30 Jan 2015 05:16:42 -0800 (PST) Received: from glumotte.dev.6wind.com (6wind.net2.nerim.net. [213.41.180.237]) by mx.google.com with ESMTPSA id li7sm6911300wic.4.2015.01.30.05.16.41 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 30 Jan 2015 05:16:42 -0800 (PST) From: Olivier Matz To: dev@dpdk.org Date: Fri, 30 Jan 2015 14:16:10 +0100 Message-Id: <1422623775-8050-16-git-send-email-olivier.matz@6wind.com> X-Mailer: git-send-email 2.1.4 In-Reply-To: <1422623775-8050-1-git-send-email-olivier.matz@6wind.com> References: <1421883395-27235-1-git-send-email-olivier.matz@6wind.com> <1422623775-8050-1-git-send-email-olivier.matz@6wind.com> Subject: [dpdk-dev] [PATCH 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, 30 Jan 2015 13:16:42 -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