[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [Xen-devel] [PATCH net-next] xen-netfront: add support for IPv6 offloads
> -----Original Message----- > From: Jan Beulich [mailto:JBeulich@xxxxxxxx] > Sent: 15 January 2014 16:04 > To: Andrew Cooper; Paul Durrant > Cc: David Vrabel; xen-devel@xxxxxxxxxxxxx; Boris Ostrovsky; > netdev@xxxxxxxxxxxxxxx > Subject: Re: [Xen-devel] [PATCH net-next] xen-netfront: add support for > IPv6 offloads > > >>> On 15.01.14 at 16:54, Paul Durrant <Paul.Durrant@xxxxxxxxxx> wrote: > >> From: Andrew Cooper [mailto:andrew.cooper3@xxxxxxxxxx] > >> On 15/01/14 15:18, Paul Durrant wrote: > >> > + err = xenbus_printf(xbt, dev->nodename, "feature-gso-tcpv6", > "%d", 1); > >> > >> "%d", 1 results in a constant string. xenbus_write() would avoid a > >> transitory memory allocation. > > > > This code is consistent with all the other xenbus_printf()s in the > > neighbourhood and does it really matter? > > I think we should always strive to have the simplest possible code > that fulfills the purpose. And hence we shouldn't be setting further > bad precedents. (In fact I have a patch queued to replace all the > unnecessary xenbus_printf()s with xenbus_write()s on > linux-2.6.18-xen.hg, and may look into porting this to the > respective upstream components.) > Ok. Personally I'd go for code consistency with this patch and then a full replacement... but I'll re-work it. Paul _______________________________________________ Xen-devel mailing list Xen-devel@xxxxxxxxxxxxx http://lists.xen.org/xen-devel
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |