Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/54706/?format=api
http://patches.dpdk.org/api/patches/54706/?format=api", "web_url": "http://patches.dpdk.org/project/dpdk/patch/20190611155221.2703-48-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": "<20190611155221.2703-48-leyi.rong@intel.com>", "list_archive_url": "https://inbox.dpdk.org/dev/20190611155221.2703-48-leyi.rong@intel.com", "date": "2019-06-11T15:52:02", "name": "[v2,47/66] net/ice/base: introduce some new macros", "commit_ref": null, "pull_url": null, "state": "superseded", "archived": true, "hash": "6ead83052d3410d6e64e6672bedae23f2fa50158", "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/20190611155221.2703-48-leyi.rong@intel.com/mbox/", "series": [ { "id": 4981, "url": "http://patches.dpdk.org/api/series/4981/?format=api", "web_url": "http://patches.dpdk.org/project/dpdk/list/?series=4981", "date": "2019-06-11T15:51:15", "name": "shared code update", "version": 2, "mbox": "http://patches.dpdk.org/series/4981/mbox/" } ], "comments": "http://patches.dpdk.org/api/patches/54706/comments/", "check": "fail", "checks": "http://patches.dpdk.org/api/patches/54706/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 5D68A1C5BF;\n\tTue, 11 Jun 2019 17:55:23 +0200 (CEST)", "from mga02.intel.com (mga02.intel.com [134.134.136.20])\n\tby dpdk.org (Postfix) with ESMTP id AFE031C531\n\tfor <dev@dpdk.org>; Tue, 11 Jun 2019 17:54:36 +0200 (CEST)", "from orsmga001.jf.intel.com ([10.7.209.18])\n\tby orsmga101.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384;\n\t11 Jun 2019 08:54:36 -0700", "from lrong-srv-03.sh.intel.com ([10.67.119.177])\n\tby orsmga001.jf.intel.com with ESMTP; 11 Jun 2019 08:54:35 -0700" ], "X-Amp-Result": "SKIPPED(no attachment in message)", "X-Amp-File-Uploaded": "False", "X-ExtLoop1": "1", "From": "Leyi Rong <leyi.rong@intel.com>", "To": "qi.z.zhang@intel.com", "Cc": "dev@dpdk.org, Leyi Rong <leyi.rong@intel.com>,\n\tPaul M Stillwell Jr <paul.m.stillwell.jr@intel.com>", "Date": "Tue, 11 Jun 2019 23:52:02 +0800", "Message-Id": "<20190611155221.2703-48-leyi.rong@intel.com>", "X-Mailer": "git-send-email 2.17.1", "In-Reply-To": "<20190611155221.2703-1-leyi.rong@intel.com>", "References": "<20190604054248.68510-1-leyi.rong@intel.com>\n\t<20190611155221.2703-1-leyi.rong@intel.com>", "Subject": "[dpdk-dev] [PATCH v2 47/66] net/ice/base: introduce some new macros", "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": "Introduce some more new macros, like ICE_VSI_LB and the like.\n\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_flow.c | 4 +++-\n drivers/net/ice/base/ice_switch.h | 14 +++++---------\n drivers/net/ice/base/ice_type.h | 6 +++++-\n 3 files changed, 13 insertions(+), 11 deletions(-)", "diff": "diff --git a/drivers/net/ice/base/ice_flow.c b/drivers/net/ice/base/ice_flow.c\nindex b25f30c3f..f31557eac 100644\n--- a/drivers/net/ice/base/ice_flow.c\n+++ b/drivers/net/ice/base/ice_flow.c\n@@ -844,6 +844,7 @@ ice_flow_proc_segs(struct ice_hw *hw, struct ice_flow_prof_params *params)\n \n #define ICE_FLOW_FIND_PROF_CHK_FLDS\t0x00000001\n #define ICE_FLOW_FIND_PROF_CHK_VSI\t0x00000002\n+#define ICE_FLOW_FIND_PROF_NOT_CHK_DIR\t0x00000004\n \n /**\n * ice_flow_find_prof_conds - Find a profile matching headers and conditions\n@@ -863,7 +864,8 @@ ice_flow_find_prof_conds(struct ice_hw *hw, enum ice_block blk,\n \tstruct ice_flow_prof *p;\n \n \tLIST_FOR_EACH_ENTRY(p, &hw->fl_profs[blk], ice_flow_prof, l_entry) {\n-\t\tif (p->dir == dir && segs_cnt && segs_cnt == p->segs_cnt) {\n+\t\tif ((p->dir == dir || conds & ICE_FLOW_FIND_PROF_NOT_CHK_DIR) &&\n+\t\t segs_cnt && segs_cnt == p->segs_cnt) {\n \t\t\tu8 i;\n \n \t\t\t/* Check for profile-VSI association if specified */\ndiff --git a/drivers/net/ice/base/ice_switch.h b/drivers/net/ice/base/ice_switch.h\nindex 2f140a86d..05b1170c9 100644\n--- a/drivers/net/ice/base/ice_switch.h\n+++ b/drivers/net/ice/base/ice_switch.h\n@@ -11,6 +11,9 @@\n #define ICE_SW_CFG_MAX_BUF_LEN 2048\n #define ICE_MAX_SW 256\n #define ICE_DFLT_VSI_INVAL 0xff\n+#define ICE_FLTR_RX BIT(0)\n+#define ICE_FLTR_TX BIT(1)\n+#define ICE_FLTR_TX_RX (ICE_FLTR_RX | ICE_FLTR_TX)\n \n \n /* Worst case buffer length for ice_aqc_opc_get_res_alloc */\n@@ -77,9 +80,6 @@ struct ice_fltr_info {\n \t/* rule ID returned by firmware once filter rule is created */\n \tu16 fltr_rule_id;\n \tu16 flag;\n-#define ICE_FLTR_RX\t\tBIT(0)\n-#define ICE_FLTR_TX\t\tBIT(1)\n-#define ICE_FLTR_TX_RX\t\t(ICE_FLTR_RX | ICE_FLTR_TX)\n \n \t/* Source VSI for LOOKUP_TX or source port for LOOKUP_RX */\n \tu16 src;\n@@ -145,10 +145,6 @@ struct ice_sw_act_ctrl {\n \t/* Source VSI for LOOKUP_TX or source port for LOOKUP_RX */\n \tu16 src;\n \tu16 flag;\n-#define ICE_FLTR_RX BIT(0)\n-#define ICE_FLTR_TX BIT(1)\n-#define ICE_FLTR_TX_RX (ICE_FLTR_RX | ICE_FLTR_TX)\n-\n \tenum ice_sw_fwd_act_type fltr_act;\n \t/* Depending on filter action */\n \tunion {\n@@ -368,6 +364,8 @@ ice_aq_get_res_descs(struct ice_hw *hw, u16 num_entries,\n \t\t struct ice_sq_cd *cd);\n enum ice_status\n ice_add_vlan(struct ice_hw *hw, struct LIST_HEAD_TYPE *m_list);\n+enum ice_status\n+ice_remove_vlan(struct ice_hw *hw, struct LIST_HEAD_TYPE *v_list);\n void ice_rem_all_sw_rules_info(struct ice_hw *hw);\n enum ice_status ice_add_mac(struct ice_hw *hw, struct LIST_HEAD_TYPE *m_lst);\n enum ice_status ice_remove_mac(struct ice_hw *hw, struct LIST_HEAD_TYPE *m_lst);\n@@ -375,8 +373,6 @@ enum ice_status\n ice_add_eth_mac(struct ice_hw *hw, struct LIST_HEAD_TYPE *em_list);\n enum ice_status\n ice_remove_eth_mac(struct ice_hw *hw, struct LIST_HEAD_TYPE *em_list);\n-enum ice_status\n-ice_remove_vlan(struct ice_hw *hw, struct LIST_HEAD_TYPE *v_list);\n #ifndef NO_MACVLAN_SUPPORT\n enum ice_status\n ice_add_mac_vlan(struct ice_hw *hw, struct LIST_HEAD_TYPE *m_list);\ndiff --git a/drivers/net/ice/base/ice_type.h b/drivers/net/ice/base/ice_type.h\nindex e0820b679..f4e151c55 100644\n--- a/drivers/net/ice/base/ice_type.h\n+++ b/drivers/net/ice/base/ice_type.h\n@@ -84,6 +84,7 @@ static inline u32 ice_round_to_num(u32 N, u32 R)\n #define ICE_HI_WORD(x)\t\t((u16)(((x) >> 16) & 0xFFFF))\n \n /* debug masks - set these bits in hw->debug_mask to control output */\n+#define ICE_DBG_TRACE\t\tBIT_ULL(0) /* for function-trace only */\n #define ICE_DBG_INIT\t\tBIT_ULL(1)\n #define ICE_DBG_RELEASE\t\tBIT_ULL(2)\n #define ICE_DBG_FW_LOG\t\tBIT_ULL(3)\n@@ -203,6 +204,7 @@ enum ice_vsi_type {\n #ifdef ADQ_SUPPORT\n \tICE_VSI_CHNL = 4,\n #endif /* ADQ_SUPPORT */\n+\tICE_VSI_LB = 6,\n };\n \n struct ice_link_status {\n@@ -722,6 +724,8 @@ struct ice_fw_log_cfg {\n #define ICE_FW_LOG_EVNT_INIT\t(ICE_AQC_FW_LOG_INIT_EN >> ICE_AQC_FW_LOG_EN_S)\n #define ICE_FW_LOG_EVNT_FLOW\t(ICE_AQC_FW_LOG_FLOW_EN >> ICE_AQC_FW_LOG_EN_S)\n #define ICE_FW_LOG_EVNT_ERR\t(ICE_AQC_FW_LOG_ERR_EN >> ICE_AQC_FW_LOG_EN_S)\n+#define ICE_FW_LOG_EVNT_ALL\t(ICE_FW_LOG_EVNT_INFO | ICE_FW_LOG_EVNT_INIT | \\\n+\t\t\t\t ICE_FW_LOG_EVNT_FLOW | ICE_FW_LOG_EVNT_ERR)\n \tstruct ice_fw_log_evnt evnts[ICE_AQC_FW_LOG_ID_MAX];\n };\n \n@@ -953,7 +957,6 @@ enum ice_sw_fwd_act_type {\n #define ICE_SR_CSR_PROTECTED_LIST_PTR\t\t0x0D\n #define ICE_SR_MNG_CFG_PTR\t\t\t0x0E\n #define ICE_SR_EMP_MODULE_PTR\t\t\t0x0F\n-#define ICE_SR_PBA_FLAGS\t\t\t0x15\n #define ICE_SR_PBA_BLOCK_PTR\t\t\t0x16\n #define ICE_SR_BOOT_CFG_PTR\t\t\t0x17\n #define ICE_SR_NVM_WOL_CFG\t\t\t0x19\n@@ -999,6 +1002,7 @@ enum ice_sw_fwd_act_type {\n #define ICE_SR_EMP_SR_SETTINGS_PTR\t\t0x48\n #define ICE_SR_CONFIGURATION_METADATA_PTR\t0x4D\n #define ICE_SR_IMMEDIATE_VALUES_PTR\t\t0x4E\n+#define ICE_SR_POR_REGISTERS_AUTOLOAD_PTR\t0x118\n \n /* Auxiliary field, mask and shift definition for Shadow RAM and NVM Flash */\n #define ICE_SR_VPD_SIZE_WORDS\t\t512\n", "prefixes": [ "v2", "47/66" ] }{ "id": 54706, "url": "