summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDivy Le Ray <divy@chelsio.com>2009-01-18 22:01:32 -0800
committerDavid S. Miller <davem@davemloft.net>2009-01-19 16:20:16 -0800
commiteed087e367591fc08490d7c6c2779b4b72c8f20c (patch)
treeb47c34cb3aa79c6634ca77a85b546b0839682631
parent39eddb4c3970e9aadbc87b8a7cab7b4fefff077f (diff)
downloadop-kernel-dev-eed087e367591fc08490d7c6c2779b4b72c8f20c.zip
op-kernel-dev-eed087e367591fc08490d7c6c2779b4b72c8f20c.tar.gz
cxgb3: Fix LRO misalignment
The lro manager's frag_align_pad setting was missing, leading to misaligned access to the skb passed up to the stack. Tested-by: Rick Jones <rick.jones2@hp.com> Signed-off-by: Divy Le Ray <divy@chelsio.com> Signed-off-by: David S. Miller <davem@davemloft.net>
-rw-r--r--drivers/net/cxgb3/sge.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/cxgb3/sge.c b/drivers/net/cxgb3/sge.c
index 14f9fb3..379a132 100644
--- a/drivers/net/cxgb3/sge.c
+++ b/drivers/net/cxgb3/sge.c
@@ -2104,6 +2104,7 @@ static void init_lro_mgr(struct sge_qset *qs, struct net_lro_mgr *lro_mgr)
{
lro_mgr->dev = qs->netdev;
lro_mgr->features = LRO_F_NAPI;
+ lro_mgr->frag_align_pad = NET_IP_ALIGN;
lro_mgr->ip_summed = CHECKSUM_UNNECESSARY;
lro_mgr->ip_summed_aggr = CHECKSUM_UNNECESSARY;
lro_mgr->max_desc = T3_MAX_LRO_SES;
OpenPOWER on IntegriCloud