get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 108467,
    "url": "http://patches.dpdk.org/api/patches/108467/?format=api",
    "web_url": "http://patches.dpdk.org/project/dpdk/patch/20220302063052.347122-2-ke1x.zhang@intel.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": "<20220302063052.347122-2-ke1x.zhang@intel.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/20220302063052.347122-2-ke1x.zhang@intel.com",
    "date": "2022-03-02T06:30:49",
    "name": "[v6,1/4] net/ice: add support for setting promisc by DCF",
    "commit_ref": null,
    "pull_url": null,
    "state": "superseded",
    "archived": true,
    "hash": "08b33fa1f92474ec2b0d69348fedb74b6e2762d2",
    "submitter": {
        "id": 2503,
        "url": "http://patches.dpdk.org/api/people/2503/?format=api",
        "name": "Zhang, Ke1X",
        "email": "ke1x.zhang@intel.com"
    },
    "delegate": {
        "id": 1540,
        "url": "http://patches.dpdk.org/api/users/1540/?format=api",
        "username": "qzhan15",
        "first_name": "Qi",
        "last_name": "Zhang",
        "email": "qi.z.zhang@intel.com"
    },
    "mbox": "http://patches.dpdk.org/project/dpdk/patch/20220302063052.347122-2-ke1x.zhang@intel.com/mbox/",
    "series": [
        {
            "id": 21972,
            "url": "http://patches.dpdk.org/api/series/21972/?format=api",
            "web_url": "http://patches.dpdk.org/project/dpdk/list/?series=21972",
            "date": "2022-03-02T06:30:48",
            "name": "ice repr functions by DCF",
            "version": 6,
            "mbox": "http://patches.dpdk.org/series/21972/mbox/"
        }
    ],
    "comments": "http://patches.dpdk.org/api/patches/108467/comments/",
    "check": "success",
    "checks": "http://patches.dpdk.org/api/patches/108467/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 mails.dpdk.org (mails.dpdk.org [217.70.189.124])\n\tby inbox.dpdk.org (Postfix) with ESMTP id 48437A04A4;\n\tWed,  2 Mar 2022 07:35:43 +0100 (CET)",
            "from [217.70.189.124] (localhost [127.0.0.1])\n\tby mails.dpdk.org (Postfix) with ESMTP id 1EF07426E8;\n\tWed,  2 Mar 2022 07:35:43 +0100 (CET)",
            "from mga18.intel.com (mga18.intel.com [134.134.136.126])\n by mails.dpdk.org (Postfix) with ESMTP id A9EA040688\n for <dev@dpdk.org>; Wed,  2 Mar 2022 07:35:41 +0100 (CET)",
            "from orsmga004.jf.intel.com ([10.7.209.38])\n by orsmga106.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384;\n 01 Mar 2022 22:35:40 -0800",
            "from intel-corei7-64.sh.intel.com (HELO localhost.localdomain)\n ([10.239.251.104])\n by orsmga004-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384;\n 01 Mar 2022 22:35:38 -0800"
        ],
        "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/simple;\n d=intel.com; i=@intel.com; q=dns/txt; s=Intel;\n t=1646202941; x=1677738941;\n h=from:to:cc:subject:date:message-id:in-reply-to:\n references:mime-version:content-transfer-encoding;\n bh=AP7O24EhymZOawVHFtYV9DldDCuCquNl8I5vFc+/hAM=;\n b=FbvFYHg7M74W4CCfnkZP4KhQdMfwz7c415/wj25eJblGENwjsfHQ0nGo\n 74ZWHZZUmhChomLCfYKe2Ln6AP5wY/RZWgbtax43In+E5ugXdTuANLBqn\n Fg4viObeRpvBOluPKdAjTwfs5MR7o0rLcpmh19yx1oJkRxXKaizMmuiGF\n pcnMyMOv4oLMVEfYB7U+Z/MIN8ZRFh/Dr1meehqThT8yOdfy6h9NzuZiP\n Fsryz7Je9GnJo1BLQcvwpaFd8Oyt/4ZyWNCdhAogL5Q85GGX2no0cfdE/\n c6lC8bcMor6BnGb94EIyUT6fOsUWgkJVUsXDhbUaUMDc0KMoPPgi4lC9g g==;",
        "X-IronPort-AV": [
            "E=McAfee;i=\"6200,9189,10273\"; a=\"236832517\"",
            "E=Sophos;i=\"5.90,148,1643702400\"; d=\"scan'208\";a=\"236832517\"",
            "E=Sophos;i=\"5.90,148,1643702400\"; d=\"scan'208\";a=\"641583262\""
        ],
        "From": "Ke Zhang <ke1x.zhang@intel.com>",
        "To": "dev@dpdk.org,\n\tqiming.yang@intel.com,\n\tqi.z.zhang@intel.com",
        "Cc": "Yiding Zhou <yidingx.zhou@intel.com>,\n\tKe Zhang <ke1x.zhang@intel.com>",
        "Subject": "[PATCH v6 1/4] net/ice: add support for setting promisc by DCF",
        "Date": "Wed,  2 Mar 2022 06:30:49 +0000",
        "Message-Id": "<20220302063052.347122-2-ke1x.zhang@intel.com>",
        "X-Mailer": "git-send-email 2.25.1",
        "In-Reply-To": "<20220302063052.347122-1-ke1x.zhang@intel.com>",
        "References": "<ke1x.zhang@intel.com>\n <20220302063052.347122-1-ke1x.zhang@intel.com>",
        "MIME-Version": "1.0",
        "Content-Transfer-Encoding": "8bit",
        "X-BeenThere": "dev@dpdk.org",
        "X-Mailman-Version": "2.1.29",
        "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"
    },
    "content": "From: Yiding Zhou <yidingx.zhou@intel.com>\n\nallow to enable/disable VFs promisc mode over VF0.\nthis feature need to update ice kernel driver (newer than v1.8.0)\n\nSigned-off-by: Yiding Zhou <yidingx.zhou@intel.com>\nSigned-off-by: Ke Zhang <ke1x.zhang@intel.com>\n---\n drivers/net/ice/ice_dcf_vf_representor.c | 56 +++++++++++++++++-------\n 1 file changed, 39 insertions(+), 17 deletions(-)",
    "diff": "diff --git a/drivers/net/ice/ice_dcf_vf_representor.c b/drivers/net/ice/ice_dcf_vf_representor.c\nindex b9fcfc80ad..781282f68c 100644\n--- a/drivers/net/ice/ice_dcf_vf_representor.c\n+++ b/drivers/net/ice/ice_dcf_vf_representor.c\n@@ -10,6 +10,20 @@\n #include \"ice_dcf_ethdev.h\"\n #include \"ice_rxtx.h\"\n \n+static __rte_always_inline struct ice_dcf_hw *\n+ice_dcf_vf_repr_hw(struct ice_dcf_vf_repr *repr)\n+{\n+\tstruct ice_dcf_adapter *dcf_adapter =\n+\t\t\trepr->dcf_eth_dev->data->dev_private;\n+\n+\tif (!dcf_adapter) {\n+\t\tPMD_DRV_LOG(ERR, \"DCF for VF representor has been released\\n\");\n+\t\treturn NULL;\n+\t}\n+\n+\treturn &dcf_adapter->real_hw;\n+}\n+\n static uint16_t\n ice_dcf_vf_repr_rx_burst(__rte_unused void *rxq,\n \t\t\t __rte_unused struct rte_mbuf **rx_pkts,\n@@ -78,15 +92,36 @@ ice_dcf_vf_repr_tx_queue_setup(__rte_unused struct rte_eth_dev *dev,\n }\n \n static int\n-ice_dcf_vf_repr_promiscuous_enable(__rte_unused struct rte_eth_dev *ethdev)\n+ice_dcf_vf_repr_promiscuous_enable(struct rte_eth_dev *ethdev)\n {\n-\treturn 0;\n+\tstruct ice_dcf_vf_repr *repr = ethdev->data->dev_private;\n+\tstruct dcf_virtchnl_cmd args;\n+\tstruct virtchnl_promisc_info promisc;\n+\tstruct ice_dcf_hw *hw = ice_dcf_vf_repr_hw(repr);\n+\tmemset(&args, 0, sizeof(args));\n+\targs.v_op = VIRTCHNL_OP_CONFIG_PROMISCUOUS_MODE;\n+\tpromisc.flags = 0;\n+\tpromisc.vsi_id = hw->vf_vsi_map[repr->vf_id] & ~VIRTCHNL_DCF_VF_VSI_VALID;\n+\tpromisc.flags |= FLAG_VF_UNICAST_PROMISC;\n+\targs.req_msg = (uint8_t *)&promisc;\n+\targs.req_msglen = sizeof(promisc);\n+\treturn ice_dcf_execute_virtchnl_cmd(hw, &args);\n }\n \n static int\n-ice_dcf_vf_repr_promiscuous_disable(__rte_unused struct rte_eth_dev *ethdev)\n+ice_dcf_vf_repr_promiscuous_disable(struct rte_eth_dev *ethdev)\n {\n-\treturn 0;\n+\tstruct ice_dcf_vf_repr *repr = ethdev->data->dev_private;\n+\tstruct dcf_virtchnl_cmd args;\n+\tstruct virtchnl_promisc_info promisc;\n+\tstruct ice_dcf_hw *hw = ice_dcf_vf_repr_hw(repr);\n+\tmemset(&args, 0, sizeof(args));\n+\targs.v_op = VIRTCHNL_OP_CONFIG_PROMISCUOUS_MODE;\n+\tpromisc.flags = 0;\n+\tpromisc.vsi_id = hw->vf_vsi_map[repr->vf_id] & ~VIRTCHNL_DCF_VF_VSI_VALID;\n+\targs.req_msg = (uint8_t *)&promisc;\n+\targs.req_msglen = sizeof(promisc);\n+\treturn ice_dcf_execute_virtchnl_cmd(hw, &args);\n }\n \n static int\n@@ -108,19 +143,6 @@ ice_dcf_vf_repr_link_update(__rte_unused struct rte_eth_dev *ethdev,\n \treturn 0;\n }\n \n-static __rte_always_inline struct ice_dcf_hw *\n-ice_dcf_vf_repr_hw(struct ice_dcf_vf_repr *repr)\n-{\n-\tstruct ice_dcf_adapter *dcf_adapter =\n-\t\t\trepr->dcf_eth_dev->data->dev_private;\n-\n-\tif (!dcf_adapter) {\n-\t\tPMD_DRV_LOG(ERR, \"DCF for VF representor has been released\\n\");\n-\t\treturn NULL;\n-\t}\n-\n-\treturn &dcf_adapter->real_hw;\n-}\n \n static int\n ice_dcf_vf_repr_dev_info_get(struct rte_eth_dev *dev,\n",
    "prefixes": [
        "v6",
        "1/4"
    ]
}