]> Pileus Git - ~andy/linux/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)
commitf553e1aad797540afddd1a99753a348e1c426ffe
tree8d84d1298269c759ec7cd2686c5faccd903b6ce1
parent9931078e36bd2caa3d5364cab31a893d50a8b5de
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