diff options
| author | Ingo Molnar <mingo@kernel.org> | 2017-11-08 04:17:15 -0500 |
|---|---|---|
| committer | Ingo Molnar <mingo@kernel.org> | 2017-11-08 04:17:15 -0500 |
| commit | 8a103df440afea30c91ebd42e61dc644e647f4bd (patch) | |
| tree | 2cfa99e9c6e1e138e1404bce4294e46cb0034cce /include/net | |
| parent | a9903f04e0a4ea522d959c2f287cdf0ab029e324 (diff) | |
| parent | fbc3edf7d7731d7a22c483c679700589bab936a3 (diff) | |
Merge branch 'linus' into sched/core, to pick up fixes
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Diffstat (limited to 'include/net')
171 files changed, 200 insertions, 12 deletions
diff --git a/include/net/Space.h b/include/net/Space.h index 8a32771e4215..27fb5c937c4f 100644 --- a/include/net/Space.h +++ b/include/net/Space.h | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | /* SPDX-License-Identifier: GPL-2.0 */ | ||
| 1 | /* A unified ethernet device probe. This is the easiest way to have every | 2 | /* A unified ethernet device probe. This is the easiest way to have every |
| 2 | * ethernet adaptor have the name "eth[0123...]". | 3 | * ethernet adaptor have the name "eth[0123...]". |
| 3 | */ | 4 | */ |
diff --git a/include/net/act_api.h b/include/net/act_api.h index b944e0eb93be..1e6df0eb058f 100644 --- a/include/net/act_api.h +++ b/include/net/act_api.h | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | /* SPDX-License-Identifier: GPL-2.0 */ | ||
| 1 | #ifndef __NET_ACT_API_H | 2 | #ifndef __NET_ACT_API_H |
| 2 | #define __NET_ACT_API_H | 3 | #define __NET_ACT_API_H |
| 3 | 4 | ||
| @@ -13,6 +14,7 @@ | |||
| 13 | struct tcf_idrinfo { | 14 | struct tcf_idrinfo { |
| 14 | spinlock_t lock; | 15 | spinlock_t lock; |
| 15 | struct idr action_idr; | 16 | struct idr action_idr; |
| 17 | struct net *net; | ||
| 16 | }; | 18 | }; |
| 17 | 19 | ||
| 18 | struct tc_action_ops; | 20 | struct tc_action_ops; |
| @@ -104,7 +106,7 @@ struct tc_action_net { | |||
| 104 | 106 | ||
| 105 | static inline | 107 | static inline |
| 106 | int tc_action_net_init(struct tc_action_net *tn, | 108 | int tc_action_net_init(struct tc_action_net *tn, |
| 107 | const struct tc_action_ops *ops) | 109 | const struct tc_action_ops *ops, struct net *net) |
| 108 | { | 110 | { |
| 109 | int err = 0; | 111 | int err = 0; |
| 110 | 112 | ||
| @@ -112,6 +114,7 @@ int tc_action_net_init(struct tc_action_net *tn, | |||
| 112 | if (!tn->idrinfo) | 114 | if (!tn->idrinfo) |
| 113 | return -ENOMEM; | 115 | return -ENOMEM; |
| 114 | tn->ops = ops; | 116 | tn->ops = ops; |
| 117 | tn->idrinfo->net = net; | ||
| 115 | spin_lock_init(&tn->idrinfo->lock); | 118 | spin_lock_init(&tn->idrinfo->lock); |
| 116 | idr_init(&tn->idrinfo->action_idr); | 119 | idr_init(&tn->idrinfo->action_idr); |
| 117 | return err; | 120 | return err; |
| @@ -122,7 +125,9 @@ void tcf_idrinfo_destroy(const struct tc_action_ops *ops, | |||
| 122 | 125 | ||
| 123 | static inline void tc_action_net_exit(struct tc_action_net *tn) | 126 | static inline void tc_action_net_exit(struct tc_action_net *tn) |
| 124 | { | 127 | { |
| 128 | rtnl_lock(); | ||
| 125 | tcf_idrinfo_destroy(tn->ops, tn->idrinfo); | 129 | tcf_idrinfo_destroy(tn->ops, tn->idrinfo); |
| 130 | rtnl_unlock(); | ||
| 126 | kfree(tn->idrinfo); | 131 | kfree(tn->idrinfo); |
| 127 | } | 132 | } |
| 128 | 133 | ||
diff --git a/include/net/addrconf.h b/include/net/addrconf.h index f44ff2476758..35f5aabd432f 100644 --- a/include/net/addrconf.h +++ b/include/net/addrconf.h | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | /* SPDX-License-Identifier: GPL-2.0 */ | ||
| 1 | #ifndef _ADDRCONF_H | 2 | #ifndef _ADDRCONF_H |
| 2 | #define _ADDRCONF_H | 3 | #define _ADDRCONF_H |
| 3 | 4 | ||
diff --git a/include/net/af_unix.h b/include/net/af_unix.h index afb37f835449..a5ba41b3b867 100644 --- a/include/net/af_unix.h +++ b/include/net/af_unix.h | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | /* SPDX-License-Identifier: GPL-2.0 */ | ||
| 1 | #ifndef __LINUX_NET_AFUNIX_H | 2 | #ifndef __LINUX_NET_AFUNIX_H |
| 2 | #define __LINUX_NET_AFUNIX_H | 3 | #define __LINUX_NET_AFUNIX_H |
| 3 | 4 | ||
diff --git a/include/net/ah.h b/include/net/ah.h index 4e2dfa474a7e..2d2dea521169 100644 --- a/include/net/ah.h +++ b/include/net/ah.h | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | /* SPDX-License-Identifier: GPL-2.0 */ | ||
| 1 | #ifndef _NET_AH_H | 2 | #ifndef _NET_AH_H |
| 2 | #define _NET_AH_H | 3 | #define _NET_AH_H |
| 3 | 4 | ||
diff --git a/include/net/arp.h b/include/net/arp.h index 17d90e4e8dc5..dc8cd47f883b 100644 --- a/include/net/arp.h +++ b/include/net/arp.h | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | /* SPDX-License-Identifier: GPL-2.0 */ | ||
| 1 | /* linux/net/inet/arp.h */ | 2 | /* linux/net/inet/arp.h */ |
| 2 | #ifndef _ARP_H | 3 | #ifndef _ARP_H |
| 3 | #define _ARP_H | 4 | #define _ARP_H |
diff --git a/include/net/atmclip.h b/include/net/atmclip.h index 5865924d4aac..70e350e0db3d 100644 --- a/include/net/atmclip.h +++ b/include/net/atmclip.h | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | /* SPDX-License-Identifier: GPL-2.0 */ | ||
| 1 | /* net/atm/atmarp.h - RFC1577 ATM ARP */ | 2 | /* net/atm/atmarp.h - RFC1577 ATM ARP */ |
| 2 | 3 | ||
| 3 | /* Written 1995-2000 by Werner Almesberger, EPFL LRC/ICA */ | 4 | /* Written 1995-2000 by Werner Almesberger, EPFL LRC/ICA */ |
diff --git a/include/net/ax25.h b/include/net/ax25.h index c4a0cf6f0810..76fb39c272a7 100644 --- a/include/net/ax25.h +++ b/include/net/ax25.h | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | /* SPDX-License-Identifier: GPL-2.0 */ | ||
| 1 | /* | 2 | /* |
| 2 | * Declarations of AX.25 type objects. | 3 | * Declarations of AX.25 type objects. |
| 3 | * | 4 | * |
diff --git a/include/net/compat.h b/include/net/compat.h index 13de0ccaa059..a91bea80b9fc 100644 --- a/include/net/compat.h +++ b/include/net/compat.h | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | /* SPDX-License-Identifier: GPL-2.0 */ | ||
| 1 | #ifndef NET_COMPAT_H | 2 | #ifndef NET_COMPAT_H |
| 2 | #define NET_COMPAT_H | 3 | #define NET_COMPAT_H |
| 3 | 4 | ||
diff --git a/include/net/datalink.h b/include/net/datalink.h index 93cb18f729b5..a9663229b913 100644 --- a/include/net/datalink.h +++ b/include/net/datalink.h | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | /* SPDX-License-Identifier: GPL-2.0 */ | ||
| 1 | #ifndef _NET_INET_DATALINK_H_ | 2 | #ifndef _NET_INET_DATALINK_H_ |
| 2 | #define _NET_INET_DATALINK_H_ | 3 | #define _NET_INET_DATALINK_H_ |
| 3 | 4 | ||
diff --git a/include/net/dn.h b/include/net/dn.h index 913b73d239f5..fc0036228d20 100644 --- a/include/net/dn.h +++ b/include/net/dn.h | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | /* SPDX-License-Identifier: GPL-2.0 */ | ||
| 1 | #ifndef _NET_DN_H | 2 | #ifndef _NET_DN_H |
| 2 | #define _NET_DN_H | 3 | #define _NET_DN_H |
| 3 | 4 | ||
diff --git a/include/net/dn_dev.h b/include/net/dn_dev.h index 197886cd7bdd..595b4f6c1eb1 100644 --- a/include/net/dn_dev.h +++ b/include/net/dn_dev.h | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | /* SPDX-License-Identifier: GPL-2.0 */ | ||
| 1 | #ifndef _NET_DN_DEV_H | 2 | #ifndef _NET_DN_DEV_H |
| 2 | #define _NET_DN_DEV_H | 3 | #define _NET_DN_DEV_H |
| 3 | 4 | ||
diff --git a/include/net/dn_fib.h b/include/net/dn_fib.h index 81210a8b8d7c..6dd2213c5eb2 100644 --- a/include/net/dn_fib.h +++ b/include/net/dn_fib.h | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | /* SPDX-License-Identifier: GPL-2.0 */ | ||
| 1 | #ifndef _NET_DN_FIB_H | 2 | #ifndef _NET_DN_FIB_H |
| 2 | #define _NET_DN_FIB_H | 3 | #define _NET_DN_FIB_H |
| 3 | 4 | ||
diff --git a/include/net/dn_neigh.h b/include/net/dn_neigh.h index 5e902fc3f4eb..2e3e7793973a 100644 --- a/include/net/dn_neigh.h +++ b/include/net/dn_neigh.h | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | /* SPDX-License-Identifier: GPL-2.0 */ | ||
| 1 | #ifndef _NET_DN_NEIGH_H | 2 | #ifndef _NET_DN_NEIGH_H |
| 2 | #define _NET_DN_NEIGH_H | 3 | #define _NET_DN_NEIGH_H |
| 3 | 4 | ||
diff --git a/include/net/dsfield.h b/include/net/dsfield.h index e1ad903a8d6a..1a245ee10c95 100644 --- a/include/net/dsfield.h +++ b/include/net/dsfield.h | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | /* SPDX-License-Identifier: GPL-2.0 */ | ||
| 1 | /* include/net/dsfield.h - Manipulation of the Differentiated Services field */ | 2 | /* include/net/dsfield.h - Manipulation of the Differentiated Services field */ |
| 2 | 3 | ||
| 3 | /* Written 1998-2000 by Werner Almesberger, EPFL ICA */ | 4 | /* Written 1998-2000 by Werner Almesberger, EPFL ICA */ |
diff --git a/include/net/dst.h b/include/net/dst.h index 06a6765da074..694c2e6ae618 100644 --- a/include/net/dst.h +++ b/include/net/dst.h | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | /* SPDX-License-Identifier: GPL-2.0 */ | ||
| 1 | /* | 2 | /* |
| 2 | * net/dst.h Protocol independent destination cache definitions. | 3 | * net/dst.h Protocol independent destination cache definitions. |
| 3 | * | 4 | * |
diff --git a/include/net/dst_cache.h b/include/net/dst_cache.h index 151accae708b..72fd5067c353 100644 --- a/include/net/dst_cache.h +++ b/include/net/dst_cache.h | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | /* SPDX-License-Identifier: GPL-2.0 */ | ||
| 1 | #ifndef _NET_DST_CACHE_H | 2 | #ifndef _NET_DST_CACHE_H |
| 2 | #define _NET_DST_CACHE_H | 3 | #define _NET_DST_CACHE_H |
| 3 | 4 | ||
diff --git a/include/net/dst_metadata.h b/include/net/dst_metadata.h index a803129a4849..91bc7bdf6bf5 100644 --- a/include/net/dst_metadata.h +++ b/include/net/dst_metadata.h | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | /* SPDX-License-Identifier: GPL-2.0 */ | ||
| 1 | #ifndef __NET_DST_METADATA_H | 2 | #ifndef __NET_DST_METADATA_H |
| 2 | #define __NET_DST_METADATA_H 1 | 3 | #define __NET_DST_METADATA_H 1 |
| 3 | 4 | ||
diff --git a/include/net/dst_ops.h b/include/net/dst_ops.h index c84b3287e38b..5ec645f27ee3 100644 --- a/include/net/dst_ops.h +++ b/include/net/dst_ops.h | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | /* SPDX-License-Identifier: GPL-2.0 */ | ||
| 1 | #ifndef _NET_DST_OPS_H | 2 | #ifndef _NET_DST_OPS_H |
| 2 | #define _NET_DST_OPS_H | 3 | #define _NET_DST_OPS_H |
| 3 | #include <linux/types.h> | 4 | #include <linux/types.h> |
diff --git a/include/net/esp.h b/include/net/esp.h index c41994d1bfef..117652eb6ea3 100644 --- a/include/net/esp.h +++ b/include/net/esp.h | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | /* SPDX-License-Identifier: GPL-2.0 */ | ||
| 1 | #ifndef _NET_ESP_H | 2 | #ifndef _NET_ESP_H |
| 2 | #define _NET_ESP_H | 3 | #define _NET_ESP_H |
| 3 | 4 | ||
diff --git a/include/net/fib_rules.h b/include/net/fib_rules.h index 3d7f1cefc6f5..648caf90ec07 100644 --- a/include/net/fib_rules.h +++ b/include/net/fib_rules.h | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | /* SPDX-License-Identifier: GPL-2.0 */ | ||
| 1 | #ifndef __NET_FIB_RULES_H | 2 | #ifndef __NET_FIB_RULES_H |
| 2 | #define __NET_FIB_RULES_H | 3 | #define __NET_FIB_RULES_H |
| 3 | 4 | ||
diff --git a/include/net/firewire.h b/include/net/firewire.h index 31bcbfe7a220..299e5df38552 100644 --- a/include/net/firewire.h +++ b/include/net/firewire.h | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | /* SPDX-License-Identifier: GPL-2.0 */ | ||
| 1 | #ifndef _NET_FIREWIRE_H | 2 | #ifndef _NET_FIREWIRE_H |
| 2 | #define _NET_FIREWIRE_H | 3 | #define _NET_FIREWIRE_H |
| 3 | 4 | ||
diff --git a/include/net/flow.h b/include/net/flow.h index eb60cee30b44..f1624fd5b1d0 100644 --- a/include/net/flow.h +++ b/include/net/flow.h | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | /* SPDX-License-Identifier: GPL-2.0 */ | ||
| 1 | /* | 2 | /* |
| 2 | * | 3 | * |
| 3 | * Generic internet FLOW. | 4 | * Generic internet FLOW. |
diff --git a/include/net/flow_dissector.h b/include/net/flow_dissector.h index fc3dce730a6b..22aba321282d 100644 --- a/include/net/flow_dissector.h +++ b/include/net/flow_dissector.h | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | /* SPDX-License-Identifier: GPL-2.0 */ | ||
| 1 | #ifndef _NET_FLOW_DISSECTOR_H | 2 | #ifndef _NET_FLOW_DISSECTOR_H |
| 2 | #define _NET_FLOW_DISSECTOR_H | 3 | #define _NET_FLOW_DISSECTOR_H |
| 3 | 4 | ||
diff --git a/include/net/fou.h b/include/net/fou.h index f5cc6910a27e..80f56e275b08 100644 --- a/include/net/fou.h +++ b/include/net/fou.h | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | /* SPDX-License-Identifier: GPL-2.0 */ | ||
| 1 | #ifndef __NET_FOU_H | 2 | #ifndef __NET_FOU_H |
| 2 | #define __NET_FOU_H | 3 | #define __NET_FOU_H |
| 3 | 4 | ||
diff --git a/include/net/fq_impl.h b/include/net/fq_impl.h index 4e6131cd3f43..ac1a2317941e 100644 --- a/include/net/fq_impl.h +++ b/include/net/fq_impl.h | |||
| @@ -146,6 +146,7 @@ static void fq_tin_enqueue(struct fq *fq, | |||
| 146 | fq_flow_get_default_t get_default_func) | 146 | fq_flow_get_default_t get_default_func) |
| 147 | { | 147 | { |
| 148 | struct fq_flow *flow; | 148 | struct fq_flow *flow; |
| 149 | bool oom; | ||
| 149 | 150 | ||
| 150 | lockdep_assert_held(&fq->lock); | 151 | lockdep_assert_held(&fq->lock); |
| 151 | 152 | ||
| @@ -167,8 +168,8 @@ static void fq_tin_enqueue(struct fq *fq, | |||
| 167 | } | 168 | } |
| 168 | 169 | ||
| 169 | __skb_queue_tail(&flow->queue, skb); | 170 | __skb_queue_tail(&flow->queue, skb); |
| 170 | 171 | oom = (fq->memory_usage > fq->memory_limit); | |
| 171 | if (fq->backlog > fq->limit || fq->memory_usage > fq->memory_limit) { | 172 | while (fq->backlog > fq->limit || oom) { |
| 172 | flow = list_first_entry_or_null(&fq->backlogs, | 173 | flow = list_first_entry_or_null(&fq->backlogs, |
| 173 | struct fq_flow, | 174 | struct fq_flow, |
| 174 | backlogchain); | 175 | backlogchain); |
| @@ -183,8 +184,10 @@ static void fq_tin_enqueue(struct fq *fq, | |||
| 183 | 184 | ||
| 184 | flow->tin->overlimit++; | 185 | flow->tin->overlimit++; |
| 185 | fq->overlimit++; | 186 | fq->overlimit++; |
| 186 | if (fq->memory_usage > fq->memory_limit) | 187 | if (oom) { |
| 187 | fq->overmemory++; | 188 | fq->overmemory++; |
| 189 | oom = (fq->memory_usage > fq->memory_limit); | ||
| 190 | } | ||
| 188 | } | 191 | } |
| 189 | } | 192 | } |
| 190 | 193 | ||
diff --git a/include/net/garp.h b/include/net/garp.h index abf33bbd2e6a..c41833bd4590 100644 --- a/include/net/garp.h +++ b/include/net/garp.h | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | /* SPDX-License-Identifier: GPL-2.0 */ | ||
| 1 | #ifndef _NET_GARP_H | 2 | #ifndef _NET_GARP_H |
| 2 | #define _NET_GARP_H | 3 | #define _NET_GARP_H |
| 3 | 4 | ||
diff --git a/include/net/gen_stats.h b/include/net/gen_stats.h index 8b7aa370e7a4..304f7aa9cc01 100644 --- a/include/net/gen_stats.h +++ b/include/net/gen_stats.h | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | /* SPDX-License-Identifier: GPL-2.0 */ | ||
| 1 | #ifndef __NET_GEN_STATS_H | 2 | #ifndef __NET_GEN_STATS_H |
| 2 | #define __NET_GEN_STATS_H | 3 | #define __NET_GEN_STATS_H |
| 3 | 4 | ||
diff --git a/include/net/genetlink.h b/include/net/genetlink.h index c59a098221db..5ac169a735f4 100644 --- a/include/net/genetlink.h +++ b/include/net/genetlink.h | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | /* SPDX-License-Identifier: GPL-2.0 */ | ||
| 1 | #ifndef __NET_GENERIC_NETLINK_H | 2 | #ifndef __NET_GENERIC_NETLINK_H |
| 2 | #define __NET_GENERIC_NETLINK_H | 3 | #define __NET_GENERIC_NETLINK_H |
| 3 | 4 | ||
diff --git a/include/net/geneve.h b/include/net/geneve.h index ec0327d4331b..a7600ed55ea3 100644 --- a/include/net/geneve.h +++ b/include/net/geneve.h | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | /* SPDX-License-Identifier: GPL-2.0 */ | ||
| 1 | #ifndef __NET_GENEVE_H | 2 | #ifndef __NET_GENEVE_H |
| 2 | #define __NET_GENEVE_H 1 | 3 | #define __NET_GENEVE_H 1 |
| 3 | 4 | ||
diff --git a/include/net/gre.h b/include/net/gre.h index d25d836c129b..f90585decbce 100644 --- a/include/net/gre.h +++ b/include/net/gre.h | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | /* SPDX-License-Identifier: GPL-2.0 */ | ||
| 1 | #ifndef __LINUX_GRE_H | 2 | #ifndef __LINUX_GRE_H |
| 2 | #define __LINUX_GRE_H | 3 | #define __LINUX_GRE_H |
| 3 | 4 | ||
diff --git a/include/net/gro_cells.h b/include/net/gro_cells.h index fcaf8f479130..596688b67a2a 100644 --- a/include/net/gro_cells.h +++ b/include/net/gro_cells.h | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | /* SPDX-License-Identifier: GPL-2.0 */ | ||
| 1 | #ifndef _NET_GRO_CELLS_H | 2 | #ifndef _NET_GRO_CELLS_H |
| 2 | #define _NET_GRO_CELLS_H | 3 | #define _NET_GRO_CELLS_H |
| 3 | 4 | ||
diff --git a/include/net/gtp.h b/include/net/gtp.h index 6398891b99ba..0e16ebb2a82d 100644 --- a/include/net/gtp.h +++ b/include/net/gtp.h | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | /* SPDX-License-Identifier: GPL-2.0 */ | ||
| 1 | #ifndef _GTP_H_ | 2 | #ifndef _GTP_H_ |
| 2 | #define _GTP_H_ | 3 | #define _GTP_H_ |
| 3 | 4 | ||
diff --git a/include/net/gue.h b/include/net/gue.h index 3f28ec7f1c7f..2fdb29ca74c2 100644 --- a/include/net/gue.h +++ b/include/net/gue.h | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | /* SPDX-License-Identifier: GPL-2.0 */ | ||
| 1 | #ifndef __NET_GUE_H | 2 | #ifndef __NET_GUE_H |
| 2 | #define __NET_GUE_H | 3 | #define __NET_GUE_H |
| 3 | 4 | ||
diff --git a/include/net/hwbm.h b/include/net/hwbm.h index 47d08662501b..89085e2e2da5 100644 --- a/include/net/hwbm.h +++ b/include/net/hwbm.h | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | /* SPDX-License-Identifier: GPL-2.0 */ | ||
| 1 | #ifndef _HWBM_H | 2 | #ifndef _HWBM_H |
| 2 | #define _HWBM_H | 3 | #define _HWBM_H |
| 3 | 4 | ||
diff --git a/include/net/ife.h b/include/net/ife.h index 2d87d6898b0a..44b9c00f7223 100644 --- a/include/net/ife.h +++ b/include/net/ife.h | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | /* SPDX-License-Identifier: GPL-2.0 */ | ||
| 1 | #ifndef __NET_IFE_H | 2 | #ifndef __NET_IFE_H |
| 2 | #define __NET_IFE_H | 3 | #define __NET_IFE_H |
| 3 | 4 | ||
diff --git a/include/net/inet_common.h b/include/net/inet_common.h index f39ae697347f..5a54c9570977 100644 --- a/include/net/inet_common.h +++ b/include/net/inet_common.h | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | /* SPDX-License-Identifier: GPL-2.0 */ | ||
| 1 | #ifndef _INET_COMMON_H | 2 | #ifndef _INET_COMMON_H |
| 2 | #define _INET_COMMON_H | 3 | #define _INET_COMMON_H |
| 3 | 4 | ||
diff --git a/include/net/inet_ecn.h b/include/net/inet_ecn.h index dce2d586d9ce..d30e4c869438 100644 --- a/include/net/inet_ecn.h +++ b/include/net/inet_ecn.h | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | /* SPDX-License-Identifier: GPL-2.0 */ | ||
| 1 | #ifndef _INET_ECN_H_ | 2 | #ifndef _INET_ECN_H_ |
| 2 | #define _INET_ECN_H_ | 3 | #define _INET_ECN_H_ |
| 3 | 4 | ||
diff --git a/include/net/inet_frag.h b/include/net/inet_frag.h index fc59e0775e00..a6e4edd8d4a2 100644 --- a/include/net/inet_frag.h +++ b/include/net/inet_frag.h | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | /* SPDX-License-Identifier: GPL-2.0 */ | ||
| 1 | #ifndef __NET_FRAG_H__ | 2 | #ifndef __NET_FRAG_H__ |
| 2 | #define __NET_FRAG_H__ | 3 | #define __NET_FRAG_H__ |
| 3 | 4 | ||
diff --git a/include/net/inet_sock.h b/include/net/inet_sock.h index aa95053dfc78..db8162dd8c0b 100644 --- a/include/net/inet_sock.h +++ b/include/net/inet_sock.h | |||
| @@ -96,7 +96,7 @@ struct inet_request_sock { | |||
| 96 | kmemcheck_bitfield_end(flags); | 96 | kmemcheck_bitfield_end(flags); |
| 97 | u32 ir_mark; | 97 | u32 ir_mark; |
| 98 | union { | 98 | union { |
| 99 | struct ip_options_rcu *opt; | 99 | struct ip_options_rcu __rcu *ireq_opt; |
| 100 | #if IS_ENABLED(CONFIG_IPV6) | 100 | #if IS_ENABLED(CONFIG_IPV6) |
| 101 | struct { | 101 | struct { |
| 102 | struct ipv6_txoptions *ipv6_opt; | 102 | struct ipv6_txoptions *ipv6_opt; |
| @@ -132,6 +132,12 @@ static inline int inet_request_bound_dev_if(const struct sock *sk, | |||
| 132 | return sk->sk_bound_dev_if; | 132 | return sk->sk_bound_dev_if; |
| 133 | } | 133 | } |
| 134 | 134 | ||
| 135 | static inline struct ip_options_rcu *ireq_opt_deref(const struct inet_request_sock *ireq) | ||
| 136 | { | ||
| 137 | return rcu_dereference_check(ireq->ireq_opt, | ||
| 138 | refcount_read(&ireq->req.rsk_refcnt) > 0); | ||
| 139 | } | ||
| 140 | |||
| 135 | struct inet_cork { | 141 | struct inet_cork { |
| 136 | unsigned int flags; | 142 | unsigned int flags; |
| 137 | __be32 addr; | 143 | __be32 addr; |
diff --git a/include/net/inetpeer.h b/include/net/inetpeer.h index 950ed182f62f..00b5e7825508 100644 --- a/include/net/inetpeer.h +++ b/include/net/inetpeer.h | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | /* SPDX-License-Identifier: GPL-2.0 */ | ||
| 1 | /* | 2 | /* |
| 2 | * INETPEER - A storage for permanent information about peers | 3 | * INETPEER - A storage for permanent information about peers |
| 3 | * | 4 | * |
diff --git a/include/net/ip6_route.h b/include/net/ip6_route.h index ee96f402cb75..bee528135cf1 100644 --- a/include/net/ip6_route.h +++ b/include/net/ip6_route.h | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | /* SPDX-License-Identifier: GPL-2.0 */ | ||
| 1 | #ifndef _NET_IP6_ROUTE_H | 2 | #ifndef _NET_IP6_ROUTE_H |
| 2 | #define _NET_IP6_ROUTE_H | 3 | #define _NET_IP6_ROUTE_H |
| 3 | 4 | ||
diff --git a/include/net/ip6_tunnel.h b/include/net/ip6_tunnel.h index 08fbc7f7d8d7..d66f70f63734 100644 --- a/include/net/ip6_tunnel.h +++ b/include/net/ip6_tunnel.h | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | /* SPDX-License-Identifier: GPL-2.0 */ | ||
| 1 | #ifndef _NET_IP6_TUNNEL_H | 2 | #ifndef _NET_IP6_TUNNEL_H |
| 2 | #define _NET_IP6_TUNNEL_H | 3 | #define _NET_IP6_TUNNEL_H |
| 3 | 4 | ||
diff --git a/include/net/ip_tunnels.h b/include/net/ip_tunnels.h index 992652856fe8..eb2321a13506 100644 --- a/include/net/ip_tunnels.h +++ b/include/net/ip_tunnels.h | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | /* SPDX-License-Identifier: GPL-2.0 */ | ||
| 1 | #ifndef __NET_IP_TUNNELS_H | 2 | #ifndef __NET_IP_TUNNELS_H |
| 2 | #define __NET_IP_TUNNELS_H 1 | 3 | #define __NET_IP_TUNNELS_H 1 |
| 3 | 4 | ||
diff --git a/include/net/ip_vs.h b/include/net/ip_vs.h index 4f4f786255ef..5d08c1950e7d 100644 --- a/include/net/ip_vs.h +++ b/include/net/ip_vs.h | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | /* SPDX-License-Identifier: GPL-2.0 */ | ||
| 1 | /* IP Virtual Server | 2 | /* IP Virtual Server |
| 2 | * data structure and functionality definitions | 3 | * data structure and functionality definitions |
| 3 | */ | 4 | */ |
diff --git a/include/net/ipcomp.h b/include/net/ipcomp.h index cc4f30cd7315..fee6fc451597 100644 --- a/include/net/ipcomp.h +++ b/include/net/ipcomp.h | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | /* SPDX-License-Identifier: GPL-2.0 */ | ||
| 1 | #ifndef _NET_IPCOMP_H | 2 | #ifndef _NET_IPCOMP_H |
| 2 | #define _NET_IPCOMP_H | 3 | #define _NET_IPCOMP_H |
| 3 | 4 | ||
diff --git a/include/net/ipconfig.h b/include/net/ipconfig.h index c74cc1bd5a02..e3534299bd2a 100644 --- a/include/net/ipconfig.h +++ b/include/net/ipconfig.h | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | /* SPDX-License-Identifier: GPL-2.0 */ | ||
| 1 | /* | 2 | /* |
| 2 | * Copyright (C) 1997 Martin Mares | 3 | * Copyright (C) 1997 Martin Mares |
| 3 | * | 4 | * |
diff --git a/include/net/ipx.h b/include/net/ipx.h index af32b97b5ddd..baf090390998 100644 --- a/include/net/ipx.h +++ b/include/net/ipx.h | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | /* SPDX-License-Identifier: GPL-2.0 */ | ||
| 1 | #ifndef _NET_INET_IPX_H_ | 2 | #ifndef _NET_INET_IPX_H_ |
| 2 | #define _NET_INET_IPX_H_ | 3 | #define _NET_INET_IPX_H_ |
| 3 | /* | 4 | /* |
diff --git a/include/net/iucv/af_iucv.h b/include/net/iucv/af_iucv.h index 714cc9a54a4c..070e93a17c59 100644 --- a/include/net/iucv/af_iucv.h +++ b/include/net/iucv/af_iucv.h | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | /* SPDX-License-Identifier: GPL-2.0 */ | ||
| 1 | /* | 2 | /* |
| 2 | * Copyright 2006 IBM Corporation | 3 | * Copyright 2006 IBM Corporation |
| 3 | * IUCV protocol stack for Linux on zSeries | 4 | * IUCV protocol stack for Linux on zSeries |
diff --git a/include/net/iucv/iucv.h b/include/net/iucv/iucv.h index b867b0cf79e8..f9e88401d7da 100644 --- a/include/net/iucv/iucv.h +++ b/include/net/iucv/iucv.h | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | /* SPDX-License-Identifier: GPL-2.0 */ | ||
| 1 | /* | 2 | /* |
| 2 | * drivers/s390/net/iucv.h | 3 | * drivers/s390/net/iucv.h |
| 3 | * IUCV base support. | 4 | * IUCV base support. |
diff --git a/include/net/iw_handler.h b/include/net/iw_handler.h index 2509728650bd..725282095840 100644 --- a/include/net/iw_handler.h +++ b/include/net/iw_handler.h | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | /* SPDX-License-Identifier: GPL-2.0 */ | ||
| 1 | /* | 2 | /* |
| 2 | * This file define the new driver API for Wireless Extensions | 3 | * This file define the new driver API for Wireless Extensions |
| 3 | * | 4 | * |
diff --git a/include/net/lapb.h b/include/net/lapb.h index 85e773742f4e..ccc3d1f020b0 100644 --- a/include/net/lapb.h +++ b/include/net/lapb.h | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | /* SPDX-License-Identifier: GPL-2.0 */ | ||
| 1 | #ifndef _LAPB_H | 2 | #ifndef _LAPB_H |
| 2 | #define _LAPB_H | 3 | #define _LAPB_H |
| 3 | #include <linux/lapb.h> | 4 | #include <linux/lapb.h> |
diff --git a/include/net/lib80211.h b/include/net/lib80211.h index aab0f427edb5..8b47d3a51cf8 100644 --- a/include/net/lib80211.h +++ b/include/net/lib80211.h | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | /* SPDX-License-Identifier: GPL-2.0 */ | ||
| 1 | /* | 2 | /* |
| 2 | * lib80211.h -- common bits for IEEE802.11 wireless drivers | 3 | * lib80211.h -- common bits for IEEE802.11 wireless drivers |
| 3 | * | 4 | * |
diff --git a/include/net/lwtunnel.h b/include/net/lwtunnel.h index 7c26863b8cf4..d747ef975cd8 100644 --- a/include/net/lwtunnel.h +++ b/include/net/lwtunnel.h | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | /* SPDX-License-Identifier: GPL-2.0 */ | ||
| 1 | #ifndef __NET_LWTUNNEL_H | 2 | #ifndef __NET_LWTUNNEL_H |
| 2 | #define __NET_LWTUNNEL_H 1 | 3 | #define __NET_LWTUNNEL_H 1 |
| 3 | 4 | ||
diff --git a/include/net/mld.h b/include/net/mld.h index 01d751303498..b0f5b3105ef0 100644 --- a/include/net/mld.h +++ b/include/net/mld.h | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | /* SPDX-License-Identifier: GPL-2.0 */ | ||
| 1 | #ifndef LINUX_MLD_H | 2 | #ifndef LINUX_MLD_H |
| 2 | #define LINUX_MLD_H | 3 | #define LINUX_MLD_H |
| 3 | 4 | ||
diff --git a/include/net/mrp.h b/include/net/mrp.h index 31912c3be772..ef58b4a07190 100644 --- a/include/net/mrp.h +++ b/include/net/mrp.h | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | /* SPDX-License-Identifier: GPL-2.0 */ | ||
| 1 | #ifndef _NET_MRP_H | 2 | #ifndef _NET_MRP_H |
| 2 | #define _NET_MRP_H | 3 | #define _NET_MRP_H |
| 3 | 4 | ||
diff --git a/include/net/ncsi.h b/include/net/ncsi.h index fdc60ff2511d..fbefe80361ee 100644 --- a/include/net/ncsi.h +++ b/include/net/ncsi.h | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | /* SPDX-License-Identifier: GPL-2.0 */ | ||
| 1 | #ifndef __NET_NCSI_H | 2 | #ifndef __NET_NCSI_H |
| 2 | #define __NET_NCSI_H | 3 | #define __NET_NCSI_H |
| 3 | 4 | ||
diff --git a/include/net/ndisc.h b/include/net/ndisc.h index 31b1bb11ba3f..ddfbb591e2c5 100644 --- a/include/net/ndisc.h +++ b/include/net/ndisc.h | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | /* SPDX-License-Identifier: GPL-2.0 */ | ||
| 1 | #ifndef _NDISC_H | 2 | #ifndef _NDISC_H |
| 2 | #define _NDISC_H | 3 | #define _NDISC_H |
| 3 | 4 | ||
diff --git a/include/net/neighbour.h b/include/net/neighbour.h index 9816df225af3..a964366a7ef5 100644 --- a/include/net/neighbour.h +++ b/include/net/neighbour.h | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | /* SPDX-License-Identifier: GPL-2.0 */ | ||
| 1 | #ifndef _NET_NEIGHBOUR_H | 2 | #ifndef _NET_NEIGHBOUR_H |
| 2 | #define _NET_NEIGHBOUR_H | 3 | #define _NET_NEIGHBOUR_H |
| 3 | 4 | ||
diff --git a/include/net/net_namespace.h b/include/net/net_namespace.h index 57faa375eab9..10f99dafd5ac 100644 --- a/include/net/net_namespace.h +++ b/include/net/net_namespace.h | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | /* SPDX-License-Identifier: GPL-2.0 */ | ||
| 1 | /* | 2 | /* |
| 2 | * Operations on the network namespace | 3 | * Operations on the network namespace |
| 3 | */ | 4 | */ |
diff --git a/include/net/net_ratelimit.h b/include/net/net_ratelimit.h index 7727b4247daf..93c1bd5133c2 100644 --- a/include/net/net_ratelimit.h +++ b/include/net/net_ratelimit.h | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | /* SPDX-License-Identifier: GPL-2.0 */ | ||
| 1 | #ifndef _LINUX_NET_RATELIMIT_H | 2 | #ifndef _LINUX_NET_RATELIMIT_H |
| 2 | #define _LINUX_NET_RATELIMIT_H | 3 | #define _LINUX_NET_RATELIMIT_H |
| 3 | 4 | ||
diff --git a/include/net/netevent.h b/include/net/netevent.h index f440df172b56..f728d9cad170 100644 --- a/include/net/netevent.h +++ b/include/net/netevent.h | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | /* SPDX-License-Identifier: GPL-2.0 */ | ||
| 1 | #ifndef _NET_EVENT_H | 2 | #ifndef _NET_EVENT_H |
| 2 | #define _NET_EVENT_H | 3 | #define _NET_EVENT_H |
| 3 | 4 | ||
diff --git a/include/net/netfilter/br_netfilter.h b/include/net/netfilter/br_netfilter.h index 925524ede6c8..74af19c3a8f7 100644 --- a/include/net/netfilter/br_netfilter.h +++ b/include/net/netfilter/br_netfilter.h | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | /* SPDX-License-Identifier: GPL-2.0 */ | ||
| 1 | #ifndef _BR_NETFILTER_H_ | 2 | #ifndef _BR_NETFILTER_H_ |
| 2 | #define _BR_NETFILTER_H_ | 3 | #define _BR_NETFILTER_H_ |
| 3 | 4 | ||
diff --git a/include/net/netfilter/ipv4/nf_conntrack_ipv4.h b/include/net/netfilter/ipv4/nf_conntrack_ipv4.h index 919e4e8af327..2cc728ef8cd0 100644 --- a/include/net/netfilter/ipv4/nf_conntrack_ipv4.h +++ b/include/net/netfilter/ipv4/nf_conntrack_ipv4.h | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | /* SPDX-License-Identifier: GPL-2.0 */ | ||
| 1 | /* | 2 | /* |
| 2 | * IPv4 support for nf_conntrack. | 3 | * IPv4 support for nf_conntrack. |
| 3 | * | 4 | * |
diff --git a/include/net/netfilter/ipv4/nf_defrag_ipv4.h b/include/net/netfilter/ipv4/nf_defrag_ipv4.h index db405f70e538..bcbd724cc048 100644 --- a/include/net/netfilter/ipv4/nf_defrag_ipv4.h +++ b/include/net/netfilter/ipv4/nf_defrag_ipv4.h | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | /* SPDX-License-Identifier: GPL-2.0 */ | ||
| 1 | #ifndef _NF_DEFRAG_IPV4_H | 2 | #ifndef _NF_DEFRAG_IPV4_H |
| 2 | #define _NF_DEFRAG_IPV4_H | 3 | #define _NF_DEFRAG_IPV4_H |
| 3 | 4 | ||
diff --git a/include/net/netfilter/ipv4/nf_dup_ipv4.h b/include/net/netfilter/ipv4/nf_dup_ipv4.h index 0a14733e8b82..c962e0be3549 100644 --- a/include/net/netfilter/ipv4/nf_dup_ipv4.h +++ b/include/net/netfilter/ipv4/nf_dup_ipv4.h | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | /* SPDX-License-Identifier: GPL-2.0 */ | ||
| 1 | #ifndef _NF_DUP_IPV4_H_ | 2 | #ifndef _NF_DUP_IPV4_H_ |
| 2 | #define _NF_DUP_IPV4_H_ | 3 | #define _NF_DUP_IPV4_H_ |
| 3 | 4 | ||
diff --git a/include/net/netfilter/ipv4/nf_nat_masquerade.h b/include/net/netfilter/ipv4/nf_nat_masquerade.h index a9c001c646da..ebd869473603 100644 --- a/include/net/netfilter/ipv4/nf_nat_masquerade.h +++ b/include/net/netfilter/ipv4/nf_nat_masquerade.h | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | /* SPDX-License-Identifier: GPL-2.0 */ | ||
| 1 | #ifndef _NF_NAT_MASQUERADE_IPV4_H_ | 2 | #ifndef _NF_NAT_MASQUERADE_IPV4_H_ |
| 2 | #define _NF_NAT_MASQUERADE_IPV4_H_ | 3 | #define _NF_NAT_MASQUERADE_IPV4_H_ |
| 3 | 4 | ||
diff --git a/include/net/netfilter/ipv4/nf_reject.h b/include/net/netfilter/ipv4/nf_reject.h index df7ecd806aba..2eb43fcefc50 100644 --- a/include/net/netfilter/ipv4/nf_reject.h +++ b/include/net/netfilter/ipv4/nf_reject.h | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | /* SPDX-License-Identifier: GPL-2.0 */ | ||
| 1 | #ifndef _IPV4_NF_REJECT_H | 2 | #ifndef _IPV4_NF_REJECT_H |
| 2 | #define _IPV4_NF_REJECT_H | 3 | #define _IPV4_NF_REJECT_H |
| 3 | 4 | ||
diff --git a/include/net/netfilter/ipv6/nf_conntrack_icmpv6.h b/include/net/netfilter/ipv6/nf_conntrack_icmpv6.h index 67edd50a398a..c86895bc5eb6 100644 --- a/include/net/netfilter/ipv6/nf_conntrack_icmpv6.h +++ b/include/net/netfilter/ipv6/nf_conntrack_icmpv6.h | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | /* SPDX-License-Identifier: GPL-2.0 */ | ||
| 1 | /* | 2 | /* |
| 2 | * ICMPv6 tracking. | 3 | * ICMPv6 tracking. |
| 3 | * | 4 | * |
diff --git a/include/net/netfilter/ipv6/nf_conntrack_ipv6.h b/include/net/netfilter/ipv6/nf_conntrack_ipv6.h index eaea968f8657..79a335c0d8b8 100644 --- a/include/net/netfilter/ipv6/nf_conntrack_ipv6.h +++ b/include/net/netfilter/ipv6/nf_conntrack_ipv6.h | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | /* SPDX-License-Identifier: GPL-2.0 */ | ||
| 1 | #ifndef _NF_CONNTRACK_IPV6_H | 2 | #ifndef _NF_CONNTRACK_IPV6_H |
| 2 | #define _NF_CONNTRACK_IPV6_H | 3 | #define _NF_CONNTRACK_IPV6_H |
| 3 | 4 | ||
diff --git a/include/net/netfilter/ipv6/nf_defrag_ipv6.h b/include/net/netfilter/ipv6/nf_defrag_ipv6.h index 7664efe37974..9d7e28736da9 100644 --- a/include/net/netfilter/ipv6/nf_defrag_ipv6.h +++ b/include/net/netfilter/ipv6/nf_defrag_ipv6.h | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | /* SPDX-License-Identifier: GPL-2.0 */ | ||
| 1 | #ifndef _NF_DEFRAG_IPV6_H | 2 | #ifndef _NF_DEFRAG_IPV6_H |
| 2 | #define _NF_DEFRAG_IPV6_H | 3 | #define _NF_DEFRAG_IPV6_H |
| 3 | 4 | ||
diff --git a/include/net/netfilter/ipv6/nf_dup_ipv6.h b/include/net/netfilter/ipv6/nf_dup_ipv6.h index fa6237b382a3..caf0c2dd8ee7 100644 --- a/include/net/netfilter/ipv6/nf_dup_ipv6.h +++ b/include/net/netfilter/ipv6/nf_dup_ipv6.h | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | /* SPDX-License-Identifier: GPL-2.0 */ | ||
| 1 | #ifndef _NF_DUP_IPV6_H_ | 2 | #ifndef _NF_DUP_IPV6_H_ |
| 2 | #define _NF_DUP_IPV6_H_ | 3 | #define _NF_DUP_IPV6_H_ |
| 3 | 4 | ||
diff --git a/include/net/netfilter/ipv6/nf_nat_masquerade.h b/include/net/netfilter/ipv6/nf_nat_masquerade.h index 0a13396cd390..1ed4f2631ed6 100644 --- a/include/net/netfilter/ipv6/nf_nat_masquerade.h +++ b/include/net/netfilter/ipv6/nf_nat_masquerade.h | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | /* SPDX-License-Identifier: GPL-2.0 */ | ||
| 1 | #ifndef _NF_NAT_MASQUERADE_IPV6_H_ | 2 | #ifndef _NF_NAT_MASQUERADE_IPV6_H_ |
| 2 | #define _NF_NAT_MASQUERADE_IPV6_H_ | 3 | #define _NF_NAT_MASQUERADE_IPV6_H_ |
| 3 | 4 | ||
diff --git a/include/net/netfilter/ipv6/nf_reject.h b/include/net/netfilter/ipv6/nf_reject.h index 0ea4fa37db16..3a5a9a36a0b2 100644 --- a/include/net/netfilter/ipv6/nf_reject.h +++ b/include/net/netfilter/ipv6/nf_reject.h | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | /* SPDX-License-Identifier: GPL-2.0 */ | ||
| 1 | #ifndef _IPV6_NF_REJECT_H | 2 | #ifndef _IPV6_NF_REJECT_H |
| 2 | #define _IPV6_NF_REJECT_H | 3 | #define _IPV6_NF_REJECT_H |
| 3 | 4 | ||
diff --git a/include/net/netfilter/nf_conntrack.h b/include/net/netfilter/nf_conntrack.h index 8f3bd30511de..792c3f6d30ce 100644 --- a/include/net/netfilter/nf_conntrack.h +++ b/include/net/netfilter/nf_conntrack.h | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | /* SPDX-License-Identifier: GPL-2.0 */ | ||
| 1 | /* | 2 | /* |
| 2 | * Connection state tracking for netfilter. This is separated from, | 3 | * Connection state tracking for netfilter. This is separated from, |
| 3 | * but required by, the (future) NAT layer; it can also be used by an iptables | 4 | * but required by, the (future) NAT layer; it can also be used by an iptables |
diff --git a/include/net/netfilter/nf_conntrack_core.h b/include/net/netfilter/nf_conntrack_core.h index 81d7f8a30945..9b5e7634713e 100644 --- a/include/net/netfilter/nf_conntrack_core.h +++ b/include/net/netfilter/nf_conntrack_core.h | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | /* SPDX-License-Identifier: GPL-2.0 */ | ||
| 1 | /* | 2 | /* |
| 2 | * This header is used to share core functionality between the | 3 | * This header is used to share core functionality between the |
| 3 | * standalone connection tracking module, and the compatibility layer's use | 4 | * standalone connection tracking module, and the compatibility layer's use |
diff --git a/include/net/netfilter/nf_conntrack_ecache.h b/include/net/netfilter/nf_conntrack_ecache.h index 2a10c6570fcc..3f1ce9a8776e 100644 --- a/include/net/netfilter/nf_conntrack_ecache.h +++ b/include/net/netfilter/nf_conntrack_ecache.h | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | /* SPDX-License-Identifier: GPL-2.0 */ | ||
| 1 | /* | 2 | /* |
| 2 | * connection tracking event cache. | 3 | * connection tracking event cache. |
| 3 | */ | 4 | */ |
diff --git a/include/net/netfilter/nf_conntrack_expect.h b/include/net/netfilter/nf_conntrack_expect.h index 818def011110..006e430d1cdf 100644 --- a/include/net/netfilter/nf_conntrack_expect.h +++ b/include/net/netfilter/nf_conntrack_expect.h | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | /* SPDX-License-Identifier: GPL-2.0 */ | ||
| 1 | /* | 2 | /* |
| 2 | * connection tracking expectations. | 3 | * connection tracking expectations. |
| 3 | */ | 4 | */ |
diff --git a/include/net/netfilter/nf_conntrack_extend.h b/include/net/netfilter/nf_conntrack_extend.h index 4944bc9153cf..21f887c5058c 100644 --- a/include/net/netfilter/nf_conntrack_extend.h +++ b/include/net/netfilter/nf_conntrack_extend.h | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | /* SPDX-License-Identifier: GPL-2.0 */ | ||
| 1 | #ifndef _NF_CONNTRACK_EXTEND_H | 2 | #ifndef _NF_CONNTRACK_EXTEND_H |
| 2 | #define _NF_CONNTRACK_EXTEND_H | 3 | #define _NF_CONNTRACK_EXTEND_H |
| 3 | 4 | ||
diff --git a/include/net/netfilter/nf_conntrack_helper.h b/include/net/netfilter/nf_conntrack_helper.h index c519bb5b5bb8..fc39bbaf107c 100644 --- a/include/net/netfilter/nf_conntrack_helper.h +++ b/include/net/netfilter/nf_conntrack_helper.h | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | /* SPDX-License-Identifier: GPL-2.0 */ | ||
| 1 | /* | 2 | /* |
| 2 | * connection tracking helpers. | 3 | * connection tracking helpers. |
| 3 | * | 4 | * |
diff --git a/include/net/netfilter/nf_conntrack_l3proto.h b/include/net/netfilter/nf_conntrack_l3proto.h index 6269deecbee7..d5808f3e2715 100644 --- a/include/net/netfilter/nf_conntrack_l3proto.h +++ b/include/net/netfilter/nf_conntrack_l3proto.h | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | /* SPDX-License-Identifier: GPL-2.0 */ | ||
| 1 | /* | 2 | /* |
| 2 | * Copyright (C)2003,2004 USAGI/WIDE Project | 3 | * Copyright (C)2003,2004 USAGI/WIDE Project |
| 3 | * | 4 | * |
diff --git a/include/net/netfilter/nf_conntrack_l4proto.h b/include/net/netfilter/nf_conntrack_l4proto.h index 738a0307a96b..510192eb7e9d 100644 --- a/include/net/netfilter/nf_conntrack_l4proto.h +++ b/include/net/netfilter/nf_conntrack_l4proto.h | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | /* SPDX-License-Identifier: GPL-2.0 */ | ||
| 1 | /* | 2 | /* |
| 2 | * Header for use in defining a given L4 protocol for connection tracking. | 3 | * Header for use in defining a given L4 protocol for connection tracking. |
| 3 | * | 4 | * |
diff --git a/include/net/netfilter/nf_conntrack_labels.h b/include/net/netfilter/nf_conntrack_labels.h index 1723a67c0b0a..4eacce6f3bcc 100644 --- a/include/net/netfilter/nf_conntrack_labels.h +++ b/include/net/netfilter/nf_conntrack_labels.h | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | /* SPDX-License-Identifier: GPL-2.0 */ | ||
| 1 | #include <linux/types.h> | 2 | #include <linux/types.h> |
| 2 | #include <net/net_namespace.h> | 3 | #include <net/net_namespace.h> |
| 3 | #include <linux/netfilter/nf_conntrack_common.h> | 4 | #include <linux/netfilter/nf_conntrack_common.h> |
diff --git a/include/net/netfilter/nf_conntrack_seqadj.h b/include/net/netfilter/nf_conntrack_seqadj.h index 4b3362991a25..0a10b50537ae 100644 --- a/include/net/netfilter/nf_conntrack_seqadj.h +++ b/include/net/netfilter/nf_conntrack_seqadj.h | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | /* SPDX-License-Identifier: GPL-2.0 */ | ||
| 1 | #ifndef _NF_CONNTRACK_SEQADJ_H | 2 | #ifndef _NF_CONNTRACK_SEQADJ_H |
| 2 | #define _NF_CONNTRACK_SEQADJ_H | 3 | #define _NF_CONNTRACK_SEQADJ_H |
| 3 | 4 | ||
diff --git a/include/net/netfilter/nf_conntrack_synproxy.h b/include/net/netfilter/nf_conntrack_synproxy.h index a2fcb5271726..2c7559a54092 100644 --- a/include/net/netfilter/nf_conntrack_synproxy.h +++ b/include/net/netfilter/nf_conntrack_synproxy.h | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | /* SPDX-License-Identifier: GPL-2.0 */ | ||
| 1 | #ifndef _NF_CONNTRACK_SYNPROXY_H | 2 | #ifndef _NF_CONNTRACK_SYNPROXY_H |
| 2 | #define _NF_CONNTRACK_SYNPROXY_H | 3 | #define _NF_CONNTRACK_SYNPROXY_H |
| 3 | 4 | ||
diff --git a/include/net/netfilter/nf_conntrack_timeout.h b/include/net/netfilter/nf_conntrack_timeout.h index 483d104fa254..9468ab4ad12d 100644 --- a/include/net/netfilter/nf_conntrack_timeout.h +++ b/include/net/netfilter/nf_conntrack_timeout.h | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | /* SPDX-License-Identifier: GPL-2.0 */ | ||
| 1 | #ifndef _NF_CONNTRACK_TIMEOUT_H | 2 | #ifndef _NF_CONNTRACK_TIMEOUT_H |
| 2 | #define _NF_CONNTRACK_TIMEOUT_H | 3 | #define _NF_CONNTRACK_TIMEOUT_H |
| 3 | 4 | ||
diff --git a/include/net/netfilter/nf_conntrack_timestamp.h b/include/net/netfilter/nf_conntrack_timestamp.h index 300ae2209f25..3b661986be8f 100644 --- a/include/net/netfilter/nf_conntrack_timestamp.h +++ b/include/net/netfilter/nf_conntrack_timestamp.h | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | /* SPDX-License-Identifier: GPL-2.0 */ | ||
| 1 | #ifndef _NF_CONNTRACK_TSTAMP_H | 2 | #ifndef _NF_CONNTRACK_TSTAMP_H |
| 2 | #define _NF_CONNTRACK_TSTAMP_H | 3 | #define _NF_CONNTRACK_TSTAMP_H |
| 3 | 4 | ||
diff --git a/include/net/netfilter/nf_conntrack_tuple.h b/include/net/netfilter/nf_conntrack_tuple.h index aea3f8221be0..bf0444e111a6 100644 --- a/include/net/netfilter/nf_conntrack_tuple.h +++ b/include/net/netfilter/nf_conntrack_tuple.h | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | /* SPDX-License-Identifier: GPL-2.0 */ | ||
| 1 | /* | 2 | /* |
| 2 | * Definitions and Declarations for tuple. | 3 | * Definitions and Declarations for tuple. |
| 3 | * | 4 | * |
diff --git a/include/net/netfilter/nf_conntrack_zones.h b/include/net/netfilter/nf_conntrack_zones.h index 64a718b60839..52950baa3ab5 100644 --- a/include/net/netfilter/nf_conntrack_zones.h +++ b/include/net/netfilter/nf_conntrack_zones.h | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | /* SPDX-License-Identifier: GPL-2.0 */ | ||
| 1 | #ifndef _NF_CONNTRACK_ZONES_H | 2 | #ifndef _NF_CONNTRACK_ZONES_H |
| 2 | #define _NF_CONNTRACK_ZONES_H | 3 | #define _NF_CONNTRACK_ZONES_H |
| 3 | 4 | ||
diff --git a/include/net/netfilter/nf_dup_netdev.h b/include/net/netfilter/nf_dup_netdev.h index 3e919356bedf..2a6f6dcad3d9 100644 --- a/include/net/netfilter/nf_dup_netdev.h +++ b/include/net/netfilter/nf_dup_netdev.h | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | /* SPDX-License-Identifier: GPL-2.0 */ | ||
| 1 | #ifndef _NF_DUP_NETDEV_H_ | 2 | #ifndef _NF_DUP_NETDEV_H_ |
| 2 | #define _NF_DUP_NETDEV_H_ | 3 | #define _NF_DUP_NETDEV_H_ |
| 3 | 4 | ||
diff --git a/include/net/netfilter/nf_log.h b/include/net/netfilter/nf_log.h index 42e0696f38d8..e811ac07ea94 100644 --- a/include/net/netfilter/nf_log.h +++ b/include/net/netfilter/nf_log.h | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | /* SPDX-License-Identifier: GPL-2.0 */ | ||
| 1 | #ifndef _NF_LOG_H | 2 | #ifndef _NF_LOG_H |
| 2 | #define _NF_LOG_H | 3 | #define _NF_LOG_H |
| 3 | 4 | ||
diff --git a/include/net/netfilter/nf_nat.h b/include/net/netfilter/nf_nat.h index b71701302e61..207a467e7ca6 100644 --- a/include/net/netfilter/nf_nat.h +++ b/include/net/netfilter/nf_nat.h | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | /* SPDX-License-Identifier: GPL-2.0 */ | ||
| 1 | #ifndef _NF_NAT_H | 2 | #ifndef _NF_NAT_H |
| 2 | #define _NF_NAT_H | 3 | #define _NF_NAT_H |
| 3 | #include <linux/netfilter_ipv4.h> | 4 | #include <linux/netfilter_ipv4.h> |
diff --git a/include/net/netfilter/nf_nat_core.h b/include/net/netfilter/nf_nat_core.h index 186c54138f35..235bd0e9a5aa 100644 --- a/include/net/netfilter/nf_nat_core.h +++ b/include/net/netfilter/nf_nat_core.h | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | /* SPDX-License-Identifier: GPL-2.0 */ | ||
| 1 | #ifndef _NF_NAT_CORE_H | 2 | #ifndef _NF_NAT_CORE_H |
| 2 | #define _NF_NAT_CORE_H | 3 | #define _NF_NAT_CORE_H |
| 3 | #include <linux/list.h> | 4 | #include <linux/list.h> |
diff --git a/include/net/netfilter/nf_nat_helper.h b/include/net/netfilter/nf_nat_helper.h index fbfa5acf4f14..97d7033e93a4 100644 --- a/include/net/netfilter/nf_nat_helper.h +++ b/include/net/netfilter/nf_nat_helper.h | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | /* SPDX-License-Identifier: GPL-2.0 */ | ||
| 1 | #ifndef _NF_NAT_HELPER_H | 2 | #ifndef _NF_NAT_HELPER_H |
| 2 | #define _NF_NAT_HELPER_H | 3 | #define _NF_NAT_HELPER_H |
| 3 | /* NAT protocol helper routines. */ | 4 | /* NAT protocol helper routines. */ |
diff --git a/include/net/netfilter/nf_nat_l3proto.h b/include/net/netfilter/nf_nat_l3proto.h index aef3e5fc9fd9..ce7c2b4e64bb 100644 --- a/include/net/netfilter/nf_nat_l3proto.h +++ b/include/net/netfilter/nf_nat_l3proto.h | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | /* SPDX-License-Identifier: GPL-2.0 */ | ||
| 1 | #ifndef _NF_NAT_L3PROTO_H | 2 | #ifndef _NF_NAT_L3PROTO_H |
| 2 | #define _NF_NAT_L3PROTO_H | 3 | #define _NF_NAT_L3PROTO_H |
| 3 | 4 | ||
diff --git a/include/net/netfilter/nf_nat_l4proto.h b/include/net/netfilter/nf_nat_l4proto.h index 3923150f2a1e..67835ff8a2d9 100644 --- a/include/net/netfilter/nf_nat_l4proto.h +++ b/include/net/netfilter/nf_nat_l4proto.h | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | /* SPDX-License-Identifier: GPL-2.0 */ | ||
| 1 | /* Header for use in defining a given protocol. */ | 2 | /* Header for use in defining a given protocol. */ |
| 2 | #ifndef _NF_NAT_L4PROTO_H | 3 | #ifndef _NF_NAT_L4PROTO_H |
| 3 | #define _NF_NAT_L4PROTO_H | 4 | #define _NF_NAT_L4PROTO_H |
diff --git a/include/net/netfilter/nf_nat_redirect.h b/include/net/netfilter/nf_nat_redirect.h index 73b729543309..5ddabb08c472 100644 --- a/include/net/netfilter/nf_nat_redirect.h +++ b/include/net/netfilter/nf_nat_redirect.h | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | /* SPDX-License-Identifier: GPL-2.0 */ | ||
| 1 | #ifndef _NF_NAT_REDIRECT_H_ | 2 | #ifndef _NF_NAT_REDIRECT_H_ |
| 2 | #define _NF_NAT_REDIRECT_H_ | 3 | #define _NF_NAT_REDIRECT_H_ |
| 3 | 4 | ||
diff --git a/include/net/netfilter/nf_queue.h b/include/net/netfilter/nf_queue.h index 39468720fc19..814058d0f167 100644 --- a/include/net/netfilter/nf_queue.h +++ b/include/net/netfilter/nf_queue.h | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | /* SPDX-License-Identifier: GPL-2.0 */ | ||
| 1 | #ifndef _NF_QUEUE_H | 2 | #ifndef _NF_QUEUE_H |
| 2 | #define _NF_QUEUE_H | 3 | #define _NF_QUEUE_H |
| 3 | 4 | ||
diff --git a/include/net/netfilter/nf_socket.h b/include/net/netfilter/nf_socket.h index f2fc39c97d43..8230fefff9f5 100644 --- a/include/net/netfilter/nf_socket.h +++ b/include/net/netfilter/nf_socket.h | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | /* SPDX-License-Identifier: GPL-2.0 */ | ||
| 1 | #ifndef _NF_SOCK_H_ | 2 | #ifndef _NF_SOCK_H_ |
| 2 | #define _NF_SOCK_H_ | 3 | #define _NF_SOCK_H_ |
| 3 | 4 | ||
diff --git a/include/net/netfilter/nf_tables.h b/include/net/netfilter/nf_tables.h index 0f5b12a4ad09..079c69cae2f6 100644 --- a/include/net/netfilter/nf_tables.h +++ b/include/net/netfilter/nf_tables.h | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | /* SPDX-License-Identifier: GPL-2.0 */ | ||
| 1 | #ifndef _NET_NF_TABLES_H | 2 | #ifndef _NET_NF_TABLES_H |
| 2 | #define _NET_NF_TABLES_H | 3 | #define _NET_NF_TABLES_H |
| 3 | 4 | ||
diff --git a/include/net/netfilter/nf_tables_core.h b/include/net/netfilter/nf_tables_core.h index 424684c33771..ea5aab568be8 100644 --- a/include/net/netfilter/nf_tables_core.h +++ b/include/net/netfilter/nf_tables_core.h | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | /* SPDX-License-Identifier: GPL-2.0 */ | ||
| 1 | #ifndef _NET_NF_TABLES_CORE_H | 2 | #ifndef _NET_NF_TABLES_CORE_H |
| 2 | #define _NET_NF_TABLES_CORE_H | 3 | #define _NET_NF_TABLES_CORE_H |
| 3 | 4 | ||
diff --git a/include/net/netfilter/nf_tables_ipv4.h b/include/net/netfilter/nf_tables_ipv4.h index 25e33aee91e7..f0896ba456c4 100644 --- a/include/net/netfilter/nf_tables_ipv4.h +++ b/include/net/netfilter/nf_tables_ipv4.h | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | /* SPDX-License-Identifier: GPL-2.0 */ | ||
| 1 | #ifndef _NF_TABLES_IPV4_H_ | 2 | #ifndef _NF_TABLES_IPV4_H_ |
| 2 | #define _NF_TABLES_IPV4_H_ | 3 | #define _NF_TABLES_IPV4_H_ |
| 3 | 4 | ||
diff --git a/include/net/netfilter/nf_tables_ipv6.h b/include/net/netfilter/nf_tables_ipv6.h index 97983d1c05e4..b8065b72f56e 100644 --- a/include/net/netfilter/nf_tables_ipv6.h +++ b/include/net/netfilter/nf_tables_ipv6.h | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | /* SPDX-License-Identifier: GPL-2.0 */ | ||
| 1 | #ifndef _NF_TABLES_IPV6_H_ | 2 | #ifndef _NF_TABLES_IPV6_H_ |
| 2 | #define _NF_TABLES_IPV6_H_ | 3 | #define _NF_TABLES_IPV6_H_ |
| 3 | 4 | ||
diff --git a/include/net/netfilter/nfnetlink_log.h b/include/net/netfilter/nfnetlink_log.h index 5ca3f14f0998..612cfb63ac68 100644 --- a/include/net/netfilter/nfnetlink_log.h +++ b/include/net/netfilter/nfnetlink_log.h | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | /* SPDX-License-Identifier: GPL-2.0 */ | ||
| 1 | #ifndef _KER_NFNETLINK_LOG_H | 2 | #ifndef _KER_NFNETLINK_LOG_H |
| 2 | #define _KER_NFNETLINK_LOG_H | 3 | #define _KER_NFNETLINK_LOG_H |
| 3 | 4 | ||
diff --git a/include/net/netfilter/nft_dup.h b/include/net/netfilter/nft_dup.h index 6b84cf6491a2..4d9d512984b2 100644 --- a/include/net/netfilter/nft_dup.h +++ b/include/net/netfilter/nft_dup.h | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | /* SPDX-License-Identifier: GPL-2.0 */ | ||
| 1 | #ifndef _NFT_DUP_H_ | 2 | #ifndef _NFT_DUP_H_ |
| 2 | #define _NFT_DUP_H_ | 3 | #define _NFT_DUP_H_ |
| 3 | 4 | ||
diff --git a/include/net/netfilter/nft_fib.h b/include/net/netfilter/nft_fib.h index 381af9469e6a..a88f92737308 100644 --- a/include/net/netfilter/nft_fib.h +++ b/include/net/netfilter/nft_fib.h | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | /* SPDX-License-Identifier: GPL-2.0 */ | ||
| 1 | #ifndef _NFT_FIB_H_ | 2 | #ifndef _NFT_FIB_H_ |
| 2 | #define _NFT_FIB_H_ | 3 | #define _NFT_FIB_H_ |
| 3 | 4 | ||
diff --git a/include/net/netfilter/nft_masq.h b/include/net/netfilter/nft_masq.h index a3f3c11b2526..e51ab3815797 100644 --- a/include/net/netfilter/nft_masq.h +++ b/include/net/netfilter/nft_masq.h | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | /* SPDX-License-Identifier: GPL-2.0 */ | ||
| 1 | #ifndef _NFT_MASQ_H_ | 2 | #ifndef _NFT_MASQ_H_ |
| 2 | #define _NFT_MASQ_H_ | 3 | #define _NFT_MASQ_H_ |
| 3 | 4 | ||
diff --git a/include/net/netfilter/nft_meta.h b/include/net/netfilter/nft_meta.h index 1139cde0fdc5..5c69e9b09388 100644 --- a/include/net/netfilter/nft_meta.h +++ b/include/net/netfilter/nft_meta.h | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | /* SPDX-License-Identifier: GPL-2.0 */ | ||
| 1 | #ifndef _NFT_META_H_ | 2 | #ifndef _NFT_META_H_ |
| 2 | #define _NFT_META_H_ | 3 | #define _NFT_META_H_ |
| 3 | 4 | ||
diff --git a/include/net/netfilter/nft_redir.h b/include/net/netfilter/nft_redir.h index a2d67546afab..4a970737c03c 100644 --- a/include/net/netfilter/nft_redir.h +++ b/include/net/netfilter/nft_redir.h | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | /* SPDX-License-Identifier: GPL-2.0 */ | ||
| 1 | #ifndef _NFT_REDIR_H_ | 2 | #ifndef _NFT_REDIR_H_ |
| 2 | #define _NFT_REDIR_H_ | 3 | #define _NFT_REDIR_H_ |
| 3 | 4 | ||
diff --git a/include/net/netfilter/nft_reject.h b/include/net/netfilter/nft_reject.h index 02e28c529b29..de80c50761f0 100644 --- a/include/net/netfilter/nft_reject.h +++ b/include/net/netfilter/nft_reject.h | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | /* SPDX-License-Identifier: GPL-2.0 */ | ||
| 1 | #ifndef _NFT_REJECT_H_ | 2 | #ifndef _NFT_REJECT_H_ |
| 2 | #define _NFT_REJECT_H_ | 3 | #define _NFT_REJECT_H_ |
| 3 | 4 | ||
diff --git a/include/net/netfilter/xt_rateest.h b/include/net/netfilter/xt_rateest.h index 130e58361f99..b1db13772554 100644 --- a/include/net/netfilter/xt_rateest.h +++ b/include/net/netfilter/xt_rateest.h | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | /* SPDX-License-Identifier: GPL-2.0 */ | ||
| 1 | #ifndef _XT_RATEEST_H | 2 | #ifndef _XT_RATEEST_H |
| 2 | #define _XT_RATEEST_H | 3 | #define _XT_RATEEST_H |
| 3 | 4 | ||
diff --git a/include/net/netlink.h b/include/net/netlink.h index 14c289393071..0c154f98e987 100644 --- a/include/net/netlink.h +++ b/include/net/netlink.h | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | /* SPDX-License-Identifier: GPL-2.0 */ | ||
| 1 | #ifndef __NET_NETLINK_H | 2 | #ifndef __NET_NETLINK_H |
| 2 | #define __NET_NETLINK_H | 3 | #define __NET_NETLINK_H |
| 3 | 4 | ||
diff --git a/include/net/netns/can.h b/include/net/netns/can.h index b106e6ae2e5b..ecf238b8862c 100644 --- a/include/net/netns/can.h +++ b/include/net/netns/can.h | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | /* SPDX-License-Identifier: GPL-2.0 */ | ||
| 1 | /* | 2 | /* |
| 2 | * can in net namespaces | 3 | * can in net namespaces |
| 3 | */ | 4 | */ |
diff --git a/include/net/netns/conntrack.h b/include/net/netns/conntrack.h index 17724c62de97..9795d628a127 100644 --- a/include/net/netns/conntrack.h +++ b/include/net/netns/conntrack.h | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | /* SPDX-License-Identifier: GPL-2.0 */ | ||
| 1 | #ifndef __NETNS_CONNTRACK_H | 2 | #ifndef __NETNS_CONNTRACK_H |
| 2 | #define __NETNS_CONNTRACK_H | 3 | #define __NETNS_CONNTRACK_H |
| 3 | 4 | ||
diff --git a/include/net/netns/core.h b/include/net/netns/core.h index 78eb1ff75475..0ad4d0c71228 100644 --- a/include/net/netns/core.h +++ b/include/net/netns/core.h | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | /* SPDX-License-Identifier: GPL-2.0 */ | ||
| 1 | #ifndef __NETNS_CORE_H__ | 2 | #ifndef __NETNS_CORE_H__ |
| 2 | #define __NETNS_CORE_H__ | 3 | #define __NETNS_CORE_H__ |
| 3 | 4 | ||
diff --git a/include/net/netns/dccp.h b/include/net/netns/dccp.h index 98d2a7ce1f71..cdbc4f5b8390 100644 --- a/include/net/netns/dccp.h +++ b/include/net/netns/dccp.h | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | /* SPDX-License-Identifier: GPL-2.0 */ | ||
| 1 | #ifndef __NETNS_DCCP_H__ | 2 | #ifndef __NETNS_DCCP_H__ |
| 2 | #define __NETNS_DCCP_H__ | 3 | #define __NETNS_DCCP_H__ |
| 3 | 4 | ||
diff --git a/include/net/netns/generic.h b/include/net/netns/generic.h index f15daaa89385..8a1ab47c3fb3 100644 --- a/include/net/netns/generic.h +++ b/include/net/netns/generic.h | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | /* SPDX-License-Identifier: GPL-2.0 */ | ||
| 1 | /* | 2 | /* |
| 2 | * generic net pointers | 3 | * generic net pointers |
| 3 | */ | 4 | */ |
diff --git a/include/net/netns/hash.h b/include/net/netns/hash.h index 69a6715d9f3f..24c78183a4c2 100644 --- a/include/net/netns/hash.h +++ b/include/net/netns/hash.h | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | /* SPDX-License-Identifier: GPL-2.0 */ | ||
| 1 | #ifndef __NET_NS_HASH_H__ | 2 | #ifndef __NET_NS_HASH_H__ |
| 2 | #define __NET_NS_HASH_H__ | 3 | #define __NET_NS_HASH_H__ |
| 3 | 4 | ||
diff --git a/include/net/netns/ieee802154_6lowpan.h b/include/net/netns/ieee802154_6lowpan.h index 8170f8d7052b..736aeac52f56 100644 --- a/include/net/netns/ieee802154_6lowpan.h +++ b/include/net/netns/ieee802154_6lowpan.h | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | /* SPDX-License-Identifier: GPL-2.0 */ | ||
| 1 | /* | 2 | /* |
| 2 | * ieee802154 6lowpan in net namespaces | 3 | * ieee802154 6lowpan in net namespaces |
| 3 | */ | 4 | */ |
diff --git a/include/net/netns/ipv4.h b/include/net/netns/ipv4.h index 20d061c805e3..8fcff2837484 100644 --- a/include/net/netns/ipv4.h +++ b/include/net/netns/ipv4.h | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | /* SPDX-License-Identifier: GPL-2.0 */ | ||
| 1 | /* | 2 | /* |
| 2 | * ipv4 in net namespaces | 3 | * ipv4 in net namespaces |
| 3 | */ | 4 | */ |
diff --git a/include/net/netns/ipv6.h b/include/net/netns/ipv6.h index 2544f9760a42..dc825a5ddd7f 100644 --- a/include/net/netns/ipv6.h +++ b/include/net/netns/ipv6.h | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | /* SPDX-License-Identifier: GPL-2.0 */ | ||
| 1 | /* | 2 | /* |
| 2 | * ipv6 in net namespaces | 3 | * ipv6 in net namespaces |
| 3 | */ | 4 | */ |
diff --git a/include/net/netns/mib.h b/include/net/netns/mib.h index d542a4b28cca..830bdf345b17 100644 --- a/include/net/netns/mib.h +++ b/include/net/netns/mib.h | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | /* SPDX-License-Identifier: GPL-2.0 */ | ||
| 1 | #ifndef __NETNS_MIB_H__ | 2 | #ifndef __NETNS_MIB_H__ |
| 2 | #define __NETNS_MIB_H__ | 3 | #define __NETNS_MIB_H__ |
| 3 | 4 | ||
diff --git a/include/net/netns/mpls.h b/include/net/netns/mpls.h index 6608b3693385..a7bdcfbb0b28 100644 --- a/include/net/netns/mpls.h +++ b/include/net/netns/mpls.h | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | /* SPDX-License-Identifier: GPL-2.0 */ | ||
| 1 | /* | 2 | /* |
| 2 | * mpls in net namespaces | 3 | * mpls in net namespaces |
| 3 | */ | 4 | */ |
diff --git a/include/net/netns/netfilter.h b/include/net/netns/netfilter.h index 72d66c8763d0..cc00af2ac2d7 100644 --- a/include/net/netns/netfilter.h +++ b/include/net/netns/netfilter.h | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | /* SPDX-License-Identifier: GPL-2.0 */ | ||
| 1 | #ifndef __NETNS_NETFILTER_H | 2 | #ifndef __NETNS_NETFILTER_H |
| 2 | #define __NETNS_NETFILTER_H | 3 | #define __NETNS_NETFILTER_H |
| 3 | 4 | ||
diff --git a/include/net/netns/nftables.h b/include/net/netns/nftables.h index c80781146019..4109b5f3010f 100644 --- a/include/net/netns/nftables.h +++ b/include/net/netns/nftables.h | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | /* SPDX-License-Identifier: GPL-2.0 */ | ||
| 1 | #ifndef _NETNS_NFTABLES_H_ | 2 | #ifndef _NETNS_NFTABLES_H_ |
| 2 | #define _NETNS_NFTABLES_H_ | 3 | #define _NETNS_NFTABLES_H_ |
| 3 | 4 | ||
diff --git a/include/net/netns/packet.h b/include/net/netns/packet.h index 17ec2b95c062..aae69bb43cde 100644 --- a/include/net/netns/packet.h +++ b/include/net/netns/packet.h | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | /* SPDX-License-Identifier: GPL-2.0 */ | ||
| 1 | /* | 2 | /* |
| 2 | * Packet network namespace | 3 | * Packet network namespace |
| 3 | */ | 4 | */ |
diff --git a/include/net/netns/sctp.h b/include/net/netns/sctp.h index b7871d018354..ebc813277662 100644 --- a/include/net/netns/sctp.h +++ b/include/net/netns/sctp.h | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | /* SPDX-License-Identifier: GPL-2.0 */ | ||
| 1 | #ifndef __NETNS_SCTP_H__ | 2 | #ifndef __NETNS_SCTP_H__ |
| 2 | #define __NETNS_SCTP_H__ | 3 | #define __NETNS_SCTP_H__ |
| 3 | 4 | ||
diff --git a/include/net/netns/unix.h b/include/net/netns/unix.h index 284649d4dfb4..91a3d7e39198 100644 --- a/include/net/netns/unix.h +++ b/include/net/netns/unix.h | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | /* SPDX-License-Identifier: GPL-2.0 */ | ||
| 1 | /* | 2 | /* |
| 2 | * Unix network namespace | 3 | * Unix network namespace |
| 3 | */ | 4 | */ |
diff --git a/include/net/netns/x_tables.h b/include/net/netns/x_tables.h index c8a7681efa6a..9bc5a12fdbb0 100644 --- a/include/net/netns/x_tables.h +++ b/include/net/netns/x_tables.h | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | /* SPDX-License-Identifier: GPL-2.0 */ | ||
| 1 | #ifndef __NETNS_X_TABLES_H | 2 | #ifndef __NETNS_X_TABLES_H |
| 2 | #define __NETNS_X_TABLES_H | 3 | #define __NETNS_X_TABLES_H |
| 3 | 4 | ||
diff --git a/include/net/netns/xfrm.h b/include/net/netns/xfrm.h index 611521646dd4..9991e5ef52cc 100644 --- a/include/net/netns/xfrm.h +++ b/include/net/netns/xfrm.h | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | /* SPDX-License-Identifier: GPL-2.0 */ | ||
| 1 | #ifndef __NETNS_XFRM_H | 2 | #ifndef __NETNS_XFRM_H |
| 2 | #define __NETNS_XFRM_H | 3 | #define __NETNS_XFRM_H |
| 3 | 4 | ||
diff --git a/include/net/netrom.h b/include/net/netrom.h index 443a4ffca7aa..0dad2dd5f9d7 100644 --- a/include/net/netrom.h +++ b/include/net/netrom.h | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | /* SPDX-License-Identifier: GPL-2.0 */ | ||
| 1 | /* | 2 | /* |
| 2 | * Declarations of NET/ROM type objects. | 3 | * Declarations of NET/ROM type objects. |
| 3 | * | 4 | * |
diff --git a/include/net/nexthop.h b/include/net/nexthop.h index 3334dbfa5aa4..36bb794f5cd6 100644 --- a/include/net/nexthop.h +++ b/include/net/nexthop.h | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | /* SPDX-License-Identifier: GPL-2.0 */ | ||
| 1 | #ifndef __NET_NEXTHOP_H | 2 | #ifndef __NET_NEXTHOP_H |
| 2 | #define __NET_NEXTHOP_H | 3 | #define __NET_NEXTHOP_H |
| 3 | 4 | ||
diff --git a/include/net/p8022.h b/include/net/p8022.h index 05e41383856b..c2bacc66bfbc 100644 --- a/include/net/p8022.h +++ b/include/net/p8022.h | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | /* SPDX-License-Identifier: GPL-2.0 */ | ||
| 1 | #ifndef _NET_P8022_H | 2 | #ifndef _NET_P8022_H |
| 2 | #define _NET_P8022_H | 3 | #define _NET_P8022_H |
| 3 | struct datalink_proto * | 4 | struct datalink_proto * |
diff --git a/include/net/pkt_cls.h b/include/net/pkt_cls.h index e80edd8879ef..70ca2437740e 100644 --- a/include/net/pkt_cls.h +++ b/include/net/pkt_cls.h | |||
| @@ -1,7 +1,9 @@ | |||
| 1 | /* SPDX-License-Identifier: GPL-2.0 */ | ||
| 1 | #ifndef __NET_PKT_CLS_H | 2 | #ifndef __NET_PKT_CLS_H |
| 2 | #define __NET_PKT_CLS_H | 3 | #define __NET_PKT_CLS_H |
| 3 | 4 | ||
| 4 | #include <linux/pkt_cls.h> | 5 | #include <linux/pkt_cls.h> |
| 6 | #include <linux/workqueue.h> | ||
| 5 | #include <net/sch_generic.h> | 7 | #include <net/sch_generic.h> |
| 6 | #include <net/act_api.h> | 8 | #include <net/act_api.h> |
| 7 | 9 | ||
| @@ -17,6 +19,8 @@ struct tcf_walker { | |||
| 17 | int register_tcf_proto_ops(struct tcf_proto_ops *ops); | 19 | int register_tcf_proto_ops(struct tcf_proto_ops *ops); |
| 18 | int unregister_tcf_proto_ops(struct tcf_proto_ops *ops); | 20 | int unregister_tcf_proto_ops(struct tcf_proto_ops *ops); |
| 19 | 21 | ||
| 22 | bool tcf_queue_work(struct work_struct *work); | ||
| 23 | |||
| 20 | #ifdef CONFIG_NET_CLS | 24 | #ifdef CONFIG_NET_CLS |
| 21 | struct tcf_chain *tcf_chain_get(struct tcf_block *block, u32 chain_index, | 25 | struct tcf_chain *tcf_chain_get(struct tcf_block *block, u32 chain_index, |
| 22 | bool create); | 26 | bool create); |
diff --git a/include/net/pkt_sched.h b/include/net/pkt_sched.h index 259bc191ba59..b3869f97d37d 100644 --- a/include/net/pkt_sched.h +++ b/include/net/pkt_sched.h | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | /* SPDX-License-Identifier: GPL-2.0 */ | ||
| 1 | #ifndef __NET_PKT_SCHED_H | 2 | #ifndef __NET_PKT_SCHED_H |
| 2 | #define __NET_PKT_SCHED_H | 3 | #define __NET_PKT_SCHED_H |
| 3 | 4 | ||
diff --git a/include/net/pptp.h b/include/net/pptp.h index 92e9f1fe2628..383e25ca53a7 100644 --- a/include/net/pptp.h +++ b/include/net/pptp.h | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | /* SPDX-License-Identifier: GPL-2.0 */ | ||
| 1 | #ifndef _NET_PPTP_H | 2 | #ifndef _NET_PPTP_H |
| 2 | #define _NET_PPTP_H | 3 | #define _NET_PPTP_H |
| 3 | 4 | ||
diff --git a/include/net/psample.h b/include/net/psample.h index 8888b0e1a82e..9b80f814ab04 100644 --- a/include/net/psample.h +++ b/include/net/psample.h | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | /* SPDX-License-Identifier: GPL-2.0 */ | ||
| 1 | #ifndef __NET_PSAMPLE_H | 2 | #ifndef __NET_PSAMPLE_H |
| 2 | #define __NET_PSAMPLE_H | 3 | #define __NET_PSAMPLE_H |
| 3 | 4 | ||
diff --git a/include/net/psnap.h b/include/net/psnap.h index 78db4cc1306a..7cb0c8ab4171 100644 --- a/include/net/psnap.h +++ b/include/net/psnap.h | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | /* SPDX-License-Identifier: GPL-2.0 */ | ||
| 1 | #ifndef _NET_PSNAP_H | 2 | #ifndef _NET_PSNAP_H |
| 2 | #define _NET_PSNAP_H | 3 | #define _NET_PSNAP_H |
| 3 | 4 | ||
diff --git a/include/net/rawv6.h b/include/net/rawv6.h index 4addc5c988e0..53d86b6055e8 100644 --- a/include/net/rawv6.h +++ b/include/net/rawv6.h | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | /* SPDX-License-Identifier: GPL-2.0 */ | ||
| 1 | #ifndef _NET_RAWV6_H | 2 | #ifndef _NET_RAWV6_H |
| 2 | #define _NET_RAWV6_H | 3 | #define _NET_RAWV6_H |
| 3 | 4 | ||
diff --git a/include/net/red.h b/include/net/red.h index 208e718e16b9..9a9347710701 100644 --- a/include/net/red.h +++ b/include/net/red.h | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | /* SPDX-License-Identifier: GPL-2.0 */ | ||
| 1 | #ifndef __NET_SCHED_RED_H | 2 | #ifndef __NET_SCHED_RED_H |
| 2 | #define __NET_SCHED_RED_H | 3 | #define __NET_SCHED_RED_H |
| 3 | 4 | ||
diff --git a/include/net/rose.h b/include/net/rose.h index 50811fe2c585..04b72681f2ab 100644 --- a/include/net/rose.h +++ b/include/net/rose.h | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | /* SPDX-License-Identifier: GPL-2.0 */ | ||
| 1 | /* | 2 | /* |
| 2 | * Declarations of Rose type objects. | 3 | * Declarations of Rose type objects. |
| 3 | * | 4 | * |
diff --git a/include/net/rtnetlink.h b/include/net/rtnetlink.h index 21837ca68ecc..7b938fbeebc1 100644 --- a/include/net/rtnetlink.h +++ b/include/net/rtnetlink.h | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | /* SPDX-License-Identifier: GPL-2.0 */ | ||
| 1 | #ifndef __NET_RTNETLINK_H | 2 | #ifndef __NET_RTNETLINK_H |
| 2 | #define __NET_RTNETLINK_H | 3 | #define __NET_RTNETLINK_H |
| 3 | 4 | ||
diff --git a/include/net/sch_generic.h b/include/net/sch_generic.h index 135f5a2dd931..236bfe5b2ffe 100644 --- a/include/net/sch_generic.h +++ b/include/net/sch_generic.h | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | /* SPDX-License-Identifier: GPL-2.0 */ | ||
| 1 | #ifndef __NET_SCHED_GENERIC_H | 2 | #ifndef __NET_SCHED_GENERIC_H |
| 2 | #define __NET_SCHED_GENERIC_H | 3 | #define __NET_SCHED_GENERIC_H |
| 3 | 4 | ||
| @@ -10,6 +11,7 @@ | |||
| 10 | #include <linux/dynamic_queue_limits.h> | 11 | #include <linux/dynamic_queue_limits.h> |
| 11 | #include <linux/list.h> | 12 | #include <linux/list.h> |
| 12 | #include <linux/refcount.h> | 13 | #include <linux/refcount.h> |
| 14 | #include <linux/workqueue.h> | ||
| 13 | #include <net/gen_stats.h> | 15 | #include <net/gen_stats.h> |
| 14 | #include <net/rtnetlink.h> | 16 | #include <net/rtnetlink.h> |
| 15 | 17 | ||
| @@ -271,6 +273,7 @@ struct tcf_chain { | |||
| 271 | 273 | ||
| 272 | struct tcf_block { | 274 | struct tcf_block { |
| 273 | struct list_head chain_list; | 275 | struct list_head chain_list; |
| 276 | struct work_struct work; | ||
| 274 | }; | 277 | }; |
| 275 | 278 | ||
| 276 | static inline void qdisc_cb_private_validate(const struct sk_buff *skb, int sz) | 279 | static inline void qdisc_cb_private_validate(const struct sk_buff *skb, int sz) |
diff --git a/include/net/scm.h b/include/net/scm.h index 142ea9e7a6d0..903771c8d4e3 100644 --- a/include/net/scm.h +++ b/include/net/scm.h | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | /* SPDX-License-Identifier: GPL-2.0 */ | ||
| 1 | #ifndef __LINUX_NET_SCM_H | 2 | #ifndef __LINUX_NET_SCM_H |
| 2 | #define __LINUX_NET_SCM_H | 3 | #define __LINUX_NET_SCM_H |
| 3 | 4 | ||
diff --git a/include/net/sctp/sm.h b/include/net/sctp/sm.h index 2db3d3a9ce1d..88233cf8b8d4 100644 --- a/include/net/sctp/sm.h +++ b/include/net/sctp/sm.h | |||
| @@ -261,7 +261,7 @@ struct sctp_chunk *sctp_make_fwdtsn(const struct sctp_association *asoc, | |||
| 261 | struct sctp_fwdtsn_skip *skiplist); | 261 | struct sctp_fwdtsn_skip *skiplist); |
| 262 | struct sctp_chunk *sctp_make_auth(const struct sctp_association *asoc); | 262 | struct sctp_chunk *sctp_make_auth(const struct sctp_association *asoc); |
| 263 | struct sctp_chunk *sctp_make_strreset_req(const struct sctp_association *asoc, | 263 | struct sctp_chunk *sctp_make_strreset_req(const struct sctp_association *asoc, |
| 264 | __u16 stream_num, __u16 *stream_list, | 264 | __u16 stream_num, __be16 *stream_list, |
| 265 | bool out, bool in); | 265 | bool out, bool in); |
| 266 | struct sctp_chunk *sctp_make_strreset_tsnreq( | 266 | struct sctp_chunk *sctp_make_strreset_tsnreq( |
| 267 | const struct sctp_association *asoc); | 267 | const struct sctp_association *asoc); |
diff --git a/include/net/sctp/ulpevent.h b/include/net/sctp/ulpevent.h index b8c86ec1a8f5..231dc42f1da6 100644 --- a/include/net/sctp/ulpevent.h +++ b/include/net/sctp/ulpevent.h | |||
| @@ -130,7 +130,7 @@ struct sctp_ulpevent *sctp_ulpevent_make_sender_dry_event( | |||
| 130 | 130 | ||
| 131 | struct sctp_ulpevent *sctp_ulpevent_make_stream_reset_event( | 131 | struct sctp_ulpevent *sctp_ulpevent_make_stream_reset_event( |
| 132 | const struct sctp_association *asoc, __u16 flags, | 132 | const struct sctp_association *asoc, __u16 flags, |
| 133 | __u16 stream_num, __u16 *stream_list, gfp_t gfp); | 133 | __u16 stream_num, __be16 *stream_list, gfp_t gfp); |
| 134 | 134 | ||
| 135 | struct sctp_ulpevent *sctp_ulpevent_make_assoc_reset_event( | 135 | struct sctp_ulpevent *sctp_ulpevent_make_assoc_reset_event( |
| 136 | const struct sctp_association *asoc, __u16 flags, | 136 | const struct sctp_association *asoc, __u16 flags, |
diff --git a/include/net/secure_seq.h b/include/net/secure_seq.h index 031bf16d1521..d7d2495f83c2 100644 --- a/include/net/secure_seq.h +++ b/include/net/secure_seq.h | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | /* SPDX-License-Identifier: GPL-2.0 */ | ||
| 1 | #ifndef _NET_SECURE_SEQ | 2 | #ifndef _NET_SECURE_SEQ |
| 2 | #define _NET_SECURE_SEQ | 3 | #define _NET_SECURE_SEQ |
| 3 | 4 | ||
diff --git a/include/net/smc.h b/include/net/smc.h index 12d26358ad9f..8381d163fefa 100644 --- a/include/net/smc.h +++ b/include/net/smc.h | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | /* SPDX-License-Identifier: GPL-2.0 */ | ||
| 1 | /* | 2 | /* |
| 2 | * Shared Memory Communications over RDMA (SMC-R) and RoCE | 3 | * Shared Memory Communications over RDMA (SMC-R) and RoCE |
| 3 | * | 4 | * |
diff --git a/include/net/sock_reuseport.h b/include/net/sock_reuseport.h index aecd30308d50..0054b3a9b923 100644 --- a/include/net/sock_reuseport.h +++ b/include/net/sock_reuseport.h | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | /* SPDX-License-Identifier: GPL-2.0 */ | ||
| 1 | #ifndef _SOCK_REUSEPORT_H | 2 | #ifndef _SOCK_REUSEPORT_H |
| 2 | #define _SOCK_REUSEPORT_H | 3 | #define _SOCK_REUSEPORT_H |
| 3 | 4 | ||
diff --git a/include/net/stp.h b/include/net/stp.h index 3af174d70d9e..2914e6d53490 100644 --- a/include/net/stp.h +++ b/include/net/stp.h | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | /* SPDX-License-Identifier: GPL-2.0 */ | ||
| 1 | #ifndef _NET_STP_H | 2 | #ifndef _NET_STP_H |
| 2 | #define _NET_STP_H | 3 | #define _NET_STP_H |
| 3 | 4 | ||
diff --git a/include/net/strparser.h b/include/net/strparser.h index 7dc131d62ad5..d96b59f45eba 100644 --- a/include/net/strparser.h +++ b/include/net/strparser.h | |||
| @@ -74,10 +74,9 @@ struct strparser { | |||
| 74 | u32 unrecov_intr : 1; | 74 | u32 unrecov_intr : 1; |
| 75 | 75 | ||
| 76 | struct sk_buff **skb_nextp; | 76 | struct sk_buff **skb_nextp; |
| 77 | struct timer_list msg_timer; | ||
| 78 | struct sk_buff *skb_head; | 77 | struct sk_buff *skb_head; |
| 79 | unsigned int need_bytes; | 78 | unsigned int need_bytes; |
| 80 | struct delayed_work delayed_work; | 79 | struct delayed_work msg_timer_work; |
| 81 | struct work_struct work; | 80 | struct work_struct work; |
| 82 | struct strp_stats stats; | 81 | struct strp_stats stats; |
| 83 | struct strp_callbacks cb; | 82 | struct strp_callbacks cb; |
diff --git a/include/net/tc_act/tc_connmark.h b/include/net/tc_act/tc_connmark.h index 59b515d32bb4..1f4cb477bb5d 100644 --- a/include/net/tc_act/tc_connmark.h +++ b/include/net/tc_act/tc_connmark.h | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | /* SPDX-License-Identifier: GPL-2.0 */ | ||
| 1 | #ifndef __NET_TC_CONNMARK_H | 2 | #ifndef __NET_TC_CONNMARK_H |
| 2 | #define __NET_TC_CONNMARK_H | 3 | #define __NET_TC_CONNMARK_H |
| 3 | 4 | ||
diff --git a/include/net/tc_act/tc_csum.h b/include/net/tc_act/tc_csum.h index 3248beaf16b0..781f3433a0be 100644 --- a/include/net/tc_act/tc_csum.h +++ b/include/net/tc_act/tc_csum.h | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | /* SPDX-License-Identifier: GPL-2.0 */ | ||
| 1 | #ifndef __NET_TC_CSUM_H | 2 | #ifndef __NET_TC_CSUM_H |
| 2 | #define __NET_TC_CSUM_H | 3 | #define __NET_TC_CSUM_H |
| 3 | 4 | ||
diff --git a/include/net/tc_act/tc_defact.h b/include/net/tc_act/tc_defact.h index d47f040a3bdf..d7ba0402a732 100644 --- a/include/net/tc_act/tc_defact.h +++ b/include/net/tc_act/tc_defact.h | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | /* SPDX-License-Identifier: GPL-2.0 */ | ||
| 1 | #ifndef __NET_TC_DEF_H | 2 | #ifndef __NET_TC_DEF_H |
| 2 | #define __NET_TC_DEF_H | 3 | #define __NET_TC_DEF_H |
| 3 | 4 | ||
diff --git a/include/net/tc_act/tc_gact.h b/include/net/tc_act/tc_gact.h index 41afe1ce7b16..e82d93346b63 100644 --- a/include/net/tc_act/tc_gact.h +++ b/include/net/tc_act/tc_gact.h | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | /* SPDX-License-Identifier: GPL-2.0 */ | ||
| 1 | #ifndef __NET_TC_GACT_H | 2 | #ifndef __NET_TC_GACT_H |
| 2 | #define __NET_TC_GACT_H | 3 | #define __NET_TC_GACT_H |
| 3 | 4 | ||
diff --git a/include/net/tc_act/tc_ife.h b/include/net/tc_act/tc_ife.h index 30ba459ddd34..ba6667125bcd 100644 --- a/include/net/tc_act/tc_ife.h +++ b/include/net/tc_act/tc_ife.h | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | /* SPDX-License-Identifier: GPL-2.0 */ | ||
| 1 | #ifndef __NET_TC_IFE_H | 2 | #ifndef __NET_TC_IFE_H |
| 2 | #define __NET_TC_IFE_H | 3 | #define __NET_TC_IFE_H |
| 3 | 4 | ||
diff --git a/include/net/tc_act/tc_ipt.h b/include/net/tc_act/tc_ipt.h index 31309766e379..4225fcb1c6ba 100644 --- a/include/net/tc_act/tc_ipt.h +++ b/include/net/tc_act/tc_ipt.h | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | /* SPDX-License-Identifier: GPL-2.0 */ | ||
| 1 | #ifndef __NET_TC_IPT_H | 2 | #ifndef __NET_TC_IPT_H |
| 2 | #define __NET_TC_IPT_H | 3 | #define __NET_TC_IPT_H |
| 3 | 4 | ||
diff --git a/include/net/tc_act/tc_mirred.h b/include/net/tc_act/tc_mirred.h index 604bc31e23ab..b2dbbfaefd22 100644 --- a/include/net/tc_act/tc_mirred.h +++ b/include/net/tc_act/tc_mirred.h | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | /* SPDX-License-Identifier: GPL-2.0 */ | ||
| 1 | #ifndef __NET_TC_MIR_H | 2 | #ifndef __NET_TC_MIR_H |
| 2 | #define __NET_TC_MIR_H | 3 | #define __NET_TC_MIR_H |
| 3 | 4 | ||
diff --git a/include/net/tc_act/tc_nat.h b/include/net/tc_act/tc_nat.h index 56681a320612..c14407160812 100644 --- a/include/net/tc_act/tc_nat.h +++ b/include/net/tc_act/tc_nat.h | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | /* SPDX-License-Identifier: GPL-2.0 */ | ||
| 1 | #ifndef __NET_TC_NAT_H | 2 | #ifndef __NET_TC_NAT_H |
| 2 | #define __NET_TC_NAT_H | 3 | #define __NET_TC_NAT_H |
| 3 | 4 | ||
diff --git a/include/net/tc_act/tc_pedit.h b/include/net/tc_act/tc_pedit.h index a46c3f2ace70..227a6f1d02f4 100644 --- a/include/net/tc_act/tc_pedit.h +++ b/include/net/tc_act/tc_pedit.h | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | /* SPDX-License-Identifier: GPL-2.0 */ | ||
| 1 | #ifndef __NET_TC_PED_H | 2 | #ifndef __NET_TC_PED_H |
| 2 | #define __NET_TC_PED_H | 3 | #define __NET_TC_PED_H |
| 3 | 4 | ||
diff --git a/include/net/tc_act/tc_sample.h b/include/net/tc_act/tc_sample.h index 89e9305be880..524cee4f4c81 100644 --- a/include/net/tc_act/tc_sample.h +++ b/include/net/tc_act/tc_sample.h | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | /* SPDX-License-Identifier: GPL-2.0 */ | ||
| 1 | #ifndef __NET_TC_SAMPLE_H | 2 | #ifndef __NET_TC_SAMPLE_H |
| 2 | #define __NET_TC_SAMPLE_H | 3 | #define __NET_TC_SAMPLE_H |
| 3 | 4 | ||
diff --git a/include/net/tcp.h b/include/net/tcp.h index 89974c5286d8..e6d0002a1b0b 100644 --- a/include/net/tcp.h +++ b/include/net/tcp.h | |||
| @@ -840,6 +840,12 @@ struct tcp_skb_cb { | |||
| 840 | struct inet6_skb_parm h6; | 840 | struct inet6_skb_parm h6; |
| 841 | #endif | 841 | #endif |
| 842 | } header; /* For incoming skbs */ | 842 | } header; /* For incoming skbs */ |
| 843 | struct { | ||
| 844 | __u32 key; | ||
| 845 | __u32 flags; | ||
| 846 | struct bpf_map *map; | ||
| 847 | void *data_end; | ||
| 848 | } bpf; | ||
| 843 | }; | 849 | }; |
| 844 | }; | 850 | }; |
| 845 | 851 | ||
| @@ -1765,12 +1771,12 @@ static inline void tcp_highest_sack_reset(struct sock *sk) | |||
| 1765 | tcp_sk(sk)->highest_sack = tcp_write_queue_head(sk); | 1771 | tcp_sk(sk)->highest_sack = tcp_write_queue_head(sk); |
| 1766 | } | 1772 | } |
| 1767 | 1773 | ||
| 1768 | /* Called when old skb is about to be deleted (to be combined with new skb) */ | 1774 | /* Called when old skb is about to be deleted and replaced by new skb */ |
| 1769 | static inline void tcp_highest_sack_combine(struct sock *sk, | 1775 | static inline void tcp_highest_sack_replace(struct sock *sk, |
| 1770 | struct sk_buff *old, | 1776 | struct sk_buff *old, |
| 1771 | struct sk_buff *new) | 1777 | struct sk_buff *new) |
| 1772 | { | 1778 | { |
| 1773 | if (tcp_sk(sk)->sacked_out && (old == tcp_sk(sk)->highest_sack)) | 1779 | if (old == tcp_highest_sack(sk)) |
| 1774 | tcp_sk(sk)->highest_sack = new; | 1780 | tcp_sk(sk)->highest_sack = new; |
| 1775 | } | 1781 | } |
| 1776 | 1782 | ||
diff --git a/include/net/transp_v6.h b/include/net/transp_v6.h index 276f9760ab56..c4f5caaf3778 100644 --- a/include/net/transp_v6.h +++ b/include/net/transp_v6.h | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | /* SPDX-License-Identifier: GPL-2.0 */ | ||
| 1 | #ifndef _TRANSP_V6_H | 2 | #ifndef _TRANSP_V6_H |
| 2 | #define _TRANSP_V6_H | 3 | #define _TRANSP_V6_H |
| 3 | 4 | ||
diff --git a/include/net/tso.h b/include/net/tso.h index 9a56c39e6d0a..7e166a570349 100644 --- a/include/net/tso.h +++ b/include/net/tso.h | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | /* SPDX-License-Identifier: GPL-2.0 */ | ||
| 1 | #ifndef _TSO_H | 2 | #ifndef _TSO_H |
| 2 | #define _TSO_H | 3 | #define _TSO_H |
| 3 | 4 | ||
diff --git a/include/net/udp_tunnel.h b/include/net/udp_tunnel.h index 10cce0dd4450..b95a6927c718 100644 --- a/include/net/udp_tunnel.h +++ b/include/net/udp_tunnel.h | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | /* SPDX-License-Identifier: GPL-2.0 */ | ||
| 1 | #ifndef __NET_UDP_TUNNEL_H | 2 | #ifndef __NET_UDP_TUNNEL_H |
| 2 | #define __NET_UDP_TUNNEL_H | 3 | #define __NET_UDP_TUNNEL_H |
| 3 | 4 | ||
diff --git a/include/net/udplite.h b/include/net/udplite.h index b7a18f63d86d..81bdbf97319b 100644 --- a/include/net/udplite.h +++ b/include/net/udplite.h | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | /* SPDX-License-Identifier: GPL-2.0 */ | ||
| 1 | /* | 2 | /* |
| 2 | * Definitions for the UDP-Lite (RFC 3828) code. | 3 | * Definitions for the UDP-Lite (RFC 3828) code. |
| 3 | */ | 4 | */ |
diff --git a/include/net/vxlan.h b/include/net/vxlan.h index 4e3876dde295..13223396dc64 100644 --- a/include/net/vxlan.h +++ b/include/net/vxlan.h | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | /* SPDX-License-Identifier: GPL-2.0 */ | ||
| 1 | #ifndef __NET_VXLAN_H | 2 | #ifndef __NET_VXLAN_H |
| 2 | #define __NET_VXLAN_H 1 | 3 | #define __NET_VXLAN_H 1 |
| 3 | 4 | ||
diff --git a/include/net/wext.h b/include/net/wext.h index 454ff763eeba..e51f067fdb3a 100644 --- a/include/net/wext.h +++ b/include/net/wext.h | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | /* SPDX-License-Identifier: GPL-2.0 */ | ||
| 1 | #ifndef __NET_WEXT_H | 2 | #ifndef __NET_WEXT_H |
| 2 | #define __NET_WEXT_H | 3 | #define __NET_WEXT_H |
| 3 | 4 | ||
diff --git a/include/net/x25.h b/include/net/x25.h index 2609b57bd459..ed1acc3044ac 100644 --- a/include/net/x25.h +++ b/include/net/x25.h | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | /* SPDX-License-Identifier: GPL-2.0 */ | ||
| 1 | /* | 2 | /* |
| 2 | * Declarations of X.25 Packet Layer type objects. | 3 | * Declarations of X.25 Packet Layer type objects. |
| 3 | * | 4 | * |
diff --git a/include/net/x25device.h b/include/net/x25device.h index 1fa08b49f1c2..cf749efca24d 100644 --- a/include/net/x25device.h +++ b/include/net/x25device.h | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | /* SPDX-License-Identifier: GPL-2.0 */ | ||
| 1 | #ifndef _X25DEVICE_H | 2 | #ifndef _X25DEVICE_H |
| 2 | #define _X25DEVICE_H | 3 | #define _X25DEVICE_H |
| 3 | 4 | ||
diff --git a/include/net/xfrm.h b/include/net/xfrm.h index f002a2c5e33c..e015e164bac0 100644 --- a/include/net/xfrm.h +++ b/include/net/xfrm.h | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | /* SPDX-License-Identifier: GPL-2.0 */ | ||
| 1 | #ifndef _NET_XFRM_H | 2 | #ifndef _NET_XFRM_H |
| 2 | #define _NET_XFRM_H | 3 | #define _NET_XFRM_H |
| 3 | 4 | ||
