get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 45257,
    "url": "https://patches.dpdk.org/api/patches/45257/?format=api",
    "web_url": "https://patches.dpdk.org/project/dpdk/patch/20180924231721.15799-10-yskoh@mellanox.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": "<20180924231721.15799-10-yskoh@mellanox.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/20180924231721.15799-10-yskoh@mellanox.com",
    "date": "2018-09-24T23:17:51",
    "name": "[v3,09/11] net/mlx5: add Direct Verbs driver to glue",
    "commit_ref": null,
    "pull_url": null,
    "state": "accepted",
    "archived": true,
    "hash": "e051a598fb4425a08847ba11223b291ed9ddd222",
    "submitter": {
        "id": 636,
        "url": "https://patches.dpdk.org/api/people/636/?format=api",
        "name": "Yongseok Koh",
        "email": "yskoh@mellanox.com"
    },
    "delegate": {
        "id": 1,
        "url": "https://patches.dpdk.org/api/users/1/?format=api",
        "username": "tmonjalo",
        "first_name": "Thomas",
        "last_name": "Monjalon",
        "email": "thomas@monjalon.net"
    },
    "mbox": "https://patches.dpdk.org/project/dpdk/patch/20180924231721.15799-10-yskoh@mellanox.com/mbox/",
    "series": [
        {
            "id": 1476,
            "url": "https://patches.dpdk.org/api/series/1476/?format=api",
            "web_url": "https://patches.dpdk.org/project/dpdk/list/?series=1476",
            "date": "2018-09-24T23:17:33",
            "name": "net/mlx5: add Direct Verbs flow driver support",
            "version": 3,
            "mbox": "https://patches.dpdk.org/series/1476/mbox/"
        }
    ],
    "comments": "https://patches.dpdk.org/api/patches/45257/comments/",
    "check": "success",
    "checks": "https://patches.dpdk.org/api/patches/45257/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 EA6931B121;\n\tTue, 25 Sep 2018 01:18:08 +0200 (CEST)",
            "from EUR02-HE1-obe.outbound.protection.outlook.com\n\t(mail-eopbgr10050.outbound.protection.outlook.com [40.107.1.50])\n\tby dpdk.org (Postfix) with ESMTP id F24471B149\n\tfor <dev@dpdk.org>; Tue, 25 Sep 2018 01:18:06 +0200 (CEST)",
            "from DB3PR0502MB3980.eurprd05.prod.outlook.com (52.134.72.27) by\n\tDB3PR0502MB3996.eurprd05.prod.outlook.com (52.134.65.142) with\n\tMicrosoft SMTP Server (version=TLS1_2,\n\tcipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id\n\t15.20.1164.25; Mon, 24 Sep 2018 23:17:51 +0000",
            "from DB3PR0502MB3980.eurprd05.prod.outlook.com\n\t([fe80::1cb0:661b:ecab:6045]) by\n\tDB3PR0502MB3980.eurprd05.prod.outlook.com\n\t([fe80::1cb0:661b:ecab:6045%2]) with mapi id 15.20.1164.017;\n\tMon, 24 Sep 2018 23:17:51 +0000"
        ],
        "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed; d=Mellanox.com;\n\ts=selector1;\n\th=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck;\n\tbh=XE/0Ns7ObnsDqQT/FBSxOGy/gUZ1ofcP17OU06ZzR54=;\n\tb=uNe7gB7oueC2l5uXZodrSyOLwNNXY099+l23GuJX8Pnxz6h69aeC3ieIaBmom+U2/SrKP5iHCkmMg6MeF7+uBMIQhl71DoLfuvouUgXwcdZc0nW5dEVV5IYGfEqDSPSSMoL0b396ZAvN+cx6+Z4wcW9yPh5f7mx/Yb+pNcEB3YQ=",
        "From": "Yongseok Koh <yskoh@mellanox.com>",
        "To": "Thomas Monjalon <thomas@monjalon.net>,\n\tShahaf Shuler <shahafs@mellanox.com>",
        "CC": "\"dev@dpdk.org\" <dev@dpdk.org>, Ori Kam <orika@mellanox.com>",
        "Thread-Topic": "[PATCH v3 09/11] net/mlx5: add Direct Verbs driver to glue",
        "Thread-Index": "AQHUVFzQIWLFjOo2okiZRAf5l0/6Fw==",
        "Date": "Mon, 24 Sep 2018 23:17:51 +0000",
        "Message-ID": "<20180924231721.15799-10-yskoh@mellanox.com>",
        "References": "<20180919072143.23211-1-yskoh@mellanox.com>\n\t<20180924231721.15799-1-yskoh@mellanox.com>",
        "In-Reply-To": "<20180924231721.15799-1-yskoh@mellanox.com>",
        "Accept-Language": "en-US",
        "Content-Language": "en-US",
        "X-MS-Has-Attach": "",
        "X-MS-TNEF-Correlator": "",
        "x-clientproxiedby": "BN6PR03CA0021.namprd03.prod.outlook.com\n\t(2603:10b6:404:23::31) To DB3PR0502MB3980.eurprd05.prod.outlook.com\n\t(2603:10a6:8:10::27)",
        "authentication-results": "spf=none (sender IP is )\n\tsmtp.mailfrom=yskoh@mellanox.com; ",
        "x-ms-exchange-messagesentrepresentingtype": "1",
        "x-originating-ip": "[209.116.155.178]",
        "x-ms-publictraffictype": "Email",
        "x-microsoft-exchange-diagnostics": "1; DB3PR0502MB3996;\n\t6:Q6yjT6+q67wPmwieTEKkRxbg7fF0XbMpJlmIZrCfkh6oMWMnvT7M/Xkp7a70NUg09LW51Z5RMxv4waAnE0O9/CbcO/t2dcBXdufV4Y1Utk+fCt+OIB6CjZjXtSQeGg9/Qg3yd/MsnJ5460GqX+l/Ew9G4GtV/Eu9LtehrbKUzY1sS1XGKEayoLT4VbiLr+/IqRmy00UAHHazSEgmraNtFdC1mzatnXinoVTCEzkcM0JzUFGaHU8CxZVpFt9TVB2xt3+qtHMdJbTpuEhBoBxKaplDcg+wJt9/sICLTEnjffpqeZYc6QMI+YIsCIXrAAZ8kqGo1nRqwhfVAvuGuyG4ZkOU9dYHFGr8jpI0XRYaw1NC2EQyDeAGV4h2KPdWQWigbBTnBOWIy4iOejQCTEm7mKumYezah8bstVZ4lwVFGVL+NmrFjs8Ctb5+0zf9i2CYnFNNsDYnkZ8sjo4uBEKwNg==;\n\t5:HIOWeiamiVxO9tiY7xKYCycIHsQWvHOauNOE65N0NrV2G3gOPp7Fv0g8p2+OSf6nfzgWE41gDIL2zEx3n3Q+vy4YP82SazUc3pP/ekEvV96jkwy3qJLm1eS0kT5O/nPextaH1BBloBDBUE8Yj0sloOm50yeasvxMC5PMUqF/eWc=;\n\t7:yJ+yeOAfKSAnGMAx8nk0N/VXtdfop9bueoS954WeUEbVqGTF81SupsJ+a7qNo4BZIdUsu0rX8S4y0iWXSOvTxIZZl4tEQXbHMX6gc3PP6w8pQtnnOH+bnCR0mf6QL3D5qKrwt15LEPF11/wKy3DOD3OUt+QEfcW3mlRROEMUQ6kBwFF/8h5k2/OukI0R7T7aIq81Y+BR8GCjckdhFeLpgcDi1od5kzH0p7WCKx7nSLdHH4I9HoNQ8DYxZe6TnTkm",
        "x-ms-office365-filtering-correlation-id": "00d10f86-6a72-489d-42b9-08d62273f29e",
        "x-ms-office365-filtering-ht": "Tenant",
        "x-microsoft-antispam": "BCL:0; PCL:0;\n\tRULEID:(7020095)(4652040)(8989299)(5600074)(711020)(4618075)(4534165)(4627221)(201703031133081)(201702281549075)(8990200)(2017052603328)(7153060)(7193020);\n\tSRVR:DB3PR0502MB3996; ",
        "x-ms-traffictypediagnostic": "DB3PR0502MB3996:",
        "x-ld-processed": "a652971c-7d2e-4d9b-a6a4-d149256f461b,ExtAddr",
        "x-microsoft-antispam-prvs": "<DB3PR0502MB39968266411468E6A2984288C3170@DB3PR0502MB3996.eurprd05.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)(8121501046)(5005006)(10201501046)(3002001)(93006095)(93001095)(3231355)(944501410)(52105095)(6055026)(149066)(150027)(6041310)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123558120)(20161123560045)(20161123562045)(20161123564045)(201708071742011)(7699051);\n\tSRVR:DB3PR0502MB3996; BCL:0; PCL:0; RULEID:; SRVR:DB3PR0502MB3996; ",
        "x-forefront-prvs": "0805EC9467",
        "x-forefront-antispam-report": "SFV:NSPM;\n\tSFS:(10009020)(1496009)(396003)(376002)(346002)(366004)(39860400002)(136003)(199004)(189003)(66066001)(2616005)(476003)(446003)(486006)(11346002)(6436002)(305945005)(7736002)(386003)(6506007)(6486002)(6512007)(186003)(102836004)(5250100002)(76176011)(25786009)(26005)(68736007)(6116002)(54906003)(110136005)(99286004)(1076002)(3846002)(71200400001)(52116002)(86362001)(53936002)(71190400001)(97736004)(8936002)(107886003)(256004)(4326008)(316002)(2900100001)(81156014)(8676002)(36756003)(81166006)(105586002)(2906002)(106356001)(6636002)(478600001)(5660300001)(14454004);\n\tDIR:OUT; SFP:1101; SCL:1; SRVR:DB3PR0502MB3996;\n\tH:DB3PR0502MB3980.eurprd05.prod.outlook.com; FPR:; SPF:None; LANG:en; \n\tPTR:InfoNoRecords; A:1; MX:1; ",
        "received-spf": "None (protection.outlook.com: mellanox.com does not designate\n\tpermitted sender hosts)",
        "x-microsoft-antispam-message-info": "6BCQ9Dnfb8Y2mG++9M51C0ncf5N4vxPev/sF1H9hE2DYVy3opLgWAe/7e87jyYmFqz0Sj/wTz9r17gnvFhnG2dDmwpfBr6OfAqy5cW8liIr9seeKis8G7ykzjctVa0Cm0On+KmNGZW/wO743/eTAgGNxvPF0ILbYoqpQjds4gXEHko1ETA2UNTSBULznOL8nYtQunvdx8A6yRpfB0bfSqVp8rXtbgoardsDDZhJX5C7OeNi6w4RiFzGLzE+5W48mUn5sxoCQ4m5yqzW+bGtjO+8DYc4NwxgDagm8cVRwwDvntbD6xC9qG37pCMNfeUB66Y/5YwBbSjpRXiFSQPT58W/7B8y6pnVksfm1GE090ZM=",
        "spamdiagnosticoutput": "1:99",
        "spamdiagnosticmetadata": "NSPM",
        "Content-Type": "text/plain; charset=\"iso-8859-1\"",
        "Content-Transfer-Encoding": "quoted-printable",
        "MIME-Version": "1.0",
        "X-OriginatorOrg": "Mellanox.com",
        "X-MS-Exchange-CrossTenant-Network-Message-Id": "00d10f86-6a72-489d-42b9-08d62273f29e",
        "X-MS-Exchange-CrossTenant-originalarrivaltime": "24 Sep 2018 23:17:51.0295\n\t(UTC)",
        "X-MS-Exchange-CrossTenant-fromentityheader": "Hosted",
        "X-MS-Exchange-CrossTenant-id": "a652971c-7d2e-4d9b-a6a4-d149256f461b",
        "X-MS-Exchange-Transport-CrossTenantHeadersStamped": "DB3PR0502MB3996",
        "Subject": "[dpdk-dev] [PATCH v3 09/11] net/mlx5: add Direct Verbs driver to\n\tglue",
        "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": "From: Ori Kam <orika@mellanox.com>\n\nThis commit adds all Direct Verbs required functions to the glue lib.\n\nSigned-off-by: Ori Kam <orika@mellanox.com>\nAcked-by: Yongseok Koh <yskoh@mellanox.com>\n---\n drivers/net/mlx5/Makefile    |  2 +-\n drivers/net/mlx5/meson.build |  2 +-\n drivers/net/mlx5/mlx5_glue.c | 45 ++++++++++++++++++++++++++++++++++++++++++++\n drivers/net/mlx5/mlx5_glue.h | 15 +++++++++++++++\n 4 files changed, 62 insertions(+), 2 deletions(-)",
    "diff": "diff --git a/drivers/net/mlx5/Makefile b/drivers/net/mlx5/Makefile\nindex d510a4275..4243b37ca 100644\n--- a/drivers/net/mlx5/Makefile\n+++ b/drivers/net/mlx5/Makefile\n@@ -8,7 +8,7 @@ include $(RTE_SDK)/mk/rte.vars.mk\n LIB = librte_pmd_mlx5.a\n LIB_GLUE = $(LIB_GLUE_BASE).$(LIB_GLUE_VERSION)\n LIB_GLUE_BASE = librte_pmd_mlx5_glue.so\n-LIB_GLUE_VERSION = 18.05.0\n+LIB_GLUE_VERSION = 18.11.0\n \n # Sources.\n SRCS-$(CONFIG_RTE_LIBRTE_MLX5_PMD) += mlx5.c\ndiff --git a/drivers/net/mlx5/meson.build b/drivers/net/mlx5/meson.build\nindex 8075496f7..3d09ece4f 100644\n--- a/drivers/net/mlx5/meson.build\n+++ b/drivers/net/mlx5/meson.build\n@@ -4,7 +4,7 @@\n \n pmd_dlopen = get_option('enable_driver_mlx_glue')\n LIB_GLUE_BASE = 'librte_pmd_mlx5_glue.so'\n-LIB_GLUE_VERSION = '18.05.0'\n+LIB_GLUE_VERSION = '18.11.0'\n LIB_GLUE = LIB_GLUE_BASE + '.' + LIB_GLUE_VERSION\n if pmd_dlopen\n \tdpdk_conf.set('RTE_LIBRTE_MLX5_DLOPEN_DEPS', 1)\ndiff --git a/drivers/net/mlx5/mlx5_glue.c b/drivers/net/mlx5/mlx5_glue.c\nindex 84f9492a7..48590df5b 100644\n--- a/drivers/net/mlx5/mlx5_glue.c\n+++ b/drivers/net/mlx5/mlx5_glue.c\n@@ -346,6 +346,48 @@ mlx5_glue_dv_create_qp(struct ibv_context *context,\n #endif\n }\n \n+static struct mlx5dv_flow_matcher *\n+mlx5_glue_dv_create_flow_matcher(struct ibv_context *context,\n+\t\t\t\t struct mlx5dv_flow_matcher_attr *matcher_attr)\n+{\n+#ifdef HAVE_IBV_FLOW_DV_SUPPORT\n+\treturn mlx5dv_create_flow_matcher(context, matcher_attr);\n+#else\n+\t(void)context;\n+\t(void)matcher_attr;\n+\treturn NULL;\n+#endif\n+}\n+\n+static struct ibv_flow *\n+mlx5_glue_dv_create_flow(struct mlx5dv_flow_matcher *matcher,\n+\t\t\t struct mlx5dv_flow_match_parameters *match_value,\n+\t\t\t size_t num_actions,\n+\t\t\t struct mlx5dv_flow_action_attr *actions_attr)\n+{\n+#ifdef HAVE_IBV_FLOW_DV_SUPPORT\n+\treturn mlx5dv_create_flow(matcher, match_value,\n+\t\t\t\t  num_actions, actions_attr);\n+#else\n+\t(void)matcher;\n+\t(void)match_value;\n+\t(void)num_actions;\n+\t(void)actions_attr;\n+\treturn NULL;\n+#endif\n+}\n+\n+static int\n+mlx5_glue_dv_destroy_flow_matcher(struct mlx5dv_flow_matcher *matcher)\n+{\n+#ifdef HAVE_IBV_FLOW_DV_SUPPORT\n+\treturn mlx5dv_destroy_flow_matcher(matcher);\n+#else\n+\t(void)matcher;\n+\treturn 0;\n+#endif\n+}\n+\n alignas(RTE_CACHE_LINE_SIZE)\n const struct mlx5_glue *mlx5_glue = &(const struct mlx5_glue){\n \t.version = MLX5_GLUE_VERSION,\n@@ -392,4 +434,7 @@ const struct mlx5_glue *mlx5_glue = &(const struct mlx5_glue){\n \t.dv_set_context_attr = mlx5_glue_dv_set_context_attr,\n \t.dv_init_obj = mlx5_glue_dv_init_obj,\n \t.dv_create_qp = mlx5_glue_dv_create_qp,\n+\t.dv_create_flow_matcher = mlx5_glue_dv_create_flow_matcher,\n+\t.dv_destroy_flow_matcher = mlx5_glue_dv_destroy_flow_matcher,\n+\t.dv_create_flow = mlx5_glue_dv_create_flow,\n };\ndiff --git a/drivers/net/mlx5/mlx5_glue.h b/drivers/net/mlx5/mlx5_glue.h\nindex e584d3679..f6e4e3842 100644\n--- a/drivers/net/mlx5/mlx5_glue.h\n+++ b/drivers/net/mlx5/mlx5_glue.h\n@@ -39,6 +39,13 @@ struct mlx5dv_qp_init_attr;\n struct mlx5dv_wq_init_attr;\n #endif\n \n+#ifndef HAVE_IBV_FLOW_DV_SUPPORT\n+struct mlx5dv_flow_matcher;\n+struct mlx5dv_flow_matcher_attr;\n+struct mlx5dv_flow_action_attr;\n+struct mlx5dv_flow_match_parameters;\n+#endif\n+\n /* LIB_GLUE_VERSION must be updated every time this structure is modified. */\n struct mlx5_glue {\n \tconst char *version;\n@@ -122,6 +129,14 @@ struct mlx5_glue {\n \t\t(struct ibv_context *context,\n \t\t struct ibv_qp_init_attr_ex *qp_init_attr_ex,\n \t\t struct mlx5dv_qp_init_attr *dv_qp_init_attr);\n+\tstruct mlx5dv_flow_matcher *(*dv_create_flow_matcher)\n+\t\t(struct ibv_context *context,\n+\t\t struct mlx5dv_flow_matcher_attr *matcher_attr);\n+\tint (*dv_destroy_flow_matcher)(struct mlx5dv_flow_matcher *matcher);\n+\tstruct ibv_flow *(*dv_create_flow)(struct mlx5dv_flow_matcher *matcher,\n+\t\t\t  struct mlx5dv_flow_match_parameters *match_value,\n+\t\t\t  size_t num_actions,\n+\t\t\t  struct mlx5dv_flow_action_attr *actions_attr);\n };\n \n const struct mlx5_glue *mlx5_glue;\n",
    "prefixes": [
        "v3",
        "09/11"
    ]
}