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 0543CA0562; Tue, 31 Mar 2020 19:29:17 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 2AE9C1C068; Tue, 31 Mar 2020 19:29:17 +0200 (CEST) Received: from mx0b-0016f401.pphosted.com (mx0b-0016f401.pphosted.com [67.231.156.173]) by dpdk.org (Postfix) with ESMTP id 61A311C066; Tue, 31 Mar 2020 19:29:16 +0200 (CEST) Received: from pps.filterd (m0045851.ppops.net [127.0.0.1]) by mx0b-0016f401.pphosted.com (8.16.0.42/8.16.0.42) with SMTP id 02VHQio9020498; Tue, 31 Mar 2020 10:29:15 -0700 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=marvell.com; h=from : to : cc : subject : date : message-id : mime-version : content-transfer-encoding : content-type; s=pfpt0818; bh=ubFUhNpB8jiykId5Sr0P/2114Zb8+3f30qm/V36Gvc4=; b=iMZgfJnJd9jQDXzpuDvZGbyY6KTvOOMCzbky1ztLFDya9ikKR8XZw1lcX1n13Zmqf024 mtLDFlptDM+c18XGX2i5IE4bEEIYQantM6zjRuB4ARJRpZsYpP4HA7/O6LH+RvJFjFvD hhoq1u2aod/cr1UGWtG8yT3BSd0IDqSn5R22NJXZvFRi+rxvjmBgHd5S3ZOVGr2Bx2BK JwGkTAd2rjNOfhnvH6MZbPQEST+qhfOh3HvPq8aQYRJ8m34pQtc4ygOgeDlI62sUfi2V ox8uqIF0z+1yOg3LZKzjt4SaTsaG4KlXtk1fj314GgMMPafX8DqD10VVxC2NDaCVNLnR /g== Received: from sc-exch02.marvell.com ([199.233.58.182]) by mx0b-0016f401.pphosted.com with ESMTP id 3046h5s4mu-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NOT); Tue, 31 Mar 2020 10:29:15 -0700 Received: from SC-EXCH01.marvell.com (10.93.176.81) by SC-EXCH02.marvell.com (10.93.176.82) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Tue, 31 Mar 2020 10:29:13 -0700 Received: from maili.marvell.com (10.93.176.43) by SC-EXCH01.marvell.com (10.93.176.81) with Microsoft SMTP Server id 15.0.1497.2 via Frontend Transport; Tue, 31 Mar 2020 10:29:13 -0700 Received: from BG-LT7430.marvell.com (BG-LT7430.marvell.com [10.28.163.117]) by maili.marvell.com (Postfix) with ESMTP id AA2D93F703F; Tue, 31 Mar 2020 10:29:11 -0700 (PDT) From: To: , Konstantin Ananyev CC: , Pavan Nikhilesh , Date: Tue, 31 Mar 2020 22:59:09 +0530 Message-ID: <20200331172910.6309-1-pbhagavatula@marvell.com> X-Mailer: git-send-email 2.17.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:6.0.138, 18.0.676 definitions=2020-03-31_07:2020-03-31, 2020-03-31 signatures=0 Subject: [dpdk-dev] [PATCH] ip_frag: fix improper byte order conversion 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" From: Pavan Nikhilesh Fix improper byte order conversion used to extract fragmentation offset in ipv6 reassembly. Fixes: 4f1a8f633862 ("ip_frag: add IPv6 reassembly") Cc: stable@dpdk.org Signed-off-by: Pavan Nikhilesh --- lib/librte_ip_frag/rte_ipv6_reassembly.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/librte_ip_frag/rte_ipv6_reassembly.c b/lib/librte_ip_frag/rte_ipv6_reassembly.c index ad0105518..f790f1ad5 100644 --- a/lib/librte_ip_frag/rte_ipv6_reassembly.c +++ b/lib/librte_ip_frag/rte_ipv6_reassembly.c @@ -132,7 +132,7 @@ ipv6_frag_reassemble(struct ip_frag_pkt *fp) * - not all fragments of the packet are collected yet. */ #define MORE_FRAGS(x) (((x) & 0x100) >> 8) -#define FRAG_OFFSET(x) (rte_cpu_to_be_16(x) >> 3) +#define FRAG_OFFSET(x) (rte_be_to_cpu_16(x) >> 3) struct rte_mbuf * rte_ipv6_frag_reassemble_packet(struct rte_ip_frag_tbl *tbl, struct rte_ip_frag_death_row *dr, struct rte_mbuf *mb, uint64_t tms, -- 2.17.1