get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 27786,
    "url": "https://patches.dpdk.org/api/patches/27786/?format=api",
    "web_url": "https://patches.dpdk.org/project/dpdk/patch/20170823141213.25476-16-shreyansh.jain@nxp.com/",
    "project": {
        "id": 1,
        "url": "https://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": "<20170823141213.25476-16-shreyansh.jain@nxp.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/20170823141213.25476-16-shreyansh.jain@nxp.com",
    "date": "2017-08-23T14:11:48",
    "name": "[dpdk-dev,v3,15/40] bus/dpaa: add fman flow control threshold setting",
    "commit_ref": null,
    "pull_url": null,
    "state": "superseded",
    "archived": true,
    "hash": "ed1a6b458394e860cd72e7e226cd95daae84f0c8",
    "submitter": {
        "id": 497,
        "url": "https://patches.dpdk.org/api/people/497/?format=api",
        "name": "Shreyansh Jain",
        "email": "shreyansh.jain@nxp.com"
    },
    "delegate": null,
    "mbox": "https://patches.dpdk.org/project/dpdk/patch/20170823141213.25476-16-shreyansh.jain@nxp.com/mbox/",
    "series": [],
    "comments": "https://patches.dpdk.org/api/patches/27786/comments/",
    "check": "success",
    "checks": "https://patches.dpdk.org/api/patches/27786/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 [IPv6:::1])\n\tby dpdk.org (Postfix) with ESMTP id 0D10E9177;\n\tWed, 23 Aug 2017 16:03:04 +0200 (CEST)",
            "from NAM01-BY2-obe.outbound.protection.outlook.com\n\t(mail-by2nam01on0072.outbound.protection.outlook.com [104.47.34.72])\n\tby dpdk.org (Postfix) with ESMTP id DC1DA914D\n\tfor <dev@dpdk.org>; Wed, 23 Aug 2017 16:02:59 +0200 (CEST)",
            "from CY4PR03CA0016.namprd03.prod.outlook.com (10.168.162.26) by\n\tMWHPR03MB3328.namprd03.prod.outlook.com (10.174.249.146) with\n\tMicrosoft SMTP Server (version=TLS1_2,\n\tcipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id\n\t15.1.1362.18; Wed, 23 Aug 2017 14:02:58 +0000",
            "from BY2FFO11FD046.protection.gbl (2a01:111:f400:7c0c::184) by\n\tCY4PR03CA0016.outlook.office365.com (2603:10b6:903:33::26) with\n\tMicrosoft SMTP Server (version=TLS1_2,\n\tcipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1362.18\n\tvia Frontend Transport; Wed, 23 Aug 2017 14:02:58 +0000",
            "from tx30smr01.am.freescale.net (192.88.168.50) by\n\tBY2FFO11FD046.mail.protection.outlook.com (10.1.15.170) with\n\tMicrosoft SMTP Server (version=TLS1_0,\n\tcipher=TLS_RSA_WITH_AES_256_CBC_SHA) id 15.1.1341.15\n\tvia Frontend Transport; Wed, 23 Aug 2017 14:02:57 +0000",
            "from Tophie.ap.freescale.net ([10.232.14.39])\n\tby tx30smr01.am.freescale.net (8.14.3/8.14.0) with ESMTP id\n\tv7NE2Q31004389; Wed, 23 Aug 2017 07:02:55 -0700"
        ],
        "Authentication-Results": "spf=fail (sender IP is 192.88.168.50)\n\tsmtp.mailfrom=nxp.com; nxp.com; dkim=none (message not signed)\n\theader.d=none;nxp.com; dmarc=fail action=none header.from=nxp.com;",
        "Received-SPF": "Fail (protection.outlook.com: domain of nxp.com does not\n\tdesignate 192.88.168.50 as permitted sender)\n\treceiver=protection.outlook.com; \n\tclient-ip=192.88.168.50; helo=tx30smr01.am.freescale.net;",
        "From": "Shreyansh Jain <shreyansh.jain@nxp.com>",
        "To": "<dev@dpdk.org>",
        "CC": "<ferruh.yigit@intel.com>, <hemant.agrawal@nxp.com>",
        "Date": "Wed, 23 Aug 2017 19:41:48 +0530",
        "Message-ID": "<20170823141213.25476-16-shreyansh.jain@nxp.com>",
        "X-Mailer": "git-send-email 2.9.3",
        "In-Reply-To": "<20170823141213.25476-1-shreyansh.jain@nxp.com>",
        "References": "<1499179471-19145-1-git-send-email-shreyansh.jain@nxp.com>\n\t<20170823141213.25476-1-shreyansh.jain@nxp.com>",
        "X-EOPAttributedMessage": "0",
        "X-Matching-Connectors": "131479705780953907;\n\t(91ab9b29-cfa4-454e-5278-08d120cd25b8); ()",
        "X-Forefront-Antispam-Report": "CIP:192.88.168.50; IPV:NLI; CTRY:US; EFV:NLI;\n\tSFV:NSPM;\n\tSFS:(10009020)(6009001)(336005)(39860400002)(39380400002)(2980300002)(1109001)(1110001)(339900001)(199003)(189002)(2906002)(6666003)(50986999)(76176999)(106466001)(189998001)(97736004)(47776003)(5003940100001)(104016004)(54906002)(81166006)(305945005)(8656003)(68736007)(110136004)(8936002)(81156014)(50226002)(50466002)(48376002)(1076002)(33646002)(356003)(2351001)(5660300001)(53936002)(86362001)(498600001)(77096006)(85426001)(36756003)(626005)(6916009)(2950100002)(4326008)(105606002)(8676002);\n\tDIR:OUT; SFP:1101; SCL:1; SRVR:MWHPR03MB3328;\n\tH:tx30smr01.am.freescale.net; \n\tFPR:; SPF:Fail; PTR:InfoDomainNonexistent; A:1; MX:1; LANG:en; ",
        "X-Microsoft-Exchange-Diagnostics": [
            "1; BY2FFO11FD046;\n\t1:htP+KgPkEjQbGKCRe1cwhbYaJN8ZKB06xuytFxo/ukZHAMdo9v+TnJHvPTct939c1SpWangmMQX7GRTyrRcy2eSo04jJNjmBBhfGTDdl55nogqCHSjTpVag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kVNBA4U03hN0Jkpq/CSHcXMdNLeTEww6BsVCQH2jEyRadhTiNEe3coK4xhi1grozjiks21eRO4wjBEybSJp5EEPhvYweUnxDkXy0YSsTZaPE+tu321Y+2E/gTjeIkBfJqPmdafW7OHL7Mm/5LhnFNgmas="
        ],
        "MIME-Version": "1.0",
        "Content-Type": "text/plain",
        "X-MS-PublicTrafficType": "Email",
        "X-MS-Office365-Filtering-Correlation-Id": "9c7540a2-a633-4e40-c1d4-08d4ea2fa8b3",
        "X-Microsoft-Antispam": "UriScan:; BCL:0; PCL:0;\n\tRULEID:(300000500095)(300135000095)(300000501095)(300135300095)(300000502095)(300135100095)(22001)(300000503095)(300135400095)(2017052603185)(201703131430075)(201703131517081)(300000504095)(300135200095)(300000505095)(300135600095)(300000506095)(300135500095);\n\tSRVR:MWHPR03MB3328; ",
        "X-MS-TrafficTypeDiagnostic": "MWHPR03MB3328:",
        "X-Exchange-Antispam-Report-Test": "UriScan:(185117386973197);",
        "X-Microsoft-Antispam-PRVS": "<MWHPR03MB33281DE4725DD4B1D5FBEDFE90850@MWHPR03MB3328.namprd03.prod.outlook.com>",
        "X-Exchange-Antispam-Report-CFA-Test": "BCL:0; PCL:0;\n\tRULEID:(100000700101)(100105000095)(100000701101)(100105300095)(100000702101)(100105100095)(6095135)(601004)(2401047)(13016025)(13018025)(5005006)(8121501046)(3002001)(93006095)(93001095)(100000703101)(100105400095)(10201501046)(6055026)(6096035)(20161123561025)(201703131430075)(201703131433075)(201703131448075)(201703161259150)(201703151042153)(20161123556025)(20161123565025)(20161123559100)(20161123563025)(201708071742011)(100000704101)(100105200095)(100000705101)(100105500095);\n\tSRVR:MWHPR03MB3328; BCL:0; PCL:0;\n\tRULEID:(100000800101)(100110000095)(100000801101)(100110300095)(100000802101)(100110100095)(100000803101)(100110400095)(400006)(100000804101)(100110200095)(100000805101)(100110500095);\n\tSRVR:MWHPR03MB3328; ",
        "X-Forefront-PRVS": "040866B734",
        "SpamDiagnosticOutput": "1:99",
        "SpamDiagnosticMetadata": "NSPM",
        "X-MS-Exchange-CrossTenant-OriginalArrivalTime": "23 Aug 2017 14:02:57.8925\n\t(UTC)",
        "X-MS-Exchange-CrossTenant-Id": "5afe0b00-7697-4969-b663-5eab37d5f47e",
        "X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp": "TenantId=5afe0b00-7697-4969-b663-5eab37d5f47e;\n\tIp=[192.88.168.50]; \n\tHelo=[tx30smr01.am.freescale.net]",
        "X-MS-Exchange-CrossTenant-FromEntityHeader": "HybridOnPrem",
        "X-MS-Exchange-Transport-CrossTenantHeadersStamped": "MWHPR03MB3328",
        "Subject": "[dpdk-dev] [PATCH v3 15/40] bus/dpaa: add fman flow control\n\tthreshold setting",
        "X-BeenThere": "dev@dpdk.org",
        "X-Mailman-Version": "2.1.15",
        "Precedence": "list",
        "List-Id": "DPDK patches and discussions <dev.dpdk.org>",
        "List-Unsubscribe": "<http://dpdk.org/ml/options/dev>,\n\t<mailto:dev-request@dpdk.org?subject=unsubscribe>",
        "List-Archive": "<http://dpdk.org/ml/archives/dev/>",
        "List-Post": "<mailto:dev@dpdk.org>",
        "List-Help": "<mailto:dev-request@dpdk.org?subject=help>",
        "List-Subscribe": "<http://dpdk.org/ml/listinfo/dev>,\n\t<mailto:dev-request@dpdk.org?subject=subscribe>",
        "Errors-To": "dev-bounces@dpdk.org",
        "Sender": "\"dev\" <dev-bounces@dpdk.org>"
    },
    "content": "Signed-off-by: Geoff Thorpe <geoff.thorpe@nxp.com>\nSigned-off-by: Roy Pledge <roy.pledge@nxp.com>\nSigned-off-by: Hemant Agrawal <hemant.agrawal@nxp.com>\nSigned-off-by: Shreyansh Jain <shreyansh.jain@nxp.com>\n---\n drivers/bus/dpaa/base/fman/fman_hw.c | 28 ++++++++++++++++++++++++++++\n drivers/bus/dpaa/include/fsl_fman.h  |  7 +++++++\n 2 files changed, 35 insertions(+)",
    "diff": "diff --git a/drivers/bus/dpaa/base/fman/fman_hw.c b/drivers/bus/dpaa/base/fman/fman_hw.c\nindex 77908ec..7618fc1 100644\n--- a/drivers/bus/dpaa/base/fman/fman_hw.c\n+++ b/drivers/bus/dpaa/base/fman/fman_hw.c\n@@ -37,6 +37,7 @@\n  */\n #include <fsl_fman.h>\n #include <fsl_fman_crc64.h>\n+#include <fsl_bman.h>\n \n /* Instantiate the global variable that the inline CRC64 implementation (in\n  * <fsl_fman.h>) depends on.\n@@ -437,6 +438,33 @@ fman_if_set_bp(struct fman_if *fm_if, unsigned num __always_unused,\n }\n \n int\n+fman_if_get_fc_threshold(struct fman_if *fm_if)\n+{\n+\tstruct __fman_if *__if = container_of(fm_if, struct __fman_if, __if);\n+\tunsigned int *fmbm_mpd;\n+\n+\tassert(fman_ccsr_map_fd != -1);\n+\n+\tfmbm_mpd = &((struct rx_bmi_regs *)__if->bmi_map)->fmbm_mpd;\n+\treturn in_be32(fmbm_mpd);\n+}\n+\n+int\n+fman_if_set_fc_threshold(struct fman_if *fm_if, u32 high_water,\n+\t\t\t u32 low_water, u32 bpid)\n+{\n+\tstruct __fman_if *__if = container_of(fm_if, struct __fman_if, __if);\n+\tunsigned int *fmbm_mpd;\n+\n+\tassert(fman_ccsr_map_fd != -1);\n+\n+\tfmbm_mpd = &((struct rx_bmi_regs *)__if->bmi_map)->fmbm_mpd;\n+\tout_be32(fmbm_mpd, FMAN_ENABLE_BPOOL_DEPLETION);\n+\treturn bm_pool_set_hw_threshold(bpid, low_water, high_water);\n+\n+}\n+\n+int\n fman_if_get_fc_quanta(struct fman_if *fm_if)\n {\n \tstruct __fman_if *__if = container_of(fm_if, struct __fman_if, __if);\ndiff --git a/drivers/bus/dpaa/include/fsl_fman.h b/drivers/bus/dpaa/include/fsl_fman.h\nindex 0aff22c..b94bc56 100644\n--- a/drivers/bus/dpaa/include/fsl_fman.h\n+++ b/drivers/bus/dpaa/include/fsl_fman.h\n@@ -120,6 +120,13 @@ void fman_if_loopback_disable(struct fman_if *);\n void fman_if_set_bp(struct fman_if *fm_if, unsigned int num, int bpid,\n \t\t    size_t bufsize);\n \n+/* Get Flow Control threshold parameters on specific interface */\n+int fman_if_get_fc_threshold(struct fman_if *fm_if);\n+\n+/* Enable and Set Flow Control threshold parameters on specific interface */\n+int fman_if_set_fc_threshold(struct fman_if *fm_if,\n+\t\t\tu32 high_water, u32 low_water, u32 bpid);\n+\n /* Get Flow Control pause quanta on specific interface */\n int fman_if_get_fc_quanta(struct fman_if *fm_if);\n \n",
    "prefixes": [
        "dpdk-dev",
        "v3",
        "15/40"
    ]
}