Herbert Xu wrote: > On Tue, Jun 20, 2006 at 09:33:42PM -0700, [EMAIL PROTECTED] wrote: >> diff -puN drivers/net/myri10ge/myri10ge.c~myri10ge-build-fix >> drivers/net/myri10ge/myri10ge.c >> --- a/drivers/net/myri10ge/myri10ge.c~myri10ge-build-fix >> +++ a/drivers/net/myri10ge/myri10ge.c >> @@ -2120,7 +2120,7 @@ abort_linearize: >> goto drop; >> } >> >> - if (skb_linearize(skb, GFP_ATOMIC)) >> + if (skb_linearize(skb)) >> goto drop; > > Actually I think this driver (in conjunction with TSO) is buggy. > It has a maximum segment count of 12. However TSO can send 13 pages > or more of data on i386. If this happens it looks like this driver > will go into an infinite loop forever trying to linearize the skb. > > Cheers,
Actually, we use 64 segments when TSO in enabled (MYRI10GE_MAX_SEND_DESC_TSO): #define MYRI10GE_MAX_SEND_DESC_TSO ((65536 / 2048) * 2) <.....> max_segments = MXGEFW_MAX_SEND_DESC; #ifdef NETIF_F_TSO if (skb->len > (dev->mtu + ETH_HLEN)) { mss = skb_shinfo(skb)->tso_size; if (mss != 0) max_segments = MYRI10GE_MAX_SEND_DESC_TSO; } #endif /*NETIF_F_TSO */ And we never try to linearize a TSO frame: if (skb_shinfo(skb)->tso_size) { printk(KERN_ERR "myri10ge: %s: TSO but wanted to linearize?!?!?\n", mgp->dev->name); goto drop; } Brice - To unsubscribe from this list: send the line "unsubscribe netdev" in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html