vmxnet3: Provide required number of bytes in first SG buffer
authorShreyas Bhatewara <sbhatewara@vmware.com>
Fri, 14 Jan 2011 14:59:41 +0000 (14:59 +0000)
committerDavid S. Miller <davem@davemloft.net>
Sun, 16 Jan 2011 05:21:12 +0000 (21:21 -0800)
commit39d4a96fd7d2926e46151adbd18b810aeeea8ec0
tree555913c044588534f3fcca62e2e3aea023e8e974
parent54da3d00f6e781f69cb8726757d190704b702a8e
vmxnet3: Provide required number of bytes in first SG buffer

This is a performance enhancement fix. vmxnet3 device performs better when
provided with at least 54 bytes (ethernet 14 + IP 20+ TCP 20) in the first SG
buffer. For UDP packets driver provides lesser than that in first sg. This
change fixes the same. Also avoid the redundant pskb_may_pull() call.

Signed-off-by: Shreyas N Bhatewara <sbhatewara@vmware.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/vmxnet3/vmxnet3_drv.c