From nobody Sun Feb 20 18:15:28 2022 X-Original-To: dev-commits-src-all@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 8A1A219CE72E; Sun, 20 Feb 2022 18:15:29 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4K1trx0tW7z4XcT; Sun, 20 Feb 2022 18:15:28 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1645380929; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=+JoJjbpLhfuZh2WnocpQtCRBEAD4C4wAHw5lpWJeVEg=; b=cGBnS54PVLBl/4akVZE9VonKP9dWPdwr57uPZ4CkBEau7if/h5KiLrsOcLO8vuMttKNUeg efJycHl2o0g/U6MfMW3Hee/oEsKw608+j5yEpmZqVXXIF8ju3D3zIUobH7hDfknQs4i0RZ uyRlhxbfzj2Z9agSk3tms4iXIZBQMzOBilgj4vdNIcDFmkV2EjW/Peu9wu/f8yqYDfN79B ZZY4I3E4aAJg3JcpBb1LurcpssgunYlXy8x+ppMHA2paaGU12lDNfMtr3WnHh4S85I/b2t 2RflR5oICKd+CpkDONYqVtO7XIZMcAO7q6ul5+tErv/FbGVGV0WY5Gl8XdHsVg== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 95DF521057; Sun, 20 Feb 2022 18:15:28 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 21KIFSDp022721; Sun, 20 Feb 2022 18:15:28 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 21KIFSB0022720; Sun, 20 Feb 2022 18:15:28 GMT (envelope-from git) Date: Sun, 20 Feb 2022 18:15:28 GMT Message-Id: <202202201815.21KIFSB0022720@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: "Bjoern A. Zeeb" Subject: git: 458eea38ecbc - stable/13 - LinuxKPI: add an initial ethtool.h List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: dev-commits-src-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: bz X-Git-Repository: src X-Git-Refname: refs/heads/stable/13 X-Git-Reftype: branch X-Git-Commit: 458eea38ecbc4d44361dbdcdb01ff36ab52f31ee Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1645380929; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=+JoJjbpLhfuZh2WnocpQtCRBEAD4C4wAHw5lpWJeVEg=; b=bmfZkR4o1n6OsqnWzF5WfxdgJfJyKM9TtJA/ZRUEFSFWDu/Fohe9UfG/+eNeGw+dDik5Pk ERfHpdoJnPCVsY3Fq2lM4fvsiHNYHw9VhybMo+QWabdJGbsEt3eAjvcqzige5bUVTgqLk6 az7e4kqVgjQLtyyW4785c0z47WMJhcZNO+jhORLmjXRUbebyRqgr3pcrrrZfyxjvZ9ycr0 6TKgV7J1JJSNPSNt39HiFRYXUy2JYVDDpWzYWiQN2yiPeJqbQNOH8HGjh3QZLX6ZoS3NxW h4WWzA2Io70yNNb86qEeyxG5KZHQZbr2621Gl6rKUmJyY/mhwhVarNXRTwp/TA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1645380929; a=rsa-sha256; cv=none; b=SRqwf7PEZ70eDvIMgurTzfAZ7hiUaRobf+TyYFTmiU4Zgp4fVf7LTFJyLRfXbU4CmDvUC1 VvCoqxJdU2YqBSp3/7nNHlM5jQnZd5tCzS82503EB/TZtg0zPvHc4uO0kAsstmMkZIieK9 iNNM+2ZLMexCVh1hf0wm34FR10Hdeu04Q24m/J0vC3r7WuTWL36wzPnwoU38g3daHgqWKJ LDFNK8RWPPHxKE0XSgGixxu/0GSHh/orWdHLHJ1BdKTLe2xGbhx/YWzPj9eYgpIWn8wNwU AbOVQLhoZL8C+a7Y8wG4ax25Zh1MVhtZD2al1kwlF03i4Hnr4w6d8ja9Q1N6GA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch stable/13 has been updated by bz: URL: https://cgit.FreeBSD.org/src/commit/?id=458eea38ecbc4d44361dbdcdb01ff36ab52f31ee commit 458eea38ecbc4d44361dbdcdb01ff36ab52f31ee Author: Bjoern A. Zeeb AuthorDate: 2022-02-09 11:53:27 +0000 Commit: Bjoern A. Zeeb CommitDate: 2022-02-20 16:23:00 +0000 LinuxKPI: add an initial ethtool.h Add an initial ethtool.h for a define and a dummy struct for now needed by drivers. Reviewed by: hselasky Differential Revision: https://reviews.freebsd.org/D34229 (cherry picked from commit 0c37ffda799a9d44370bfe9898f220c193306842) --- sys/compat/linuxkpi/common/include/linux/ethtool.h | 41 ++++++++++++++++++++++ 1 file changed, 41 insertions(+) diff --git a/sys/compat/linuxkpi/common/include/linux/ethtool.h b/sys/compat/linuxkpi/common/include/linux/ethtool.h new file mode 100644 index 000000000000..9195766f752d --- /dev/null +++ b/sys/compat/linuxkpi/common/include/linux/ethtool.h @@ -0,0 +1,41 @@ +/*- + * SPDX-License-Identifier: BSD-2-Clause + * + * Copyright (c) 2022 Bjoern A. Zeeb + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions + * are met: + * 1. Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * 2. Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * + * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND + * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE + * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE + * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE + * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL + * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS + * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) + * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT + * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY + * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF + * SUCH DAMAGE. + * + * $FreeBSD$ + */ + +#ifndef _LINUXKPI_LINUX_ETHTOOL_H_ +#define _LINUXKPI_LINUX_ETHTOOL_H_ + +#include + +#define ETHTOOL_FWVERS_LEN 64 + +struct ethtool_stats { + uint8_t __dummy[0]; +}; + +#endif /* _LINUXKPI_LINUX_ETHTOOL_H_ */