Show a patch.

GET /api/patches/74533/
Content-Type: application/json
Vary: Accept

    "id": 74533,
    "url": "",
    "web_url": "",
    "project": {
        "id": 1,
        "url": "",
        "name": "DPDK",
        "link_name": "dpdk",
        "list_id": "",
        "list_email": "",
        "web_url": "",
        "scm_url": "git://",
        "webscm_url": ""
    "msgid": "<>",
    "date": "2020-07-21T08:13:40",
    "name": "vdpa/mlx5: fix the compatibility with MISC4",
    "commit_ref": null,
    "pull_url": null,
    "state": "accepted",
    "archived": true,
    "hash": "63f0164400b93942f27145e7f1e657c397b9e5f7",
    "submitter": {
        "id": 1357,
        "url": "",
        "name": "Bing Zhao",
        "email": ""
    "delegate": {
        "id": 2642,
        "url": "",
        "username": "mcoquelin",
        "first_name": "Maxime",
        "last_name": "Coquelin",
        "email": ""
    "mbox": "",
    "series": [
            "id": 11195,
            "url": "",
            "web_url": "",
            "date": "2020-07-21T08:13:40",
            "name": "vdpa/mlx5: fix the compatibility with MISC4",
            "version": 1,
            "mbox": ""
    "comments": "",
    "check": "fail",
    "checks": "",
    "tags": {},
    "headers": {
        "List-Subscribe": "<>,\n <>",
        "X-Mailman-Version": "2.1.15",
        "Precedence": "list",
        "X-Original-To": "",
        "List-Post": "<>",
        "X-BeenThere": "",
        "List-Id": "DPDK patches and discussions <>",
        "Subject": "[dpdk-dev] [PATCH] vdpa/mlx5: fix the compatibility with MISC4",
        "Sender": "\"dev\" <>",
        "From": "Bing Zhao <>",
        "Received": [
            "from ( [])\n\tby (Postfix) with ESMTP id 063FCA0526;\n\tTue, 21 Jul 2020 10:14:12 +0200 (CEST)",
            "from [] (localhost [])\n\tby (Postfix) with ESMTP id 6A99E1BFE3;\n\tTue, 21 Jul 2020 10:14:11 +0200 (CEST)",
            "from git-send-mailer.rdmz.labs.mlnx (unknown [])\n by (Postfix) with ESMTP id 7E43E1BFBA\n for <>; Tue, 21 Jul 2020 10:14:09 +0200 (CEST)"
        "To": ",\n\",
        "X-Mailer": "git-send-email",
        "List-Unsubscribe": "<>,\n <>",
        "Date": "Tue, 21 Jul 2020 16:13:40 +0800",
        "List-Archive": "<>",
        "Delivered-To": "",
        "Errors-To": "",
        "Cc": "",
        "List-Help": "<>",
        "Message-Id": "<>",
        "Return-Path": "<>"
    "content": "When dynamic flex parser feature is introduced, the support for misc\nparameters 4 of flow table entry (FTE) match set is needed. The\nstructure of \"mlx5_ifc_fte_match_param_bits\" is extended with\n\"mlx5_ifc_fte_match_set_misc4_bits\" at the end of it. The total size\nof the FTE match set will be changed into 384 bytes from 320 bytes.\nLow level user space driver (rdma-core) will have the validation of\nthe length of FTE match set. In the old release that no MISC4\nsupported in the rdma-core, and this will break the backward\ncompatibility, even if the MISC4 is not used in most cases, like\nin vDPA driver.\nIn order not to break the compatibility old rdma-core, the length\nadjustment needs to be done. In mlx5 vDPA driver, the lengths of\nthe matcher and value are both set to 320 without MISC4. There is\nno need to change the structure definition, all bytes of the MISC4\nwill be discarded if it is not needed. Since the MISC4 parameter\nis aligned with a 64B boundary and so does the whole FTE match set\nparameter, there is no need to take any padding and alignment into\nconsideration when calculating the size.\n\nFixes: 32132fb8517c (\"net/mlx5: add flow translation of eCPRI header\")\n\nSigned-off-by: Bing Zhao <>\nAcked-by: Matan Azrad <>\n---\n drivers/vdpa/mlx5/mlx5_vdpa_steer.c | 6 ++++--\n 1 file changed, 4 insertions(+), 2 deletions(-)",
    "diff": "diff --git a/drivers/vdpa/mlx5/mlx5_vdpa_steer.c b/drivers/vdpa/mlx5/mlx5_vdpa_steer.c\nindex 406c7be..1fcd24c 100644\n--- a/drivers/vdpa/mlx5/mlx5_vdpa_steer.c\n+++ b/drivers/vdpa/mlx5/mlx5_vdpa_steer.c\n@@ -139,10 +139,12 @@\n \t\tuint32_t buf[MLX5_ST_SZ_DW(fte_match_param)];\n \t\t/**< Matcher value. This value is used as the mask or a key. */\n \t} matcher_mask = {\n-\t\t\t\t.size = sizeof(matcher_mask.buf),\n+\t\t\t\t.size = sizeof(matcher_mask.buf) -\n+\t\t\t\t\tMLX5_ST_SZ_BYTES(fte_match_set_misc4),\n \t\t\t},\n \t  matcher_value = {\n-\t\t\t\t.size = sizeof(matcher_value.buf),\n+\t\t\t\t.size = sizeof(matcher_value.buf) -\n+\t\t\t\t\tMLX5_ST_SZ_BYTES(fte_match_set_misc4),\n \t\t\t};\n \tstruct mlx5dv_flow_matcher_attr dv_attr = {\n \t\t.type = IBV_FLOW_ATTR_NORMAL,\n",
    "prefixes": []