From nobody Sat Sep 28 10:38:21 2024 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 4XG3hZ1g0Zz5X8SP; Sat, 28 Sep 2024 10:38:22 +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 "R11" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4XG3hZ0NJLz478N; Sat, 28 Sep 2024 10:38:22 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1727519902; 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=V+f5eIHsxfffamSiQWy7q68i0postq8ehqfWb9SLEBw=; b=mMY2rePhrcCTsWFbX5dfgrN9XsKOcvtvpacRtjvnUz3ajdYiTcZxw7TN6cGUyYZPYcsSjw FCqibg1+dsDbLugOl4geq/jjHeFtnVuDfK0bEHl5Vp98W4GTR4zodev1sdbfIyo18gML0V CNfTNEX2BQVLzaOKAkmfIOuDBBlNUmSy0bVtU15RLAEzkSjI/vHyBnhf04oU9OI2DabIC8 nAXxkLBv7XdOcozWO+xkQSVZgt6Z3SiThSOJdiyWYJAvM/ecEEJALJjAR5otSZO+I2zVG1 Hs5UQQDPM000PMBydOW4T1G2lOlPbAOlzN2WKvv3P0WVS1nFVefA5AsbOmhOCQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1727519902; 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=V+f5eIHsxfffamSiQWy7q68i0postq8ehqfWb9SLEBw=; b=Yi0Z1V4gXf6uOJH81QD5svLaQjZT/aD3XoYBlXeJTJroGNrypztqD94LstUR+aRTa/kqqO Tey9tFZomJ8+XwJ7t9cAhwx8/RpqzeDCXMJ2ssj4tAX+1d9M444TRiweMgi8TdHSHrE4/5 Q7mG57Sj5h1zWScD6yTQIO0wCGepPUrBBX345vDMwDWRWB2F9l6dGeHIF0epVfctoSDDNZ La7psEm1LUePQAElkCbFZVGqbseGGFFRMxUJCbCFQiYfh70+yvMvRUHs3NTDf+myu6iaZ1 Vme8yBX0pxYsPFnhblq3H9EJmmJrzYzaPPpfhIHKBnAHtaoss4XawcJWA7yuhw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1727519902; a=rsa-sha256; cv=none; b=u6uKLMqwPiNpR7mXO5mP6J/0ISiiHW684fDe333mjGfSdNuUVYT/yT+3NXezN/aD9lRkt5 mnbJ7kcan4iPn1sfzxY25Smn3rIp60HFudzF8zhLrkUsm7Js8qTk9daO8q8MKz3TNMYDzA SCkXyJfvhREnXvKG2ZOvxQlfRdUo5yGHoNAa1UXhAE6K9vJlvGwfrDurjXj3wbj+Y63Mr/ y4G/qh8m8uMasIJLPrvyz+xLo67xQ6dqyuJtaNUhJ909fUkiDPr34PbnH5dRbTgcSQ3SN/ CXkyi18QJ1ZyR7uiV8ZDbkEQ9dqz0N8+rq8VWh37mLEbDNmgpnRgjmG87PfK/w== 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 4XG3hY67QyzLNG; Sat, 28 Sep 2024 10:38:21 +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 48SAcLhR098107; Sat, 28 Sep 2024 10:38:21 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 48SAcL5o098104; Sat, 28 Sep 2024 10:38:21 GMT (envelope-from git) Date: Sat, 28 Sep 2024 10:38:21 GMT Message-Id: <202409281038.48SAcL5o098104@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: 6dedd620cfe3 - stable/14 - LinuxKPI: add eth_hdr() 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/stable/14 X-Git-Reftype: branch X-Git-Commit: 6dedd620cfe35b6a0a637132c772c5f2c7c2b40b Auto-Submitted: auto-generated The branch stable/14 has been updated by bz: URL: https://cgit.FreeBSD.org/src/commit/?id=6dedd620cfe35b6a0a637132c772c5f2c7c2b40b commit 6dedd620cfe35b6a0a637132c772c5f2c7c2b40b Author: Bjoern A. Zeeb AuthorDate: 2024-08-27 21:07:52 +0000 Commit: Bjoern A. Zeeb CommitDate: 2024-09-28 10:35:13 +0000 LinuxKPI: add eth_hdr() Add an implementation of eth_hdr() needed by a wireless driver. Sponsored by: The FreeBSD Foundation Reviewed by: emaste Differential Revision: https://reviews.freebsd.org/D46462 (cherry picked from commit 273cf7d36336eeed5fc2ad42e5e12a36e36650a0) --- sys/compat/linuxkpi/common/include/linux/if_ether.h | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/sys/compat/linuxkpi/common/include/linux/if_ether.h b/sys/compat/linuxkpi/common/include/linux/if_ether.h index 3735ad2f5527..6676e8fc142f 100644 --- a/sys/compat/linuxkpi/common/include/linux/if_ether.h +++ b/sys/compat/linuxkpi/common/include/linux/if_ether.h @@ -34,6 +34,7 @@ #define _LINUXKPI_LINUX_IF_ETHER_H_ #include +#include #include @@ -69,4 +70,13 @@ struct ethhdr { uint16_t h_proto; } __packed; +static inline struct ethhdr * +eth_hdr(const struct sk_buff *skb) +{ + struct ethhdr *hdr; + + hdr = (struct ethhdr *)skb_mac_header(skb); + return (hdr); +} + #endif /* _LINUXKPI_LINUX_IF_ETHER_H_ */