[PATCH net-next 2/2] hv_netvsc: Implement set_channels ethtool op

2015-08-11 Thread Andrew Schwartzmeyer
eld. If the procedure fails, it attempts to recover to the prior state. If the recovery fails, it logs an error and aborts. Current num_chn is saved and restored when changing the MTU. Signed-off-by: Andrew Schwartzmeyer --- drivers/net/hyperv/netvsc_drv.c | 97 +

[PATCH net-next 1/2] hv_netvsc: Set vRSS with num_chn in RNDIS filter

2015-08-11 Thread Andrew Schwartzmeyer
erwise not all its fields are guaranteed to be 0, which is necessary when checking if num_chn has been purposefully set. Signed-off-by: Andrew Schwartzmeyer --- drivers/net/hyperv/hyperv_net.h | 1 + drivers/net/hyperv/netvsc_drv.c | 3 +++ drivers/net/hyperv/rndis_filter.c | 7 ++- 3

[PATCH net-next 2/2] hv_netvsc: Implement set_channels ethtool op

2015-08-11 Thread Andrew Schwartzmeyer
. If the procedure fails, it attempts to recover to the prior state. If the recovery fails, it logs an error and aborts. Current num_chn is saved and restored when changing the MTU. Signed-off-by: Andrew Schwartzmeyer andsc...@microsoft.com --- drivers/net/hyperv/netvsc_drv.c | 97

[PATCH net-next 1/2] hv_netvsc: Set vRSS with num_chn in RNDIS filter

2015-08-11 Thread Andrew Schwartzmeyer
not all its fields are guaranteed to be 0, which is necessary when checking if num_chn has been purposefully set. Signed-off-by: Andrew Schwartzmeyer andsc...@microsoft.com --- drivers/net/hyperv/hyperv_net.h | 1 + drivers/net/hyperv/netvsc_drv.c | 3 +++ drivers/net/hyperv/rndis_filter.c | 7

[PATCH net-next] hyperv: Implement netvsc_get_channels() ethool op

2015-02-26 Thread Andrew Schwartzmeyer
maximum channel count via 'struct netvsc_device' in the ethtool callback. Signed-off-by: Andrew Schwartzmeyer --- drivers/net/hyperv/hyperv_net.h | 1 + drivers/net/hyperv/netvsc_drv.c | 14 ++ drivers/net/hyperv/rndis_filter.c | 6 +- 3 files changed, 20 insertions(+), 1

[PATCH] Implement Hyper-V netvsc_get_channels() ethool op

2015-02-26 Thread Andrew Schwartzmeyer
via 'struct netvsc_device' in the ethtool callback. Signed-off-by: Andrew Schwartzmeyer --- drivers/net/hyperv/hyperv_net.h | 1 + drivers/net/hyperv/netvsc_drv.c | 14 ++ drivers/net/hyperv/rndis_filter.c | 5 - 3 files changed, 19 insertions(+), 1 deletion(-) diff --git

[PATCH net-next] hyperv: Implement netvsc_get_channels() ethool op

2015-02-26 Thread Andrew Schwartzmeyer
maximum channel count via 'struct netvsc_device' in the ethtool callback. Signed-off-by: Andrew Schwartzmeyer and...@schwartzmeyer.com --- drivers/net/hyperv/hyperv_net.h | 1 + drivers/net/hyperv/netvsc_drv.c | 14 ++ drivers/net/hyperv/rndis_filter.c | 6 +- 3 files changed, 20

[PATCH] Implement Hyper-V netvsc_get_channels() ethool op

2015-02-26 Thread Andrew Schwartzmeyer
via 'struct netvsc_device' in the ethtool callback. Signed-off-by: Andrew Schwartzmeyer and...@schwartzmeyer.com --- drivers/net/hyperv/hyperv_net.h | 1 + drivers/net/hyperv/netvsc_drv.c | 14 ++ drivers/net/hyperv/rndis_filter.c | 5 - 3 files changed, 19 insertions(+), 1