commit | ff06ab13a4ccae4acb44a2d4e3ece367b616ab50 | [log] [tgz] |
---|---|---|
author | Bjørn Mork <bjorn@mork.no> | Mon Oct 22 10:56:33 2012 +0000 |
committer | David S. Miller <davem@davemloft.net> | Tue Oct 23 02:40:10 2012 -0400 |
tree | f67ff98b22fa8e9cec3c38aff6253f2b181e54bd | |
parent | 75d67d354f7c9bcaaee3dd30a627d8e34d068205 [diff] |
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>