From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-pf0-f196.google.com (mail-pf0-f196.google.com [209.85.192.196]) by dpdk.org (Postfix) with ESMTP id 698CF3256 for ; Tue, 20 Jun 2017 13:38:43 +0200 (CEST) Received: by mail-pf0-f196.google.com with SMTP id w12so22265410pfk.0 for ; Tue, 20 Jun 2017 04:38:43 -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=derFrz5/uAAJimcvxXhbvNhmwCMGm+l9Z7HK10rsYSQ=; b=VHaF/0ntHdV6ulR3CoA3+qxko3He6/lTK6LRfdlvsmdqrbdI/XVxvqvg8KYhfGHSbR +Nm1wxIXe3+tBxagMgpPj1N8H1mjU1jPkcPByBOiXM4+i/6IQBnAfgby5Tq+a26eXrSg n5GrEdyywULCh1QTFEqX3vKIJ38rH8qx11/nlggnCZLpKjfMj5rcMu4/3jvYY0B8sV+s dPPHwjR9ANkppaIPzE+rjLc9iw/7mbopldX1GEyd2WT3NiTUjfasQ9OMb0B76S2UQPAh zFv305tD9iDyFdNZXTObUGUp+QpLJ5x/m1rFYZI4+Fx604rS6xIIFQt/4P8y2p9wA9MV oEEA== 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=derFrz5/uAAJimcvxXhbvNhmwCMGm+l9Z7HK10rsYSQ=; b=bpyaZt+EveZR1GQBBmsKMyfqGweAteG7oB08X+Y6OySx/3DstyHuCU14VYRbl4tnU3 nCRHAzTC8eYOs/ijGZgwbi+yYnkewVOglbWdWEis+734TPD22xUYs1lT65F+zupl/MNM X4OD2ifWe6Jlsw7OznT+DaqTLqtBI+qGslKYHyeyOcOYgcfkzvTqEteKaPwBf4DHZmyV m+7pp0jp9aXPl3iOg2iRtwW+N/FqKzZBmpY8vxMAj9vGu5OObriKNPZaFdfIdYWy000G KEd65/nmFrJfMlDU8qNE72qUFL1TPGgSLeECAY8jaA7VJ0oPR8B4CBYk3PuS4iaklmBO y07Q== X-Gm-Message-State: AKS2vOyJ8ZOIXPqkqBpFiMXOgX/S31pyPGuU6bKqglOWaPgag+EFVeZU y135pFVfJ86FvbIkTlrmZA== X-Received: by 10.98.149.142 with SMTP id c14mr30223587pfk.29.1497958722775; Tue, 20 Jun 2017 04:38:42 -0700 (PDT) Received: from yliu-home.localdomain ([45.63.61.64]) by smtp.gmail.com with ESMTPSA id 25sm6104783pfj.59.2017.06.20.04.38.39 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 20 Jun 2017 04:38:41 -0700 (PDT) From: Yuanhan Liu To: Wei Dai Cc: Bruce Richardson , dpdk stable Date: Tue, 20 Jun 2017 19:35:50 +0800 Message-Id: <1497958550-13600-38-git-send-email-yliu@fridaylinux.org> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1497958550-13600-1-git-send-email-yliu@fridaylinux.org> References: <1497958550-13600-1-git-send-email-yliu@fridaylinux.org> Subject: [dpdk-stable] patch 'lpm: fix index of tbl8' has been queued to stable release 17.05.1 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: Tue, 20 Jun 2017 11:38:43 -0000 Hi, FYI, your patch has been queued to stable release 17.05.1 Note it hasn't been pushed to http://dpdk.org/browse/dpdk-stable yet. It will be pushed if I get no objections before 06/22/17. So please shout if anyone has objections. Thanks. --yliu --- >>From 7fa585542021f5aae1e0c069e592410e5fa5b095 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