]> 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)
commitd116cf66c750a2120e84e37981c3cd5418806232
tree81c298292d1ca721ab130a16d6c13f1a305af587
parent8dec363d0e2b44095c63a953a9b21f7a3073d55f
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