Received: from eggs.gnu.org ([2001:4830:134:3::10]:44646) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1b3t6y-0001tZ-S8 for qemu-devel@nongnu.org; Fri, 20 May 2016 18:41:46 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1b3ruV-0007Oh-S2 for qemu-devel@nongnu.org; Fri, 20 May 2016 17:24:48 -0400 Received: from zose-mta03.web4all.fr ([185.49.20.44]:58241) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1b3ruV-0007Od-LW for qemu-devel@nongnu.org; Fri, 20 May 2016 17:24:43 -0400 References: <573D3799.9090109@redhat.com> <573E0276.8040002@tribudubois.net> From: Jean-Christophe DUBOIS Message-ID: <573F8099.9060300@tribudubois.net> Date: Fri, 20 May 2016 23:24:41 +0200 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: quoted-printable Subject: Re: [Qemu-devel] [PATCH v4 7/8] Add ENET/Gbps Ethernet support to FEC device List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Peter Maydell Cc: Jason Wang , QEMU Developers Le 19/05/2016 20:37, Peter Maydell a =C3=A9crit : > On 19 May 2016 at 19:14, Jean-Christophe DUBOIS w= rote: >> Le 19/05/2016 05:48, Jason Wang a =C3=A9crit : >>> On 2016=E5=B9=B405=E6=9C=8819=E6=97=A5 06:23, Jean-Christophe Dubois = wrote: >>> >>> It's ok to decide with "is-fec", but is it better to use a new type f= or >>> that? >> >> Well, there is a lot of common code between FEC and ENET because ENET = is >> basically backward compatible with FEC. So most/all of the FEC code ne= eds to >> go in the ENET device. >> >> I thought this way of doing thing was the best way to avoid duplicatin= g >> things. > Right, but usually we have different device types, even if under > the hood it's the same code using a bool to decide what to do > (see for instance hw/display/pl110.c, which provides 3 devices > which are all pretty similar). This means that the users of your > device don't need to care that the FEC is an ENET device with > a flag to say "be like an FEC device", they just instantiate > the kind of device they want. OK, I'll do that. > >>> The above renaming seems cause lots of unnecessary changes above whic= h may >>> brings issue when backporint patches to -stable. Can we just keep thi= s, and >>> all ENET_*** should be used after we're sure we are ENET? >> >> What do you mean by "after we're sure we are ENET"? >> >> ENET is the evolution of FEC to support Gb interface. FEC is more like= a >> legacy device these days (for ARM9 family). So it seems we are better >> supporting ENET as default going forward. > I don't mind if we rename the functions, #defines, etc, but if > we do can we have a patch which does that renaming and only that > renaming, so it's easy to review? OK, I'll add a patch for renaming. > > thanks > -- PMM >