qlcnic: fix estimation of receive MSS in case of LRO for 83xx adapter
authorShahed Shaikh <shahed.shaikh@qlogic.com>
Mon, 18 Feb 2013 12:06:16 +0000 (12:06 +0000)
committerDavid S. Miller <davem@davemloft.net>
Tue, 19 Feb 2013 05:47:01 +0000 (00:47 -0500)
commit99e8587900a3d32b1eaa3a92da90b49e9d4ff765
tree299bad8dae01ef115cf5e6a9dd3f08d65f1ca449
parentac166700991c8f2760e4d3656b4783986cfbf545
qlcnic: fix estimation of receive MSS in case of LRO for 83xx adapter

Set gso_size to MSS obtained from adapter to avoid incorrect estimation
of receive MSS, which would lead to delayed ACKs in some traffic patterns

Example:
Send two or three packets and wait for ack and only then send
remaining packets.

Signed-off-by: Shahed Shaikh <shahed.shaikh@qlogic.com>
Signed-off-by: Jitendra Kalsaria <jitendra.kalsaria@qlogic.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_hw.h
drivers/net/ethernet/qlogic/qlcnic/qlcnic_io.c
drivers/net/ethernet/qlogic/qlcnic/qlcnic_main.c