Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/1.2/patches/831030/?format=api
{ "id": 831030, "url": "http://patchwork.ozlabs.org/api/1.2/patches/831030/?format=api", "web_url": "http://patchwork.ozlabs.org/project/netdev/patch/1509072722-31657-1-git-send-email-vbhadram@nvidia.com/", "project": { "id": 7, "url": "http://patchwork.ozlabs.org/api/1.2/projects/7/?format=api", "name": "Linux network development", "link_name": "netdev", "list_id": "netdev.vger.kernel.org", "list_email": "netdev@vger.kernel.org", "web_url": null, "scm_url": null, "webscm_url": null, "list_archive_url": "", "list_archive_url_format": "", "commit_url_format": "" }, "msgid": "<1509072722-31657-1-git-send-email-vbhadram@nvidia.com>", "list_archive_url": null, "date": "2017-10-27T02:52:02", "name": "[net-next] stmmac: copy unicast mac address to MAC registers", "commit_ref": null, "pull_url": null, "state": "accepted", "archived": true, "hash": "e4662d738c0faf395c441d2dc14e5c3b16bff11f", "submitter": { "id": 72656, "url": "http://patchwork.ozlabs.org/api/1.2/people/72656/?format=api", "name": "Bhadram Varka", "email": "vbhadram@nvidia.com" }, "delegate": { "id": 34, "url": "http://patchwork.ozlabs.org/api/1.2/users/34/?format=api", "username": "davem", "first_name": "David", "last_name": "Miller", "email": "davem@davemloft.net" }, "mbox": "http://patchwork.ozlabs.org/project/netdev/patch/1509072722-31657-1-git-send-email-vbhadram@nvidia.com/mbox/", "series": [ { "id": 10476, "url": "http://patchwork.ozlabs.org/api/1.2/series/10476/?format=api", "web_url": "http://patchwork.ozlabs.org/project/netdev/list/?series=10476", "date": "2017-10-27T02:52:02", "name": "[net-next] stmmac: copy unicast mac address to MAC registers", "version": 1, "mbox": "http://patchwork.ozlabs.org/series/10476/mbox/" } ], "comments": "http://patchwork.ozlabs.org/api/patches/831030/comments/", "check": "pending", "checks": "http://patchwork.ozlabs.org/api/patches/831030/checks/", "tags": {}, "related": [], "headers": { "Return-Path": "<netdev-owner@vger.kernel.org>", "X-Original-To": "patchwork-incoming@ozlabs.org", "Delivered-To": "patchwork-incoming@ozlabs.org", "Authentication-Results": "ozlabs.org;\n\tspf=none (mailfrom) smtp.mailfrom=vger.kernel.org\n\t(client-ip=209.132.180.67; helo=vger.kernel.org;\n\tenvelope-from=netdev-owner@vger.kernel.org;\n\treceiver=<UNKNOWN>)", "Received": [ "from vger.kernel.org (vger.kernel.org [209.132.180.67])\n\tby ozlabs.org (Postfix) with ESMTP id 3yNT281Xxwz9t30\n\tfor <patchwork-incoming@ozlabs.org>;\n\tFri, 27 Oct 2017 13:52:48 +1100 (AEDT)", "(majordomo@vger.kernel.org) by vger.kernel.org via listexpand\n\tid S932416AbdJ0Cwg (ORCPT <rfc822;patchwork-incoming@ozlabs.org>);\n\tThu, 26 Oct 2017 22:52:36 -0400", "from hqemgate16.nvidia.com ([216.228.121.65]:16106 \"EHLO\n\thqemgate16.nvidia.com\" rhost-flags-OK-OK-OK-OK) by vger.kernel.org\n\twith ESMTP id S932334AbdJ0Cwe (ORCPT\n\t<rfc822;netdev@vger.kernel.org>); Thu, 26 Oct 2017 22:52:34 -0400", "from hqpgpgate101.nvidia.com (Not Verified[216.228.121.13]) by\n\thqemgate16.nvidia.com\n\tid <B59f29f470000>; Thu, 26 Oct 2017 19:51:51 -0700", "from HQMAIL108.nvidia.com ([172.20.161.6])\n\tby hqpgpgate101.nvidia.com (PGP Universal service);\n\tThu, 26 Oct 2017 19:52:07 -0700", "from HQMAIL107.nvidia.com (172.20.187.13) by HQMAIL108.nvidia.com\n\t(172.18.146.13) with Microsoft SMTP Server (TLS) id 15.0.1293.2;\n\tFri, 27 Oct 2017 02:52:06 +0000", "from hqnvemgw02.nvidia.com (172.16.227.111) by HQMAIL107.nvidia.com\n\t(172.20.187.13) with Microsoft SMTP Server id 15.0.1293.2 via\n\tFrontend Transport; Fri, 27 Oct 2017 02:52:06 +0000", "from vbhadram.nvidia.com (Not Verified[10.19.65.213]) by\n\thqnvemgw02.nvidia.com with Trustwave SEG (v7, 5, 8, 10121)\n\tid <B59f29f550003>; Thu, 26 Oct 2017 19:52:06 -0700" ], "X-PGP-Universal": "processed;\n\tby hqpgpgate101.nvidia.com on Thu, 26 Oct 2017 19:52:07 -0700", "From": "Bhadram Varka <vbhadram@nvidia.com>", "To": "<netdev@vger.kernel.org>, <linux-kernel@vger.kernel.org>", "CC": "<peppe.cavallaro@st.com>, <alexandre.torgue@st.com>,\n\tBhadram Varka <vbhadram@nvidia.com>", "Subject": "[PATCH net-next] stmmac: copy unicast mac address to MAC registers", "Date": "Fri, 27 Oct 2017 08:22:02 +0530", "Message-ID": "<1509072722-31657-1-git-send-email-vbhadram@nvidia.com>", "X-Mailer": "git-send-email 2.7.4", "X-NVConfidentiality": "public", "MIME-Version": "1.0", "Content-Type": "text/plain", "Sender": "netdev-owner@vger.kernel.org", "Precedence": "bulk", "List-ID": "<netdev.vger.kernel.org>", "X-Mailing-List": "netdev@vger.kernel.org" }, "content": "Currently stmmac driver not copying the valid ethernet\nMAC address to MAC registers. This patch takes care\nof updating the MAC register with MAC address.\n\nSigned-off-by: Bhadram Varka <vbhadram@nvidia.com>\n---\n drivers/net/ethernet/stmicro/stmmac/stmmac_main.c | 16 +++++++++++++++-\n 1 file changed, 15 insertions(+), 1 deletion(-)", "diff": "diff --git a/drivers/net/ethernet/stmicro/stmmac/stmmac_main.c b/drivers/net/ethernet/stmicro/stmmac/stmmac_main.c\nindex 0e1b0a3..e0e6348 100644\n--- a/drivers/net/ethernet/stmicro/stmmac/stmmac_main.c\n+++ b/drivers/net/ethernet/stmicro/stmmac/stmmac_main.c\n@@ -3748,6 +3748,20 @@ static int stmmac_ioctl(struct net_device *dev, struct ifreq *rq, int cmd)\n \treturn ret;\n }\n \n+static int stmmac_set_mac_address(struct net_device *ndev, void *addr)\n+{\n+\tstruct stmmac_priv *priv = netdev_priv(ndev);\n+\tint ret = 0;\n+\n+\tret = eth_mac_addr(ndev, addr);\n+\tif (ret)\n+\t\treturn ret;\n+\n+\tpriv->hw->mac->set_umac_addr(priv->hw, ndev->dev_addr, 0);\n+\n+\treturn ret;\n+}\n+\n #ifdef CONFIG_DEBUG_FS\n static struct dentry *stmmac_fs_dir;\n \n@@ -3975,7 +3989,7 @@ static const struct net_device_ops stmmac_netdev_ops = {\n #ifdef CONFIG_NET_POLL_CONTROLLER\n \t.ndo_poll_controller = stmmac_poll_controller,\n #endif\n-\t.ndo_set_mac_address = eth_mac_addr,\n+\t.ndo_set_mac_address = stmmac_set_mac_address,\n };\n \n /**\n", "prefixes": [ "net-next" ] }