]> git.ipfire.org Git - ipfire-2.x.git/blob - 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
1 From 7ad24ea4bf620a32631d7b3069c3e30c078b0c3e Mon Sep 17 00:00:00 2001
2 From: Wilfried Klaebe <w-lkml@lebenslange-mailadresse.de>
3 Date: Sun, 11 May 2014 00:12:32 +0000
4 Subject: [PATCH 06/11] net: get rid of SET_ETHTOOL_OPS
5
6 net: get rid of SET_ETHTOOL_OPS
7
8 Dave Miller mentioned he'd like to see SET_ETHTOOL_OPS gone.
9 This does that.
10
11 Mostly done via coccinelle script:
12 @@
13 struct ethtool_ops *ops;
14 struct net_device *dev;
15 @@
16 - SET_ETHTOOL_OPS(dev, ops);
17 + dev->ethtool_ops = ops;
18
19 Compile tested only, but I'd seriously wonder if this broke anything.
20
21 Suggested-by: Dave Miller <davem@davemloft.net>
22 Signed-off-by: Wilfried Klaebe <w-lkml@lebenslange-mailadresse.de>
23 Acked-by: Felipe Balbi <balbi@ti.com>
24 Signed-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
29 diff --git a/drivers/net/hyperv/netvsc_drv.c b/drivers/net/hyperv/netvsc_drv.c
30 index 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 --
43 2.4.3
44