[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [Xen-devel] [PATCH qemu-xen-traditional] Fix after blkif.h update
>>> On 27.02.12 at 10:34, Ian Campbell <Ian.Campbell@xxxxxxxxxx> wrote: > diff --git a/hw/e1000.c b/hw/e1000.c > index bb3689e..97104ed 100644 > --- a/hw/e1000.c > +++ b/hw/e1000.c > @@ -444,6 +444,8 @@ process_tx_desc(E1000State *s, struct e1000_tx_desc *dp) > bytes = split_size; > if (tp->size + bytes > msh) > bytes = msh - tp->size; > + > + bytes = MIN(sizeof(tp->data) - tp->size, bytes); > cpu_physical_memory_read(addr, tp->data + tp->size, bytes); > if ((sz = tp->size + bytes) >= hdr && tp->size < hdr) > memmove(tp->header, tp->data, hdr); > @@ -459,6 +461,7 @@ process_tx_desc(E1000State *s, struct e1000_tx_desc *dp) > // context descriptor TSE is not set, while data descriptor TSE is > set > DBGOUT(TXERR, "TCP segmentaion Error\n"); > } else { > + split_size = MIN(sizeof(tp->data) - tp->size, split_size); > cpu_physical_memory_read(addr, tp->data + tp->size, split_size); > tp->size += split_size; > } What are these two changes doing here? Jan _______________________________________________ Xen-devel mailing list Xen-devel@xxxxxxxxxxxxx http://lists.xen.org/xen-devel
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |