Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/7426/?format=api
https://patches.dpdk.org/api/patches/7426/?format=api", "web_url": "https://patches.dpdk.org/project/dpdk/patch/1444067408-29329-2-git-send-email-adrien.mazarguil@6wind.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": "<1444067408-29329-2-git-send-email-adrien.mazarguil@6wind.com>", "list_archive_url": "https://inbox.dpdk.org/dev/1444067408-29329-2-git-send-email-adrien.mazarguil@6wind.com", "date": "2015-10-05T17:50:07", "name": "[dpdk-dev,2/3] mlx4: fill if_index field in dev_info structure", "commit_ref": null, "pull_url": null, "state": "accepted", "archived": true, "hash": "d9eb7bd0bdab7d18fec84bff39c2dc3ef2e30bf9", "submitter": { "id": 165, "url": "https://patches.dpdk.org/api/people/165/?format=api", "name": "Adrien Mazarguil", "email": "adrien.mazarguil@6wind.com" }, "delegate": null, "mbox": "https://patches.dpdk.org/project/dpdk/patch/1444067408-29329-2-git-send-email-adrien.mazarguil@6wind.com/mbox/", "series": [], "comments": "https://patches.dpdk.org/api/patches/7426/comments/", "check": "pending", "checks": "https://patches.dpdk.org/api/patches/7426/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 [IPv6:::1])\n\tby dpdk.org (Postfix) with ESMTP id 265C791DB;\n\tMon, 5 Oct 2015 19:50:32 +0200 (CEST)", "from mail-wi0-f182.google.com (mail-wi0-f182.google.com\n\t[209.85.212.182]) by dpdk.org (Postfix) with ESMTP id 2C2C791D7\n\tfor <dev@dpdk.org>; Mon, 5 Oct 2015 19:50:30 +0200 (CEST)", "by wiclk2 with SMTP id lk2so132288522wic.0\n\tfor <dev@dpdk.org>; Mon, 05 Oct 2015 10:50:29 -0700 (PDT)", "from 6wind.com (guy78-3-82-239-227-177.fbx.proxad.net.\n\t[82.239.227.177]) by smtp.gmail.com with ESMTPSA id\n\tgd10sm5976241wjb.47.2015.10.05.10.50.29\n\t(version=TLSv1.2 cipher=RC4-SHA bits=128/128);\n\tMon, 05 Oct 2015 10:50:29 -0700 (PDT)" ], "X-Google-DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n\td=1e100.net; s=20130820;\n\th=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to\n\t:references;\n\tbh=wnWxT5j5xqssbPUeiOGxTmrVq0SoawL/SPTJNcgkyW8=;\n\tb=QMTfRUDV7paqs7Ljsmw0dpK0Lm/c5EtvfnFb6TLw4hXzZlkDV4N18GVOwx13rMW7MC\n\taaBWQ/DhX15uG+x/CriahUA8aaCR46PeTMyx1ZenUpfXlV27hKC30+Czsm3F5fbBbeVT\n\t4Tf47j34nCqYgAV5T75Spy2r04dSVI4zK1orYyhwbkGQV4qhfQbnoWrQRAeSHg+jFnwY\n\tM80qfSn6XVPfH5GEUIM7DMg3ys0nQdP5dGQR5LtMsyE178ayfP0sKsLwhI9oxSGjRdw3\n\t8v4PkyNYz6h2IsPs/gZK1u1D7MYE657RhYwYysIbOwtTQEEz/HWIhiEBf+3o/ZR9KVep\n\t/lhA==", "X-Gm-Message-State": "ALoCoQn8HvmtKSPIZ0VXU7Auzj5+4ET0G4a+3DuvUMqEgH4X+sDZ05m2FsQOADtmRJ7LJQXf2oMs", "X-Received": "by 10.194.116.106 with SMTP id jv10mr35895926wjb.0.1444067429858;\n\tMon, 05 Oct 2015 10:50:29 -0700 (PDT)", "From": "Adrien Mazarguil <adrien.mazarguil@6wind.com>", "To": "dev@dpdk.org", "Date": "Mon, 5 Oct 2015 19:50:07 +0200", "Message-Id": "<1444067408-29329-2-git-send-email-adrien.mazarguil@6wind.com>", "X-Mailer": "git-send-email 2.1.0", "In-Reply-To": "<1444067408-29329-1-git-send-email-adrien.mazarguil@6wind.com>", "References": "<1444067408-29329-1-git-send-email-adrien.mazarguil@6wind.com>", "Cc": "Francesco Santoro <francesco.santoro@6wind.com>", "Subject": "[dpdk-dev] [PATCH 2/3] mlx4: fill if_index field in dev_info\n\tstructure", "X-BeenThere": "dev@dpdk.org", "X-Mailman-Version": "2.1.15", "Precedence": "list", "List-Id": "patches and discussions about DPDK <dev.dpdk.org>", "List-Unsubscribe": "<http://dpdk.org/ml/options/dev>,\n\t<mailto:dev-request@dpdk.org?subject=unsubscribe>", "List-Archive": "<http://dpdk.org/ml/archives/dev/>", "List-Post": "<mailto:dev@dpdk.org>", "List-Help": "<mailto:dev-request@dpdk.org?subject=help>", "List-Subscribe": "<http://dpdk.org/ml/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: Francesco Santoro <francesco.santoro@6wind.com>\n\nAllows applications to retrieve the name of the related netdevice.\n\nSigned-off-by: Francesco Santoro <francesco.santoro@6wind.com>\n---\n drivers/net/mlx4/mlx4.c | 3 +++\n 1 file changed, 3 insertions(+)", "diff": "diff --git a/drivers/net/mlx4/mlx4.c b/drivers/net/mlx4/mlx4.c\nindex e1ca577..9614471 100644\n--- a/drivers/net/mlx4/mlx4.c\n+++ b/drivers/net/mlx4/mlx4.c\n@@ -3819,6 +3819,7 @@ mlx4_dev_infos_get(struct rte_eth_dev *dev, struct rte_eth_dev_info *info)\n {\n \tstruct priv *priv = dev->data->dev_private;\n \tunsigned int max;\n+\tchar ifname[IF_NAMESIZE];\n \n \tpriv_lock(priv);\n \t/* FIXME: we should ask the device for these values. */\n@@ -3848,6 +3849,8 @@ mlx4_dev_infos_get(struct rte_eth_dev *dev, struct rte_eth_dev_info *info)\n \t\t DEV_TX_OFFLOAD_UDP_CKSUM |\n \t\t DEV_TX_OFFLOAD_TCP_CKSUM) :\n \t\t 0);\n+\tif (priv_get_ifname(priv, &ifname) == 0)\n+\t\tinfo->if_index = if_nametoindex(ifname);\n \tpriv_unlock(priv);\n }\n \n", "prefixes": [ "dpdk-dev", "2/3" ] }{ "id": 7426, "url": "