Received: from eggs.gnu.org ([2001:4830:134:3::10]:46391) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1c5FqQ-0007NA-IA for qemu-devel@nongnu.org; Fri, 11 Nov 2016 12:42:31 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1c5FqN-0004rV-DU for qemu-devel@nongnu.org; Fri, 11 Nov 2016 12:42:30 -0500 Received: from mout.kundenserver.de ([217.72.192.75]:50324) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1c5FqN-0004r3-3o for qemu-devel@nongnu.org; Fri, 11 Nov 2016 12:42:27 -0500 References: <1477530049-15676-1-git-send-email-laurent@vivier.eu> From: Laurent Vivier Message-ID: Date: Fri, 11 Nov 2016 18:42:07 +0100 MIME-Version: 1.0 In-Reply-To: <1477530049-15676-1-git-send-email-laurent@vivier.eu> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Subject: Re: [Qemu-devel] [PATCH] linux-user: manage two new IFLA host message types List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Riku Voipio Cc: qemu-devel@nongnu.org, Stefan Hajnoczi , Peter Maydell This is a bug fix: could you take it for 2.8? Laurent Le 27/10/2016 à 03:00, Laurent Vivier a écrit : > Add QEMU_IFLA_GSO_MAX_SEGS and QEMU_IFLA_GSO_MAX_SIZE > in host_to_target_data_link_rtattr(). > > These two messages are sent by the host kernel when > we use "sudo". > > Found with qemu-m68k and Debian etch-m68k (sudo 1.6.8p12-4) and > host kernel 4.7.6-200.fc24.x86_64 > > Signed-off-by: Laurent Vivier > --- > linux-user/syscall.c | 2 ++ > 1 file changed, 2 insertions(+) > > diff --git a/linux-user/syscall.c b/linux-user/syscall.c > index db697c0..521bdb5 100644 > --- a/linux-user/syscall.c > +++ b/linux-user/syscall.c > @@ -2320,6 +2320,8 @@ static abi_long host_to_target_data_link_rtattr(struct rtattr *rtattr) > case QEMU_IFLA_GROUP: > case QEMU_IFLA_MASTER: > case QEMU_IFLA_NUM_VF: > + case QEMU_IFLA_GSO_MAX_SEGS: > + case QEMU_IFLA_GSO_MAX_SIZE: > u32 = RTA_DATA(rtattr); > *u32 = tswap32(*u32); > break; >