Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/76272/?format=api
https://patches.dpdk.org/api/patches/76272/?format=api", "web_url": "https://patches.dpdk.org/project/dpdk/patch/1598980729-19850-1-git-send-email-rahul.lakkireddy@chelsio.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": "<1598980729-19850-1-git-send-email-rahul.lakkireddy@chelsio.com>", "list_archive_url": "https://inbox.dpdk.org/dev/1598980729-19850-1-git-send-email-rahul.lakkireddy@chelsio.com", "date": "2020-09-01T17:18:49", "name": "net/cxgbe: fix duplicate MAC addresses in MPS TCAM", "commit_ref": null, "pull_url": null, "state": "superseded", "archived": true, "hash": "1acae613a91c3bc9201a927910d77ec0f3f92528", "submitter": { "id": 241, "url": "https://patches.dpdk.org/api/people/241/?format=api", "name": "Rahul Lakkireddy", "email": "rahul.lakkireddy@chelsio.com" }, "delegate": { "id": 319, "url": "https://patches.dpdk.org/api/users/319/?format=api", "username": "fyigit", "first_name": "Ferruh", "last_name": "Yigit", "email": "ferruh.yigit@amd.com" }, "mbox": "https://patches.dpdk.org/project/dpdk/patch/1598980729-19850-1-git-send-email-rahul.lakkireddy@chelsio.com/mbox/", "series": [ { "id": 11882, "url": "https://patches.dpdk.org/api/series/11882/?format=api", "web_url": "https://patches.dpdk.org/project/dpdk/list/?series=11882", "date": "2020-09-01T17:18:49", "name": "net/cxgbe: fix duplicate MAC addresses in MPS TCAM", "version": 1, "mbox": "https://patches.dpdk.org/series/11882/mbox/" } ], "comments": "https://patches.dpdk.org/api/patches/76272/comments/", "check": "warning", "checks": "https://patches.dpdk.org/api/patches/76272/checks/", "tags": {}, "related": [], "headers": { "Return-Path": "<dev-bounces@dpdk.org>", "X-Original-To": "patchwork@inbox.dpdk.org", "Delivered-To": "patchwork@inbox.dpdk.org", "Received": [ "from dpdk.org (dpdk.org [92.243.14.124])\n\tby inbox.dpdk.org (Postfix) with ESMTP id E0567A04AC;\n\tTue, 1 Sep 2020 19:33:05 +0200 (CEST)", "from [92.243.14.124] (localhost [127.0.0.1])\n\tby dpdk.org (Postfix) with ESMTP id 9D21D1C0B1;\n\tTue, 1 Sep 2020 19:33:05 +0200 (CEST)", "from stargate.chelsio.com (stargate.chelsio.com [12.32.117.8])\n by dpdk.org (Postfix) with ESMTP id 8BCFA1C0B0;\n Tue, 1 Sep 2020 19:33:04 +0200 (CEST)", "from localhost (scalar.blr.asicdesigners.com [10.193.185.94])\n by stargate.chelsio.com (8.13.8/8.13.8) with ESMTP id 081HX1Mb013794;\n Tue, 1 Sep 2020 10:33:01 -0700" ], "From": "Rahul Lakkireddy <rahul.lakkireddy@chelsio.com>", "To": "dev@dpdk.org", "Cc": "kaara.satwik@chelsio.com, stable@dpdk.org", "Date": "Tue, 1 Sep 2020 22:48:49 +0530", "Message-Id": "<1598980729-19850-1-git-send-email-rahul.lakkireddy@chelsio.com>", "X-Mailer": "git-send-email 2.5.3", "Subject": "[dpdk-dev] [PATCH] net/cxgbe: fix duplicate MAC addresses in MPS\n\tTCAM", "X-BeenThere": "dev@dpdk.org", "X-Mailman-Version": "2.1.15", "Precedence": "list", "List-Id": "DPDK patches and discussions <dev.dpdk.org>", "List-Unsubscribe": "<https://mails.dpdk.org/options/dev>,\n <mailto:dev-request@dpdk.org?subject=unsubscribe>", "List-Archive": "<http://mails.dpdk.org/archives/dev/>", "List-Post": "<mailto:dev@dpdk.org>", "List-Help": "<mailto:dev-request@dpdk.org?subject=help>", "List-Subscribe": "<https://mails.dpdk.org/listinfo/dev>,\n <mailto:dev-request@dpdk.org?subject=subscribe>", "Errors-To": "dev-bounces@dpdk.org", "Sender": "\"dev\" <dev-bounces@dpdk.org>" }, "content": "From: Karra Satwik <kaara.satwik@chelsio.com>\n\nDuring MAC address insertion to MPS TCAM, add a default mask when\nthe mask is not explicitly specified. Othewise, driver misses the\nmask comparison and ends up inserting duplicate entries in the\nMPS TCAM.\n\nFixes: 6fda3f0ddda9 (\"net/cxgbe: add API to program hardware MPS table\")\nCc: stable@dpdk.org\n\nSigned-off-by: Karra Satwik <kaara.satwik@chelsio.com>\nSigned-off-by: Rahul Lakkireddy <rahul.lakkireddy@chelsio.com>\n---\n drivers/net/cxgbe/mps_tcam.c | 1 +\n 1 file changed, 1 insertion(+)", "diff": "diff --git a/drivers/net/cxgbe/mps_tcam.c b/drivers/net/cxgbe/mps_tcam.c\nindex 5302d1343..6e5fae992 100644\n--- a/drivers/net/cxgbe/mps_tcam.c\n+++ b/drivers/net/cxgbe/mps_tcam.c\n@@ -140,6 +140,7 @@ int cxgbe_mpstcam_modify(struct port_info *pi, int idx, const u8 *addr)\n \t/* idx can now be different from what user provided */\n \tentry = &mpstcam->entry[idx];\n \tmemcpy(entry->eth_addr, addr, RTE_ETHER_ADDR_LEN);\n+\tmemset(entry->mask, ~0, RTE_ETHER_ADDR_LEN);\n \t/* NOTE: we have considered the case that idx returned by t4_change_mac\n \t * will be different from the user provided value only if user\n \t * provided value is -1\n", "prefixes": [] }{ "id": 76272, "url": "