From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-pf0-f194.google.com (mail-pf0-f194.google.com [209.85.192.194]) by dpdk.org (Postfix) with ESMTP id 323542C2B for ; Fri, 14 Jul 2017 12:35:40 +0200 (CEST) Received: by mail-pf0-f194.google.com with SMTP id q85so10554466pfq.2 for ; Fri, 14 Jul 2017 03:35:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fridaylinux-org.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=U6mBrL7+m4a1BRl9Oz38V3vxD9S6lOjpvNbBjfzdai0=; b=CrVUj2tJWEmp6Tv5RIuDWLwreE01mVlJ1D9nW+zM7tUJIM3MVxayI8R1s4JN+dPFCd mpDMiXjSEZc4KBXDA49PM+bVAduQPVIni+Kp30Fiw8reW/Y/rphOHHoebPEc8mECAmXW CrFTIRcvvDvmEjge+hyjW47ZYunExWooByXMpkEOhclud6OoPFcXr+dt6golNv+6Rn8W p4rLAWUlLkWCWTlAiHeoyKPIrwk09OvK766RN4QzdF3PAwT0J9qRjEKJ8Xi4ap6wZ2Gg N92ooIN0vwIj4lY7rkLldh/hW9YW8G++grvynmmJIR8mqAJXB4dyTz674/NCvFlwmLCF u+hA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=U6mBrL7+m4a1BRl9Oz38V3vxD9S6lOjpvNbBjfzdai0=; b=NuYF+Zj3qACF/FZ6AeQt4h9Fto0Zpwn0+A/2tmvaAQOZQ2wTT2bxpvydRArUmEkWPq +4pVm+qz/RP+Dv/NPw2Bh2CRzrR69cNdAosc04paoXHRYrZL2VaaxSWaeDp8hRBBHeqD wSAmBTFo0ddbom6IlBlINKoy+yBR0PxPFTFLEI8MWOaFgiMWSS38aAtZhvSdWNiWL0Bg h9LrKpC++FV30eAoDq8XMqsADDHurWwV4E62Hmo5oV8oiCrJLH+L8X9iFQ4bOdP5u7Mm gbwirXteaKRpdN/gxRXjmgwvtE7ZeaG5oiKLKLP9Lsho4XIlVcaCJjROgHU67037kfGF zr6Q== X-Gm-Message-State: AIVw112FuA/zOnh9kykiT0056QZDAg0NcshD1ga5lhWqLdz5KWKjjXpM qJNyokCZtvxwuFHj X-Received: by 10.84.176.195 with SMTP id v61mr15186512plb.51.1500028539541; Fri, 14 Jul 2017 03:35:39 -0700 (PDT) Received: from localhost.localdomain ([180.158.48.171]) by smtp.gmail.com with ESMTPSA id y205sm15273553pfb.124.2017.07.14.03.35.36 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 14 Jul 2017 03:35:38 -0700 (PDT) From: Yuanhan Liu To: Wei Dai Cc: Bruce Richardson , dpdk stable Date: Fri, 14 Jul 2017 18:33:41 +0800 Message-Id: <1500028450-25989-17-git-send-email-yliu@fridaylinux.org> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1500028450-25989-1-git-send-email-yliu@fridaylinux.org> References: <1500028450-25989-1-git-send-email-yliu@fridaylinux.org> Subject: [dpdk-stable] patch 'lpm: fix index of tbl8' has been queued to LTS release 16.11.3 X-BeenThere: stable@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches for DPDK stable branches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 14 Jul 2017 10:35:40 -0000 Hi, FYI, your patch has been queued to LTS release 16.11.3 Note it hasn't been pushed to http://dpdk.org/browse/dpdk-stable yet. It will be pushed if I get no objections before 07/19/17. So please shout if anyone has objections. Thanks. --yliu --- >>From 19cc2bb34051031ff9d076d7246821cd8ab2692c Mon Sep 17 00:00:00 2001 From: Wei Dai Date: Mon, 19 Jun 2017 12:14:38 +0800 Subject: [PATCH] lpm: fix index of tbl8 [ upstream commit 9d042b3ee0cc67e2db6cc81ef454113957793d2b ] >>From v20 to v1604, number of tbl8 can be up to 1<<24, (uint8_t) or (uint16_t) may truncate the number of index of tlb8 in v1604 and cause wrong number. Fixes: dc81ebbacaeb ("lpm: extend IPv4 next hop field") Signed-off-by: Wei Dai Acked-by: Bruce Richardson --- lib/librte_lpm/rte_lpm.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/librte_lpm/rte_lpm.c b/lib/librte_lpm/rte_lpm.c index 8c15c4c..978ac60 100644 --- a/lib/librte_lpm/rte_lpm.c +++ b/lib/librte_lpm/rte_lpm.c @@ -1034,7 +1034,7 @@ add_depth_big_v1604(struct rte_lpm *lpm, uint32_t ip_masked, uint8_t depth, */ struct rte_lpm_tbl_entry new_tbl24_entry = { - .group_idx = (uint8_t)tbl8_group_index, + .group_idx = tbl8_group_index, .valid = VALID, .valid_group = 1, .depth = 0, @@ -1080,7 +1080,7 @@ add_depth_big_v1604(struct rte_lpm *lpm, uint32_t ip_masked, uint8_t depth, */ struct rte_lpm_tbl_entry new_tbl24_entry = { - .group_idx = (uint8_t)tbl8_group_index, + .group_idx = tbl8_group_index, .valid = VALID, .valid_group = 1, .depth = 0, -- 2.7.4