Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/7814/?format=api
https://patches.dpdk.org/api/patches/7814/?format=api", "web_url": "https://patches.dpdk.org/project/dpdk/patch/5e5d9466.100a4.15089d2018f.Coremail.mablexidana@163.com/", "project": { "id": 1, "url": "https://patches.dpdk.org/api/projects/1/?format=api", "name": "DPDK", "link_name": "dpdk", "list_id": "dev.dpdk.org", "list_email": "dev@dpdk.org", "web_url": "http://core.dpdk.org", "scm_url": "git://dpdk.org/dpdk", "webscm_url": "http://git.dpdk.org/dpdk", "list_archive_url": "https://inbox.dpdk.org/dev", "list_archive_url_format": "https://inbox.dpdk.org/dev/{}", "commit_url_format": "" }, "msgid": "<5e5d9466.100a4.15089d2018f.Coremail.mablexidana@163.com>", "list_archive_url": "https://inbox.dpdk.org/dev/5e5d9466.100a4.15089d2018f.Coremail.mablexidana@163.com", "date": "2015-10-21T09:54:13", "name": "[dpdk-dev] fix lpm bugs", "commit_ref": null, "pull_url": null, "state": "not-applicable", "archived": true, "hash": "f6d758a934fcb7ce2884607991f1345db44ca4f7", "submitter": { "id": 356, "url": "https://patches.dpdk.org/api/people/356/?format=api", "name": "mablexidana", "email": "mablexidana@163.com" }, "delegate": null, "mbox": "https://patches.dpdk.org/project/dpdk/patch/5e5d9466.100a4.15089d2018f.Coremail.mablexidana@163.com/mbox/", "series": [], "comments": "https://patches.dpdk.org/api/patches/7814/comments/", "check": "pending", "checks": "https://patches.dpdk.org/api/patches/7814/checks/", "tags": {}, "related": [], "headers": { "Return-Path": "<dev-bounces@dpdk.org>", "X-Original-To": "patchwork@dpdk.org", "Delivered-To": "patchwork@dpdk.org", "Received": [ "from [92.243.14.124] (localhost [IPv6:::1])\n\tby dpdk.org (Postfix) with ESMTP id ECDC493C8;\n\tWed, 21 Oct 2015 11:54:17 +0200 (CEST)", "from m13-31.163.com (m13-31.163.com [220.181.13.31])\n\tby dpdk.org (Postfix) with ESMTP id 6233F93C6\n\tfor <dev@dpdk.org>; Wed, 21 Oct 2015 11:54:16 +0200 (CEST)", "from mablexidana$163.com ( [182.92.253.20] ) by\n\tajax-webmail-wmsvr31 (Coremail) ;\n\tWed, 21 Oct 2015 17:54:13 +0800 (CST)" ], "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed; d=163.com;\n\ts=s110527; h=Date:From:Subject:MIME-Version:Message-ID; bh=bjYMu\n\tiY6EqThbCfWdcQ2HMYH2Zr5Vxt3/7aNoE239V8=; b=FoZdTxhnsvO6YOGhxgkgF\n\t8H2Bsioh2WRAOKUd6t5fRIYznyMv7eA0eH2W89oHvlDFiZck05jP2dWHSMVT6/SS\n\t9hnoRyGZf68V/5H08ZMVFUZzZX/OQWrBLGbSj9EbidgQsY6USW4gfWZDshohgLxQ\n\tWi0f44uN8SILDFDOrw6QR0=", "X-Originating-IP": "[182.92.253.20]", "Date": "Wed, 21 Oct 2015 17:54:13 +0800 (CST)", "From": "mablexidana <mablexidana@163.com>", "To": "dev@dpdk.org", "X-Priority": "3", "X-Mailer": "Coremail Webmail Server Version SP_ntes V3.5 build\n\t20150911(74783.7961) Copyright (c) 2002-2015 www.mailtech.cn 163com", "X-CM-CTRLDATA": "Sbvup2Zvb3Rlcl9odG09Mzg0ODo1Ng==", "MIME-Version": "1.0", "Message-ID": "<5e5d9466.100a4.15089d2018f.Coremail.mablexidana@163.com>", "X-CM-TRANSID": "H8GowAB3fwPFYCdW14eLAA--.2982W", "X-CM-SenderInfo": "xpdezvp0lgt0rd6rljoofrz/xtbBDhiasFQG1nrmOAACse", "X-Coremail-Antispam": "1U5529EdanIXcx71UUUUU7vcSsGvfC2KfnxnUU==", "Content-Type": "text/plain; charset=GBK", "Content-Transfer-Encoding": "base64", "X-Content-Filtered-By": "Mailman/MimeDel 2.1.15", "Subject": "[dpdk-dev] [PATCH] fix lpm bugs", "X-BeenThere": "dev@dpdk.org", "X-Mailman-Version": "2.1.15", "Precedence": "list", "List-Id": "patches and discussions about DPDK <dev.dpdk.org>", "List-Unsubscribe": "<http://dpdk.org/ml/options/dev>,\n\t<mailto:dev-request@dpdk.org?subject=unsubscribe>", "List-Archive": "<http://dpdk.org/ml/archives/dev/>", "List-Post": "<mailto:dev@dpdk.org>", "List-Help": "<mailto:dev-request@dpdk.org?subject=help>", "List-Subscribe": "<http://dpdk.org/ml/listinfo/dev>,\n\t<mailto:dev-request@dpdk.org?subject=subscribe>", "Errors-To": "dev-bounces@dpdk.org", "Sender": "\"dev\" <dev-bounces@dpdk.org>" }, "content": "hi:\n We test some lpm cases and find some bugs, below is how to fix it. thanks :)\n---\n lib/librte_lpm/rte_lpm.c | 5 +++--\n 1 file changed, 3 insertions(+), 2 deletions(-)\n\n\n [sub_rule_index].next_hop,\n@@ -781,7 +782,7 @@ delete_depth_small(struct rte_lpm *lpm, uint32_t ip_masked,\n lpm->tbl24[i].depth <= depth ) {\n lpm->tbl24[i] = new_tbl24_entry;\n }\n- else {\n+ else if (lpm->tbl24[i].ext_entry == 1) {\n /*\n * If TBL24 entry is extended, then there has\n * to be a rule with depth >= 25 in the\n--\n1.8.5.2 (Apple Git-48)", "diff": "diff --git a/lib/librte_lpm/rte_lpm.c b/lib/librte_lpm/rte_lpm.c\nindex 163ba3c..b5199ff 100644\n--- a/lib/librte_lpm/rte_lpm.c\n+++ b/lib/librte_lpm/rte_lpm.c\n@@ -735,7 +735,7 @@ delete_depth_small(struct rte_lpm *lpm, uint32_t ip_masked,\n lpm->tbl24[i].depth <= depth ) {\n lpm->tbl24[i].valid = INVALID;\n }\n- else {\n+ else if (lpm->tbl24[i].ext_entry == 1){\n /*\n * If TBL24 entry is extended, then there has\n * to be a rule with depth >= 25 in the\n@@ -770,6 +770,7 @@ delete_depth_small(struct rte_lpm *lpm, uint32_t ip_masked,\n\n\n struct rte_lpm_tbl8_entry new_tbl8_entry = {\n .valid = VALID,\n+ .valid_group = VALID,\n .depth = sub_rule_depth,\n .next_hop = lpm->rules_tbl\n", "prefixes": [ "dpdk-dev" ] }{ "id": 7814, "url": "