From nobody Tue Nov 18 09:18:22 2025 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass(p=reject dis=none) header.from=borea.si ARC-Seal: i=1; a=rsa-sha256; t=1609875129; cv=none; d=zohomail.com; s=zohoarc; b=LDOa+eanZVCmd/G3ZK6xwMnwCtXcbuDMCW76ReVIfYHS2uMcBuPf61Y2z33ikMazM9rCExJPE+harRchlU7++JxBHRpTx2IyIDsh2f58pkJRViI1l7DNuHf3D3PTxnnBMxeZdpoP+BZgQ5rgw81ns4u5WPwqaWSXQiTt0J1kXpE= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1609875129; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Sender:Subject:To; bh=XABEDaMpXYz6jG32cKVeGq9281G+TskJMLkDe5KanVE=; b=lOX+QOCLwpVFg4CGyGWOu8cueqAaPZVGw4FuzlySBXuGLCBjJrYTLiMhM5Kq3N0WS0l7jkUbohaksyaGgVFzSMgPOaa5RqYZux5zE7LSaB/JQJacO+6AAshYRbqkz+bFTsizvm5DB/R8vuwAK6sjO3SQETnDRijDCHx4MRSRMDo= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass header.from= (p=reject dis=none) header.from= Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1609875128833853.7174139527077; Tue, 5 Jan 2021 11:32:08 -0800 (PST) Received: from localhost ([::1]:53190 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kws3q-0000Zg-S0 for importer@patchew.org; Tue, 05 Jan 2021 14:32:06 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:47068) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kws1k-0007yG-CH for qemu-devel@nongnu.org; Tue, 05 Jan 2021 14:29:56 -0500 Received: from ris.borea.si ([193.77.156.21]:53960) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kws1h-0001JU-Rq for qemu-devel@nongnu.org; Tue, 05 Jan 2021 14:29:56 -0500 Received: from ris.borea.si (ris.borea.si [127.0.0.1]) by ris.borea.si (Postfix) with ESMTP id 4D9Mr80ylGzV2 for ; Tue, 5 Jan 2021 19:24:24 +0000 (UTC) Received: from ris.borea.si ([127.0.0.1]) by ris.borea.si (ris.borea.si [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id 8XgFtziKiTpS for ; Tue, 5 Jan 2021 19:24:23 +0000 (UTC) Received: from Matevz-Languss-MacBookPro-3.local (_gateway [192.168.234.249]) by ris.borea.si (Postfix) with ESMTPSA id 4D9Mr75NWKzKq; Tue, 5 Jan 2021 19:24:23 +0000 (UTC) Authentication-Results: ris.borea.si (amavisd-new); dkim=pass (1024-bit key) reason="pass (just generated, assumed good)" header.d=borea.si DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=borea.si; h= content-transfer-encoding:content-language:content-type :content-type:mime-version:user-agent:date:date:message-id :subject:subject:from:from:to; s=dkim; t=1609874663; x= 1612466664; bh=XABEDaMpXYz6jG32cKVeGq9281G+TskJMLkDe5KanVE=; b=s y6JRVtNRg81Boi5mUrzknoIjFRbwW1MMRqYXlcO3XbbmBZLornkctJqe0JjpuDzz jsLH/wUgKba9JUKRckpxHmXDcBL6TrHuOAAKH+J2hqdXhUolorf7zK6tEUn4lQEP zW2vMdv3QJ7oTDS0cNYp83tXBvo4c//kz6qjAP4uoY= X-Virus-Scanned: Debian amavisd-new at ris.borea.si To: laurent@vivier.eu From: Matevz Langus Subject: [PATCH] linux-user: Add ETHTOOL ioctl Message-ID: <9272ff58-82a7-d687-8a33-05796c643b5b@borea.si> Date: Tue, 5 Jan 2021 20:24:22 +0100 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:52.0) Gecko/20100101 PostboxApp/7.0.43 MIME-Version: 1.0 Content-Language: en-US Content-Transfer-Encoding: quoted-printable Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Received-SPF: pass client-ip=193.77.156.21; envelope-from=matevz.langus@borea.si; helo=ris.borea.si X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: qemu-devel@nongnu.org Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: pass (identity @borea.si) Content-Type: text/plain; charset="utf-8"; format="flowed" Handling of ETHTOOL ioctl was not implemented. Signed-off-by: Matevz Langus --- =C2=A0linux-user/ioctls.h=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 | 1 + =C2=A0linux-user/syscall_defs.h | 1 + =C2=A02 files changed, 2 insertions(+) diff --git a/linux-user/ioctls.h b/linux-user/ioctls.h index 661b5daa9f..3e5c220199 100644 --- a/linux-user/ioctls.h +++ b/linux-user/ioctls.h @@ -362,6 +362,7 @@ =C2=A0=C2=A0 IOCTL(SIOCSIFHWADDR, IOC_W, MK_PTR(MK_STRUCT(STRUCT_sockaddr_= ifreq))) =C2=A0=C2=A0 IOCTL(SIOCGIFTXQLEN, IOC_W | IOC_R,=20 MK_PTR(MK_STRUCT(STRUCT_sockaddr_ifreq))) =C2=A0=C2=A0 IOCTL(SIOCSIFTXQLEN, IOC_W, MK_PTR(MK_STRUCT(STRUCT_sockaddr_= ifreq))) +=C2=A0 IOCTL(SIOCETHTOOL, IOC_R | IOC_W, MK_PTR(MK_STRUCT(STRUCT_ptr_ifreq= ))) =C2=A0=C2=A0 IOCTL(SIOCGIFMETRIC, IOC_W | IOC_R, MK_PTR(MK_STRUCT(STRUCT_i= nt_ifreq))) =C2=A0=C2=A0 IOCTL(SIOCSIFMETRIC, IOC_W, MK_PTR(MK_STRUCT(STRUCT_int_ifreq= ))) =C2=A0=C2=A0 IOCTL(SIOCGIFMTU, IOC_W | IOC_R, MK_PTR(MK_STRUCT(STRUCT_int_= ifreq))) diff --git a/linux-user/syscall_defs.h b/linux-user/syscall_defs.h index a00bfc2647..d9301fecc9 100644 --- a/linux-user/syscall_defs.h +++ b/linux-user/syscall_defs.h @@ -903,6 +903,7 @@ struct target_rtc_pll_info { =C2=A0#define TARGET_SIOCGIFTXQLEN=C2=A0=C2=A0 0x8942=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 /* Get the tx queue=20 length=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 */ =C2=A0#define TARGET_SIOCSIFTXQLEN=C2=A0=C2=A0 0x8943=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 /* Set the tx queue=20 length=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 */ +#define TARGET_SIOCETHTOOL=C2=A0=C2=A0=C2=A0=C2=A0 0x8946=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 /* Ethtool=20 interface=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= */ =C2=A0/* ARP cache control calls. */ =C2=A0#define TARGET_OLD_SIOCDARP=C2=A0=C2=A0=C2=A0 0x8950=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 /* old delete ARP table=20 entry=C2=A0=C2=A0 */ --=20 2.24.3 (Apple Git-128)