Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/55057/?format=api
http://patches.dpdk.org/api/patches/55057/?format=api", "web_url": "http://patches.dpdk.org/project/dpdk/patch/20190619151846.113820-65-leyi.rong@intel.com/", "project": { "id": 1, "url": "http://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": "<20190619151846.113820-65-leyi.rong@intel.com>", "list_archive_url": "https://inbox.dpdk.org/dev/20190619151846.113820-65-leyi.rong@intel.com", "date": "2019-06-19T15:18:41", "name": "[v3,64/69] net/ice/base: fix for chained recipe switch ID index", "commit_ref": null, "pull_url": null, "state": "accepted", "archived": true, "hash": "da21e3e2e3ca143c8e2e54573ba6999c99ee0692", "submitter": { "id": 1204, "url": "http://patches.dpdk.org/api/people/1204/?format=api", "name": "Leyi Rong", "email": "leyi.rong@intel.com" }, "delegate": { "id": 1540, "url": "http://patches.dpdk.org/api/users/1540/?format=api", "username": "qzhan15", "first_name": "Qi", "last_name": "Zhang", "email": "qi.z.zhang@intel.com" }, "mbox": "http://patches.dpdk.org/project/dpdk/patch/20190619151846.113820-65-leyi.rong@intel.com/mbox/", "series": [ { "id": 5083, "url": "http://patches.dpdk.org/api/series/5083/?format=api", "web_url": "http://patches.dpdk.org/project/dpdk/list/?series=5083", "date": "2019-06-19T15:17:37", "name": "shared code update", "version": 3, "mbox": "http://patches.dpdk.org/series/5083/mbox/" } ], "comments": "http://patches.dpdk.org/api/patches/55057/comments/", "check": "success", "checks": "http://patches.dpdk.org/api/patches/55057/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 [127.0.0.1])\n\tby dpdk.org (Postfix) with ESMTP id 6C10D1CDF1;\n\tWed, 19 Jun 2019 17:22:51 +0200 (CEST)", "from mga01.intel.com (mga01.intel.com [192.55.52.88])\n\tby dpdk.org (Postfix) with ESMTP id 8FC821C553\n\tfor <dev@dpdk.org>; Wed, 19 Jun 2019 17:21:36 +0200 (CEST)", "from orsmga006.jf.intel.com ([10.7.209.51])\n\tby fmsmga101.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384;\n\t19 Jun 2019 08:21:36 -0700", "from lrong-srv-03.sh.intel.com ([10.67.119.177])\n\tby orsmga006.jf.intel.com with ESMTP; 19 Jun 2019 08:21:35 -0700" ], "X-Amp-Result": "SKIPPED(no attachment in message)", "X-Amp-File-Uploaded": "False", "X-ExtLoop1": "1", "X-IronPort-AV": "E=Sophos;i=\"5.63,392,1557212400\"; d=\"scan'208\";a=\"165050594\"", "From": "Leyi Rong <leyi.rong@intel.com>", "To": "qi.z.zhang@intel.com", "Cc": "dev@dpdk.org, Leyi Rong <leyi.rong@intel.com>,\n\tDan Nowlin <dan.nowlin@intel.com>,\n\tPaul M Stillwell Jr <paul.m.stillwell.jr@intel.com>", "Date": "Wed, 19 Jun 2019 23:18:41 +0800", "Message-Id": "<20190619151846.113820-65-leyi.rong@intel.com>", "X-Mailer": "git-send-email 2.17.1", "In-Reply-To": "<20190619151846.113820-1-leyi.rong@intel.com>", "References": "<20190611155221.2703-1-leyi.rong@intel.com>\n\t<20190619151846.113820-1-leyi.rong@intel.com>", "Subject": "[dpdk-dev] [PATCH v3 64/69] net/ice/base: fix for chained recipe\n\tswitch ID index", "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\t<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\t<mailto:dev-request@dpdk.org?subject=subscribe>", "Errors-To": "dev-bounces@dpdk.org", "Sender": "\"dev\" <dev-bounces@dpdk.org>" }, "content": "For chained recipe entry, the field vector index used to match\nswitch ID should always be zero.\n\nAdd ICE_AQ_SW_ID_LKUP_IDX define to indicate the FV index used\nto extract the switch ID.\n\nFixes: dca90ed479cf (\"net/ice/base: programming a new switch recipe\")\n\nSigned-off-by: Dan Nowlin <dan.nowlin@intel.com>\nSigned-off-by: Paul M Stillwell Jr <paul.m.stillwell.jr@intel.com>\nSigned-off-by: Leyi Rong <leyi.rong@intel.com>\n---\n drivers/net/ice/base/ice_adminq_cmd.h | 1 +\n drivers/net/ice/base/ice_switch.c | 11 ++++++-----\n 2 files changed, 7 insertions(+), 5 deletions(-)", "diff": "diff --git a/drivers/net/ice/base/ice_adminq_cmd.h b/drivers/net/ice/base/ice_adminq_cmd.h\nindex 1fdd612a1..8b8ed7a73 100644\n--- a/drivers/net/ice/base/ice_adminq_cmd.h\n+++ b/drivers/net/ice/base/ice_adminq_cmd.h\n@@ -711,6 +711,7 @@ struct ice_aqc_recipe_content {\n #define ICE_AQ_RECIPE_ID_S\t\t0\n #define ICE_AQ_RECIPE_ID_M\t\t(0x3F << ICE_AQ_RECIPE_ID_S)\n #define ICE_AQ_RECIPE_ID_IS_ROOT\tBIT(7)\n+#define ICE_AQ_SW_ID_LKUP_IDX\t\t0\n \tu8 lkup_indx[5];\n #define ICE_AQ_RECIPE_LKUP_DATA_S\t0\n #define ICE_AQ_RECIPE_LKUP_DATA_M\t(0x3F << ICE_AQ_RECIPE_LKUP_DATA_S)\ndiff --git a/drivers/net/ice/base/ice_switch.c b/drivers/net/ice/base/ice_switch.c\nindex 7f4edd274..660d491ed 100644\n--- a/drivers/net/ice/base/ice_switch.c\n+++ b/drivers/net/ice/base/ice_switch.c\n@@ -4737,8 +4737,8 @@ ice_add_sw_recipe(struct ice_hw *hw, struct ice_sw_recipe *rm,\n \t\t\t sizeof(buf[recps].content.lkup_indx),\n \t\t\t ICE_NONDMA_MEM);\n \n-\t\t/* All recipes use look-up field index 0 to match switch ID. */\n-\t\tbuf[recps].content.lkup_indx[0] = 0;\n+\t\t/* All recipes use look-up index 0 to match switch ID. */\n+\t\tbuf[recps].content.lkup_indx[0] = ICE_AQ_SW_ID_LKUP_IDX;\n \t\tbuf[recps].content.mask[0] =\n \t\t\tCPU_TO_LE16(ICE_AQ_SW_ID_LKUP_MASK);\n \t\t/* Setup lkup_indx 1..4 to INVALID/ignore and set the mask\n@@ -4804,7 +4804,7 @@ ice_add_sw_recipe(struct ice_hw *hw, struct ice_sw_recipe *rm,\n \t\tbuf[0].content.act_ctrl_fwd_priority = rm->priority;\n \t} else {\n \t\tstruct ice_recp_grp_entry *last_chain_entry;\n-\t\tu16 rid, i = 0;\n+\t\tu16 rid, i;\n \n \t\t/* Allocate the last recipe that will chain the outcomes of the\n \t\t * other recipes together\n@@ -4829,8 +4829,9 @@ ice_add_sw_recipe(struct ice_hw *hw, struct ice_sw_recipe *rm,\n \t\tice_memset(&buf[recps].content.lkup_indx, 0,\n \t\t\t sizeof(buf[recps].content.lkup_indx),\n \t\t\t ICE_NONDMA_MEM);\n-\t\tbuf[recps].content.lkup_indx[i] = hw->port_info->sw_id;\n-\t\tbuf[recps].content.mask[i] =\n+\t\t/* All recipes use look-up index 0 to match switch ID. */\n+\t\tbuf[recps].content.lkup_indx[0] = ICE_AQ_SW_ID_LKUP_IDX;\n+\t\tbuf[recps].content.mask[0] =\n \t\t\tCPU_TO_LE16(ICE_AQ_SW_ID_LKUP_MASK);\n \t\tfor (i = 1; i <= ICE_NUM_WORDS_RECIPE; i++) {\n \t\t\tbuf[recps].content.lkup_indx[i] =\n", "prefixes": [ "v3", "64/69" ] }{ "id": 55057, "url": "