Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/68560/?format=api
http://patchwork.dpdk.org/api/patches/68560/?format=api", "web_url": "http://patchwork.dpdk.org/project/dpdk/patch/1586962156-11179-4-git-send-email-venkatkumar.duvvuru@broadcom.com/", "project": { "id": 1, "url": "http://patchwork.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": "<1586962156-11179-4-git-send-email-venkatkumar.duvvuru@broadcom.com>", "list_archive_url": "https://inbox.dpdk.org/dev/1586962156-11179-4-git-send-email-venkatkumar.duvvuru@broadcom.com", "date": "2020-04-15T14:49:08", "name": "[03/11] net/bnxt: Added flow database resource iteration API", "commit_ref": null, "pull_url": null, "state": "superseded", "archived": true, "hash": "75917ccacd6027498734078af9065b46a52db13c", "submitter": { "id": 1635, "url": "http://patchwork.dpdk.org/api/people/1635/?format=api", "name": "Venkat Duvvuru", "email": "venkatkumar.duvvuru@broadcom.com" }, "delegate": { "id": 1766, "url": "http://patchwork.dpdk.org/api/users/1766/?format=api", "username": "ajitkhaparde", "first_name": "Ajit", "last_name": "Khaparde", "email": "ajit.khaparde@broadcom.com" }, "mbox": "http://patchwork.dpdk.org/project/dpdk/patch/1586962156-11179-4-git-send-email-venkatkumar.duvvuru@broadcom.com/mbox/", "series": [ { "id": 9397, "url": "http://patchwork.dpdk.org/api/series/9397/?format=api", "web_url": "http://patchwork.dpdk.org/project/dpdk/list/?series=9397", "date": "2020-04-15T14:49:05", "name": "enhancements to host based flow table management", "version": 1, "mbox": "http://patchwork.dpdk.org/series/9397/mbox/" } ], "comments": "http://patchwork.dpdk.org/api/patches/68560/comments/", "check": "fail", "checks": "http://patchwork.dpdk.org/api/patches/68560/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 1093FA0563;\n\tWed, 15 Apr 2020 16:50:53 +0200 (CEST)", "from [92.243.14.124] (localhost [127.0.0.1])\n\tby dpdk.org (Postfix) with ESMTP id B605D1D8FD;\n\tWed, 15 Apr 2020 16:50:31 +0200 (CEST)", "from mail-pg1-f194.google.com (mail-pg1-f194.google.com\n [209.85.215.194]) by dpdk.org (Postfix) with ESMTP id CFDB91D8FC\n for <dev@dpdk.org>; Wed, 15 Apr 2020 16:50:30 +0200 (CEST)", "by mail-pg1-f194.google.com with SMTP id n16so9608pgb.7\n for <dev@dpdk.org>; Wed, 15 Apr 2020 07:50:30 -0700 (PDT)", "from S60.dhcp.broadcom.net ([192.19.234.250])\n by smtp.gmail.com with ESMTPSA id 11sm13767969pfz.91.2020.04.15.07.50.27\n (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128);\n Wed, 15 Apr 2020 07:50:29 -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=+4TBKjpD4n70gpUzf1nnwxnIIoTBR8tGdecKzVphtfE=;\n b=OendtaeJXNhj24US4xIQM7END6uYv+IPnZ4YaajpHJj9SbDUF5HohXh76a+LcwP2Bb\n 1B+HqpZjQySr3y+8pRGNWPIbE4SN4yc6+T9yoS5Z8nrCpZD48MHNCE1Kc9oxbEF9s5ye\n qTT2AOPYIGmcY5ccIlSFo0/xuVoIiuaOfRTW0=", "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=+4TBKjpD4n70gpUzf1nnwxnIIoTBR8tGdecKzVphtfE=;\n b=GcHZH1ads99+PJ2BauyVHDuVl6zdqKSSagE6Sap53gjfK2LkrYWHqmXYamMzHReSDS\n 0LezuNpRmzkf4sbobYjQo0AOgO435DusLNybgulatSy+1QtvjMPt3WVEXnXqPnm5z/uK\n 47wZNIf9SLKXiLgsgsAseCP167TSCLFusrj++czJCgHbkoIL15ZwWmZsWOMY3x1G5h8M\n /IHZNpM86nBaBS1I5ZDQGD/2ZJAhpgtV/aubKwwvdqme1SNZT1ommOw0YoPy2qfrapxL\n eywReQ0t33Kgzq8b7AtUg02kC1ctY+8ku7aD4HPzbrWU5nbZO5G53ayYe9XSNS87ICzp\n ZDDA==", "X-Gm-Message-State": "AGi0PuYOgy1UDZ2n/VjZ5dKf8CORuOUjpDyEcGj0B2yYDUOxqNkfI7VV\n gpsb1oUBfEB0DoUIwnQoPAKOlgqqLk70TlbsfwtvSTZpmMW+B1GbIQsVnVUCPgbQppnrlww8+Ma\n 9qc1WIjrUag2ep46Bob/f09QrnL4mDRXZ2bESWxqL6hgpXQqP0xw89J4rTM4ZJyWE95xj", "X-Google-Smtp-Source": "\n APiQypLMwUkUI03HcSbXI6t8gUh1JMeYimgWyAovchOy8dlNh9KVHzVWt/z5OuVg4OYYixjQcMTyog==", "X-Received": "by 2002:a65:428a:: with SMTP id\n j10mr26745087pgp.272.1586962229610;\n Wed, 15 Apr 2020 07:50:29 -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": "Wed, 15 Apr 2020 20:19:08 +0530", "Message-Id": "\n <1586962156-11179-4-git-send-email-venkatkumar.duvvuru@broadcom.com>", "X-Mailer": "git-send-email 2.7.4", "In-Reply-To": "\n <1586962156-11179-1-git-send-email-venkatkumar.duvvuru@broadcom.com>", "References": "\n <1586962156-11179-1-git-send-email-venkatkumar.duvvuru@broadcom.com>", "Subject": "[dpdk-dev] [PATCH 03/11] net/bnxt: Added flow database resource\n\titeration API", "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 API can be used to iterate individual resource\nfunctions in the flow database.\n\nReviewed-by: Michael Baucom <michael.baucom@broadcom.com>\nSigned-off-by: Kishore Padmanabha <kishore.padmanabha@broadcom.com>\nSigned-off-by: Venkat Duvvuru <venkatkumar.duvvuru@broadcom.com>\n---\n drivers/net/bnxt/tf_ulp/ulp_flow_db.c | 66 ++++++++++++++++++++++++++++++++++-\n drivers/net/bnxt/tf_ulp/ulp_flow_db.h | 17 +++++++++\n 2 files changed, 82 insertions(+), 1 deletion(-)", "diff": "diff --git a/drivers/net/bnxt/tf_ulp/ulp_flow_db.c b/drivers/net/bnxt/tf_ulp/ulp_flow_db.c\nindex e99e94a..9e7f9f5 100644\n--- a/drivers/net/bnxt/tf_ulp/ulp_flow_db.c\n+++ b/drivers/net/bnxt/tf_ulp/ulp_flow_db.c\n@@ -560,7 +560,71 @@ int32_t\tulp_flow_db_fid_free(struct bnxt_ulp_context\t\t*ulp_ctxt,\n \treturn 0;\n }\n \n-/** Get the flow database entry iteratively\n+/*\n+ * Get the flow database entry details\n+ *\n+ * ulp_ctxt [in] Ptr to ulp_context\n+ * tbl_idx [in] Specify it is regular or default flow\n+ * fid [in] The index to the flow entry\n+ * nxt_idx [in/out] the index to the next entry\n+ * params [out] The contents to be copied into params.\n+ *\n+ * returns 0 on success and negative on failure.\n+ */\n+int32_t\tulp_flow_db_resource_get(struct bnxt_ulp_context\t*ulp_ctxt,\n+\t\t\t\t enum bnxt_ulp_flow_db_tables\ttbl_idx,\n+\t\t\t\t uint32_t\t\t\tfid,\n+\t\t\t\t uint32_t\t\t\t*nxt_idx,\n+\t\t\t\t struct ulp_flow_db_res_params\t*params)\n+{\n+\tstruct bnxt_ulp_flow_db\t\t*flow_db;\n+\tstruct bnxt_ulp_flow_tbl\t*flow_tbl;\n+\tstruct ulp_fdb_resource_info\t*nxt_resource, *fid_resource;\n+\n+\tflow_db = bnxt_ulp_cntxt_ptr2_flow_db_get(ulp_ctxt);\n+\tif (!flow_db) {\n+\t\tBNXT_TF_DBG(ERR, \"Invalid Arguments\\n\");\n+\t\treturn -EINVAL;\n+\t}\n+\n+\tif (tbl_idx >= BNXT_ULP_FLOW_TABLE_MAX) {\n+\t\tBNXT_TF_DBG(ERR, \"Invalid table index\\n\");\n+\t\treturn -EINVAL;\n+\t}\n+\n+\tflow_tbl = &flow_db->flow_tbl[tbl_idx];\n+\n+\t/* check for limits of fid */\n+\tif (fid >= flow_tbl->num_flows || !fid) {\n+\t\tBNXT_TF_DBG(ERR, \"Invalid flow index\\n\");\n+\t\treturn -EINVAL;\n+\t}\n+\n+\t/* check if the flow is active or not */\n+\tif (!ulp_flow_db_active_flow_is_set(flow_tbl, fid)) {\n+\t\tBNXT_TF_DBG(ERR, \"flow does not exist\\n\");\n+\t\treturn -EINVAL;\n+\t}\n+\n+\tif (!*nxt_idx) {\n+\t\tfid_resource = &flow_tbl->flow_resources[fid];\n+\t\tulp_flow_db_res_info_to_params(fid_resource, params);\n+\t\tULP_FLOW_DB_RES_NXT_SET(*nxt_idx,\n+\t\t\t\t\tfid_resource->nxt_resource_idx);\n+\t} else {\n+\t\tnxt_resource = &flow_tbl->flow_resources[*nxt_idx];\n+\t\tulp_flow_db_res_info_to_params(nxt_resource, params);\n+\t\t*nxt_idx = 0;\n+\t\tULP_FLOW_DB_RES_NXT_SET(*nxt_idx,\n+\t\t\t\t\tnxt_resource->nxt_resource_idx);\n+\t}\n+\n+\t/* all good, return success */\n+\treturn 0;\n+}\n+\n+/*\n+ * Get the flow database entry iteratively\n *\n * flow_tbl [in] Ptr to flow table\n * fid [in/out] The index to the flow entry\ndiff --git a/drivers/net/bnxt/tf_ulp/ulp_flow_db.h b/drivers/net/bnxt/tf_ulp/ulp_flow_db.h\nindex 5435415..5361dd0 100644\n--- a/drivers/net/bnxt/tf_ulp/ulp_flow_db.h\n+++ b/drivers/net/bnxt/tf_ulp/ulp_flow_db.h\n@@ -143,6 +143,23 @@ int32_t\tulp_flow_db_fid_free(struct bnxt_ulp_context\t\t*ulp_ctxt,\n \t\t\t uint32_t\t\t\t\tfid);\n \n /*\n+ *Get the flow database entry details\n+ *\n+ * ulp_ctxt [in] Ptr to ulp_context\n+ * tbl_idx [in] Specify it is regular or default flow\n+ * fid [in] The index to the flow entry\n+ * nxt_idx [in/out] the index to the next entry\n+ * params [out] The contents to be copied into params.\n+ *\n+ * returns 0 on success and negative on failure.\n+ */\n+int32_t\tulp_flow_db_resource_get(struct bnxt_ulp_context\t*ulp_ctxt,\n+\t\t\t\t enum bnxt_ulp_flow_db_tables\ttbl_idx,\n+\t\t\t\t uint32_t\t\t\tfid,\n+\t\t\t\t uint32_t\t\t\t*nxt_idx,\n+\t\t\t\t struct ulp_flow_db_res_params\t*params);\n+\n+/*\n * Flush all flows in the flow database.\n *\n * ulp_ctxt [in] Ptr to ulp context\n", "prefixes": [ "03/11" ] }{ "id": 68560, "url": "