netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH net, 1/3] hyperv: Fix the max_xfer_size in RNDIS initialization
@ 2012-10-01 22:30 Haiyang Zhang
  2012-10-01 22:30 ` [PATCH net, 2/3] hyperv: Fix the missing return value in rndis_filter_set_packet_filter() Haiyang Zhang
                   ` (2 more replies)
  0 siblings, 3 replies; 7+ messages in thread
From: Haiyang Zhang @ 2012-10-01 22:30 UTC (permalink / raw)
  To: davem, netdev; +Cc: olaf, jasowang, linux-kernel, devel, haiyangz

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>

---
 drivers/net/hyperv/rndis_filter.c |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)

diff --git a/drivers/net/hyperv/rndis_filter.c b/drivers/net/hyperv/rndis_filter.c
index 1e88a10..3cb7486 100644
--- a/drivers/net/hyperv/rndis_filter.c
+++ b/drivers/net/hyperv/rndis_filter.c
@@ -678,8 +678,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;
 
-- 
1.7.4.1

^ permalink raw reply related	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2012-10-02 14:28 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-10-01 22:30 [PATCH net, 1/3] hyperv: Fix the max_xfer_size in RNDIS initialization Haiyang Zhang
2012-10-01 22:30 ` [PATCH net, 2/3] hyperv: Fix the missing return value in rndis_filter_set_packet_filter() Haiyang Zhang
2012-10-01 22:30 ` [PATCH net, 3/3] hyperv: Fix page buffer handling in rndis_filter_send_request() Haiyang Zhang
2012-10-02  8:38   ` Dan Carpenter
2012-10-02 14:28     ` Haiyang Zhang
2012-10-01 22:39 ` [PATCH net,1/3] hyperv: Fix the max_xfer_size in RNDIS initialization David Miller
2012-10-02  2:07   ` Haiyang Zhang

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).