[NET]: Fix GSO problems in dev_hard_start_xmit()
authorMichael Chan <mchan@broadcom.com>
Mon, 26 Jun 2006 06:57:04 +0000 (23:57 -0700)
committerDavid S. Miller <davem@davemloft.net>
Mon, 26 Jun 2006 06:57:04 +0000 (23:57 -0700)
commitf54d9e8d7f7dd60f26157c12acda3fc94fcd9ab7
tree4cd16db2905ccca54a2e79cc68669b62c024b433
parent0718bcc09b3597c51e87f265c72135a4928d3c0b
[NET]: Fix GSO problems in dev_hard_start_xmit()

Fix 2 problems in dev_hard_start_xmit():

1. nskb->next needs to link back to skb->next if hard_start_xmit()
returns non-zero.

2. Since the total number of GSO fragments may exceed MAX_SKB_FRAGS + 1,
it needs to stop transmitting if the netif_queue is stopped.

Signed-off-by: Michael Chan <mchan@broadcom.com>
Acked-by: Herbert Xu <herbert@gondor.apana.org.au>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/core/dev.c