get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 68378,
    "url": "https://patches.dpdk.org/api/patches/68378/?format=api",
    "web_url": "https://patches.dpdk.org/project/dpdk/patch/20200414061517.86124-7-leyi.rong@intel.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": "<20200414061517.86124-7-leyi.rong@intel.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/20200414061517.86124-7-leyi.rong@intel.com",
    "date": "2020-04-14T06:15:12",
    "name": "[v4,06/11] net/iavf: add flow director enabled switch value",
    "commit_ref": null,
    "pull_url": null,
    "state": "superseded",
    "archived": true,
    "hash": "d80d6ba805563da579e45f9ce38d77253acf4752",
    "submitter": {
        "id": 1204,
        "url": "https://patches.dpdk.org/api/people/1204/?format=api",
        "name": "Leyi Rong",
        "email": "leyi.rong@intel.com"
    },
    "delegate": {
        "id": 31221,
        "url": "https://patches.dpdk.org/api/users/31221/?format=api",
        "username": "yexl",
        "first_name": "xiaolong",
        "last_name": "ye",
        "email": "xiaolong.ye@intel.com"
    },
    "mbox": "https://patches.dpdk.org/project/dpdk/patch/20200414061517.86124-7-leyi.rong@intel.com/mbox/",
    "series": [
        {
            "id": 9359,
            "url": "https://patches.dpdk.org/api/series/9359/?format=api",
            "web_url": "https://patches.dpdk.org/project/dpdk/list/?series=9359",
            "date": "2020-04-14T06:15:06",
            "name": "framework for advanced iAVF PMD",
            "version": 4,
            "mbox": "https://patches.dpdk.org/series/9359/mbox/"
        }
    ],
    "comments": "https://patches.dpdk.org/api/patches/68378/comments/",
    "check": "warning",
    "checks": "https://patches.dpdk.org/api/patches/68378/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 02FFBA0577;\n\tTue, 14 Apr 2020 08:26:15 +0200 (CEST)",
            "from [92.243.14.124] (localhost [127.0.0.1])\n\tby dpdk.org (Postfix) with ESMTP id 74F551C126;\n\tTue, 14 Apr 2020 08:25:26 +0200 (CEST)",
            "from mga05.intel.com (mga05.intel.com [192.55.52.43])\n by dpdk.org (Postfix) with ESMTP id 105701C10C\n for <dev@dpdk.org>; Tue, 14 Apr 2020 08:25:23 +0200 (CEST)",
            "from orsmga005.jf.intel.com ([10.7.209.41])\n by fmsmga105.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384;\n 13 Apr 2020 23:25:23 -0700",
            "from dpdk-lrong-srv-04.sh.intel.com ([10.67.119.221])\n by orsmga005.jf.intel.com with ESMTP; 13 Apr 2020 23:25:22 -0700"
        ],
        "IronPort-SDR": [
            "\n OcfeTQCFd0Zr2/pTnJcCEKWIadwsAWxFG8ygQR89om/0RCh7flTxuDtVAwRooMG5tQgLVks/HO\n t7K4kzCCdQfA==",
            "\n 9eNZZ+eYnAXJoqbINdqcCJaAd4u0vEjLqpwk4j51dPLoLRQKCkWH1KBRMn2ihcU3TmX7SCsTm/\n AjCvnesLisjQ=="
        ],
        "X-Amp-Result": "SKIPPED(no attachment in message)",
        "X-Amp-File-Uploaded": "False",
        "X-ExtLoop1": "1",
        "X-IronPort-AV": "E=Sophos;i=\"5.72,381,1580803200\"; d=\"scan'208\";a=\"426956345\"",
        "From": "Leyi Rong <leyi.rong@intel.com>",
        "To": "jingjing.wu@intel.com, qi.z.zhang@intel.com, beilei.xing@intel.com,\n xiaolong.ye@intel.com",
        "Cc": "dev@dpdk.org,\n\tLeyi Rong <leyi.rong@intel.com>",
        "Date": "Tue, 14 Apr 2020 14:15:12 +0800",
        "Message-Id": "<20200414061517.86124-7-leyi.rong@intel.com>",
        "X-Mailer": "git-send-email 2.17.1",
        "In-Reply-To": "<20200414061517.86124-1-leyi.rong@intel.com>",
        "References": "<20200316074603.10998-1-leyi.rong@intel.com>\n <20200414061517.86124-1-leyi.rong@intel.com>",
        "Subject": "[dpdk-dev] [PATCH v4 06/11] net/iavf: add flow director enabled\n\tswitch value",
        "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": "The commit adds fdir_enabled flag into iavf_rx_queue structure\nto identify if fdir id is active. Rx data path can be benefit if\nfdir id parsing is not needed, especially in vector path.\n\nSigned-off-by: Leyi Rong <leyi.rong@intel.com>\n---\n drivers/net/iavf/iavf.h      |  1 +\n drivers/net/iavf/iavf_rxtx.h | 30 ++++++++++++++++++++++++++++++\n 2 files changed, 31 insertions(+)",
    "diff": "diff --git a/drivers/net/iavf/iavf.h b/drivers/net/iavf/iavf.h\nindex fdb31b929..17ceff734 100644\n--- a/drivers/net/iavf/iavf.h\n+++ b/drivers/net/iavf/iavf.h\n@@ -144,6 +144,7 @@ struct iavf_adapter {\n \tbool tx_vec_allowed;\n \tconst uint32_t *ptype_tbl;\n \tbool stopped;\n+\tuint16_t fdir_ref_cnt;\n };\n \n /* IAVF_DEV_PRIVATE_TO */\ndiff --git a/drivers/net/iavf/iavf_rxtx.h b/drivers/net/iavf/iavf_rxtx.h\nindex 290dd68c1..dd5544ee2 100644\n--- a/drivers/net/iavf/iavf_rxtx.h\n+++ b/drivers/net/iavf/iavf_rxtx.h\n@@ -103,6 +103,7 @@ struct iavf_rx_queue {\n \n \tuint16_t port_id;        /* device port ID */\n \tuint8_t crc_len;        /* 0 if CRC stripped, 4 otherwise */\n+\tuint8_t fdir_enabled;   /* 0 if FDIR disabled, 1 when enabled */\n \tuint16_t queue_id;      /* Rx queue index */\n \tuint16_t rx_buf_len;    /* The packet buffer size */\n \tuint16_t rx_hdr_len;    /* The header buffer size */\n@@ -490,6 +491,35 @@ void iavf_dump_tx_descriptor(const struct iavf_tx_queue *txq,\n \t       tx_desc->cmd_type_offset_bsz);\n }\n \n+#define FDIR_PROC_ENABLE_PER_QUEUE(ad, on) do { \\\n+\tint i; \\\n+\tfor (i = 0; i < (ad)->eth_dev->data->nb_rx_queues; i++) { \\\n+\t\tstruct iavf_rx_queue *rxq = (ad)->eth_dev->data->rx_queues[i]; \\\n+\t\tif (!rxq) \\\n+\t\t\tcontinue; \\\n+\t\trxq->fdir_enabled = on; \\\n+\t} \\\n+\tPMD_DRV_LOG(DEBUG, \"FDIR processing on RX set to %d\", on); \\\n+} while (0)\n+\n+/* Enable/disable flow director Rx processing in data path. */\n+static inline\n+void iavf_fdir_rx_proc_enable(struct iavf_adapter *ad, bool on)\n+{\n+\tif (on) {\n+\t\t/* enable flow director processing */\n+\t\tif (ad->fdir_ref_cnt++ == 0)\n+\t\t\tFDIR_PROC_ENABLE_PER_QUEUE(ad, on);\n+\t} else {\n+\t\tif (ad->fdir_ref_cnt >= 1) {\n+\t\t\tad->fdir_ref_cnt--;\n+\n+\t\t\tif (ad->fdir_ref_cnt == 0)\n+\t\t\t\tFDIR_PROC_ENABLE_PER_QUEUE(ad, on);\n+\t\t}\n+\t}\n+}\n+\n #ifdef RTE_LIBRTE_IAVF_DEBUG_DUMP_DESC\n #define IAVF_DUMP_RX_DESC(rxq, desc, rx_id) \\\n \tiavf_dump_rx_descriptor(rxq, desc, rx_id)\n",
    "prefixes": [
        "v4",
        "06/11"
    ]
}