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

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 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;
 
-- 
1.7.4.1

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

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

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-10-02 15:30 [PATCH net-next,1/6] hyperv: Fix the max_xfer_size in RNDIS initialization Haiyang Zhang
2012-10-02 15:30 ` [PATCH net-next,2/6] hyperv: Fix the missing return value in rndis_filter_set_packet_filter() Haiyang Zhang
2012-10-02 18:42   ` David Miller
2012-10-02 15:30 ` [PATCH net-next, 3/6] hyperv: Fix page buffer handling in rndis_filter_send_request() Haiyang Zhang
2012-10-02 18:42   ` [PATCH net-next,3/6] " David Miller
2012-10-02 15:30 ` [PATCH net-next,4/6] hyperv: Remove extra allocated space for recv_pkt_list elements Haiyang Zhang
2012-10-02 18:42   ` David Miller
2012-10-02 15:30 ` [PATCH net-next,5/6] hyperv: Report actual status in receive completion packet Haiyang Zhang
2012-10-02 18:42   ` David Miller
2012-10-02 15:30 ` [PATCH net-next,6/6] hyperv: Add buffer for extended info after the RNDIS response message Haiyang Zhang
2012-10-02 18:42   ` David Miller
2012-10-02 18:40 ` [PATCH net-next,1/6] hyperv: Fix the max_xfer_size in RNDIS initialization David Miller

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).