Skip to content

Commit

Permalink
hyperv: Fix the max_xfer_size in RNDIS initialization
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Haiyang Zhang authored and David S. Miller committed Oct 2, 2012
1 parent bfe1b9b commit fb1d074
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions drivers/net/hyperv/rndis_filter.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit fb1d074

Please sign in to comment.