linux/drivers/net/hyperv
Haiyang Zhang 06be580ac7 hv_netvsc: Simplify the limit check in netvsc_set_channels()
Because of the following code, net->num_tx_queues equals to
VRSS_CHANNEL_MAX, and max_chn is less than or equals to VRSS_CHANNEL_MAX.

netvsc_drv.c:
alloc_etherdev_mq(sizeof(struct net_device_context),
                                VRSS_CHANNEL_MAX);
rndis_filter.c:
net_device->max_chn = min_t(u32, VRSS_CHANNEL_MAX, num_possible_rss_qs);

So this patch removes the unnecessary limit check before comparing
with "max_chn".

Signed-off-by: Haiyang Zhang <haiyangz@microsoft.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2017-09-01 20:39:12 -07:00
..
hyperv_net.h hv_netvsc: Clean up an unused parameter in rndis_filter_set_rss_param() 2017-09-01 20:39:12 -07:00
Kconfig
Makefile
netvsc_drv.c hv_netvsc: Simplify the limit check in netvsc_set_channels() 2017-09-01 20:39:12 -07:00
netvsc.c vmbus: remove unused vmbus_sendpacket_ctl 2017-08-16 16:27:45 -07:00
rndis_filter.c hv_netvsc: Simplify num_chn checking in rndis_filter_device_add() 2017-09-01 20:39:12 -07:00