]> git.baikalelectronics.ru Git - kernel.git/commit
mwifiex: modify skb->truesize for PCIE Rx
authorAvinash Patil <patila@marvell.com>
Tue, 5 Mar 2013 00:27:56 +0000 (16:27 -0800)
committerJohn W. Linville <linville@tuxdriver.com>
Wed, 6 Mar 2013 21:29:11 +0000 (16:29 -0500)
commita13a4c243efa2a0066a9030b5be887e9a59dfa49
tree8d84d1298269c759ec7cd2686c5faccd903b6ce1
parente569d94084729203e5d1bcd31af22794f95b0327
mwifiex: modify skb->truesize for PCIE Rx

We allocate SKB buffers of 4K size to make sure that we process
RX AMSDU of 4K. So when skb->len is lesser than 4K; we should
modify skb->truesize. This resolves an issue where kernel has
allocated packets with 2K assumption and starts dropping packets
for large size data transfer.

This fix is already present for USB; extend it to PCIE.

Signed-off-by: Avinash Patil <patila@marvell.com>
Signed-off-by: Bing Zhao <bzhao@marvell.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/mwifiex/util.c