[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-devel] [1/4] [NET] back: Fix maximum fragment check
Hi: On Fri, Jun 30, 2006 at 12:40:47PM +1000, herbert wrote: > > [NET] back: Fix maximum fragment check The net-tso patch has been merged upstream. I've also changed the feature-tso interface to be a bit mask of the XEN gso_types bits. It's now called feature-gso. This means we won't have to add one feature for each protocol. So here is a repost of the entire series. [NET] back: Fix maximum fragment check The maximum fragment check from the frontend is off by one. Signed-off-by: Herbert Xu <herbert@xxxxxxxxxxxxxxxxxxx> Cheers, -- Visit Openswan at http://www.openswan.org/ Email: Herbert Xu ~{PmV>HI~} <herbert@xxxxxxxxxxxxxxxxxxx> Home Page: http://gondor.apana.org.au/~herbert/ PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt -- diff -r ae245d35457b -r 617e4d3351f3 linux-2.6-xen-sparse/drivers/xen/netback/netback.c --- a/linux-2.6-xen-sparse/drivers/xen/netback/netback.c Wed Jun 28 13:59:29 2006 +0100 +++ b/linux-2.6-xen-sparse/drivers/xen/netback/netback.c Fri Jun 30 22:12:59 2006 +1000 @@ -751,7 +751,7 @@ static void net_tx_action(unsigned long } i += ret; - if (unlikely(ret > MAX_SKB_FRAGS + 1)) { + if (unlikely(ret > MAX_SKB_FRAGS)) { DPRINTK("Too many frags\n"); netbk_tx_err(netif, &txreq, i); continue; _______________________________________________ Xen-devel mailing list Xen-devel@xxxxxxxxxxxxxxxxxxx http://lists.xensource.com/xen-devel
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |