From nobody Tue Oct 21 07:53:08 2025 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 4crPfr54xcz6F3XF; Tue, 21 Oct 2025 07:53:08 +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 "R12" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4crPfr4GWzz3mX9; Tue, 21 Oct 2025 07:53:08 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1761033188; 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=ARoujXtYKPpPvHxfDxlHh8PphkxpRP+sleTv3AL/zGY=; b=p49pzmNMocElli7mVv3atnSEEh0tlAXgrN4zaOtbr1ZI0fWCEbwaviOnFm3laR3g+DwR30 7GzbUfzU6LeWKpmmRekEHJ++M5r7WVoweHmp3/D6jnfzXPzi42jfq8ihmHZb+BdoTrAB0u SxIZs/HwNknQrvBeN/ki55q3/H0kBgTWZKI0+MgpcnmvV5X0p2f35RsUQ2YIp5hfOBuGXy IhoM/bDBSmC7skR1f6HfXEvfYUPu7Mg8guUixU5nqvbhDDsriWjx/y2Hgd8+Tdwx7Y7o1Y L026+1iVNwPy833qLW+Z5wZepZkl/sXvLkzyD3phPhCC02SOBXnby29dKc4EOA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1761033188; 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=ARoujXtYKPpPvHxfDxlHh8PphkxpRP+sleTv3AL/zGY=; b=K/6huyQAxwdXCj3ye4qaIDSYyZSXGNEgmQH9pYDF+pdEpJLU9W48laWzr0cN+suUTdstRu aTJbMKkHtAexvgzy9MmCAO0LTcKVBKmdFzKl1XTMewAzywOzJaLbOBK8qt4xZaJMvyEhAG BLMnGMHPA+LMhzdDtPH52mOH6p8Y5C02F6q5blc9YcAX7MXxAgOaZcGwh7gcgARhhtPjsx 7JH1si/3SNzhzvk1NIiD6P4UBLobxFmIiNs9kRpHLwOkK8vYOVtKOrQrbUgOL2IocT8mCH 8xwAvWby+7WaPDs/1OnS4t1Naz+K0avmXp4ZAvgQpVzAEELBE9IgZOXgXTHEyg== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1761033188; a=rsa-sha256; cv=none; b=dqEXsA3GMwqI36jb7u1V2kgytST51wb6FFEUrXYgl2yAO2ZOC1svIKf7QVfdn5FTFBpRil tnxjmfyh5C1NqL72HMxLPtWKJ5JcBCtWsD2sBDzv/Cz71KhhhBK9EJoJfQkZL/HS3ZEdNy EIG0DAT/YhcIzIygzyLBe4dFMMNSgyOlr/D3k/QTE287ZVhaxmzbJbu3wjEoQ9A7Lv7n8o DgNa5eGKSMCmEKMNX9dUKbXwd37EdZcZ/Nm2WqE01NdiBGtzrBIvnkEpaAXgYiR13bSyOe wN0d8SIG7q1+nvpezrqGS2q0AtbSVf9WqPevOIc64Oa1T2QPvWKIdSes0aGUZg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none 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 4crPfr3skwzrP0; Tue, 21 Oct 2025 07:53:08 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.18.1/8.18.1) with ESMTP id 59L7r8dd014376; Tue, 21 Oct 2025 07:53:08 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 59L7r8RJ014373; Tue, 21 Oct 2025 07:53:08 GMT (envelope-from git) Date: Tue, 21 Oct 2025 07:53:08 GMT Message-Id: <202510210753.59L7r8RJ014373@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: "Bjoern A. Zeeb" Subject: git: cc792250acad - main - LinuxKPI: add three skeleton functions to etherdevice.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: X-BeenThere: dev-commits-src-all@freebsd.org Sender: owner-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/main X-Git-Reftype: branch X-Git-Commit: cc792250acadd29e80a69501ad326d1340c0c1c6 Auto-Submitted: auto-generated The branch main has been updated by bz: URL: https://cgit.FreeBSD.org/src/commit/?id=cc792250acadd29e80a69501ad326d1340c0c1c6 commit cc792250acadd29e80a69501ad326d1340c0c1c6 Author: Bjoern A. Zeeb AuthorDate: 2025-10-11 09:22:48 +0000 Commit: Bjoern A. Zeeb CommitDate: 2025-10-21 07:49:38 +0000 LinuxKPI: add three skeleton functions to etherdevice.h We will see how much we will need them and how to fill them at that point. They are left with a pr_debug("TODO") for now. MFC after: 3 days Differential Revision: https://reviews.freebsd.org/D53204 --- .../linuxkpi/common/include/linux/etherdevice.h | 23 ++++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/sys/compat/linuxkpi/common/include/linux/etherdevice.h b/sys/compat/linuxkpi/common/include/linux/etherdevice.h index 1f2d6cf22d7e..b9a4951de8ac 100644 --- a/sys/compat/linuxkpi/common/include/linux/etherdevice.h +++ b/sys/compat/linuxkpi/common/include/linux/etherdevice.h @@ -27,6 +27,8 @@ #include #include +#include +#include #include #include @@ -137,4 +139,25 @@ device_get_mac_address(struct device *dev, char *dst) return (-ENOENT); } +/* Returns network byte order. */ +static inline uint16_t +eth_type_trans(struct sk_buff *skb, struct net_device *dev) +{ + pr_debug("%s: TODO\n", __func__); + return (htons(ETHERTYPE_8023)); +} + +static inline void +eth_hw_addr_set(struct net_device *dev, const u8 *addr) +{ + pr_debug("%s: TODO (if we want to)\n", __func__); +} + +static inline int +eth_platform_get_mac_address(struct device *dev __unused, u8 *addr __unused) +{ + pr_debug("%s: TODO\n", __func__); + return (-ENODEV); +} + #endif /* _LINUXKPI_LINUX_ETHERDEVICE_H_ */