]> git.ipfire.org Git - people/ms/linux.git/commitdiff
Add support for netvsc build without CONFIG_SYSFS flag
authorHaiyang Zhang <haiyangz@microsoft.com>
Thu, 8 May 2014 22:14:10 +0000 (15:14 -0700)
committerMichael Tremer <michael.tremer@ipfire.org>
Sat, 19 Dec 2015 16:38:36 +0000 (16:38 +0000)
This change ensures the driver can be built successfully without the
CONFIG_SYSFS flag.
MS-TFS: 182270

Signed-off-by: Haiyang Zhang <haiyangz@microsoft.com>
Reviewed-by: K. Y. Srinivasan <kys@microsoft.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/hyperv/netvsc_drv.c

index 9a19aa5672e6c10acb2db6ad428a1cb6430adc9a..346f1aeb9c2410d6426a9d853d82242cced2b59c 100644 (file)
@@ -645,8 +645,7 @@ int netvsc_recv_callback(struct hv_device *device_obj,
                                       packet->vlan_tci);
 
        skb_record_rx_queue(skb, packet->channel->
-                           offermsg.offer.sub_channel_index %
-                           net->real_num_rx_queues);
+                           offermsg.offer.sub_channel_index);
 
        net->stats.rx_packets++;
        net->stats.rx_bytes += packet->total_data_buflen;
@@ -829,8 +828,6 @@ static int netvsc_probe(struct hv_device *dev,
        nvdev = hv_get_drvdata(dev);
        netif_set_real_num_tx_queues(net, nvdev->num_chn);
        netif_set_real_num_rx_queues(net, nvdev->num_chn);
-       dev_info(&dev->device, "real num tx,rx queues:%u, %u\n",
-                net->real_num_tx_queues, net->real_num_rx_queues);
 
        ret = register_netdev(net);
        if (ret != 0) {