Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 17 Oct 2022 20:41:33 GMT
From:      "Bjoern A. Zeeb" <bz@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org
Subject:   git: 990d3105c4d6 - stable/13 - LinuxKPI: if_ether.h add more constants
Message-ID:  <202210172041.29HKfXEp096417@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch stable/13 has been updated by bz:

URL: https://cgit.FreeBSD.org/src/commit/?id=990d3105c4d63c2c2382244c744e6ccd41e3c685

commit 990d3105c4d63c2c2382244c744e6ccd41e3c685
Author:     Bjoern A. Zeeb <bz@FreeBSD.org>
AuthorDate: 2022-09-21 19:51:52 +0000
Commit:     Bjoern A. Zeeb <bz@FreeBSD.org>
CommitDate: 2022-10-17 20:37:03 +0000

    LinuxKPI: if_ether.h add more constants
    
    In addition to the ones added last year add more found in modern
    drivers.
    
    Sponsored by:   The FreeBSD Foundation
    Reviewed by:    hselasky
    Differential Revision: https://reviews.freebsd.org/D36656
    
    (cherry picked from commit 8e30f49256e254b31fc7c25c97e608f19c268b2b)
---
 sys/compat/linuxkpi/common/include/linux/if_ether.h | 9 +++++++++
 1 file changed, 9 insertions(+)

diff --git a/sys/compat/linuxkpi/common/include/linux/if_ether.h b/sys/compat/linuxkpi/common/include/linux/if_ether.h
index 178b778ec736..c27583e62ebd 100644
--- a/sys/compat/linuxkpi/common/include/linux/if_ether.h
+++ b/sys/compat/linuxkpi/common/include/linux/if_ether.h
@@ -4,6 +4,10 @@
  * Copyright (c) 2010 Panasas, Inc.
  * Copyright (c) 2013 Mellanox Technologies, Ltd.
  * All rights reserved.
+ * Copyright (c) 2021-2022 The FreeBSD Foundation
+ *
+ * Portions of this software were developed by Björn Zeeb
+ * under sponsorship from the FreeBSD Foundation.
  *
  * Redistribution and use in source and binary forms, with or without
  * modification, are permitted provided that the following conditions
@@ -55,6 +59,9 @@
 #define	ETH_P_8021AD	ETHERTYPE_QINQ
 #define	ETH_P_PAE	ETHERTYPE_PAE
 #define	ETH_P_802_2	ETHERTYPE_8023
+#define	ETH_P_IPX	ETHERTYPE_IPX
+#define	ETH_P_AARP	ETHERTYPE_AARP
+#define	ETH_P_802_3_MIN	0x05DD		/* See comment in sys/net/ethernet.h */
 #define	ETH_P_LINK_CTL	0x886C		/* ITU-T G.989.2 */
 #define	ETH_P_TDLS	0x890D		/* 802.11z-2010, see wpa. */
 
@@ -64,4 +71,6 @@ struct ethhdr {
 	uint16_t	h_proto;
 } __packed;
 
+#define	ETH_GSTRING_LEN	(2 * IF_NAMESIZE)	/* Increase if not large enough */
+
 #endif	/* _LINUXKPI_LINUX_IF_ETHER_H_ */



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202210172041.29HKfXEp096417>