Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/51734/?format=api
http://patches.dpdk.org/api/patches/51734/?format=api", "web_url": "http://patches.dpdk.org/project/dpdk/patch/1553614522-12151-11-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": "<1553614522-12151-11-git-send-email-viacheslavo@mellanox.com>", "list_archive_url": "https://inbox.dpdk.org/dev/1553614522-12151-11-git-send-email-viacheslavo@mellanox.com", "date": "2019-03-26T15:35:19", "name": "[v3,10/13] net/mlx5: provide IB port for the object being created", "commit_ref": null, "pull_url": null, "state": "superseded", "archived": true, "hash": "62ae862d67d27bb500fd2ca792120eb5beb23f22", "submitter": { "id": 1102, "url": "http://patches.dpdk.org/api/people/1102/?format=api", "name": "Slava Ovsiienko", "email": "viacheslavo@mellanox.com" }, "delegate": { "id": 6624, "url": "http://patches.dpdk.org/api/users/6624/?format=api", "username": "shahafs", "first_name": "Shahaf", "last_name": "Shuler", "email": "shahafs@mellanox.com" }, "mbox": "http://patches.dpdk.org/project/dpdk/patch/1553614522-12151-11-git-send-email-viacheslavo@mellanox.com/mbox/", "series": [ { "id": 3928, "url": "http://patches.dpdk.org/api/series/3928/?format=api", "web_url": "http://patches.dpdk.org/project/dpdk/list/?series=3928", "date": "2019-03-26T15:35:11", "name": "net/mlx5: add support for multiport IB devices", "version": 3, "mbox": "http://patches.dpdk.org/series/3928/mbox/" } ], "comments": "http://patches.dpdk.org/api/patches/51734/comments/", "check": "success", "checks": "http://patches.dpdk.org/api/patches/51734/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 DAD471B202;\n\tTue, 26 Mar 2019 16:36:25 +0100 (CET)", "from mellanox.co.il (mail-il-dmz.mellanox.com [193.47.165.129])\n\tby dpdk.org (Postfix) with ESMTP id 81F551B13A\n\tfor <dev@dpdk.org>; Tue, 26 Mar 2019 16:36:05 +0100 (CET)", "from Internal Mail-Server by MTLPINE1 (envelope-from\n\tviacheslavo@mellanox.com)\n\twith ESMTPS (AES256-SHA encrypted); 26 Mar 2019 17:36:02 +0200", "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 x2QFa1wX019637;\n\tTue, 26 Mar 2019 17:36:02 +0200" ], "From": "Viacheslav Ovsiienko <viacheslavo@mellanox.com>", "To": "dev@dpdk.org", "Cc": "shahafs@mellanox.com", "Date": "Tue, 26 Mar 2019 15:35:19 +0000", "Message-Id": "<1553614522-12151-11-git-send-email-viacheslavo@mellanox.com>", "X-Mailer": "git-send-email 1.8.3.1", "In-Reply-To": "<1553614522-12151-1-git-send-email-viacheslavo@mellanox.com>", "References": "<1553533414-9911-1-git-send-email-viacheslavo@mellanox.com>\n\t<1553614522-12151-1-git-send-email-viacheslavo@mellanox.com>", "Subject": "[dpdk-dev] [PATCH v3 10/13] net/mlx5: provide IB port for the\n\tobject being created", "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": "The code is updated to provide IB port index for the Verbs\nobjects being created - QPs and Verbs Flows.\n\nSigned-off-by: Viacheslav Ovsiienko <viacheslavo@mellanox.com>\nAcked-by: Shahaf Shuler <shahafs@mellanox.com>\n---\n drivers/net/mlx5/mlx5_flow.c | 2 ++\n drivers/net/mlx5/mlx5_flow_verbs.c | 1 +\n drivers/net/mlx5/mlx5_txq.c | 4 ++--\n 3 files changed, 5 insertions(+), 2 deletions(-)", "diff": "diff --git a/drivers/net/mlx5/mlx5_flow.c b/drivers/net/mlx5/mlx5_flow.c\nindex 010d61a..40d6818 100644\n--- a/drivers/net/mlx5/mlx5_flow.c\n+++ b/drivers/net/mlx5/mlx5_flow.c\n@@ -315,6 +315,7 @@ struct mlx5_flow_tunnel_info {\n int\n mlx5_flow_discover_priorities(struct rte_eth_dev *dev)\n {\n+\tstruct mlx5_priv *priv = dev->data->dev_private;\n \tstruct {\n \t\tstruct ibv_flow_attr attr;\n \t\tstruct ibv_flow_spec_eth eth;\n@@ -322,6 +323,7 @@ struct mlx5_flow_tunnel_info {\n \t} flow_attr = {\n \t\t.attr = {\n \t\t\t.num_of_specs = 2,\n+\t\t\t.port = (uint8_t)priv->ibv_port,\n \t\t},\n \t\t.eth = {\n \t\t\t.type = IBV_FLOW_SPEC_ETH,\ndiff --git a/drivers/net/mlx5/mlx5_flow_verbs.c b/drivers/net/mlx5/mlx5_flow_verbs.c\nindex 9548d12..b69af6c 100644\n--- a/drivers/net/mlx5/mlx5_flow_verbs.c\n+++ b/drivers/net/mlx5/mlx5_flow_verbs.c\n@@ -1550,6 +1550,7 @@\n \tdev_flow->layers = item_flags;\n \tdev_flow->verbs.attr->priority =\n \t\tmlx5_flow_adjust_priority(dev, priority, subpriority);\n+\tdev_flow->verbs.attr->port = (uint8_t)priv->ibv_port;\n \treturn 0;\n }\n \ndiff --git a/drivers/net/mlx5/mlx5_txq.c b/drivers/net/mlx5/mlx5_txq.c\nindex 25305b6..5062f5c 100644\n--- a/drivers/net/mlx5/mlx5_txq.c\n+++ b/drivers/net/mlx5/mlx5_txq.c\n@@ -445,8 +445,8 @@ struct mlx5_txq_ibv *\n \tattr.mod = (struct ibv_qp_attr){\n \t\t/* Move the QP to this state. */\n \t\t.qp_state = IBV_QPS_INIT,\n-\t\t/* Primary port number. */\n-\t\t.port_num = 1,\n+\t\t/* IB device port number. */\n+\t\t.port_num = (uint8_t)priv->ibv_port,\n \t};\n \tret = mlx5_glue->modify_qp(tmpl.qp, &attr.mod,\n \t\t\t\t (IBV_QP_STATE | IBV_QP_PORT));\n", "prefixes": [ "v3", "10/13" ] }{ "id": 51734, "url": "