Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/66807/?format=api
http://patches.dpdk.org/api/patches/66807/?format=api", "web_url": "http://patches.dpdk.org/project/dpdk/patch/1584459511-5353-24-git-send-email-venkatkumar.duvvuru@broadcom.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": "<1584459511-5353-24-git-send-email-venkatkumar.duvvuru@broadcom.com>", "list_archive_url": "https://inbox.dpdk.org/dev/1584459511-5353-24-git-send-email-venkatkumar.duvvuru@broadcom.com", "date": "2020-03-17T15:38:21", "name": "[23/33] net/bnxt: match rte flow actions with flow template actions", "commit_ref": null, "pull_url": null, "state": "superseded", "archived": true, "hash": "1aea5bf448cdd62d41e8ebe88eb91ce573183114", "submitter": { "id": 1635, "url": "http://patches.dpdk.org/api/people/1635/?format=api", "name": "Venkat Duvvuru", "email": "venkatkumar.duvvuru@broadcom.com" }, "delegate": { "id": 1766, "url": "http://patches.dpdk.org/api/users/1766/?format=api", "username": "ajitkhaparde", "first_name": "Ajit", "last_name": "Khaparde", "email": "ajit.khaparde@broadcom.com" }, "mbox": "http://patches.dpdk.org/project/dpdk/patch/1584459511-5353-24-git-send-email-venkatkumar.duvvuru@broadcom.com/mbox/", "series": [ { "id": 8955, "url": "http://patches.dpdk.org/api/series/8955/?format=api", "web_url": "http://patches.dpdk.org/project/dpdk/list/?series=8955", "date": "2020-03-17T15:37:58", "name": "add support for host based flow table management", "version": 1, "mbox": "http://patches.dpdk.org/series/8955/mbox/" } ], "comments": "http://patches.dpdk.org/api/patches/66807/comments/", "check": "fail", "checks": "http://patches.dpdk.org/api/patches/66807/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 ABA70A0565;\n\tTue, 17 Mar 2020 16:44:50 +0100 (CET)", "from [92.243.14.124] (localhost [127.0.0.1])\n\tby dpdk.org (Postfix) with ESMTP id F41461C1B9;\n\tTue, 17 Mar 2020 16:39:54 +0100 (CET)", "from mail-wm1-f65.google.com (mail-wm1-f65.google.com\n [209.85.128.65]) by dpdk.org (Postfix) with ESMTP id 52A841C193\n for <dev@dpdk.org>; Tue, 17 Mar 2020 16:39:53 +0100 (CET)", "by mail-wm1-f65.google.com with SMTP id f7so22533269wml.4\n for <dev@dpdk.org>; Tue, 17 Mar 2020 08:39:53 -0700 (PDT)", "from S60.dhcp.broadcom.net ([192.19.234.250])\n by smtp.gmail.com with ESMTPSA id q4sm5052142wro.56.2020.03.17.08.39.48\n (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128);\n Tue, 17 Mar 2020 08:39:50 -0700 (PDT)" ], "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed; d=broadcom.com;\n s=google;\n h=from:to:cc:subject:date:message-id:in-reply-to:references;\n bh=o+VwIk6n0dmrjhe+EaQhsG+erQJnm8dpqthzREm66+I=;\n b=JdJrr+RSxpoqTSdYIW3lA0if5vfS4nMTGlJaOyhNRdLiK9yv9jKlDRlauI4n42bqMr\n QWyaJ/FlSlA0v5NMYczh02zNNjWr4+xfnpJoh5siN9BeTUSNhbdbTPpkgbY9GzdEjNkT\n fraHQcuWRn5IWhdovkJKaOOsgQWHLLnKKy0rY=", "X-Google-DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n d=1e100.net; s=20161025;\n h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to\n :references;\n bh=o+VwIk6n0dmrjhe+EaQhsG+erQJnm8dpqthzREm66+I=;\n b=b1Az6iJj/5AhKA5GiHI/ttyBWFdsj0sMXz+6u0mpxfZTU4GbMIGjFbUyGIB0VhNmw3\n WNiJRcB9yAewjF62Y6VcFsakNlpiAIXpQajWnWS9xVhu4bstE5KW5QxMZKQoXjFVTRPi\n +dLTZCVCDkJ+2PDqIyjXxHKEZ94b8o0WDvejllJgO9jCtA4GM/a3ObvPBCbMeziY2bTb\n 5Wk3kCDUlzsWbPFD/xsnXQU9rmk7nV90gRx6cvz/hJBmXNOq8vKUQ8en22yzIp1no/KX\n uCWuORQTYA3oWx2AF/oxQhIMyW5SL4zOcsZhmwSrFeobFKA4CTZ1r4J8bWUQxnzWY0rk\n YbDw==", "X-Gm-Message-State": "ANhLgQ0UlciPxxww73Q52MCyjO9JLiE6pNu+HK5U3qSVdNqUrkEeP/VO\n Omy0fw1+DzL0L3gzEzC4fQm5tLb94R/IfVFxH55tqhGWIb3CGUqfHINtdqybteowmLFual4hLtg\n 4Wl7tl8mTXUWniQevZlSBgwytF7nR79DjPCQ7yliATTux/CA+Xy4rrxsvprIPn0X4TprJ", "X-Google-Smtp-Source": "\n ADFU+vtJtLbU97JSY8fkeWGMrV2BiJbBWWp5MEWrP+rE+KD6vEVNSglAVizYJ9nowVdlN7gPXUfsew==", "X-Received": "by 2002:a1c:f214:: with SMTP id s20mr5665930wmc.57.1584459590765;\n Tue, 17 Mar 2020 08:39:50 -0700 (PDT)", "From": "Venkat Duvvuru <venkatkumar.duvvuru@broadcom.com>", "To": "dev@dpdk.org", "Cc": "Kishore Padmanabha <kishore.padmanabha@broadcom.com>,\n Venkat Duvvuru <venkatkumar.duvvuru@broadcom.com>", "Date": "Tue, 17 Mar 2020 21:08:21 +0530", "Message-Id": "\n <1584459511-5353-24-git-send-email-venkatkumar.duvvuru@broadcom.com>", "X-Mailer": "git-send-email 2.7.4", "In-Reply-To": "\n <1584459511-5353-1-git-send-email-venkatkumar.duvvuru@broadcom.com>", "References": "\n <1584459511-5353-1-git-send-email-venkatkumar.duvvuru@broadcom.com>", "Subject": "[dpdk-dev] [PATCH 23/33] net/bnxt: match rte flow actions with flow\n\ttemplate actions", "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: Kishore Padmanabha <kishore.padmanabha@broadcom.com>\n\nThis patch does the following\n1. Takes act_bitmap generated from the rte_flow_actions\n2. Iterates through the static act_bitmap list\n3. Returns success if a match is found, otherwise an error\n\nSigned-off-by: Kishore Padmanabha <kishore.padmanabha@broadcom.com>\nSigned-off-by: Venkat Duvvuru <venkatkumar.duvvuru@broadcom.com>\nReviewed-by: Lance Richardson <lance.richardson@broadcom.com>\nReviewed-by: Ajit Kumar Khaparde <ajit.khaparde@broadcom.com>\n---\n drivers/net/bnxt/tf_ulp/ulp_matcher.c | 36 +++++++++++++++++++++++++++\n drivers/net/bnxt/tf_ulp/ulp_matcher.h | 9 +++++++\n drivers/net/bnxt/tf_ulp/ulp_template_db.c | 12 +++++++++\n drivers/net/bnxt/tf_ulp/ulp_template_db.h | 2 ++\n drivers/net/bnxt/tf_ulp/ulp_template_struct.h | 10 ++++++++\n 5 files changed, 69 insertions(+)", "diff": "diff --git a/drivers/net/bnxt/tf_ulp/ulp_matcher.c b/drivers/net/bnxt/tf_ulp/ulp_matcher.c\nindex f367e4c..040d08d 100644\n--- a/drivers/net/bnxt/tf_ulp/ulp_matcher.c\n+++ b/drivers/net/bnxt/tf_ulp/ulp_matcher.c\n@@ -150,3 +150,39 @@ ulp_matcher_pattern_match(enum ulp_direction_type dir,\n \t*class_id = 0;\n \treturn BNXT_TF_RC_ERROR;\n }\n+\n+/*\n+ * Function to handle the matching of RTE Flows and validating\n+ * the action against the flow templates.\n+ */\n+int32_t\n+ulp_matcher_action_match(enum ulp_direction_type\t\tdir,\n+\t\t\t struct ulp_rte_act_bitmap\t\t*act_bitmap,\n+\t\t\t uint32_t\t\t\t\t*act_id)\n+{\n+\tstruct bnxt_ulp_action_match_info\t*sel_act_match;\n+\tuint32_t\t\t\t\tact_num, idx;\n+\n+\t/* Select the ingress or egress template to match against */\n+\tif (dir == ULP_DIR_INGRESS) {\n+\t\tsel_act_match = ulp_ingress_act_match_list;\n+\t\tact_num = BNXT_ULP_INGRESS_ACT_MATCH_SZ;\n+\t} else {\n+\t\tsel_act_match = ulp_egress_act_match_list;\n+\t\tact_num = BNXT_ULP_EGRESS_ACT_MATCH_SZ;\n+\t}\n+\n+\t/* Loop through the list of action templates to find the match */\n+\tfor (idx = 0; idx < act_num; idx++, sel_act_match++) {\n+\t\tif (!ULP_BITSET_CMP(&sel_act_match->act_bitmap,\n+\t\t\t\t act_bitmap)) {\n+\t\t\t*act_id = sel_act_match->act_tmpl_id;\n+\t\t\tBNXT_TF_DBG(DEBUG, \"Found matching action template %u\\n\",\n+\t\t\t\t *act_id);\n+\t\t\treturn BNXT_TF_RC_SUCCESS;\n+\t\t}\n+\t}\n+\tBNXT_TF_DBG(DEBUG, \"Did not find any matching action template\\n\");\n+\t*act_id = 0;\n+\treturn BNXT_TF_RC_ERROR;\n+}\ndiff --git a/drivers/net/bnxt/tf_ulp/ulp_matcher.h b/drivers/net/bnxt/tf_ulp/ulp_matcher.h\nindex 57a161d..c818bbe 100644\n--- a/drivers/net/bnxt/tf_ulp/ulp_matcher.h\n+++ b/drivers/net/bnxt/tf_ulp/ulp_matcher.h\n@@ -23,4 +23,13 @@ ulp_matcher_pattern_match(enum ulp_direction_type\t dir,\n \t\t\t struct ulp_rte_act_bitmap\t *act_bitmap,\n \t\t\t uint32_t\t\t\t *class_id);\n \n+/*\n+ * Function to handle the matching of RTE Flows and validating\n+ * the action against the flow templates.\n+ */\n+int32_t\n+ulp_matcher_action_match(enum ulp_direction_type\tdir,\n+\t\t\t struct ulp_rte_act_bitmap\t*act_bitmap,\n+\t\t\t uint32_t\t\t\t*act_id);\n+\n #endif /* ULP_MATCHER_H_ */\ndiff --git a/drivers/net/bnxt/tf_ulp/ulp_template_db.c b/drivers/net/bnxt/tf_ulp/ulp_template_db.c\nindex 68a2dc0..5981c74 100644\n--- a/drivers/net/bnxt/tf_ulp/ulp_template_db.c\n+++ b/drivers/net/bnxt/tf_ulp/ulp_template_db.c\n@@ -1119,6 +1119,18 @@ struct bnxt_ulp_mapper_ident_info ulp_ident_list[] = {\n \t}\n };\n \n+struct bnxt_ulp_action_match_info ulp_ingress_act_match_list[] = {\n+\t{\n+\t.act_bitmap = { .bits =\n+\t\tBNXT_ULP_ACTION_BIT_MARK |\n+\t\tBNXT_ULP_ACTION_BIT_RSS },\n+\t.act_tmpl_id = 0\n+\t}\n+};\n+\n+struct bnxt_ulp_action_match_info ulp_egress_act_match_list[] = {\n+};\n+\n struct bnxt_ulp_mapper_tbl_list_info ulp_act_tmpl_list[] = {\n \t[((0 << BNXT_ULP_LOG2_MAX_NUM_DEV) | BNXT_ULP_DEVICE_ID_WH_PLUS)] = {\n \t.device_name = BNXT_ULP_DEVICE_ID_WH_PLUS,\ndiff --git a/drivers/net/bnxt/tf_ulp/ulp_template_db.h b/drivers/net/bnxt/tf_ulp/ulp_template_db.h\nindex 319500a..f4850bf 100644\n--- a/drivers/net/bnxt/tf_ulp/ulp_template_db.h\n+++ b/drivers/net/bnxt/tf_ulp/ulp_template_db.h\n@@ -15,6 +15,8 @@\n #define BNXT_ULP_LOG2_MAX_NUM_DEV 2\n #define BNXT_ULP_INGRESS_HDR_MATCH_SZ 2\n #define BNXT_ULP_EGRESS_HDR_MATCH_SZ 1\n+#define BNXT_ULP_INGRESS_ACT_MATCH_SZ 2\n+#define BNXT_ULP_EGRESS_ACT_MATCH_SZ 1\n \n enum bnxt_ulp_action_bit {\n \tBNXT_ULP_ACTION_BIT_MARK = 0x0000000000000001,\ndiff --git a/drivers/net/bnxt/tf_ulp/ulp_template_struct.h b/drivers/net/bnxt/tf_ulp/ulp_template_struct.h\nindex dd06fb1..0e811ec 100644\n--- a/drivers/net/bnxt/tf_ulp/ulp_template_struct.h\n+++ b/drivers/net/bnxt/tf_ulp/ulp_template_struct.h\n@@ -62,6 +62,16 @@ extern struct bnxt_ulp_header_match_info ulp_egress_hdr_match_list[];\n /* Flow field match Information Structure Array defined in template source*/\n extern struct bnxt_ulp_matcher_field_info\tulp_field_match[];\n \n+/* Flow Matcher Action structures */\n+struct bnxt_ulp_action_match_info {\n+\tstruct ulp_rte_act_bitmap\t\tact_bitmap;\n+\tuint32_t\t\t\t\tact_tmpl_id;\n+};\n+\n+/* Flow Matcher templates Structure Array defined in template source */\n+extern struct bnxt_ulp_action_match_info ulp_ingress_act_match_list[];\n+extern struct bnxt_ulp_action_match_info ulp_egress_act_match_list[];\n+\n /* Device specific parameters */\n struct bnxt_ulp_device_params {\n \tuint8_t\t\t\t\tdescription[16];\n", "prefixes": [ "23/33" ] }{ "id": 66807, "url": "