]> git.ipfire.org Git - ipfire-2.x.git/blame - src/patches/linux/0006-net-get-rid-of-SET_ETHTOOL_OPS.patch
make.sh limit build to 23 parallel threads.
[ipfire-2.x.git] / src / patches / linux / 0006-net-get-rid-of-SET_ETHTOOL_OPS.patch
CommitLineData
a7b0967d
MT
1From 7ad24ea4bf620a32631d7b3069c3e30c078b0c3e Mon Sep 17 00:00:00 2001
2From: Wilfried Klaebe <w-lkml@lebenslange-mailadresse.de>
3Date: Sun, 11 May 2014 00:12:32 +0000
4Subject: [PATCH 06/11] net: get rid of SET_ETHTOOL_OPS
5
6net: get rid of SET_ETHTOOL_OPS
7
8Dave Miller mentioned he'd like to see SET_ETHTOOL_OPS gone.
9This does that.
10
11Mostly done via coccinelle script:
12@@
13struct ethtool_ops *ops;
14struct net_device *dev;
15@@
16- SET_ETHTOOL_OPS(dev, ops);
17+ dev->ethtool_ops = ops;
18
19Compile tested only, but I'd seriously wonder if this broke anything.
20
21Suggested-by: Dave Miller <davem@davemloft.net>
22Signed-off-by: Wilfried Klaebe <w-lkml@lebenslange-mailadresse.de>
23Acked-by: Felipe Balbi <balbi@ti.com>
24Signed-off-by: David S. Miller <davem@davemloft.net>
25---
26 drivers/net/hyperv/netvsc_drv.c | 2 +-
27 1 file changed, 1 insertion(+), 1 deletion(-)
28
29diff --git a/drivers/net/hyperv/netvsc_drv.c b/drivers/net/hyperv/netvsc_drv.c
30index 1de3ef5dd5d2..2e967a7bdb33 100644
31--- a/drivers/net/hyperv/netvsc_drv.c
32+++ b/drivers/net/hyperv/netvsc_drv.c
33@@ -810,7 +810,7 @@ static int netvsc_probe(struct hv_device *dev,
34 net->features = NETIF_F_HW_VLAN_CTAG_TX | NETIF_F_SG | NETIF_F_RXCSUM |
35 NETIF_F_IP_CSUM | NETIF_F_TSO;
36
37- SET_ETHTOOL_OPS(net, &ethtool_ops);
38+ net->ethtool_ops = &ethtool_ops;
39 SET_NETDEV_DEV(net, &dev->device);
40
41 /* Notify the netvsc driver of the new device */
42--
432.4.3
44