net: cdc_ncm: splitting rx_fixup for code reuse
authorBjørn Mork <bjorn@mork.no>
Mon, 22 Oct 2012 10:56:33 +0000 (10:56 +0000)
committerDavid S. Miller <davem@davemloft.net>
Tue, 23 Oct 2012 06:40:10 +0000 (02:40 -0400)
commitff06ab13a4ccae4acb44a2d4e3ece367b616ab50
treef67ff98b22fa8e9cec3c38aff6253f2b181e54bd
parent75d67d354f7c9bcaaee3dd30a627d8e34d068205
net: cdc_ncm: splitting rx_fixup for code reuse

Verifying and handling received MBIM and NCM frames will need
to be different in three areas:
 - verifying the NDP signature
 - checking valid datagram length
 - datagram header manipulation

This makes it inconvenient to share rx_fixup in whole.  But
some verification parts are common.  Split these out in separate
functions.

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