summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHaiyang Zhang <haiyangz@microsoft.com>2012-10-02 05:30:19 +0000
committerDavid S. Miller <davem@davemloft.net>2012-10-02 14:39:30 -0400
commitfb1d074edb92604f313ac671f67e806c3223d191 (patch)
tree244d27dd95de6e2e57f5462d805e4d215f222a60
parentbfe1b9b16e3bed06d16826813edf5922fd82d91f (diff)
downloadop-kernel-dev-fb1d074edb92604f313ac671f67e806c3223d191.zip
op-kernel-dev-fb1d074edb92604f313ac671f67e806c3223d191.tar.gz
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 <haiyangz@microsoft.com> Reviewed-by: K. Y. Srinivasan <kys@microsoft.com> Signed-off-by: David S. Miller <davem@davemloft.net>
-rw-r--r--drivers/net/hyperv/rndis_filter.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/net/hyperv/rndis_filter.c b/drivers/net/hyperv/rndis_filter.c
index 06f8601..1337b64 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;
OpenPOWER on IntegriCloud