Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757309AbcJQJ3k (ORCPT ); Mon, 17 Oct 2016 05:29:40 -0400 Received: from mga03.intel.com ([134.134.136.65]:4066 "EHLO mga03.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754223AbcJQJ3c (ORCPT ); Mon, 17 Oct 2016 05:29:32 -0400 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.31,357,1473145200"; d="asc'?scan'208";a="20402874" From: Felipe Balbi To: Lipengcheng , Peter Chen Cc: "gregkh\@linuxfoundation.org" , "linux-usb\@vger.kernel.org" , "linux-kernel\@vger.kernel.org" Subject: RE: USB GADGET: have a question about usb2eth In-Reply-To: <637796ED17F7774FB27D6AAE3C6951584A949CBB@SZXEMA509-MBS.china.huawei.com> References: <637796ED17F7774FB27D6AAE3C6951584A949A31@SZXEMA509-MBS.china.huawei.com> <20161017015618.GB1301@b29397-desktop> <637796ED17F7774FB27D6AAE3C6951584A949CBB@SZXEMA509-MBS.china.huawei.com> Date: Mon, 17 Oct 2016 12:28:42 +0300 Message-ID: <87y41ns4s5.fsf@linux.intel.com> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha256; protocol="application/pgp-signature" Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 2221 Lines: 59 --=-=-= Content-Type: text/plain Content-Transfer-Encoding: quoted-printable Hi, (please, avoid top-posting: http://daringfireball.net/2007/07/on_top) Lipengcheng writes: > Hi, > thank you for your suggestion. > > I have a question about usb2eth. In the function gen_ndis_set_resp > of the rndis.c, the value of *params->filter may be 0x20 from the > pc set command; Howerver the value is used cdc_filter =3D=20 > dev->port_usb->cdc_filter in the function eth_start_xmit of the u_ether.c. > If we do not judge the RNDIS_PACKET_TYPE_PROMISCUOUS and the value is > 0x20, the broadcast packet can not send the pc win7; At the result,=20 > the linux ping the win7 is slow an the first. At the same time, Why are=20 > different value between RNDIS_PACKET_TYPE_PROMISCUOUS and > USB_CDC_PACKET_TYPE_PROMISCUOUS? If the value of RNDIS_PACKET_TYPE_PROMIS= CUOUS because they are defined by different specifications. You should read both CDC specification from USB.org and RNDIS spec from Microsoft to understand the details of that. > and USB_CDC_PACKET_TYPE_PROMISCUOUS is same, then the linux ping the win7= is > normal speed. I don't understand what's going on here. Care to describe which kernel you're using, which USB peripheral controller, what is the actual problem you're trying to solve? =2D-=20 balbi --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIcBAEBCAAGBQJYBJnKAAoJEMy+uJnhGpkGnV0QAMLbnHX+i1eZbfxnef6GgXPO L0JOT9x8fXh68npFg25b0CH0W0CcdAOO/6wZe7FVQUlgvVNZzqtTXsicuLlIJdts 2HhQ9AS/I2tKw7/S5a6sN4VGZ8y/U+18jLw8Sm+BduhSQVGUejIDqtn+KEuelkkG nkwL37GDOW64yKPe+mUO1W8hHFKH/O+7l9uEJ9gjiouqM6iv0vuniGJivsntT8GR /eCEV7Q16KkJxgWZr3Kkoj4MViX+Z0aSTV4idJJ6+BfOgqhcK9zT2FNz+q19yNMo VIoE9uA4PsXSkqqPsMuG1UQdJ/Ul4xL7cBqtmBtf/y4Fap6s7OCA4AlcXpTnfzL8 9PsSqfEbNNYYQBzXrlHmKEYFHNnbln4RQn1/QPr5wwZ6bmqvMsWdb2MxYq5wwPuY AhUjV78Vh/qiKcibAbl97ZpK0dcxmWjAUDJF/hMZ3kMbV2TNW6UzjgqdfkA3pSCj Cg9JTxG4gXRD1u14/GooFZuk76Yoroip1Z6LUnhtjiEuqi3cKcaxufxE+e7ZHYM+ BmmfOx362cpD5IT7ncEtrfuxSBQkDmw8rseWa6ET9aUdrRsbxFnxhIY0SJNT1bIQ 2UaTWnVO15m4Ml3hrvnhzg7Ht5sNnUZ3Tw67kF5ot3+kZwpVZbn+wS5Eezu42Z4o onzTf6kRQz4yGRcc8kHF =EnDe -----END PGP SIGNATURE----- --=-=-=--