get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

GET /api/patches/68410/?format=api
HTTP 200 OK
Allow: GET, PUT, PATCH, HEAD, OPTIONS
Content-Type: application/json
Vary: Accept

{
    "id": 68410,
    "url": "http://patches.dpdk.org/api/patches/68410/?format=api",
    "web_url": "http://patches.dpdk.org/project/dpdk/patch/1586852011-37536-25-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": "<1586852011-37536-25-git-send-email-venkatkumar.duvvuru@broadcom.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/1586852011-37536-25-git-send-email-venkatkumar.duvvuru@broadcom.com",
    "date": "2020-04-14T08:13:21",
    "name": "[v3,24/34] net/bnxt: match rte flow actions with flow template actions",
    "commit_ref": null,
    "pull_url": null,
    "state": "superseded",
    "archived": true,
    "hash": "d5e4035bfde73cf49b31c07faa3ccd0b6c0f419e",
    "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/1586852011-37536-25-git-send-email-venkatkumar.duvvuru@broadcom.com/mbox/",
    "series": [
        {
            "id": 9362,
            "url": "http://patches.dpdk.org/api/series/9362/?format=api",
            "web_url": "http://patches.dpdk.org/project/dpdk/list/?series=9362",
            "date": "2020-04-14T08:12:57",
            "name": "add support for host based flow table management",
            "version": 3,
            "mbox": "http://patches.dpdk.org/series/9362/mbox/"
        }
    ],
    "comments": "http://patches.dpdk.org/api/patches/68410/comments/",
    "check": "fail",
    "checks": "http://patches.dpdk.org/api/patches/68410/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 A5F9EA0577;\n\tTue, 14 Apr 2020 10:19:12 +0200 (CEST)",
            "from [92.243.14.124] (localhost [127.0.0.1])\n\tby dpdk.org (Postfix) with ESMTP id 144121C221;\n\tTue, 14 Apr 2020 10:14:51 +0200 (CEST)",
            "from mail-pl1-f195.google.com (mail-pl1-f195.google.com\n [209.85.214.195]) by dpdk.org (Postfix) with ESMTP id F1B381C439\n for <dev@dpdk.org>; Tue, 14 Apr 2020 10:14:49 +0200 (CEST)",
            "by mail-pl1-f195.google.com with SMTP id t16so564047plo.7\n for <dev@dpdk.org>; Tue, 14 Apr 2020 01:14:49 -0700 (PDT)",
            "from S60.dhcp.broadcom.net ([192.19.234.250])\n by smtp.gmail.com with ESMTPSA id e196sm671176pfh.43.2020.04.14.01.14.46\n (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128);\n Tue, 14 Apr 2020 01:14:48 -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=pS+9yWGv4uKgNhltBAApmnhb1slz3B5nvMDJn6GW8c4=;\n b=MBlBRgAfxhPRJ19SgM144Fedqp0IqxSAtuPvT6MAZhtrub6DXc+kNenRUWmpWsgyR2\n 1VYM32Nhv9YTNpAUJKKFBWMsqMUGBjX/S/BP0HUgPS/HHFzb+rEwEt8d7V3lQwKqx5Hq\n wpESxdM7Q75hpXCc+C0hcd1WFdceYMwljG798=",
        "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=pS+9yWGv4uKgNhltBAApmnhb1slz3B5nvMDJn6GW8c4=;\n b=rVlrLddpiHfmeJ7mDrOzVaR5q5LAXyXvpk9NxE64wlHls1NffbP3zuqJUk3QGi11d6\n /KmM2WVg4r000sZchaSNOeLoMF3UiK6xBrTDiaQ42a/cUl/u6KeavlK20xCTVhROw52I\n ChoOs7KOPAb91z9dn4u0ox0vFauKFxEgOBldNE5xImI6IQ2LQO2GwjRXeh1zjAeT0QCx\n Lst5bGCMrH7mKnLqO33AR02TTKiz8CwQnLESNzg1HObuA2JeUC0LX7sTI7T7pPK4LRT1\n tWEp2Dl+WSUNTlD/KnqDHkZmEbW1AVJM9YpcXJyJ1wa6cL1ADiSCqC3O9TLZolIsXR4B\n s+kw==",
        "X-Gm-Message-State": "AGi0PuY+6jGAn3gBsyy78Z1B/n5spfs+TS8z1+FSNh0LepW2RTZNoQOn\n 1uEjykyT8O0oJ6o9KkkXQt/+QQNBPKXcI3sPJxbumepp5LiYBDNpVzI1Mr0sPjdAqJzBn4qNceG\n kvh4fyx2YBwdyAfoQnFAiU3/zjzL/xrPm6aJOvwC+sB7iLO3Piq1ifb1iIwTOz/k5a1Kh",
        "X-Google-Smtp-Source": "\n APiQypIoaro6hvKFzaROzsDmi4C/2LIF49D3skrIOEo/HumypHh/C0UMP1T4I5Slr+0EuNAu9Qaqgg==",
        "X-Received": "by 2002:a17:90a:ec02:: with SMTP id\n l2mr26211541pjy.126.1586852088749;\n Tue, 14 Apr 2020 01:14:48 -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, 14 Apr 2020 13:43:21 +0530",
        "Message-Id": "\n <1586852011-37536-25-git-send-email-venkatkumar.duvvuru@broadcom.com>",
        "X-Mailer": "git-send-email 2.7.4",
        "In-Reply-To": "\n <1586852011-37536-1-git-send-email-venkatkumar.duvvuru@broadcom.com>",
        "References": "\n <1586806811-21736-1-git-send-email-venkatkumar.duvvuru@broadcom.com>\n <1586852011-37536-1-git-send-email-venkatkumar.duvvuru@broadcom.com>",
        "Subject": "[dpdk-dev] [PATCH v3 24/34] net/bnxt: match rte flow actions with\n\tflow template 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..ec4121d 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 act 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 9fc4b08..5a5b1f1 100644\n--- a/drivers/net/bnxt/tf_ulp/ulp_template_db.c\n+++ b/drivers/net/bnxt/tf_ulp/ulp_template_db.c\n@@ -1121,6 +1121,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": [
        "v3",
        "24/34"
    ]
}