Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1501636
| From | Lipengcheng <lpc.li@hisilicon.com> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | RE: USB GADGET: have a question about usb2eth |
| Date | 2016-10-17 09:00 +0200 |
| Message-ID | <sta3U-8rr-11@gated-at.bofh.it> (permalink) |
| References | <sstih-5E9-3@gated-at.bofh.it> <st5nz-5hC-5@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
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 = 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. At the same time, Why are different value between RNDIS_PACKET_TYPE_PROMISCUOUS and USB_CDC_PACKET_TYPE_PROMISCUOUS? If the value of RNDIS_PACKET_TYPE_PROMISCUOUS and USB_CDC_PACKET_TYPE_PROMISCUOUS is same, then the linux ping the win7 is normal speed. Best Regards Pengcheng Li > -----Original Message----- > From: Peter Chen [mailto:hzpeterchen@gmail.com] > Sent: Monday, October 17, 2016 9:56 AM > To: Lipengcheng > Cc: balbi@ti.com; gregkh@linuxfoundation.org; linux-usb@vger.kernel.org; linux-kernel@vger.kernel.org > Subject: Re: USB GADGET: have a question about usb2eth > > On Sat, Oct 15, 2016 at 09:19:33AM +0000, Lipengcheng wrote: > > 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. > > > > The Felipe's email has changed, please check MAINTAINERS. > Besides, would you wrap up line to 75 characters please? > > -- > > Best Regards, > Peter Chen
Back to linux.kernel | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
USB GADGET: have a question about usb2eth Lipengcheng <lpc.li@hisilicon.com> - 2016-10-15 11:20 +0200
Re: USB GADGET: have a question about usb2eth Peter Chen <hzpeterchen@gmail.com> - 2016-10-17 04:00 +0200
RE: USB GADGET: have a question about usb2eth Lipengcheng <lpc.li@hisilicon.com> - 2016-10-17 09:00 +0200
RE: USB GADGET: have a question about usb2eth Felipe Balbi <balbi@kernel.org> - 2016-10-17 11:40 +0200
RE: USB GADGET: have a question about usb2eth Lipengcheng <lpc.li@hisilicon.com> - 2016-10-18 05:30 +0200
RE: USB GADGET: have a question about usb2eth Felipe Balbi <balbi@kernel.org> - 2016-10-18 09:20 +0200
csiph-web