RE: [PATCH 1/2] usbnet: changes for upcoming cdc_ncm driver

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Alexey ORISHKO
Date: Wednesday, November 24, 2010 - 8:14 am

Hi David,


Will do.


Patch was based on linux-next git and I don't see any difference from
net-next. Any particular git you'd like me to look at pending patches?


This flag carries two purposes:
- help to correct statistic (Tx/Rx counting)
- handle NCM feature to avoid sending short packets in certain
conditions: cdc_ncm driver has to send short packet (or ZLP) only
if data size is not equal to negotiated data size (dwNtbOutMaxSize).

The other option (instead of dedicated flag) would be to add
additional field in the usbnet context structure, which will keep
dwNtbOutMaxSize value (it still would be better to use
dedicated flag in addition to the value). Thus usbnet would possess
the knowledge when ZLP or short packet should be skipped.
By doing this approach we will eliminate a need to generate short
packet inside the driver and use generic code in usbnet.

Could you comment, what would be the preferable way to get it in the
next version of this patch?

Regards,
Alexey

--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[PATCH 1/2] usbnet: changes for upcoming cdc_ncm driver, Alexey Orishko, (Tue Nov 23, 9:51 am)
[PATCH 2/2] USB CDC NCM host driver, Alexey Orishko, (Tue Nov 23, 9:51 am)
Re: [PATCH 1/2] usbnet: changes for upcoming cdc_ncm driver, David Brownell, (Tue Nov 23, 11:58 am)
RE: [PATCH 1/2] usbnet: changes for upcoming cdc_ncm driver, Alexey ORISHKO, (Wed Nov 24, 8:14 am)