hv_netvsc: Clean up an unused parameter in rndis_filter_set_rss_param()
authorHaiyang Zhang <haiyangz@microsoft.com>
Fri, 1 Sep 2017 21:30:04 +0000 (14:30 -0700)
committerDavid S. Miller <davem@davemloft.net>
Sat, 2 Sep 2017 03:39:12 +0000 (20:39 -0700)
This patch removes the parameter, num_queue in
rndis_filter_set_rss_param(), which is no longer in use.

Signed-off-by: Haiyang Zhang <haiyangz@microsoft.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/hyperv/hyperv_net.h
drivers/net/hyperv/netvsc_drv.c
drivers/net/hyperv/rndis_filter.c

index ff1c0c8d5e0da059e2faf1e4220415ddd599bcd9..ec546da86683296bfa120caa47be5030f793f168 100644 (file)
@@ -213,7 +213,7 @@ void rndis_filter_update(struct netvsc_device *nvdev);
 void rndis_filter_device_remove(struct hv_device *dev,
                                struct netvsc_device *nvdev);
 int rndis_filter_set_rss_param(struct rndis_device *rdev,
-                              const u8 *key, int num_queue);
+                              const u8 *key);
 int rndis_filter_receive(struct net_device *ndev,
                         struct netvsc_device *net_dev,
                         struct hv_device *dev,
index 3aee4b68ff138d6e7502aa757d64b8fd8ca58e5f..992a48ec02065b4c33c60911846339bdfa97ef20 100644 (file)
@@ -1424,7 +1424,7 @@ static int netvsc_set_rxfh(struct net_device *dev, const u32 *indir,
                key = rndis_dev->rss_key;
        }
 
-       return rndis_filter_set_rss_param(rndis_dev, key, ndev->num_chn);
+       return rndis_filter_set_rss_param(rndis_dev, key);
 }
 
 /* Hyper-V RNDIS protocol does not have ring in the HW sense.
index 36e9ee82ec6f4caba81598b0f59415a91439b9fa..496fefa7c7c4e5e7802562df4b9fb4828cdc327e 100644 (file)
@@ -717,7 +717,7 @@ cleanup:
 }
 
 int rndis_filter_set_rss_param(struct rndis_device *rdev,
-                              const u8 *rss_key, int num_queue)
+                              const u8 *rss_key)
 {
        struct net_device *ndev = rdev->ndev;
        struct rndis_request *request;
@@ -1258,8 +1258,7 @@ struct netvsc_device *rndis_filter_device_add(struct hv_device *dev,
                   atomic_read(&net_device->open_chn) == net_device->num_chn);
 
        /* ignore failues from setting rss parameters, still have channels */
-       rndis_filter_set_rss_param(rndis_device, netvsc_hash_key,
-                                  net_device->num_chn);
+       rndis_filter_set_rss_param(rndis_device, netvsc_hash_key);
 out:
        if (ret) {
                net_device->max_chn = 1;