Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/1227/?format=api
https://patches.dpdk.org/api/patches/1227/?format=api", "web_url": "https://patches.dpdk.org/project/dpdk/patch/1415587563-11512-2-git-send-email-huawei.xie@intel.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": "<1415587563-11512-2-git-send-email-huawei.xie@intel.com>", "list_archive_url": "https://inbox.dpdk.org/dev/1415587563-11512-2-git-send-email-huawei.xie@intel.com", "date": "2014-11-10T02:46:02", "name": "[dpdk-dev,v2,1/2] lib/librte_pmd_i40e: set vlan filter fix", "commit_ref": null, "pull_url": null, "state": "changes-requested", "archived": true, "hash": "d8b5bc601e5c4df84e34503b080e2995fa626a5e", "submitter": { "id": 16, "url": "https://patches.dpdk.org/api/people/16/?format=api", "name": "Huawei Xie", "email": "huawei.xie@intel.com" }, "delegate": null, "mbox": "https://patches.dpdk.org/project/dpdk/patch/1415587563-11512-2-git-send-email-huawei.xie@intel.com/mbox/", "series": [], "comments": "https://patches.dpdk.org/api/patches/1227/comments/", "check": "pending", "checks": "https://patches.dpdk.org/api/patches/1227/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 592EA58F1;\n\tMon, 10 Nov 2014 03:36:35 +0100 (CET)", "from mga03.intel.com (mga03.intel.com [134.134.136.65])\n\tby dpdk.org (Postfix) with ESMTP id 4AFD84A6E\n\tfor <dev@dpdk.org>; Mon, 10 Nov 2014 03:36:32 +0100 (CET)", "from orsmga001.jf.intel.com ([10.7.209.18])\n\tby orsmga103.jf.intel.com with ESMTP; 09 Nov 2014 18:43:58 -0800", "from shvmail01.sh.intel.com ([10.239.29.42])\n\tby orsmga001.jf.intel.com with ESMTP; 09 Nov 2014 18:46:13 -0800", "from shecgisg003.sh.intel.com (shecgisg003.sh.intel.com\n\t[10.239.29.90])\n\tby shvmail01.sh.intel.com with ESMTP id sAA2k9f9021010;\n\tMon, 10 Nov 2014 10:46:09 +0800", "from shecgisg003.sh.intel.com (localhost [127.0.0.1])\n\tby shecgisg003.sh.intel.com (8.13.6/8.13.6/SuSE Linux 0.8) with ESMTP\n\tid sAA2k7U9011557; Mon, 10 Nov 2014 10:46:09 +0800", "(from hxie5@localhost)\n\tby shecgisg003.sh.intel.com (8.13.6/8.13.6/Submit) id sAA2k7sD011553; \n\tMon, 10 Nov 2014 10:46:07 +0800" ], "X-ExtLoop1": "1", "X-IronPort-AV": "E=Sophos;i=\"5.07,349,1413270000\"; d=\"scan'208\";a=\"605074121\"", "From": "Huawei Xie <huawei.xie@intel.com>", "To": "dev@dpdk.org", "Date": "Mon, 10 Nov 2014 10:46:02 +0800", "Message-Id": "<1415587563-11512-2-git-send-email-huawei.xie@intel.com>", "X-Mailer": "git-send-email 1.7.4.1", "In-Reply-To": "<1415587563-11512-1-git-send-email-huawei.xie@intel.com>", "References": "<1415587563-11512-1-git-send-email-huawei.xie@intel.com>", "Subject": "[dpdk-dev] [PATCH v2 1/2] lib/librte_pmd_i40e: set vlan filter fix", "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": "\">> 5\" rather than \">> 4\"\n\nSigned-off-by: Huawei Xie <huawei.xie@intel.com>\n---\n lib/librte_pmd_i40e/i40e_ethdev.c | 7 ++-----\n 1 file changed, 2 insertions(+), 5 deletions(-)", "diff": "diff --git a/lib/librte_pmd_i40e/i40e_ethdev.c b/lib/librte_pmd_i40e/i40e_ethdev.c\nindex 5074262..c0cf3cf 100644\n--- a/lib/librte_pmd_i40e/i40e_ethdev.c\n+++ b/lib/librte_pmd_i40e/i40e_ethdev.c\n@@ -4048,14 +4048,11 @@ i40e_set_vlan_filter(struct i40e_vsi *vsi,\n {\n \tuint32_t vid_idx, vid_bit;\n \n-#define UINT32_BIT_MASK 0x1F\n-#define VALID_VLAN_BIT_MASK 0xFFF\n \t/* VFTA is 32-bits size array, each element contains 32 vlan bits, Find the\n \t * element first, then find the bits it belongs to\n \t */\n-\tvid_idx = (uint32_t) ((vlan_id & VALID_VLAN_BIT_MASK) >>\n-\t\t sizeof(uint32_t));\n-\tvid_bit = (uint32_t) (1 << (vlan_id & UINT32_BIT_MASK));\n+\tvid_idx = (uint32_t) ((vlan_id >> 5 ) & 0x7F);\n+\tvid_bit = (uint32_t) (1 << (vlan_id & 0x1F));\n \n \tif (on)\n \t\tvsi->vfta[vid_idx] |= vid_bit;\n", "prefixes": [ "dpdk-dev", "v2", "1/2" ] }{ "id": 1227, "url": "