get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 45654,
    "url": "http://patches.dpdk.org/api/patches/45654/?format=api",
    "web_url": "http://patches.dpdk.org/project/dpdk/patch/1538208822-9726-6-git-send-email-rasesh.mody@cavium.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": "<1538208822-9726-6-git-send-email-rasesh.mody@cavium.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/1538208822-9726-6-git-send-email-rasesh.mody@cavium.com",
    "date": "2018-09-29T08:14:30",
    "name": "[05/18] net/qede/base: add API to update FW RSS indirection table",
    "commit_ref": null,
    "pull_url": null,
    "state": "accepted",
    "archived": true,
    "hash": "4208e129671a7cd9c3d2c7f97f239dd1e4b27519",
    "submitter": {
        "id": 569,
        "url": "http://patches.dpdk.org/api/people/569/?format=api",
        "name": "Mody, Rasesh",
        "email": "rasesh.mody@cavium.com"
    },
    "delegate": {
        "id": 319,
        "url": "http://patches.dpdk.org/api/users/319/?format=api",
        "username": "fyigit",
        "first_name": "Ferruh",
        "last_name": "Yigit",
        "email": "ferruh.yigit@amd.com"
    },
    "mbox": "http://patches.dpdk.org/project/dpdk/patch/1538208822-9726-6-git-send-email-rasesh.mody@cavium.com/mbox/",
    "series": [
        {
            "id": 1596,
            "url": "http://patches.dpdk.org/api/series/1596/?format=api",
            "web_url": "http://patches.dpdk.org/project/dpdk/list/?series=1596",
            "date": "2018-09-29T08:13:57",
            "name": "net/qede: base driver update",
            "version": 1,
            "mbox": "http://patches.dpdk.org/series/1596/mbox/"
        }
    ],
    "comments": "http://patches.dpdk.org/api/patches/45654/comments/",
    "check": "fail",
    "checks": "http://patches.dpdk.org/api/patches/45654/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 8B0691B13E;\n\tSat, 29 Sep 2018 10:14:57 +0200 (CEST)",
            "from NAM04-CO1-obe.outbound.protection.outlook.com\n\t(mail-eopbgr690074.outbound.protection.outlook.com [40.107.69.74])\n\tby dpdk.org (Postfix) with ESMTP id 019482C37\n\tfor <dev@dpdk.org>; Sat, 29 Sep 2018 10:14:37 +0200 (CEST)",
            "from BYAPR07MB5365.namprd07.prod.outlook.com (20.177.125.18) by\n\tBYAPR07MB5320.namprd07.prod.outlook.com (20.177.124.225) with\n\tMicrosoft SMTP Server (version=TLS1_2,\n\tcipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id\n\t15.20.1143.18; Sat, 29 Sep 2018 08:14:30 +0000",
            "from BYAPR07MB5365.namprd07.prod.outlook.com\n\t([fe80::2047:9647:f196:bde0]) by\n\tBYAPR07MB5365.namprd07.prod.outlook.com\n\t([fe80::2047:9647:f196:bde0%6]) with mapi id 15.20.1143.022;\n\tSat, 29 Sep 2018 08:14:30 +0000"
        ],
        "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n\td=CAVIUMNETWORKS.onmicrosoft.com; s=selector1-cavium-com;\n\th=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck;\n\tbh=b3J6Kt3VPprRcmQWEV+D/7Njxtj14AQLzmGo4dZWke8=;\n\tb=L2s1Gy1K1BO9PlMpI5YjVRwyGdzUHFnkHQZihf0Z3uNlCChC2ERGtFZnetEyOpKm/jiaxb0vaPh3C37K/WpPNLAR1TIclTH415oODzWOnMWgC5z5nRdpPB9mD1UwvDh+uYRPyKmUSRIAmskuCrQElU9Iw8nSNWmz/9KMBNifJCU=",
        "From": "\"Mody, Rasesh\" <Rasesh.Mody@cavium.com>",
        "To": "\"dev@dpdk.org\" <dev@dpdk.org>",
        "CC": "\"Mody, Rasesh\" <Rasesh.Mody@cavium.com>, \"ferruh.yigit@intel.com\"\n\t<ferruh.yigit@intel.com>, Dept-Eng DPDK Dev <Dept-EngDPDKDev@cavium.com>",
        "Thread-Topic": "[PATCH 05/18] net/qede/base: add API to update FW RSS\n\tindirection table",
        "Thread-Index": "AQHUV8xydvbCaOoRfEuAgx7liXaw0Q==",
        "Date": "Sat, 29 Sep 2018 08:14:30 +0000",
        "Message-ID": "<1538208822-9726-6-git-send-email-rasesh.mody@cavium.com>",
        "References": "<1538208822-9726-1-git-send-email-rasesh.mody@cavium.com>",
        "In-Reply-To": "<1538208822-9726-1-git-send-email-rasesh.mody@cavium.com>",
        "Accept-Language": "en-US",
        "Content-Language": "en-US",
        "X-MS-Has-Attach": "",
        "X-MS-TNEF-Correlator": "",
        "x-clientproxiedby": "BYAPR11CA0059.namprd11.prod.outlook.com\n\t(2603:10b6:a03:80::36) To BYAPR07MB5365.namprd07.prod.outlook.com\n\t(2603:10b6:a03:64::18)",
        "authentication-results": "spf=none (sender IP is )\n\tsmtp.mailfrom=Rasesh.Mody@cavium.com; ",
        "x-ms-exchange-messagesentrepresentingtype": "1",
        "x-originating-ip": "[198.186.1.5]",
        "x-ms-publictraffictype": "Email",
        "x-microsoft-exchange-diagnostics": "1; BYAPR07MB5320;\n\t6:aCY7guFTd2zcbRzpjdv9Y5X4Qwd+jbPXVVKUhFgQJCzoxWWHGlzumlupb4v4zmYoqhCPggKXRsdfVEhzEzVwHt9yiBrcGHyRWdg2Lki4xTHKXA64Sgjyc26pUaU2oRDj0lMZcvfVsDWiYDvC7xQWtxR0mGHXou8wbWORf8kVQRG5Vv+2/iZu+mDe4WMtUQkK+XqywlBVk5T5pnujeWF6lGh6NEhhpi02Af9NBGUyp5vWoS1h1X+dWNg8VkG1tkR2QdapAl2ae5xEWflFl1VnBs0Yk19Alnb4CRH7LigCXh6Rp7Ollv3rVMuNrF/5/uAuhrtRBKCRTbs2Im5DKbWZ0gBekFGIeaikIEg5DVpyKdEzoSKzaYpTzy3z4roueKA2oqwJJNHGaakS8dkBXNMmcAwUeDMIhDB2XpCGPkMGfhBjvMYrUWLVMNZQ91LsefvJSfOS08kRzV1VcCU7fxTInw==;\n\t5:nvQmmhlH2yyxmRLM32VnTxH/DYAAvnZoQ+7Fi2LjDpHZ31IqzaaHWvilJ0Zlwshx244H/SKa9lE6v9zM/nLw6oLOI4GlAE+kx4uMhQh80AtTBSNM/+O56mcHUe5g9B+FP8Wmsdmx2ve0haQmcx0BrNYm6ZInoXx+Jxv15ZTrFAc=;\n\t7:2WWv4ej4iaKUy2o5HZZJMf0Pc5dONJUntP0dk+BD3iRfBUy8/mSJqo+m3KV0L+TExyB2NAHGiXJheCkUb4P27U3huWEyweSaRYdHdR/Slpur99n/Ovq6efSqacFkdm+MW3sG6CBAAImKXog+v3fCYJNlcZP3/mg4WWqANYbl14D/z8Qfnp8k9A379WaHhTB9Nu0sSgyuf14gSpHJ6eYNfzVSbss2hSIhn3B440Ba0uBemLr4D4SmOKfJ9vJvGuEN",
        "x-ms-office365-filtering-correlation-id": "d0eb33cc-b87c-40c2-ecca-08d625e3944c",
        "x-microsoft-antispam": "BCL:0; PCL:0;\n\tRULEID:(7020095)(4652040)(8989299)(4534165)(4627221)(201703031133081)(201702281549075)(8990200)(5600074)(711020)(2017052603328)(7153060)(7193020);\n\tSRVR:BYAPR07MB5320; ",
        "x-ms-traffictypediagnostic": "BYAPR07MB5320:",
        "x-microsoft-antispam-prvs": "<BYAPR07MB5320353FBAF76084BE507E1F9FED0@BYAPR07MB5320.namprd07.prod.outlook.com>",
        "x-exchange-antispam-report-test": "UriScan:;",
        "x-ms-exchange-senderadcheck": "1",
        "x-exchange-antispam-report-cfa-test": "BCL:0; PCL:0;\n\tRULEID:(8211001083)(6040522)(2401047)(5005006)(8121501046)(823301075)(3231355)(944501410)(52105095)(3002001)(10201501046)(93006095)(93001095)(149066)(150057)(6041310)(20161123564045)(20161123560045)(20161123558120)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123562045)(201708071742011)(7699051);\n\tSRVR:BYAPR07MB5320; BCL:0; PCL:0; RULEID:; SRVR:BYAPR07MB5320; ",
        "x-forefront-prvs": "0810818DA0",
        "x-forefront-antispam-report": "SFV:NSPM;\n\tSFS:(10009020)(376002)(366004)(396003)(136003)(346002)(39860400002)(199004)(189003)(97736004)(256004)(14454004)(4326008)(11346002)(2501003)(2900100001)(99286004)(54906003)(1730700003)(86362001)(15650500001)(68736007)(446003)(3846002)(25786009)(76176011)(5660300001)(2616005)(8676002)(305945005)(8936002)(486006)(107886003)(2351001)(26005)(2906002)(14444005)(5250100002)(71190400001)(5640700003)(36756003)(6436002)(6486002)(53936002)(316002)(72206003)(386003)(105586002)(71200400001)(6916009)(102836004)(6512007)(6116002)(6506007)(7736002)(81156014)(81166006)(186003)(52116002)(476003)(478600001)(66066001)(34290500001)(106356001);\n\tDIR:OUT; SFP:1101; SCL:1; SRVR:BYAPR07MB5320;\n\tH:BYAPR07MB5365.namprd07.prod.outlook.com; FPR:; SPF:None; LANG:en;\n\tPTR:InfoNoRecords; A:1; MX:1; ",
        "received-spf": "None (protection.outlook.com: cavium.com does not designate\n\tpermitted sender hosts)",
        "x-microsoft-antispam-message-info": "xSsuOOxgyU4P/K8Gq26JVmw5ldPbfwZchvF1HQR5DzjxwHHR5SSX1MDK4NebqkrofOMLVNkU+1LyoFB8L9gyhWnd09MO7cEOp2wRgAgx0IMoOoYxOMGrNaOZLTX8E7K8dqmjt/V4L35yUn5xNKL8dwQwv7JUfihTDthJ8s4DrOMO8hhyNS0gHr32tgaPT4wsV69z29lMWUaNAxdTEsVCus1h77jnusrl6rfcsqQvE7JRVgxZKRib60pfL79Z3aHJSj/iOlQsmq0hJK9eGxHWEb/5skIZC8eGuJpFkW4YwlvcnM+QrBr8HlpGjiZtVSeWmmSkfSNuXVfO3rl+zJmCD6X2X0uSYk7MBZgP85Y/U5k=",
        "spamdiagnosticoutput": "1:99",
        "spamdiagnosticmetadata": "NSPM",
        "Content-Type": "text/plain; charset=\"iso-8859-1\"",
        "Content-Transfer-Encoding": "quoted-printable",
        "MIME-Version": "1.0",
        "X-OriginatorOrg": "cavium.com",
        "X-MS-Exchange-CrossTenant-Network-Message-Id": "d0eb33cc-b87c-40c2-ecca-08d625e3944c",
        "X-MS-Exchange-CrossTenant-originalarrivaltime": "29 Sep 2018 08:14:30.4493\n\t(UTC)",
        "X-MS-Exchange-CrossTenant-fromentityheader": "Hosted",
        "X-MS-Exchange-CrossTenant-id": "711e4ccf-2e9b-4bcf-a551-4094005b6194",
        "X-MS-Exchange-Transport-CrossTenantHeadersStamped": "BYAPR07MB5320",
        "Subject": "[dpdk-dev] [PATCH 05/18] net/qede/base: add API to update FW RSS\n\tindirection table",
        "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": "Added ecore_update_eth_rss_ind_table_entry() api to update FW RSS\nindirection table entry according to new interface of FW 8.37.x.x.\n\nSigned-off-by: Rasesh Mody <rasesh.mody@cavium.com>\n---\n drivers/net/qede/base/ecore_l2.c     |   52 ++++++++++++++++++++++++++++++++++\n drivers/net/qede/base/ecore_l2_api.h |   24 ++++++++++++++++\n 2 files changed, 76 insertions(+)",
    "diff": "diff --git a/drivers/net/qede/base/ecore_l2.c b/drivers/net/qede/base/ecore_l2.c\nindex ec40aac..d87ffda 100644\n--- a/drivers/net/qede/base/ecore_l2.c\n+++ b/drivers/net/qede/base/ecore_l2.c\n@@ -2323,3 +2323,55 @@ enum _ecore_status_t\n \treturn ecore_init_vport_rl(p_hwfn, p_ptt, vport, rate,\n \t\t\t\t   p_link->speed);\n }\n+\n+#define RSS_TSTORM_UPDATE_STATUS_MAX_POLL_COUNT    100\n+#define RSS_TSTORM_UPDATE_STATUS_POLL_PERIOD_US    1\n+\n+enum _ecore_status_t\n+ecore_update_eth_rss_ind_table_entry(struct ecore_hwfn *p_hwfn,\n+\t\t\t\t     u8 vport_id,\n+\t\t\t\t     u8 ind_table_index,\n+\t\t\t\t     u16 ind_table_value)\n+{\n+\tstruct eth_tstorm_rss_update_data update_data = { 0 };\n+\tvoid OSAL_IOMEM *addr = OSAL_NULL;\n+\tenum _ecore_status_t rc;\n+\tu8 abs_vport_id;\n+\tu32 cnt = 0;\n+\n+\tOSAL_BUILD_BUG_ON(sizeof(update_data) != sizeof(u64));\n+\n+\trc = ecore_fw_vport(p_hwfn, vport_id, &abs_vport_id);\n+\tif (rc != ECORE_SUCCESS)\n+\t\treturn rc;\n+\n+\taddr = (u8 OSAL_IOMEM *)p_hwfn->regview +\n+\t       GTT_BAR0_MAP_REG_TSDM_RAM +\n+\t       TSTORM_ETH_RSS_UPDATE_OFFSET(p_hwfn->rel_pf_id);\n+\n+\t*(u64 *)(&update_data) = DIRECT_REG_RD64(p_hwfn, addr);\n+\n+\tfor (cnt = 0; update_data.valid &&\n+\t     cnt < RSS_TSTORM_UPDATE_STATUS_MAX_POLL_COUNT; cnt++) {\n+\t\tOSAL_UDELAY(RSS_TSTORM_UPDATE_STATUS_POLL_PERIOD_US);\n+\t\t*(u64 *)(&update_data) = DIRECT_REG_RD64(p_hwfn, addr);\n+\t}\n+\n+\tif (update_data.valid) {\n+\t\tDP_NOTICE(p_hwfn, true,\n+\t\t\t  \"rss update valid status is not clear! valid=0x%x vport id=%d ind_Table_idx=%d ind_table_value=%d.\\n\",\n+\t\t\t  update_data.valid, vport_id, ind_table_index,\n+\t\t\t  ind_table_value);\n+\n+\t\treturn ECORE_AGAIN;\n+\t}\n+\n+\tupdate_data.valid\t    = 1;\n+\tupdate_data.ind_table_index = ind_table_index;\n+\tupdate_data.ind_table_value = ind_table_value;\n+\tupdate_data.vport_id\t    = abs_vport_id;\n+\n+\tDIRECT_REG_WR64(p_hwfn, addr, *(u64 *)(&update_data));\n+\n+\treturn ECORE_SUCCESS;\n+}\ndiff --git a/drivers/net/qede/base/ecore_l2_api.h b/drivers/net/qede/base/ecore_l2_api.h\nindex bde825c..21595f3 100644\n--- a/drivers/net/qede/base/ecore_l2_api.h\n+++ b/drivers/net/qede/base/ecore_l2_api.h\n@@ -470,4 +470,28 @@ enum _ecore_status_t\n \t\t\t\t  dma_addr_t p_addr, u16 length,\n \t\t\t\t  u16 qid, u8 vport_id,\n \t\t\t\t  bool b_is_add);\n+\n+/**\n+ * @brief - ecore_update_eth_rss_ind_table_entry\n+ *\n+ * This function being used to update RSS indirection table entry to FW RAM\n+ * instead of using the SP vport update ramrod with rss params.\n+ *\n+ * Notice:\n+ * This function supports only one outstanding command per engine. Ecore\n+ * clients which use this function should call ecore_mcp_ind_table_lock() prior\n+ * to it and ecore_mcp_ind_table_unlock() after it.\n+ *\n+ * @params p_hwfn\n+ * @params vport_id\n+ * @params ind_table_index\n+ * @params ind_table_value\n+ *\n+ * @return enum _ecore_status_t\n+ */\n+enum _ecore_status_t\n+ecore_update_eth_rss_ind_table_entry(struct ecore_hwfn *p_hwfn,\n+\t\t\t\t     u8 vport_id,\n+\t\t\t\t     u8 ind_table_index,\n+\t\t\t\t     u16 ind_table_value);\n #endif\n",
    "prefixes": [
        "05/18"
    ]
}