]> git.baikalelectronics.ru Git - kernel.git/commit
net: cdc_ncm: refactoring for tx multiplexing
authorBjørn Mork <bjorn@mork.no>
Mon, 22 Oct 2012 10:56:34 +0000 (10:56 +0000)
committerDavid S. Miller <davem@davemloft.net>
Tue, 23 Oct 2012 06:40:11 +0000 (02:40 -0400)
commit65ede30cd98ae06714f65016424a775e1f1de4a5
tree81c298292d1ca721ab130a16d6c13f1a305af587
parentd957b76e1f6beaf1ffd2bba8e3b2bcad05192c38
net: cdc_ncm: refactoring for tx multiplexing

Adding multiplexed NDP support to cdc_ncm_fill_tx_frame, allowing
transmissions of multiple independent sessions within the same NTB.

Refactoring the code quite a bit to avoid having to store copies
of multiple NDPs being prepared for tx. The old code would still
reserve enough room for a maximum sized NDP in the skb so we might
as well keep them in the skb while they are being prepared.

Signed-off-by: Bjørn Mork <bjorn@mork.no>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/usb/cdc_ncm.c