forked from coolsnowwolf/lede
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[bot] AutoMerging: merge all upstream's changes:
* https://github.com/coolsnowwolf/lede: generic: backport API from linux 6.10 for mac80211 v6.1-rc8 dnsmasq: fix filter_aaaa option package: Sync with upstream (coolsnowwolf#10641) tools/sed: Fix handling of symlinks of 128 chars (coolsnowwolf#10642)
- Loading branch information
Showing
18 changed files
with
536 additions
and
32 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,12 +9,12 @@ include $(TOPDIR)/rules.mk | |
include $(INCLUDE_DIR)/kernel.mk | ||
|
||
PKG_NAME:=strace | ||
PKG_VERSION:=6.0 | ||
PKG_VERSION:=6.1 | ||
PKG_RELEASE:=1 | ||
|
||
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz | ||
PKG_SOURCE_URL:=https://strace.io/files/$(PKG_VERSION) | ||
PKG_HASH:=92d720a666855e9f1c6a11512fd6e99674a82bbfe1442557815f2ce8e1293338 | ||
PKG_HASH:=2579e9cec37dbb786f6ea0bebd15f40dd561ef2bde2a2a2ecdce5963b01859fd | ||
|
||
PKG_MAINTAINER:=Felix Fietkau <[email protected]> | ||
PKG_LICENSE:=LGPL-2.1-or-later | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,12 @@ | ||
include $(TOPDIR)/rules.mk | ||
|
||
PKG_NAME:=libtraceevent | ||
PKG_VERSION:=1.6.3 | ||
PKG_VERSION:=1.7.0 | ||
PKG_RELEASE:=1 | ||
|
||
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz | ||
PKG_SOURCE_URL:=https://git.kernel.org/pub/scm/libs/libtrace/libtraceevent.git/snapshot/ | ||
PKG_HASH:=031e4428586788bb835d894f7f11c54e482764063d96ead303c7f208fb59e353 | ||
PKG_HASH:=3e902184f743c955b183b45f25ea163a3d41c9f287fdcfc95cd9cca748c563c8 | ||
|
||
PKG_MAINTAINER:=Nick Hainke <[email protected]> | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,12 @@ | ||
include $(TOPDIR)/rules.mk | ||
|
||
PKG_NAME:=libtracefs | ||
PKG_VERSION:=1.6.1 | ||
PKG_VERSION:=1.6.3 | ||
PKG_RELEASE:=1 | ||
|
||
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz | ||
PKG_SOURCE_URL:=https://git.kernel.org/pub/scm/libs/libtrace/libtracefs.git/snapshot/ | ||
PKG_HASH:=215a5182ee7d5a813ff84d290bb8988aa4c04cc16bb837780f61b0f5bf7494ab | ||
PKG_HASH:=de307faaa54ac52cf0ce3ff19b32b51af24897e3440e643068ac82d31e197e92 | ||
|
||
PKG_MAINTAINER:=Nick Hainke <[email protected]> | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,16 +8,17 @@ | |
include $(TOPDIR)/rules.mk | ||
|
||
PKG_NAME:=ethtool | ||
PKG_VERSION:=5.19 | ||
PKG_VERSION:=6.0 | ||
PKG_RELEASE:=1 | ||
|
||
PKG_MAINTAINER:=Felix Fietkau <[email protected]> | ||
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz | ||
PKG_SOURCE_URL:=@KERNEL/software/network/ethtool | ||
PKG_HASH:=3b752a3329827907ac3812f2831dfecf51c8c41c55d2d69cfb9c53ca06449fc6 | ||
PKG_HASH:=d5446c93de570ce68f3b1ea69dbfa12fcfd67fc19897f655d3f18231e2b818d6 | ||
|
||
PKG_LICENSE:=GPL-2.0 | ||
PKG_LICENSE_FILES:=COPYING | ||
PKG_CPE_ID:=cpe:/a:kernel:ethtool | ||
|
||
PKG_FIXUP:=autoreconf | ||
PKG_INSTALL:=1 | ||
|
169 changes: 169 additions & 0 deletions
169
target/linux/generic/backport-5.4/900-v6.10-backport-stddef.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,169 @@ | ||
--- a/include/linux/stddef.h | ||
+++ b/include/linux/stddef.h | ||
@@ -35,5 +35,66 @@ | ||
*/ | ||
#define offsetofend(TYPE, MEMBER) \ | ||
(offsetof(TYPE, MEMBER) + sizeof_field(TYPE, MEMBER)) | ||
+ | ||
+/** | ||
+ * struct_group() - Wrap a set of declarations in a mirrored struct | ||
+ * | ||
+ * @NAME: The identifier name of the mirrored sub-struct | ||
+ * @MEMBERS: The member declarations for the mirrored structs | ||
+ * | ||
+ * Used to create an anonymous union of two structs with identical | ||
+ * layout and size: one anonymous and one named. The former can be | ||
+ * used normally without sub-struct naming, and the latter can be | ||
+ * used to reason about the start, end, and size of the group of | ||
+ * struct members. | ||
+ */ | ||
+#define struct_group(NAME, MEMBERS...) \ | ||
+ __struct_group(/* no tag */, NAME, /* no attrs */, MEMBERS) | ||
+ | ||
+/** | ||
+ * struct_group_attr() - Create a struct_group() with trailing attributes | ||
+ * | ||
+ * @NAME: The identifier name of the mirrored sub-struct | ||
+ * @ATTRS: Any struct attributes to apply | ||
+ * @MEMBERS: The member declarations for the mirrored structs | ||
+ * | ||
+ * Used to create an anonymous union of two structs with identical | ||
+ * layout and size: one anonymous and one named. The former can be | ||
+ * used normally without sub-struct naming, and the latter can be | ||
+ * used to reason about the start, end, and size of the group of | ||
+ * struct members. Includes structure attributes argument. | ||
+ */ | ||
+#define struct_group_attr(NAME, ATTRS, MEMBERS...) \ | ||
+ __struct_group(/* no tag */, NAME, ATTRS, MEMBERS) | ||
+ | ||
+/** | ||
+ * struct_group_tagged() - Create a struct_group with a reusable tag | ||
+ * | ||
+ * @TAG: The tag name for the named sub-struct | ||
+ * @NAME: The identifier name of the mirrored sub-struct | ||
+ * @MEMBERS: The member declarations for the mirrored structs | ||
+ * | ||
+ * Used to create an anonymous union of two structs with identical | ||
+ * layout and size: one anonymous and one named. The former can be | ||
+ * used normally without sub-struct naming, and the latter can be | ||
+ * used to reason about the start, end, and size of the group of | ||
+ * struct members. Includes struct tag argument for the named copy, | ||
+ * so the specified layout can be reused later. | ||
+ */ | ||
+#define struct_group_tagged(TAG, NAME, MEMBERS...) \ | ||
+ __struct_group(TAG, NAME, /* no attrs */, MEMBERS) | ||
+ | ||
+/** | ||
+ * DECLARE_FLEX_ARRAY() - Declare a flexible array usable in a union | ||
+ * | ||
+ * @TYPE: The type of each flexible array element | ||
+ * @NAME: The name of the flexible array member | ||
+ * | ||
+ * In order to have a flexible array member in a union or alone in a | ||
+ * struct, it needs to be wrapped in an anonymous struct with at least 1 | ||
+ * named member, but that member can be empty. | ||
+ */ | ||
+#define DECLARE_FLEX_ARRAY(TYPE, NAME) \ | ||
+ __DECLARE_FLEX_ARRAY(TYPE, NAME) | ||
|
||
#endif | ||
--- a/dev/null | ||
+++ b/tools/include/uapi/linux/stddef.h | ||
@@ -0,0 +1,47 @@ | ||
+/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ | ||
+#ifndef _LINUX_STDDEF_H | ||
+#define _LINUX_STDDEF_H | ||
+ | ||
+ | ||
+ | ||
+#ifndef __always_inline | ||
+#define __always_inline __inline__ | ||
+#endif | ||
+ | ||
+/** | ||
+ * __struct_group() - Create a mirrored named and anonyomous struct | ||
+ * | ||
+ * @TAG: The tag name for the named sub-struct (usually empty) | ||
+ * @NAME: The identifier name of the mirrored sub-struct | ||
+ * @ATTRS: Any struct attributes (usually empty) | ||
+ * @MEMBERS: The member declarations for the mirrored structs | ||
+ * | ||
+ * Used to create an anonymous union of two structs with identical layout | ||
+ * and size: one anonymous and one named. The former's members can be used | ||
+ * normally without sub-struct naming, and the latter can be used to | ||
+ * reason about the start, end, and size of the group of struct members. | ||
+ * The named struct can also be explicitly tagged for layer reuse, as well | ||
+ * as both having struct attributes appended. | ||
+ */ | ||
+#define __struct_group(TAG, NAME, ATTRS, MEMBERS...) \ | ||
+ union { \ | ||
+ struct { MEMBERS } ATTRS; \ | ||
+ struct TAG { MEMBERS } ATTRS NAME; \ | ||
+ } | ||
+ | ||
+/** | ||
+ * __DECLARE_FLEX_ARRAY() - Declare a flexible array usable in a union | ||
+ * | ||
+ * @TYPE: The type of each flexible array element | ||
+ * @NAME: The name of the flexible array member | ||
+ * | ||
+ * In order to have a flexible array member in a union or alone in a | ||
+ * struct, it needs to be wrapped in an anonymous struct with at least 1 | ||
+ * named member, but that member can be empty. | ||
+ */ | ||
+#define __DECLARE_FLEX_ARRAY(TYPE, NAME) \ | ||
+ struct { \ | ||
+ struct { } __empty_ ## NAME; \ | ||
+ TYPE NAME[]; \ | ||
+ } | ||
+#endif | ||
--- a/dev/null | ||
+++ b/include/uapi/linux/stddef.h | ||
@@ -0,0 +1,47 @@ | ||
+/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ | ||
+#ifndef _UAPI_LINUX_STDDEF_H | ||
+#define _UAPI_LINUX_STDDEF_H | ||
+ | ||
+#include <linux/compiler_types.h> | ||
+ | ||
+#ifndef __always_inline | ||
+#define __always_inline inline | ||
+#endif | ||
+ | ||
+/** | ||
+ * __struct_group() - Create a mirrored named and anonyomous struct | ||
+ * | ||
+ * @TAG: The tag name for the named sub-struct (usually empty) | ||
+ * @NAME: The identifier name of the mirrored sub-struct | ||
+ * @ATTRS: Any struct attributes (usually empty) | ||
+ * @MEMBERS: The member declarations for the mirrored structs | ||
+ * | ||
+ * Used to create an anonymous union of two structs with identical layout | ||
+ * and size: one anonymous and one named. The former's members can be used | ||
+ * normally without sub-struct naming, and the latter can be used to | ||
+ * reason about the start, end, and size of the group of struct members. | ||
+ * The named struct can also be explicitly tagged for layer reuse, as well | ||
+ * as both having struct attributes appended. | ||
+ */ | ||
+#define __struct_group(TAG, NAME, ATTRS, MEMBERS...) \ | ||
+ union { \ | ||
+ struct { MEMBERS } ATTRS; \ | ||
+ struct TAG { MEMBERS } ATTRS NAME; \ | ||
+ } | ||
+ | ||
+/** | ||
+ * __DECLARE_FLEX_ARRAY() - Declare a flexible array usable in a union | ||
+ * | ||
+ * @TYPE: The type of each flexible array element | ||
+ * @NAME: The name of the flexible array member | ||
+ * | ||
+ * In order to have a flexible array member in a union or alone in a | ||
+ * struct, it needs to be wrapped in an anonymous struct with at least 1 | ||
+ * named member, but that member can be empty. | ||
+ */ | ||
+#define __DECLARE_FLEX_ARRAY(TYPE, NAME) \ | ||
+ struct { \ | ||
+ struct { } __empty_ ## NAME; \ | ||
+ TYPE NAME[]; \ | ||
+ } | ||
+#endif |
73 changes: 73 additions & 0 deletions
73
target/linux/generic/backport-5.4/901-v6.10-backport-net-device-path.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,73 @@ | ||
--- a/include/linux/netdevice.h | ||
+++ b/include/linux/netdevice.h | ||
@@ -838,6 +838,61 @@ | ||
struct sk_buff *skb, | ||
struct net_device *sb_dev); | ||
|
||
+enum net_device_path_type { | ||
+ DEV_PATH_ETHERNET = 0, | ||
+ DEV_PATH_VLAN, | ||
+ DEV_PATH_BRIDGE, | ||
+ DEV_PATH_PPPOE, | ||
+ DEV_PATH_DSA, | ||
+ DEV_PATH_MTK_WDMA, | ||
+}; | ||
+ | ||
+struct net_device_path { | ||
+ enum net_device_path_type type; | ||
+ const struct net_device *dev; | ||
+ union { | ||
+ struct { | ||
+ u16 id; | ||
+ __be16 proto; | ||
+ u8 h_dest[ETH_ALEN]; | ||
+ } encap; | ||
+ struct { | ||
+ enum { | ||
+ DEV_PATH_BR_VLAN_KEEP, | ||
+ DEV_PATH_BR_VLAN_TAG, | ||
+ DEV_PATH_BR_VLAN_UNTAG, | ||
+ DEV_PATH_BR_VLAN_UNTAG_HW, | ||
+ } vlan_mode; | ||
+ u16 vlan_id; | ||
+ __be16 vlan_proto; | ||
+ } bridge; | ||
+ struct { | ||
+ int port; | ||
+ u16 proto; | ||
+ } dsa; | ||
+ struct { | ||
+ u8 wdma_idx; | ||
+ u8 queue; | ||
+ u16 wcid; | ||
+ u8 bss; | ||
+ } mtk_wdma; | ||
+ }; | ||
+}; | ||
+ | ||
+#define NET_DEVICE_PATH_STACK_MAX 5 | ||
+#define NET_DEVICE_PATH_VLAN_MAX 2 | ||
+ | ||
+struct net_device_path_ctx { | ||
+ const struct net_device *dev; | ||
+ u8 daddr[ETH_ALEN]; | ||
+ | ||
+ int num_vlans; | ||
+ struct { | ||
+ u16 id; | ||
+ __be16 proto; | ||
+ } vlan[NET_DEVICE_PATH_VLAN_MAX]; | ||
+}; | ||
+ | ||
enum tc_setup_type { | ||
TC_SETUP_QDISC_MQPRIO, | ||
TC_SETUP_CLSU32, | ||
@@ -1468,6 +1523,8 @@ | ||
u32 flags); | ||
int (*ndo_xsk_wakeup)(struct net_device *dev, | ||
u32 queue_id, u32 flags); | ||
+ int (*ndo_fill_forward_path)(struct net_device_path_ctx *ctx, | ||
+ struct net_device_path *path); | ||
struct devlink_port * (*ndo_get_devlink_port)(struct net_device *dev); | ||
}; | ||
|
Oops, something went wrong.