bnx2x: fix GRO parameters
authorYuval Mintz <yuvalmin@broadcom.com>
Thu, 17 Jan 2013 03:26:21 +0000 (03:26 +0000)
committerDavid S. Miller <davem@davemloft.net>
Thu, 17 Jan 2013 19:56:11 +0000 (14:56 -0500)
commitcbf1de72324a8105ddcc3d9ce9acbc613faea17e
tree4d2648fd82c6bef6bdb042622b7a99abdb4c87e1
parentbc6c47b50c67db420d1fe969351b5d196c0c43c4
bnx2x: fix GRO parameters

bnx2x does an internal GRO pass but doesn't provide gso_segs, thus
breaking qdisc_pkt_len_init() in case ingress qdisc is used.

We store gso_segs in NAPI_GRO_CB(skb)->count, where tcp_gro_complete()
expects to find the number of aggregated segments.

Signed-off-by: Yuval Mintz <yuvalmin@broadcom.com>
Signed-off-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/broadcom/bnx2x/bnx2x_cmn.c