Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CDC NCM function #4

Open
benedekkupper opened this issue Sep 21, 2023 · 1 comment
Open

CDC NCM function #4

benedekkupper opened this issue Sep 21, 2023 · 1 comment
Labels
enhancement New feature or request

Comments

@benedekkupper
Copy link
Member

Porting over the existing implementation, likely with a redesign of the application interface. Hooking into zephyr's network stack would be a good validation target, and easy to get started with, since the USB device is ported already.

@benedekkupper benedekkupper added the enhancement New feature or request label Sep 21, 2023
@benedekkupper benedekkupper changed the title CDC NCM interface CDC NCM function Sep 21, 2023
@benedekkupper
Copy link
Member Author

Keep this in mind:

When NCM is used with hosts like Windows PC, it is observed that there are
multiple NTB's contained in one usb request giveback. Since the driver
unwraps the obtained request data assuming only one NTB is present, we loose
the subsequent NTB's present resulting in data loss.

Fix this by checking the parsed block length with the obtained data length
in usb request and continue parsing after the last byte of current NTB.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant