netvsc: remove no longer used max_num_rss queues
authorstephen hemminger <stephen@networkplumber.org>
Mon, 24 Jul 2017 17:57:30 +0000 (10:57 -0700)
committerDavid S. Miller <davem@davemloft.net>
Tue, 25 Jul 2017 00:39:20 +0000 (17:39 -0700)
This value has been calculated in rndis_device_attach since 4.11.

Signed-off-by: Stephen Hemminger <sthemmin@microsoft.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/hyperv/hyperv_net.h
drivers/net/hyperv/netvsc_drv.c

index afb65f753574483abcfc58cb63cf7cf4b5971920..4e7ff348327ea190d6bcc017694dfd45c0e2a53f 100644 (file)
@@ -147,7 +147,6 @@ struct hv_netvsc_packet {
 struct netvsc_device_info {
        unsigned char mac_adr[ETH_ALEN];
        int  ring_size;
-       u32  max_num_vrss_chns;
        u32  num_chn;
 };
 
index a94fd545a650ccfbe9a8c7277d4dc85f392ee988..262486ce8e2a79ed0fc1e3f74a895374a8de933d 100644 (file)
@@ -753,7 +753,6 @@ static int netvsc_set_channels(struct net_device *net,
        memset(&device_info, 0, sizeof(device_info));
        device_info.num_chn = count;
        device_info.ring_size = ring_size;
-       device_info.max_num_vrss_chns = count;
 
        nvdev = rndis_filter_device_add(dev, &device_info);
        if (!IS_ERR(nvdev)) {
@@ -762,7 +761,6 @@ static int netvsc_set_channels(struct net_device *net,
                ret = PTR_ERR(nvdev);
        } else {
                device_info.num_chn = orig;
-               device_info.max_num_vrss_chns = count;
                rndis_filter_device_add(dev, &device_info);
        }