From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id C3C0AA0487 for ; Mon, 1 Jul 2019 15:38:07 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 6549D1B9B0; Mon, 1 Jul 2019 15:38:07 +0200 (CEST) Received: from smartserver.smartsharesystems.com (smartserver.smartsharesystems.com [77.243.40.215]) by dpdk.org (Postfix) with ESMTP id 143041B9AF for ; Mon, 1 Jul 2019 15:38:06 +0200 (CEST) Received: from dkrd1.smartsharesys.local ([192.168.4.88]) by smartserver.smartsharesystems.com with Microsoft SMTPSVC(6.0.3790.4675); Mon, 1 Jul 2019 15:38:05 +0200 Received: by dkrd1.smartsharesys.local (Postfix, from userid 1001) id B4F8029EBA; Mon, 1 Jul 2019 15:38:05 +0200 (CEST) From: =?utf-8?q?Morten=20Br=C3=B8rup?= To: olivier.matz@6wind.com, shahafs@mellanox.com, yskoh@mellanox.com Cc: dev@dpdk.org, =?utf-8?q?Morten=20Br=C3=B8rup?= Date: Mon, 1 Jul 2019 15:38:05 +0200 Message-Id: <1561988285-12677-1-git-send-email-mb@smartsharesystems.com> X-Mailer: git-send-email 1.5.6 In-Reply-To: <1561987524-12587-1-git-send-email-mb@smartsharesystems.com> References: <1561987524-12587-1-git-send-email-mb@smartsharesystems.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-OriginalArrivalTime: 01 Jul 2019 13:38:05.0602 (UTC) FILETIME=[364F7820:01D53012] Subject: [dpdk-dev] [PATCH] net: fix definition of ipv6 traffic class mask X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" IPv6 header TC field is 8 bits, not 4. Signed-off-by: Morten Brørup --- lib/librte_net/rte_ip.h | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/lib/librte_net/rte_ip.h b/lib/librte_net/rte_ip.h index ae3b7e7..059ec80 100644 --- a/lib/librte_net/rte_ip.h +++ b/lib/librte_net/rte_ip.h @@ -355,7 +355,7 @@ struct rte_ipv6_hdr { #define RTE_IPV6_HDR_FL_SHIFT 0 #define RTE_IPV6_HDR_TC_SHIFT 20 #define RTE_IPV6_HDR_FL_MASK ((1u << RTE_IPV6_HDR_TC_SHIFT) - 1) -#define RTE_IPV6_HDR_TC_MASK (0xf << RTE_IPV6_HDR_TC_SHIFT) +#define RTE_IPV6_HDR_TC_MASK (0xff << RTE_IPV6_HDR_TC_SHIFT) /** * Process the pseudo-header checksum of an IPv6 header. -- 1.5.6