Re: is each frag of a skb always less than 1 page?

2006-10-10 Thread Ronghua Zhang
o(skb)->frags[i].size >> NV_TX2_TSO_MAX_SHIFT) + ((skb_shinfo(skb)->frags[i].size & (NV_TX2_TSO_MAX_SIZE-1)) ? 1 : 0); } This looks unnecessary if each frag is guaranteed not to span pages. Ronghua On 10/10/06, David Miller <[EMAIL PROTECTED]> wrote: From: "Ronghua Z

is each frag of a skb always less than 1 page?

2006-10-10 Thread Ronghua Zhang
From the code of tcp_sendmsg, it seems to me that each frag is at most one page. Is it a guaranteed property or the driver should not assume it? Thanks Ronghua - To unsubscribe from this list: send the line "unsubscribe netdev" in the body of a message to [EMAIL PROTECTED] More majordomo info at

are all protocol headers in the linear part of a sk_buff?

2006-10-04 Thread Ronghua Zhang
When a skb reaches a device driver for tx, can the driver assumes that all protocol headers (up to the tcp layer and including tcp options) are in the linear part of the skb, thus it can access them via skb->h.th? Or the answer depends on the linux kernel version? Thanks Ronghua - To unsubscribe