Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753848AbcJOJTw (ORCPT ); Sat, 15 Oct 2016 05:19:52 -0400 Received: from szxga01-in.huawei.com ([58.251.152.64]:61825 "EHLO szxga01-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752977AbcJOJTu (ORCPT ); Sat, 15 Oct 2016 05:19:50 -0400 From: Lipengcheng To: "balbi@ti.com" CC: "gregkh@linuxfoundation.org" , "linux-usb@vger.kernel.org" , "linux-kernel@vger.kernel.org" Subject: USB GADGET: have a question about usb2eth Thread-Topic: USB GADGET: have a question about usb2eth Thread-Index: AdImxTynS1Vo/LA8Rz6fw2nkJznvUw== Date: Sat, 15 Oct 2016 09:19:33 +0000 Message-ID: <637796ED17F7774FB27D6AAE3C6951584A949A31@SZXEMA509-MBS.china.huawei.com> Accept-Language: zh-CN, en-US Content-Language: zh-CN X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [10.67.223.197] Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 X-CFilter-Loop: Reflected Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from base64 to 8bit by mail.home.local id u9F9Jt68027769 Content-Length: 479 Lines: 5 Hi, 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 = 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, the linux ping the win7 is slow an the first. Best Regard Pengcheng Li