From: Haiyang Zhang Date: Tue, 2 Oct 2012 05:30:19 +0000 (+0000) Subject: hyperv: Fix the max_xfer_size in RNDIS initialization X-Git-Tag: MMI-PSA29.97-13-9~15870^2~5 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=fb1d074edb92604f313ac671f67e806c3223d191;p=GitHub%2FMotorolaMobilityLLC%2Fkernel-slsi.git hyperv: Fix the max_xfer_size in RNDIS initialization According to RNDIS specs, Windows sets this size to 0x4000. I use the same value here. Signed-off-by: Haiyang Zhang Reviewed-by: K. Y. Srinivasan Signed-off-by: David S. Miller --- diff --git a/drivers/net/hyperv/rndis_filter.c b/drivers/net/hyperv/rndis_filter.c index 06f8601f32fc..1337b64b36a4 100644 --- a/drivers/net/hyperv/rndis_filter.c +++ b/drivers/net/hyperv/rndis_filter.c @@ -684,8 +684,7 @@ static int rndis_filter_init_device(struct rndis_device *dev) init = &request->request_msg.msg.init_req; init->major_ver = RNDIS_MAJOR_VERSION; init->minor_ver = RNDIS_MINOR_VERSION; - /* FIXME: Use 1536 - rounded ethernet frame size */ - init->max_xfer_size = 2048; + init->max_xfer_size = 0x4000; dev->state = RNDIS_DEV_INITIALIZING;