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

From: Haiyang Zhang
Date: Thu Feb 26 2015 - 16:01:54 EST


> -----Original Message-----
> From: Andrew Schwartzmeyer [mailto:andrew@xxxxxxxxxxxxxxxxx]
> Subject: [PATCH] Implement Hyper-V netvsc_get_channels() ethool op

Please add net-next to the subject (the patch should also be based on that tree).
Also the "hyperv: " word should come first.
Like this:
[PATCH net-next] hyperv: Implement netvsc_get_channels() ethool op

> --- a/drivers/net/hyperv/rndis_filter.c
> +++ b/drivers/net/hyperv/rndis_filter.c
> @@ -1094,6 +1094,7 @@ int rndis_filter_device_add(struct hv_device *dev,

On top part of this function, you also need to initialize max_chn = 1 around here:
/* Initialize the rndis device */
net_device = hv_get_drvdata(dev);
net_device->num_chn = 1;

because the query for rsscap.num_recv_que is not done on all VSP versions.

Thanks,
- Haiyang

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/