summaryrefslogtreecommitdiff
path: root/include/net
diff options
context:
space:
mode:
authorMark Brown <broonie@kernel.org>2024-12-09 12:50:54 +0000
committerMark Brown <broonie@kernel.org>2024-12-09 12:50:54 +0000
commita6ebabd0e53d4352abe0fd2ad156a52162f5d3ce (patch)
tree314722a9a6b0cc327b4aaacfd145a2b5887af686 /include/net
parenta8d77166fcfe1cd4be70c21d65ff2b27b4f54a26 (diff)
parentfac04efc5c793dccbd07e2d59af9f90b7fc0dca4 (diff)
downloadlinux-a6ebabd0e53d4352abe0fd2ad156a52162f5d3ce.tar.gz
linux-a6ebabd0e53d4352abe0fd2ad156a52162f5d3ce.zip
regulator: Merge up v6.12-rc2
This has fixes for several boards which help my testing a lot.
Diffstat (limited to 'include/net')
-rw-r--r--include/net/inet_timewait_sock.h2
-rw-r--r--include/net/net_namespace.h5
-rw-r--r--include/net/netfilter/nf_tables_core.h1
3 files changed, 8 insertions, 0 deletions
diff --git a/include/net/inet_timewait_sock.h b/include/net/inet_timewait_sock.h
index beb533a0e880..62c0a7e65d6b 100644
--- a/include/net/inet_timewait_sock.h
+++ b/include/net/inet_timewait_sock.h
@@ -45,6 +45,8 @@ struct inet_timewait_sock {
#define tw_node __tw_common.skc_nulls_node
#define tw_bind_node __tw_common.skc_bind_node
#define tw_refcnt __tw_common.skc_refcnt
+#define tw_tx_queue_mapping __tw_common.skc_tx_queue_mapping
+#define tw_rx_queue_mapping __tw_common.skc_rx_queue_mapping
#define tw_hash __tw_common.skc_hash
#define tw_prot __tw_common.skc_prot
#define tw_net __tw_common.skc_net
diff --git a/include/net/net_namespace.h b/include/net/net_namespace.h
index 873c0f9fdac6..f943bd79ef03 100644
--- a/include/net/net_namespace.h
+++ b/include/net/net_namespace.h
@@ -325,6 +325,11 @@ static inline int check_net(const struct net *net)
#define net_drop_ns NULL
#endif
+/* Returns true if the netns initialization is completed successfully */
+static inline bool net_initialized(const struct net *net)
+{
+ return READ_ONCE(net->list.next);
+}
static inline void __netns_tracker_alloc(struct net *net,
netns_tracker *tracker,
diff --git a/include/net/netfilter/nf_tables_core.h b/include/net/netfilter/nf_tables_core.h
index ff27cb2e1662..03b6165756fc 100644
--- a/include/net/netfilter/nf_tables_core.h
+++ b/include/net/netfilter/nf_tables_core.h
@@ -161,6 +161,7 @@ enum {
};
struct nft_inner_tun_ctx {
+ unsigned long cookie;
u16 type;
u16 inner_tunoff;
u16 inner_lloff;