]> git.ipfire.org Git - ipfire-2.x.git/blame - src/patches/linux/0020-Add-support-for-netvsc-build-without-CONFIG_SYSFS-fl.patch
util-linux: update rootfile (armv5tel)
[ipfire-2.x.git] / src / patches / linux / 0020-Add-support-for-netvsc-build-without-CONFIG_SYSFS-fl.patch
CommitLineData
a7b0967d
MT
1From 3f0b77385356301cf4718a94f76a4068588ecb8e Mon Sep 17 00:00:00 2001
2From: Haiyang Zhang <haiyangz@microsoft.com>
3Date: Thu, 8 May 2014 15:14:10 -0700
4Subject: [PATCH 20/25] Add support for netvsc build without CONFIG_SYSFS flag
5
6This change ensures the driver can be built successfully without the
7CONFIG_SYSFS flag.
8MS-TFS: 182270
9
10Signed-off-by: Haiyang Zhang <haiyangz@microsoft.com>
11Reviewed-by: K. Y. Srinivasan <kys@microsoft.com>
12Signed-off-by: David S. Miller <davem@davemloft.net>
13---
14 drivers/net/hyperv/netvsc_drv.c | 5 +----
15 1 file changed, 1 insertion(+), 4 deletions(-)
16
17diff --git a/drivers/net/hyperv/netvsc_drv.c b/drivers/net/hyperv/netvsc_drv.c
18index 9a19aa5672e6..346f1aeb9c24 100644
19--- a/drivers/net/hyperv/netvsc_drv.c
20+++ b/drivers/net/hyperv/netvsc_drv.c
21@@ -645,8 +645,7 @@ int netvsc_recv_callback(struct hv_device *device_obj,
22 packet->vlan_tci);
23
24 skb_record_rx_queue(skb, packet->channel->
25- offermsg.offer.sub_channel_index %
26- net->real_num_rx_queues);
27+ offermsg.offer.sub_channel_index);
28
29 net->stats.rx_packets++;
30 net->stats.rx_bytes += packet->total_data_buflen;
31@@ -829,8 +828,6 @@ static int netvsc_probe(struct hv_device *dev,
32 nvdev = hv_get_drvdata(dev);
33 netif_set_real_num_tx_queues(net, nvdev->num_chn);
34 netif_set_real_num_rx_queues(net, nvdev->num_chn);
35- dev_info(&dev->device, "real num tx,rx queues:%u, %u\n",
36- net->real_num_tx_queues, net->real_num_rx_queues);
37
38 ret = register_netdev(net);
39 if (ret != 0) {
40--
412.4.3
42