get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 59703,
    "url": "http://patches.dpdk.org/api/patches/59703/?format=api",
    "web_url": "http://patches.dpdk.org/project/dpdk/patch/1569398015-6027-7-git-send-email-viacheslavo@mellanox.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": "<1569398015-6027-7-git-send-email-viacheslavo@mellanox.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/1569398015-6027-7-git-send-email-viacheslavo@mellanox.com",
    "date": "2019-09-25T07:53:29",
    "name": "[06/12] net/mlx5: check the kernel support for VF LAG bonding",
    "commit_ref": null,
    "pull_url": null,
    "state": "accepted",
    "archived": true,
    "hash": "4da357e407d5b7ff27389fa93d12a37c74e81c48",
    "submitter": {
        "id": 1102,
        "url": "http://patches.dpdk.org/api/people/1102/?format=api",
        "name": "Slava Ovsiienko",
        "email": "viacheslavo@mellanox.com"
    },
    "delegate": {
        "id": 3268,
        "url": "http://patches.dpdk.org/api/users/3268/?format=api",
        "username": "rasland",
        "first_name": "Raslan",
        "last_name": "Darawsheh",
        "email": "rasland@nvidia.com"
    },
    "mbox": "http://patches.dpdk.org/project/dpdk/patch/1569398015-6027-7-git-send-email-viacheslavo@mellanox.com/mbox/",
    "series": [
        {
            "id": 6519,
            "url": "http://patches.dpdk.org/api/series/6519/?format=api",
            "web_url": "http://patches.dpdk.org/project/dpdk/list/?series=6519",
            "date": "2019-09-25T07:53:23",
            "name": "net/mlx5: add bonding configuration support",
            "version": 1,
            "mbox": "http://patches.dpdk.org/series/6519/mbox/"
        }
    ],
    "comments": "http://patches.dpdk.org/api/patches/59703/comments/",
    "check": "success",
    "checks": "http://patches.dpdk.org/api/patches/59703/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 D20A11B994;\n\tWed, 25 Sep 2019 09:54:08 +0200 (CEST)",
            "from mellanox.co.il (mail-il-dmz.mellanox.com [193.47.165.129])\n\tby dpdk.org (Postfix) with ESMTP id 65A13397D\n\tfor <dev@dpdk.org>; Wed, 25 Sep 2019 09:54:04 +0200 (CEST)",
            "from Internal Mail-Server by MTLPINE1 (envelope-from\n\tviacheslavo@mellanox.com)\n\twith ESMTPS (AES256-SHA encrypted); 25 Sep 2019 10:54:01 +0300",
            "from pegasus12.mtr.labs.mlnx (pegasus12.mtr.labs.mlnx\n\t[10.210.17.40])\n\tby labmailer.mlnx (8.13.8/8.13.8) with ESMTP id x8P7s1rq030285;\n\tWed, 25 Sep 2019 10:54:01 +0300",
            "from pegasus12.mtr.labs.mlnx (localhost [127.0.0.1])\n\tby pegasus12.mtr.labs.mlnx (8.14.7/8.14.7) with ESMTP id\n\tx8P7s1lc006867; Wed, 25 Sep 2019 07:54:01 GMT",
            "(from viacheslavo@localhost)\n\tby pegasus12.mtr.labs.mlnx (8.14.7/8.14.7/Submit) id x8P7s1c1006866; \n\tWed, 25 Sep 2019 07:54:01 GMT"
        ],
        "X-Authentication-Warning": "pegasus12.mtr.labs.mlnx: viacheslavo set sender to\n\tviacheslavo@mellanox.com using -f",
        "From": "Viacheslav Ovsiienko <viacheslavo@mellanox.com>",
        "To": "dev@dpdk.org",
        "Cc": "matan@mellanox.com, rasland@mellanox.com",
        "Date": "Wed, 25 Sep 2019 07:53:29 +0000",
        "Message-Id": "<1569398015-6027-7-git-send-email-viacheslavo@mellanox.com>",
        "X-Mailer": "git-send-email 1.8.3.1",
        "In-Reply-To": "<1569398015-6027-1-git-send-email-viacheslavo@mellanox.com>",
        "References": "<1569398015-6027-1-git-send-email-viacheslavo@mellanox.com>",
        "Subject": "[dpdk-dev] [PATCH 06/12] net/mlx5: check the kernel support for VF\n\tLAG bonding",
        "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": "If bonding Infiniband device is found the unified E-Switch\nis supposed and the extra rdma-core/kernel support is needed\nto retrieve vport indices. The patch introduces this feature\ndefines, bonding support check is added to probe routine.\n\nSigned-off-by: Viacheslav Ovsiienko <viacheslavo@mellanox.com>\n---\n drivers/net/mlx5/Makefile    |  5 +++++\n drivers/net/mlx5/meson.build |  2 ++\n drivers/net/mlx5/mlx5.c      | 13 +++++++++++++\n 3 files changed, 20 insertions(+)",
    "diff": "diff --git a/drivers/net/mlx5/Makefile b/drivers/net/mlx5/Makefile\nindex 6c9d4b5..04de93a 100644\n--- a/drivers/net/mlx5/Makefile\n+++ b/drivers/net/mlx5/Makefile\n@@ -170,6 +170,11 @@ mlx5_autoconf.h.new: $(RTE_SDK)/buildtools/auto-config-h.sh\n \t\tfunc mlx5dv_dr_action_create_push_vlan \\\n \t\t$(AUTOCONF_OUTPUT)\n \t$Q sh -- '$<' '$@' \\\n+\t\tHAVE_MLX5DV_DR_DEVX_PORT \\\n+\t\tinfiniband/mlx5dv.h \\\n+\t\tfunc mlx5dv_query_devx_port \\\n+\t\t$(AUTOCONF_OUTPUT)\n+\t$Q sh -- '$<' '$@' \\\n \t\tHAVE_IBV_DEVX_OBJ \\\n \t\tinfiniband/mlx5dv.h \\\n \t\tfunc mlx5dv_devx_obj_create \\\ndiff --git a/drivers/net/mlx5/meson.build b/drivers/net/mlx5/meson.build\nindex fa68b54..f8e3cce 100644\n--- a/drivers/net/mlx5/meson.build\n+++ b/drivers/net/mlx5/meson.build\n@@ -120,6 +120,8 @@ if build\n \t\t'IBV_WQ_FLAGS_PCI_WRITE_END_PADDING' ],\n \t\t[ 'HAVE_IBV_WQ_FLAG_RX_END_PADDING', 'infiniband/verbs.h',\n \t\t'IBV_WQ_FLAG_RX_END_PADDING' ],\n+\t\t[ 'HAVE_MLX5DV_DR_DEVX_PORT', 'infiniband/mlx5dv.h',\n+\t\t'mlx5dv_query_devx_port' ],\n \t\t[ 'HAVE_IBV_DEVX_OBJ', 'infiniband/mlx5dv.h',\n \t\t'mlx5dv_devx_obj_create' ],\n \t\t[ 'HAVE_IBV_FLOW_DEVX_COUNTERS', 'infiniband/mlx5dv.h',\ndiff --git a/drivers/net/mlx5/mlx5.c b/drivers/net/mlx5/mlx5.c\nindex 7c9fd54..25d1530 100644\n--- a/drivers/net/mlx5/mlx5.c\n+++ b/drivers/net/mlx5/mlx5.c\n@@ -2373,6 +2373,19 @@ struct mlx5_dev_spawn_data {\n \t\t\tgoto exit;\n \t\t}\n \t}\n+#ifndef HAVE_MLX5DV_DR_DEVX_PORT\n+\tif (bd >= 0) {\n+\t\t/*\n+\t\t * This may happen if there is VF LAG kernel support and\n+\t\t * application is compiled with older rdma_core library.\n+\t\t */\n+\t\tDRV_LOG(ERR,\n+\t\t\t\"No kernel/verbs support for VF LAG bonding found.\");\n+\t\trte_errno = ENOTSUP;\n+\t\tret = -rte_errno;\n+\t\tgoto exit;\n+\t}\n+#endif\n \t/*\n \t * Now we can determine the maximal\n \t * amount of devices to be spawned.\n",
    "prefixes": [
        "06/12"
    ]
}