From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-out1.informatik.tu-muenchen.de (mail-out1.informatik.tu-muenchen.de [131.159.0.8]) by dpdk.org (Postfix) with ESMTP id 429D737A6 for ; Mon, 15 Feb 2016 17:55:37 +0100 (CET) Received: from [127.0.0.1] (localhost [127.0.0.1]) by mail.net.in.tum.de (Postfix) with ESMTPSA id DFE57289427C; Mon, 15 Feb 2016 17:55:36 +0100 (CET) From: Paul Emmerich To: dev@dpdk.org Date: Mon, 15 Feb 2016 17:55:23 +0100 Message-Id: <1455555325-20046-2-git-send-email-emmericp@net.in.tum.de> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1455555325-20046-1-git-send-email-emmericp@net.in.tum.de> References: <1455555325-20046-1-git-send-email-emmericp@net.in.tum.de> Subject: [dpdk-dev] [PATCH 1/3] add tx crc disable 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: Mon, 15 Feb 2016 16:55:37 -0000 Signed-off-by: Paul Emmerich --- lib/librte_mbuf/rte_mbuf.c | 1 + lib/librte_mbuf/rte_mbuf.h | 6 ++++++ 2 files changed, 7 insertions(+) diff --git a/lib/librte_mbuf/rte_mbuf.c b/lib/librte_mbuf/rte_mbuf.c index f506517..744fb4e 100644 --- a/lib/librte_mbuf/rte_mbuf.c +++ b/lib/librte_mbuf/rte_mbuf.c @@ -270,6 +270,7 @@ const char *rte_get_rx_ol_flag_name(uint64_t mask) const char *rte_get_tx_ol_flag_name(uint64_t mask) { switch (mask) { + case PKT_TX_NO_CRC_CSUM: return "PKT_TX_NO_CRC_CSUM"; case PKT_TX_VLAN_PKT: return "PKT_TX_VLAN_PKT"; case PKT_TX_IP_CKSUM: return "PKT_TX_IP_CKSUM"; case PKT_TX_TCP_CKSUM: return "PKT_TX_TCP_CKSUM"; diff --git a/lib/librte_mbuf/rte_mbuf.h b/lib/librte_mbuf/rte_mbuf.h index ab6de67..096d84a 100644 --- a/lib/librte_mbuf/rte_mbuf.h +++ b/lib/librte_mbuf/rte_mbuf.h @@ -106,6 +106,12 @@ extern "C" { /* add new TX flags here */ /** + * Disable CRC checksum offload + */ +#define PKT_TX_NO_CRC_CSUM (1ULL << 49) + + +/** * TCP segmentation offload. To enable this offload feature for a * packet to be transmitted on hardware supporting TSO: * - set the PKT_TX_TCP_SEG flag in mbuf->ol_flags (this flag implies -- 1.9.1