Thread (36 messages) 36 messages, 6 authors, 2017-07-30

Re: [PATCH V2 net-next 20/21] net-next/hinic: Add ethtool and stats

From: Joe Perches <joe@perches.com>
Date: 2017-07-19 10:28:27
Also in: lkml

On Wed, 2017-07-19 at 17:19 +0800, Aviad Krawczyk wrote:
Add ethtool operations and statistics operations.
series trivia:
quoted hunk ↗ jump to hunk
diff --git a/drivers/net/ethernet/huawei/hinic/hinic_main.c b/drivers/net/ethernet/huawei/hinic/hinic_main.c
[]
quoted hunk ↗ jump to hunk
@@ -67,6 +67,178 @@
[]
+static int hinic_get_link_ksettings(struct net_device *netdev,
+				    struct ethtool_link_ksettings
+				    *link_ksettings)
+{
[]
+	err = hinic_port_get_cap(nic_dev, &port_cap);
+	if (err) {
+		dev_err(&netdev->dev, "Failed to get port capabilities\n");
+		return err;
+	}
it looks like a lot of these dev_<level> calls
should be converted to netdev_<level>

from:
		dev_err(&netdev->dev, ...);
to:
		netdev_err(netdev, ...);

etc...
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help