RFC cdc_ncm: some basic refactoring
Get series with b4
b4 am [email protected]Versions newest first
- v1 RFC Latest6 patches 2 repliesIn review
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/6 | cdc_ncm: factor out skb allocation and finalizzingdrivers/ | +35 | 0 replies | |
| 2/6 | cdc_ncm: be more precise in comments for cdc_ncm_prepare_skb_ncm16drivers/ | +1 | 2 replies | |
| 3/6 | cdc_ncm: add needed members to cdc_ncm_ctx for refactoringinclude/ | +1 | 0 replies | |
| 4/6 | cdc_ncm: update specs URLdrivers/ | +1 | 0 replies | |
| 5/6 | cdc_ncm: fix typodrivers/ | +1 | 0 replies | |
| 6/6 | cdc_ncm: factor out NDP preparation and frame linkingdrivers/ | +16 | 0 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.
Cover letter [RFC PATCH 0/6] cdc_ncm: some basic refactoring
Here is some work I did to move in the direction of refactoring the cdc_ncm module, to allow for future further changes.
This is work in progress (WIP): and I know some changes are controversial. In particular, the modification you can see related to cdc_ncm.h header file is useless at this point. But actually it can be useful for learning from your
opinions: is this the right thing to do?
Thank in advance to anyone reviewing this code.
The final objective would be to have the driver accumulate frames as it does now, but in a skb queue (sk_buff_head), and then generating the NCM frame itself only when needed (queue full / flueshed).
I need assistance / help: the logic seems hard to follow for me (is it me or is it little bit convoluted?).
Thank you for any help, waiting for your comments.
Note: please CC me as I am not subscribed to this list.
Enrico Mioso (6):
cdc_ncm: factor out skb allocation and finalizzing
cdc_ncm: be more precise in comments for cdc_ncm_prepare_skb_ncm16
cdc_ncm: add needed members to cdc_ncm_ctx for refactoring
cdc_ncm: update specs URL
cdc_ncm: fix typo
cdc_ncm: factor out NDP preparation and frame linking
drivers/net/usb/cdc_ncm.c | 74 ++++++++++++++++++++++++++++++++------------- include/linux/usb/cdc_ncm.h | 1 + 2 files changed, 54 insertions(+), 21 deletions(-)
Signature · 1 line
2.2.1