]> git.baikalelectronics.ru Git - kernel.git/commit
hyperv: Implement netvsc_get_channels() ethool op
authorAndrew Schwartzmeyer <andrew@schwartzmeyer.com>
Fri, 27 Feb 2015 00:27:14 +0000 (16:27 -0800)
committerDavid S. Miller <davem@davemloft.net>
Sat, 28 Feb 2015 21:51:36 +0000 (16:51 -0500)
commitc9da6b7c0f3200fd17f1e9c6e68736de9ba077be
tree99f9469b129665f94333926f397f4288bf1aacbf
parent9ee4014bd36f4185fd3356f5c3bea8d8d04817bf
hyperv: Implement netvsc_get_channels() ethool op

This adds support for reporting the actual and maximum combined channels
count of the hv_netvsc driver via 'ethtool --show-channels'.

This required adding 'max_chn' to 'struct netvsc_device', and assigning
it 'rsscap.num_recv_que' in 'rndis_filter_device_add'. Now we can access
the combined maximum channel count via 'struct netvsc_device' in the
ethtool callback.

Signed-off-by: Andrew Schwartzmeyer <andrew@schwartzmeyer.com>
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