diff options
Diffstat (limited to 'net')
399 files changed, 614 insertions, 1505 deletions
diff --git a/net/6lowpan/Kconfig b/net/6lowpan/Kconfig index 9c051512d14f..4c1f4c0aa58a 100644 --- a/net/6lowpan/Kconfig +++ b/net/6lowpan/Kconfig | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | # SPDX-License-Identifier: GPL-2.0-only | ||
| 1 | menuconfig 6LOWPAN | 2 | menuconfig 6LOWPAN |
| 2 | tristate "6LoWPAN Support" | 3 | tristate "6LoWPAN Support" |
| 3 | depends on IPV6 | 4 | depends on IPV6 |
diff --git a/net/802/Kconfig b/net/802/Kconfig index 80d4bf78905d..aaa83e888240 100644 --- a/net/802/Kconfig +++ b/net/802/Kconfig | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | # SPDX-License-Identifier: GPL-2.0-only | ||
| 1 | config STP | 2 | config STP |
| 2 | tristate | 3 | tristate |
| 3 | select LLC | 4 | select LLC |
diff --git a/net/8021q/Kconfig b/net/8021q/Kconfig index 42320180967f..5510b4b90ff0 100644 --- a/net/8021q/Kconfig +++ b/net/8021q/Kconfig | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | # SPDX-License-Identifier: GPL-2.0-only | ||
| 1 | # | 2 | # |
| 2 | # Configuration for 802.1Q VLAN support | 3 | # Configuration for 802.1Q VLAN support |
| 3 | # | 4 | # |
diff --git a/net/8021q/vlan_dev.c b/net/8021q/vlan_dev.c index 2a9a60733594..c546c4228075 100644 --- a/net/8021q/vlan_dev.c +++ b/net/8021q/vlan_dev.c | |||
| @@ -373,6 +373,7 @@ static int vlan_dev_ioctl(struct net_device *dev, struct ifreq *ifr, int cmd) | |||
| 373 | case SIOCSHWTSTAMP: | 373 | case SIOCSHWTSTAMP: |
| 374 | if (!net_eq(dev_net(dev), &init_net)) | 374 | if (!net_eq(dev_net(dev), &init_net)) |
| 375 | break; | 375 | break; |
| 376 | /* fall through */ | ||
| 376 | case SIOCGMIIPHY: | 377 | case SIOCGMIIPHY: |
| 377 | case SIOCGMIIREG: | 378 | case SIOCGMIIREG: |
| 378 | case SIOCSMIIREG: | 379 | case SIOCSMIIREG: |
diff --git a/net/9p/Kconfig b/net/9p/Kconfig index e6014e0e51f7..3d11fec3a8dc 100644 --- a/net/9p/Kconfig +++ b/net/9p/Kconfig | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | # SPDX-License-Identifier: GPL-2.0-only | ||
| 1 | # | 2 | # |
| 2 | # 9P protocol configuration | 3 | # 9P protocol configuration |
| 3 | # | 4 | # |
diff --git a/net/Kconfig b/net/Kconfig index 3e8fdd688329..d122f53c6fa2 100644 --- a/net/Kconfig +++ b/net/Kconfig | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | # SPDX-License-Identifier: GPL-2.0-only | ||
| 1 | # | 2 | # |
| 2 | # Network configuration | 3 | # Network configuration |
| 3 | # | 4 | # |
diff --git a/net/appletalk/Makefile b/net/appletalk/Makefile index 5cda56edef57..33164d972d37 100644 --- a/net/appletalk/Makefile +++ b/net/appletalk/Makefile | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | # SPDX-License-Identifier: GPL-2.0-only | ||
| 1 | # | 2 | # |
| 2 | # Makefile for the Linux AppleTalk layer. | 3 | # Makefile for the Linux AppleTalk layer. |
| 3 | # | 4 | # |
diff --git a/net/atm/Kconfig b/net/atm/Kconfig index 754ea103b378..271f682e8438 100644 --- a/net/atm/Kconfig +++ b/net/atm/Kconfig | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | # SPDX-License-Identifier: GPL-2.0-only | ||
| 1 | # | 2 | # |
| 2 | # Asynchronous Transfer Mode (ATM) | 3 | # Asynchronous Transfer Mode (ATM) |
| 3 | # | 4 | # |
diff --git a/net/atm/br2684.c b/net/atm/br2684.c index 10462de734ea..3e17a5ecaa94 100644 --- a/net/atm/br2684.c +++ b/net/atm/br2684.c | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-only | ||
| 1 | /* | 2 | /* |
| 2 | * Ethernet netdevice using ATM AAL5 as underlying carrier | 3 | * Ethernet netdevice using ATM AAL5 as underlying carrier |
| 3 | * (RFC1483 obsoleted by RFC2684) for Linux | 4 | * (RFC1483 obsoleted by RFC2684) for Linux |
diff --git a/net/atm/clip.c b/net/atm/clip.c index b9e67e589a7b..a7972da7235d 100644 --- a/net/atm/clip.c +++ b/net/atm/clip.c | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-only | ||
| 1 | /* net/atm/clip.c - RFC1577 Classical IP over ATM */ | 2 | /* net/atm/clip.c - RFC1577 Classical IP over ATM */ |
| 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/net/atm/common.c b/net/atm/common.c index a38c174fc766..b7528e77997c 100644 --- a/net/atm/common.c +++ b/net/atm/common.c | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-only | ||
| 1 | /* net/atm/common.c - ATM sockets (common part for PVC and SVC) */ | 2 | /* net/atm/common.c - ATM sockets (common part for PVC and SVC) */ |
| 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/net/atm/lec.c b/net/atm/lec.c index a0311493b01b..5a77c235a212 100644 --- a/net/atm/lec.c +++ b/net/atm/lec.c | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-only | ||
| 1 | /* | 2 | /* |
| 2 | * lec.c: Lan Emulation driver | 3 | * lec.c: Lan Emulation driver |
| 3 | * | 4 | * |
diff --git a/net/atm/mpc.c b/net/atm/mpc.c index 24b53c4c39c6..033871e718a3 100644 --- a/net/atm/mpc.c +++ b/net/atm/mpc.c | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-only | ||
| 1 | #define pr_fmt(fmt) KBUILD_MODNAME ":%s: " fmt, __func__ | 2 | #define pr_fmt(fmt) KBUILD_MODNAME ":%s: " fmt, __func__ |
| 2 | 3 | ||
| 3 | #include <linux/kernel.h> | 4 | #include <linux/kernel.h> |
diff --git a/net/ax25/Kconfig b/net/ax25/Kconfig index 705e53ef4af0..043fd5437809 100644 --- a/net/ax25/Kconfig +++ b/net/ax25/Kconfig | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | # SPDX-License-Identifier: GPL-2.0-only | ||
| 1 | # | 2 | # |
| 2 | # Amateur Radio protocols and AX.25 device configuration | 3 | # Amateur Radio protocols and AX.25 device configuration |
| 3 | # | 4 | # |
diff --git a/net/bluetooth/Kconfig b/net/bluetooth/Kconfig index db82a40875e8..2efac049ad4c 100644 --- a/net/bluetooth/Kconfig +++ b/net/bluetooth/Kconfig | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | # SPDX-License-Identifier: GPL-2.0-only | ||
| 1 | # | 2 | # |
| 2 | # Bluetooth subsystem configuration | 3 | # Bluetooth subsystem configuration |
| 3 | # | 4 | # |
diff --git a/net/bluetooth/bnep/Kconfig b/net/bluetooth/bnep/Kconfig index 9b70317c49dc..aac02b5b0d17 100644 --- a/net/bluetooth/bnep/Kconfig +++ b/net/bluetooth/bnep/Kconfig | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | # SPDX-License-Identifier: GPL-2.0-only | ||
| 1 | config BT_BNEP | 2 | config BT_BNEP |
| 2 | tristate "BNEP protocol support" | 3 | tristate "BNEP protocol support" |
| 3 | depends on BT_BREDR | 4 | depends on BT_BREDR |
diff --git a/net/bluetooth/bnep/Makefile b/net/bluetooth/bnep/Makefile index c7821e76ca56..8af9d56bb012 100644 --- a/net/bluetooth/bnep/Makefile +++ b/net/bluetooth/bnep/Makefile | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | # SPDX-License-Identifier: GPL-2.0-only | ||
| 1 | # | 2 | # |
| 2 | # Makefile for the Linux Bluetooth BNEP layer. | 3 | # Makefile for the Linux Bluetooth BNEP layer. |
| 3 | # | 4 | # |
diff --git a/net/bluetooth/cmtp/Kconfig b/net/bluetooth/cmtp/Kconfig index 939da0fbdd88..c8337786da6b 100644 --- a/net/bluetooth/cmtp/Kconfig +++ b/net/bluetooth/cmtp/Kconfig | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | # SPDX-License-Identifier: GPL-2.0-only | ||
| 1 | config BT_CMTP | 2 | config BT_CMTP |
| 2 | tristate "CMTP protocol support" | 3 | tristate "CMTP protocol support" |
| 3 | depends on BT_BREDR && ISDN_CAPI | 4 | depends on BT_BREDR && ISDN_CAPI |
diff --git a/net/bluetooth/cmtp/Makefile b/net/bluetooth/cmtp/Makefile index 890a9a5a6861..b2262ca97499 100644 --- a/net/bluetooth/cmtp/Makefile +++ b/net/bluetooth/cmtp/Makefile | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | # SPDX-License-Identifier: GPL-2.0-only | ||
| 1 | # | 2 | # |
| 2 | # Makefile for the Linux Bluetooth CMTP layer | 3 | # Makefile for the Linux Bluetooth CMTP layer |
| 3 | # | 4 | # |
diff --git a/net/bluetooth/hidp/Kconfig b/net/bluetooth/hidp/Kconfig index bc8610b24077..14100f341f33 100644 --- a/net/bluetooth/hidp/Kconfig +++ b/net/bluetooth/hidp/Kconfig | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | # SPDX-License-Identifier: GPL-2.0-only | ||
| 1 | config BT_HIDP | 2 | config BT_HIDP |
| 2 | tristate "HIDP protocol support" | 3 | tristate "HIDP protocol support" |
| 3 | depends on BT_BREDR && INPUT | 4 | depends on BT_BREDR && INPUT |
diff --git a/net/bluetooth/hidp/Makefile b/net/bluetooth/hidp/Makefile index a9ee115696ae..f41b0aa02b23 100644 --- a/net/bluetooth/hidp/Makefile +++ b/net/bluetooth/hidp/Makefile | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | # SPDX-License-Identifier: GPL-2.0-only | ||
| 1 | # | 2 | # |
| 2 | # Makefile for the Linux Bluetooth HIDP layer | 3 | # Makefile for the Linux Bluetooth HIDP layer |
| 3 | # | 4 | # |
diff --git a/net/bluetooth/rfcomm/Kconfig b/net/bluetooth/rfcomm/Kconfig index 335df7515220..9b9953ebf4c0 100644 --- a/net/bluetooth/rfcomm/Kconfig +++ b/net/bluetooth/rfcomm/Kconfig | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | # SPDX-License-Identifier: GPL-2.0-only | ||
| 1 | config BT_RFCOMM | 2 | config BT_RFCOMM |
| 2 | tristate "RFCOMM protocol support" | 3 | tristate "RFCOMM protocol support" |
| 3 | depends on BT_BREDR | 4 | depends on BT_BREDR |
diff --git a/net/bluetooth/rfcomm/Makefile b/net/bluetooth/rfcomm/Makefile index fe07988a3705..593e5c48c131 100644 --- a/net/bluetooth/rfcomm/Makefile +++ b/net/bluetooth/rfcomm/Makefile | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | # SPDX-License-Identifier: GPL-2.0-only | ||
| 1 | # | 2 | # |
| 2 | # Makefile for the Linux Bluetooth RFCOMM layer. | 3 | # Makefile for the Linux Bluetooth RFCOMM layer. |
| 3 | # | 4 | # |
diff --git a/net/bpf/Makefile b/net/bpf/Makefile index b0ca361742e4..1c0a98d8c28f 100644 --- a/net/bpf/Makefile +++ b/net/bpf/Makefile | |||
| @@ -1 +1,2 @@ | |||
| 1 | # SPDX-License-Identifier: GPL-2.0-only | ||
| 1 | obj-$(CONFIG_BPF_SYSCALL) := test_run.o | 2 | obj-$(CONFIG_BPF_SYSCALL) := test_run.o |
diff --git a/net/bpfilter/Kconfig b/net/bpfilter/Kconfig index e558b46596c4..91f9d878165e 100644 --- a/net/bpfilter/Kconfig +++ b/net/bpfilter/Kconfig | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | # SPDX-License-Identifier: GPL-2.0-only | ||
| 1 | menuconfig BPFILTER | 2 | menuconfig BPFILTER |
| 2 | bool "BPF based packet filtering framework (BPFILTER)" | 3 | bool "BPF based packet filtering framework (BPFILTER)" |
| 3 | depends on NET && BPF && INET | 4 | depends on NET && BPF && INET |
diff --git a/net/bridge/Kconfig b/net/bridge/Kconfig index 3625d6ade45c..e4fb050e2078 100644 --- a/net/bridge/Kconfig +++ b/net/bridge/Kconfig | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | # SPDX-License-Identifier: GPL-2.0-only | ||
| 1 | # | 2 | # |
| 2 | # 802.1d Ethernet Bridging | 3 | # 802.1d Ethernet Bridging |
| 3 | # | 4 | # |
diff --git a/net/bridge/br_vlan.c b/net/bridge/br_vlan.c index 2db63997f313..f47f526b4f19 100644 --- a/net/bridge/br_vlan.c +++ b/net/bridge/br_vlan.c | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-only | ||
| 1 | #include <linux/kernel.h> | 2 | #include <linux/kernel.h> |
| 2 | #include <linux/netdevice.h> | 3 | #include <linux/netdevice.h> |
| 3 | #include <linux/rtnetlink.h> | 4 | #include <linux/rtnetlink.h> |
diff --git a/net/bridge/netfilter/Kconfig b/net/bridge/netfilter/Kconfig index 9a0159aebe1a..c3ad90c43801 100644 --- a/net/bridge/netfilter/Kconfig +++ b/net/bridge/netfilter/Kconfig | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | # SPDX-License-Identifier: GPL-2.0-only | ||
| 1 | # | 2 | # |
| 2 | # Bridge netfilter configuration | 3 | # Bridge netfilter configuration |
| 3 | # | 4 | # |
diff --git a/net/bridge/netfilter/ebt_802_3.c b/net/bridge/netfilter/ebt_802_3.c index 5fc4affd9fdb..2c8fe24400e5 100644 --- a/net/bridge/netfilter/ebt_802_3.c +++ b/net/bridge/netfilter/ebt_802_3.c | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-only | ||
| 1 | /* | 2 | /* |
| 2 | * 802_3 | 3 | * 802_3 |
| 3 | * | 4 | * |
diff --git a/net/bridge/netfilter/ebt_among.c b/net/bridge/netfilter/ebt_among.c index 620e54f08296..96f7243b6314 100644 --- a/net/bridge/netfilter/ebt_among.c +++ b/net/bridge/netfilter/ebt_among.c | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-only | ||
| 1 | /* | 2 | /* |
| 2 | * ebt_among | 3 | * ebt_among |
| 3 | * | 4 | * |
diff --git a/net/bridge/netfilter/ebt_arp.c b/net/bridge/netfilter/ebt_arp.c index 227142282b45..0707cc00fe8f 100644 --- a/net/bridge/netfilter/ebt_arp.c +++ b/net/bridge/netfilter/ebt_arp.c | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-only | ||
| 1 | /* | 2 | /* |
| 2 | * ebt_arp | 3 | * ebt_arp |
| 3 | * | 4 | * |
diff --git a/net/bridge/netfilter/ebt_arpreply.c b/net/bridge/netfilter/ebt_arpreply.c index db85230e49c3..d9e77e2500cd 100644 --- a/net/bridge/netfilter/ebt_arpreply.c +++ b/net/bridge/netfilter/ebt_arpreply.c | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-only | ||
| 1 | /* | 2 | /* |
| 2 | * ebt_arpreply | 3 | * ebt_arpreply |
| 3 | * | 4 | * |
diff --git a/net/bridge/netfilter/ebt_dnat.c b/net/bridge/netfilter/ebt_dnat.c index dfc86a0199da..eeae23a73c6a 100644 --- a/net/bridge/netfilter/ebt_dnat.c +++ b/net/bridge/netfilter/ebt_dnat.c | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-only | ||
| 1 | /* | 2 | /* |
| 2 | * ebt_dnat | 3 | * ebt_dnat |
| 3 | * | 4 | * |
diff --git a/net/bridge/netfilter/ebt_ip.c b/net/bridge/netfilter/ebt_ip.c index ffaa8ce2e724..df372496c1c1 100644 --- a/net/bridge/netfilter/ebt_ip.c +++ b/net/bridge/netfilter/ebt_ip.c | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-only | ||
| 1 | /* | 2 | /* |
| 2 | * ebt_ip | 3 | * ebt_ip |
| 3 | * | 4 | * |
diff --git a/net/bridge/netfilter/ebt_ip6.c b/net/bridge/netfilter/ebt_ip6.c index 2a5a52a53ec4..f3225bc31f6c 100644 --- a/net/bridge/netfilter/ebt_ip6.c +++ b/net/bridge/netfilter/ebt_ip6.c | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-only | ||
| 1 | /* | 2 | /* |
| 2 | * ebt_ip6 | 3 | * ebt_ip6 |
| 3 | * | 4 | * |
diff --git a/net/bridge/netfilter/ebt_limit.c b/net/bridge/netfilter/ebt_limit.c index 165b9d678cf1..fa199556e122 100644 --- a/net/bridge/netfilter/ebt_limit.c +++ b/net/bridge/netfilter/ebt_limit.c | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-only | ||
| 1 | /* | 2 | /* |
| 2 | * ebt_limit | 3 | * ebt_limit |
| 3 | * | 4 | * |
diff --git a/net/bridge/netfilter/ebt_log.c b/net/bridge/netfilter/ebt_log.c index 707caea39743..e2eea1daaf8b 100644 --- a/net/bridge/netfilter/ebt_log.c +++ b/net/bridge/netfilter/ebt_log.c | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-only | ||
| 1 | /* | 2 | /* |
| 2 | * ebt_log | 3 | * ebt_log |
| 3 | * | 4 | * |
diff --git a/net/bridge/netfilter/ebt_mark.c b/net/bridge/netfilter/ebt_mark.c index 19f0f9592d32..21fd3d3d77f6 100644 --- a/net/bridge/netfilter/ebt_mark.c +++ b/net/bridge/netfilter/ebt_mark.c | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-only | ||
| 1 | /* | 2 | /* |
| 2 | * ebt_mark | 3 | * ebt_mark |
| 3 | * | 4 | * |
diff --git a/net/bridge/netfilter/ebt_mark_m.c b/net/bridge/netfilter/ebt_mark_m.c index d98baefc4c7e..81fb59dec499 100644 --- a/net/bridge/netfilter/ebt_mark_m.c +++ b/net/bridge/netfilter/ebt_mark_m.c | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-only | ||
| 1 | /* | 2 | /* |
| 2 | * ebt_mark_m | 3 | * ebt_mark_m |
| 3 | * | 4 | * |
diff --git a/net/bridge/netfilter/ebt_nflog.c b/net/bridge/netfilter/ebt_nflog.c index da1c2fdc08c8..61bf8f4465ab 100644 --- a/net/bridge/netfilter/ebt_nflog.c +++ b/net/bridge/netfilter/ebt_nflog.c | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-only | ||
| 1 | /* | 2 | /* |
| 2 | * ebt_nflog | 3 | * ebt_nflog |
| 3 | * | 4 | * |
diff --git a/net/bridge/netfilter/ebt_pkttype.c b/net/bridge/netfilter/ebt_pkttype.c index 496a56515307..c9e306119ee3 100644 --- a/net/bridge/netfilter/ebt_pkttype.c +++ b/net/bridge/netfilter/ebt_pkttype.c | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-only | ||
| 1 | /* | 2 | /* |
| 2 | * ebt_pkttype | 3 | * ebt_pkttype |
| 3 | * | 4 | * |
diff --git a/net/bridge/netfilter/ebt_redirect.c b/net/bridge/netfilter/ebt_redirect.c index a7223eaf490b..53ef08e6765f 100644 --- a/net/bridge/netfilter/ebt_redirect.c +++ b/net/bridge/netfilter/ebt_redirect.c | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-only | ||
| 1 | /* | 2 | /* |
| 2 | * ebt_redirect | 3 | * ebt_redirect |
| 3 | * | 4 | * |
diff --git a/net/bridge/netfilter/ebt_snat.c b/net/bridge/netfilter/ebt_snat.c index 11cf9e9e9222..700d338d5ddb 100644 --- a/net/bridge/netfilter/ebt_snat.c +++ b/net/bridge/netfilter/ebt_snat.c | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-only | ||
| 1 | /* | 2 | /* |
| 2 | * ebt_snat | 3 | * ebt_snat |
| 3 | * | 4 | * |
diff --git a/net/bridge/netfilter/ebt_stp.c b/net/bridge/netfilter/ebt_stp.c index 46c1fe7637ea..0d6d20c9105e 100644 --- a/net/bridge/netfilter/ebt_stp.c +++ b/net/bridge/netfilter/ebt_stp.c | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-only | ||
| 1 | /* | 2 | /* |
| 2 | * ebt_stp | 3 | * ebt_stp |
| 3 | * | 4 | * |
diff --git a/net/bridge/netfilter/ebt_vlan.c b/net/bridge/netfilter/ebt_vlan.c index 98c221dbf059..80ede370afed 100644 --- a/net/bridge/netfilter/ebt_vlan.c +++ b/net/bridge/netfilter/ebt_vlan.c | |||
| @@ -1,20 +1,8 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-or-later | ||
| 1 | /* | 2 | /* |
| 2 | * Description: EBTables 802.1Q match extension kernelspace module. | 3 | * Description: EBTables 802.1Q match extension kernelspace module. |
| 3 | * Authors: Nick Fedchik <nick@fedchik.org.ua> | 4 | * Authors: Nick Fedchik <nick@fedchik.org.ua> |
| 4 | * Bart De Schuymer <bdschuym@pandora.be> | 5 | * Bart De Schuymer <bdschuym@pandora.be> |
| 5 | * | ||
| 6 | * This program is free software; you can redistribute it and/or modify | ||
| 7 | * it under the terms of the GNU General Public License as published by | ||
| 8 | * the Free Software Foundation; either version 2 of the License, or | ||
| 9 | * (at your option) any later version. | ||
| 10 | * | ||
| 11 | * This program is distributed in the hope that it will be useful, | ||
| 12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
| 13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
| 14 | * GNU General Public License for more details. | ||
| 15 | * | ||
| 16 | * You should have received a copy of the GNU General Public License | ||
| 17 | * along with this program; if not, see <http://www.gnu.org/licenses/>. | ||
| 18 | */ | 6 | */ |
| 19 | 7 | ||
| 20 | #include <linux/if_ether.h> | 8 | #include <linux/if_ether.h> |
diff --git a/net/bridge/netfilter/ebtable_broute.c b/net/bridge/netfilter/ebtable_broute.c index ec2652a459da..66e7af165494 100644 --- a/net/bridge/netfilter/ebtable_broute.c +++ b/net/bridge/netfilter/ebtable_broute.c | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-only | ||
| 1 | /* | 2 | /* |
| 2 | * ebtable_broute | 3 | * ebtable_broute |
| 3 | * | 4 | * |
diff --git a/net/bridge/netfilter/ebtable_filter.c b/net/bridge/netfilter/ebtable_filter.c index 550324c516ee..78cb9b21022d 100644 --- a/net/bridge/netfilter/ebtable_filter.c +++ b/net/bridge/netfilter/ebtable_filter.c | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-only | ||
| 1 | /* | 2 | /* |
| 2 | * ebtable_filter | 3 | * ebtable_filter |
| 3 | * | 4 | * |
diff --git a/net/bridge/netfilter/ebtable_nat.c b/net/bridge/netfilter/ebtable_nat.c index c0fb3ca518af..0888936ef853 100644 --- a/net/bridge/netfilter/ebtable_nat.c +++ b/net/bridge/netfilter/ebtable_nat.c | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-only | ||
| 1 | /* | 2 | /* |
| 2 | * ebtable_nat | 3 | * ebtable_nat |
| 3 | * | 4 | * |
diff --git a/net/caif/Kconfig b/net/caif/Kconfig index d3694953b1d7..eb83051c8330 100644 --- a/net/caif/Kconfig +++ b/net/caif/Kconfig | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | # SPDX-License-Identifier: GPL-2.0-only | ||
| 1 | # | 2 | # |
| 2 | # CAIF net configurations | 3 | # CAIF net configurations |
| 3 | # | 4 | # |
diff --git a/net/caif/cfdbgl.c b/net/caif/cfdbgl.c index 7aae0b56829e..cce839bf49f7 100644 --- a/net/caif/cfdbgl.c +++ b/net/caif/cfdbgl.c | |||
| @@ -26,7 +26,7 @@ struct cflayer *cfdbgl_create(u8 channel_id, struct dev_info *dev_info) | |||
| 26 | cfsrvl_init(dbg, channel_id, dev_info, false); | 26 | cfsrvl_init(dbg, channel_id, dev_info, false); |
| 27 | dbg->layer.receive = cfdbgl_receive; | 27 | dbg->layer.receive = cfdbgl_receive; |
| 28 | dbg->layer.transmit = cfdbgl_transmit; | 28 | dbg->layer.transmit = cfdbgl_transmit; |
| 29 | snprintf(dbg->layer.name, CAIF_LAYER_NAME_SZ - 1, "dbg%d", channel_id); | 29 | snprintf(dbg->layer.name, CAIF_LAYER_NAME_SZ, "dbg%d", channel_id); |
| 30 | return &dbg->layer; | 30 | return &dbg->layer; |
| 31 | } | 31 | } |
| 32 | 32 | ||
diff --git a/net/caif/cfdgml.c b/net/caif/cfdgml.c index 3bdddb32d55a..58fdb99a390f 100644 --- a/net/caif/cfdgml.c +++ b/net/caif/cfdgml.c | |||
| @@ -33,8 +33,7 @@ struct cflayer *cfdgml_create(u8 channel_id, struct dev_info *dev_info) | |||
| 33 | cfsrvl_init(dgm, channel_id, dev_info, true); | 33 | cfsrvl_init(dgm, channel_id, dev_info, true); |
| 34 | dgm->layer.receive = cfdgml_receive; | 34 | dgm->layer.receive = cfdgml_receive; |
| 35 | dgm->layer.transmit = cfdgml_transmit; | 35 | dgm->layer.transmit = cfdgml_transmit; |
| 36 | snprintf(dgm->layer.name, CAIF_LAYER_NAME_SZ - 1, "dgm%d", channel_id); | 36 | snprintf(dgm->layer.name, CAIF_LAYER_NAME_SZ, "dgm%d", channel_id); |
| 37 | dgm->layer.name[CAIF_LAYER_NAME_SZ - 1] = '\0'; | ||
| 38 | return &dgm->layer; | 37 | return &dgm->layer; |
| 39 | } | 38 | } |
| 40 | 39 | ||
diff --git a/net/caif/cfutill.c b/net/caif/cfutill.c index 1728fa4471cf..be7c43a92ead 100644 --- a/net/caif/cfutill.c +++ b/net/caif/cfutill.c | |||
| @@ -33,7 +33,7 @@ struct cflayer *cfutill_create(u8 channel_id, struct dev_info *dev_info) | |||
| 33 | cfsrvl_init(util, channel_id, dev_info, true); | 33 | cfsrvl_init(util, channel_id, dev_info, true); |
| 34 | util->layer.receive = cfutill_receive; | 34 | util->layer.receive = cfutill_receive; |
| 35 | util->layer.transmit = cfutill_transmit; | 35 | util->layer.transmit = cfutill_transmit; |
| 36 | snprintf(util->layer.name, CAIF_LAYER_NAME_SZ - 1, "util1"); | 36 | snprintf(util->layer.name, CAIF_LAYER_NAME_SZ, "util1"); |
| 37 | return &util->layer; | 37 | return &util->layer; |
| 38 | } | 38 | } |
| 39 | 39 | ||
diff --git a/net/caif/cfveil.c b/net/caif/cfveil.c index 262224581efa..35dd3a600dd1 100644 --- a/net/caif/cfveil.c +++ b/net/caif/cfveil.c | |||
| @@ -32,7 +32,7 @@ struct cflayer *cfvei_create(u8 channel_id, struct dev_info *dev_info) | |||
| 32 | cfsrvl_init(vei, channel_id, dev_info, true); | 32 | cfsrvl_init(vei, channel_id, dev_info, true); |
| 33 | vei->layer.receive = cfvei_receive; | 33 | vei->layer.receive = cfvei_receive; |
| 34 | vei->layer.transmit = cfvei_transmit; | 34 | vei->layer.transmit = cfvei_transmit; |
| 35 | snprintf(vei->layer.name, CAIF_LAYER_NAME_SZ - 1, "vei%d", channel_id); | 35 | snprintf(vei->layer.name, CAIF_LAYER_NAME_SZ, "vei%d", channel_id); |
| 36 | return &vei->layer; | 36 | return &vei->layer; |
| 37 | } | 37 | } |
| 38 | 38 | ||
diff --git a/net/caif/cfvidl.c b/net/caif/cfvidl.c index b3b110e8a350..73615e3b3b58 100644 --- a/net/caif/cfvidl.c +++ b/net/caif/cfvidl.c | |||
| @@ -29,7 +29,7 @@ struct cflayer *cfvidl_create(u8 channel_id, struct dev_info *dev_info) | |||
| 29 | cfsrvl_init(vid, channel_id, dev_info, false); | 29 | cfsrvl_init(vid, channel_id, dev_info, false); |
| 30 | vid->layer.receive = cfvidl_receive; | 30 | vid->layer.receive = cfvidl_receive; |
| 31 | vid->layer.transmit = cfvidl_transmit; | 31 | vid->layer.transmit = cfvidl_transmit; |
| 32 | snprintf(vid->layer.name, CAIF_LAYER_NAME_SZ - 1, "vid1"); | 32 | snprintf(vid->layer.name, CAIF_LAYER_NAME_SZ, "vid1"); |
| 33 | return &vid->layer; | 33 | return &vid->layer; |
| 34 | } | 34 | } |
| 35 | 35 | ||
diff --git a/net/can/Kconfig b/net/can/Kconfig index a4399be54ff4..0f9fe846ddef 100644 --- a/net/can/Kconfig +++ b/net/can/Kconfig | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | # SPDX-License-Identifier: GPL-2.0-only | ||
| 1 | # | 2 | # |
| 2 | # Controller Area Network (CAN) network layer core configuration | 3 | # Controller Area Network (CAN) network layer core configuration |
| 3 | # | 4 | # |
diff --git a/net/ceph/Kconfig b/net/ceph/Kconfig index cd2d5b9301a1..2e8e6f904920 100644 --- a/net/ceph/Kconfig +++ b/net/ceph/Kconfig | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | # SPDX-License-Identifier: GPL-2.0-only | ||
| 1 | config CEPH_LIB | 2 | config CEPH_LIB |
| 2 | tristate "Ceph core library" | 3 | tristate "Ceph core library" |
| 3 | depends on INET | 4 | depends on INET |
diff --git a/net/ceph/ceph_common.c b/net/ceph/ceph_common.c index 79eac465ec65..1c811c74bfc0 100644 --- a/net/ceph/ceph_common.c +++ b/net/ceph/ceph_common.c | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-only | ||
| 1 | 2 | ||
| 2 | #include <linux/ceph/ceph_debug.h> | 3 | #include <linux/ceph/ceph_debug.h> |
| 3 | #include <linux/backing-dev.h> | 4 | #include <linux/backing-dev.h> |
diff --git a/net/compat.c b/net/compat.c index a031bd333092..3f9ce609397f 100644 --- a/net/compat.c +++ b/net/compat.c | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-only | ||
| 1 | /* | 2 | /* |
| 2 | * 32bit Socket syscall emulation. Based on arch/sparc64/kernel/sys_sparc32.c. | 3 | * 32bit Socket syscall emulation. Based on arch/sparc64/kernel/sys_sparc32.c. |
| 3 | * | 4 | * |
diff --git a/net/core/dev.c b/net/core/dev.c index 108ac8137b9b..b6b8505cfb3e 100644 --- a/net/core/dev.c +++ b/net/core/dev.c | |||
| @@ -8927,7 +8927,7 @@ static void netdev_wait_allrefs(struct net_device *dev) | |||
| 8927 | 8927 | ||
| 8928 | refcnt = netdev_refcnt_read(dev); | 8928 | refcnt = netdev_refcnt_read(dev); |
| 8929 | 8929 | ||
| 8930 | if (time_after(jiffies, warning_time + 10 * HZ)) { | 8930 | if (refcnt && time_after(jiffies, warning_time + 10 * HZ)) { |
| 8931 | pr_emerg("unregister_netdevice: waiting for %s to become free. Usage count = %d\n", | 8931 | pr_emerg("unregister_netdevice: waiting for %s to become free. Usage count = %d\n", |
| 8932 | dev->name, refcnt); | 8932 | dev->name, refcnt); |
| 8933 | warning_time = jiffies; | 8933 | warning_time = jiffies; |
diff --git a/net/core/drop_monitor.c b/net/core/drop_monitor.c index d4ce0542acfa..4ea4347f5062 100644 --- a/net/core/drop_monitor.c +++ b/net/core/drop_monitor.c | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-only | ||
| 1 | /* | 2 | /* |
| 2 | * Monitoring code for network dropped packet alerts | 3 | * Monitoring code for network dropped packet alerts |
| 3 | * | 4 | * |
diff --git a/net/core/dst.c b/net/core/dst.c index 1f13d90cd0e4..e46366228eaf 100644 --- a/net/core/dst.c +++ b/net/core/dst.c | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-only | ||
| 1 | /* | 2 | /* |
| 2 | * net/core/dst.c Protocol independent destination cache. | 3 | * net/core/dst.c Protocol independent destination cache. |
| 3 | * | 4 | * |
diff --git a/net/core/flow_dissector.c b/net/core/flow_dissector.c index 548f39dde307..edd622956083 100644 --- a/net/core/flow_dissector.c +++ b/net/core/flow_dissector.c | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-only | ||
| 1 | #include <linux/kernel.h> | 2 | #include <linux/kernel.h> |
| 2 | #include <linux/skbuff.h> | 3 | #include <linux/skbuff.h> |
| 3 | #include <linux/export.h> | 4 | #include <linux/export.h> |
diff --git a/net/core/flow_offload.c b/net/core/flow_offload.c index c3a00eac4804..5ce7d47a960e 100644 --- a/net/core/flow_offload.c +++ b/net/core/flow_offload.c | |||
| @@ -54,6 +54,13 @@ void flow_rule_match_vlan(const struct flow_rule *rule, | |||
| 54 | } | 54 | } |
| 55 | EXPORT_SYMBOL(flow_rule_match_vlan); | 55 | EXPORT_SYMBOL(flow_rule_match_vlan); |
| 56 | 56 | ||
| 57 | void flow_rule_match_cvlan(const struct flow_rule *rule, | ||
| 58 | struct flow_match_vlan *out) | ||
| 59 | { | ||
| 60 | FLOW_DISSECTOR_MATCH(rule, FLOW_DISSECTOR_KEY_CVLAN, out); | ||
| 61 | } | ||
| 62 | EXPORT_SYMBOL(flow_rule_match_cvlan); | ||
| 63 | |||
| 57 | void flow_rule_match_ipv4_addrs(const struct flow_rule *rule, | 64 | void flow_rule_match_ipv4_addrs(const struct flow_rule *rule, |
| 58 | struct flow_match_ipv4_addrs *out) | 65 | struct flow_match_ipv4_addrs *out) |
| 59 | { | 66 | { |
diff --git a/net/core/net_namespace.c b/net/core/net_namespace.c index 711b161505ac..15f68842ac6b 100644 --- a/net/core/net_namespace.c +++ b/net/core/net_namespace.c | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-only | ||
| 1 | #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt | 2 | #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt |
| 2 | 3 | ||
| 3 | #include <linux/workqueue.h> | 4 | #include <linux/workqueue.h> |
diff --git a/net/core/netpoll.c b/net/core/netpoll.c index a0f05416657b..dd8b1a460d64 100644 --- a/net/core/netpoll.c +++ b/net/core/netpoll.c | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-only | ||
| 1 | /* | 2 | /* |
| 2 | * Common framework for low-level network console, dump, and debugger code | 3 | * Common framework for low-level network console, dump, and debugger code |
| 3 | * | 4 | * |
diff --git a/net/core/rtnetlink.c b/net/core/rtnetlink.c index 2bd12afb9297..adcc045952c2 100644 --- a/net/core/rtnetlink.c +++ b/net/core/rtnetlink.c | |||
| @@ -1496,14 +1496,15 @@ static int put_master_ifindex(struct sk_buff *skb, struct net_device *dev) | |||
| 1496 | return ret; | 1496 | return ret; |
| 1497 | } | 1497 | } |
| 1498 | 1498 | ||
| 1499 | static int nla_put_iflink(struct sk_buff *skb, const struct net_device *dev) | 1499 | static int nla_put_iflink(struct sk_buff *skb, const struct net_device *dev, |
| 1500 | bool force) | ||
| 1500 | { | 1501 | { |
| 1501 | int ifindex = dev_get_iflink(dev); | 1502 | int ifindex = dev_get_iflink(dev); |
| 1502 | 1503 | ||
| 1503 | if (dev->ifindex == ifindex) | 1504 | if (force || dev->ifindex != ifindex) |
| 1504 | return 0; | 1505 | return nla_put_u32(skb, IFLA_LINK, ifindex); |
| 1505 | 1506 | ||
| 1506 | return nla_put_u32(skb, IFLA_LINK, ifindex); | 1507 | return 0; |
| 1507 | } | 1508 | } |
| 1508 | 1509 | ||
| 1509 | static noinline_for_stack int nla_put_ifalias(struct sk_buff *skb, | 1510 | static noinline_for_stack int nla_put_ifalias(struct sk_buff *skb, |
| @@ -1520,6 +1521,8 @@ static int rtnl_fill_link_netnsid(struct sk_buff *skb, | |||
| 1520 | const struct net_device *dev, | 1521 | const struct net_device *dev, |
| 1521 | struct net *src_net) | 1522 | struct net *src_net) |
| 1522 | { | 1523 | { |
| 1524 | bool put_iflink = false; | ||
| 1525 | |||
| 1523 | if (dev->rtnl_link_ops && dev->rtnl_link_ops->get_link_net) { | 1526 | if (dev->rtnl_link_ops && dev->rtnl_link_ops->get_link_net) { |
| 1524 | struct net *link_net = dev->rtnl_link_ops->get_link_net(dev); | 1527 | struct net *link_net = dev->rtnl_link_ops->get_link_net(dev); |
| 1525 | 1528 | ||
| @@ -1528,10 +1531,12 @@ static int rtnl_fill_link_netnsid(struct sk_buff *skb, | |||
| 1528 | 1531 | ||
| 1529 | if (nla_put_s32(skb, IFLA_LINK_NETNSID, id)) | 1532 | if (nla_put_s32(skb, IFLA_LINK_NETNSID, id)) |
| 1530 | return -EMSGSIZE; | 1533 | return -EMSGSIZE; |
| 1534 | |||
| 1535 | put_iflink = true; | ||
| 1531 | } | 1536 | } |
| 1532 | } | 1537 | } |
| 1533 | 1538 | ||
| 1534 | return 0; | 1539 | return nla_put_iflink(skb, dev, put_iflink); |
| 1535 | } | 1540 | } |
| 1536 | 1541 | ||
| 1537 | static int rtnl_fill_link_af(struct sk_buff *skb, | 1542 | static int rtnl_fill_link_af(struct sk_buff *skb, |
| @@ -1617,7 +1622,6 @@ static int rtnl_fill_ifinfo(struct sk_buff *skb, | |||
| 1617 | #ifdef CONFIG_RPS | 1622 | #ifdef CONFIG_RPS |
| 1618 | nla_put_u32(skb, IFLA_NUM_RX_QUEUES, dev->num_rx_queues) || | 1623 | nla_put_u32(skb, IFLA_NUM_RX_QUEUES, dev->num_rx_queues) || |
| 1619 | #endif | 1624 | #endif |
| 1620 | nla_put_iflink(skb, dev) || | ||
| 1621 | put_master_ifindex(skb, dev) || | 1625 | put_master_ifindex(skb, dev) || |
| 1622 | nla_put_u8(skb, IFLA_CARRIER, netif_carrier_ok(dev)) || | 1626 | nla_put_u8(skb, IFLA_CARRIER, netif_carrier_ok(dev)) || |
| 1623 | (dev->qdisc && | 1627 | (dev->qdisc && |
diff --git a/net/core/secure_seq.c b/net/core/secure_seq.c index af6ad467ed61..7b6b1d2c3d10 100644 --- a/net/core/secure_seq.c +++ b/net/core/secure_seq.c | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-only | ||
| 1 | /* | 2 | /* |
| 2 | * Copyright (C) 2016 Jason A. Donenfeld <Jason@zx2c4.com>. All Rights Reserved. | 3 | * Copyright (C) 2016 Jason A. Donenfeld <Jason@zx2c4.com>. All Rights Reserved. |
| 3 | */ | 4 | */ |
diff --git a/net/core/skmsg.c b/net/core/skmsg.c index cc94d921476c..93bffaad2135 100644 --- a/net/core/skmsg.c +++ b/net/core/skmsg.c | |||
| @@ -411,6 +411,7 @@ static int sk_psock_skb_ingress(struct sk_psock *psock, struct sk_buff *skb) | |||
| 411 | sk_mem_charge(sk, skb->len); | 411 | sk_mem_charge(sk, skb->len); |
| 412 | copied = skb->len; | 412 | copied = skb->len; |
| 413 | msg->sg.start = 0; | 413 | msg->sg.start = 0; |
| 414 | msg->sg.size = copied; | ||
| 414 | msg->sg.end = num_sge == MAX_MSG_FRAGS ? 0 : num_sge; | 415 | msg->sg.end = num_sge == MAX_MSG_FRAGS ? 0 : num_sge; |
| 415 | msg->skb = skb; | 416 | msg->skb = skb; |
| 416 | 417 | ||
| @@ -554,8 +555,10 @@ static void sk_psock_destroy_deferred(struct work_struct *gc) | |||
| 554 | struct sk_psock *psock = container_of(gc, struct sk_psock, gc); | 555 | struct sk_psock *psock = container_of(gc, struct sk_psock, gc); |
| 555 | 556 | ||
| 556 | /* No sk_callback_lock since already detached. */ | 557 | /* No sk_callback_lock since already detached. */ |
| 557 | strp_stop(&psock->parser.strp); | 558 | |
| 558 | strp_done(&psock->parser.strp); | 559 | /* Parser has been stopped */ |
| 560 | if (psock->progs.skb_parser) | ||
| 561 | strp_done(&psock->parser.strp); | ||
| 559 | 562 | ||
| 560 | cancel_work_sync(&psock->work); | 563 | cancel_work_sync(&psock->work); |
| 561 | 564 | ||
diff --git a/net/core/timestamping.c b/net/core/timestamping.c index 42689d5c468c..7911235706a9 100644 --- a/net/core/timestamping.c +++ b/net/core/timestamping.c | |||
| @@ -1,21 +1,8 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-or-later | ||
| 1 | /* | 2 | /* |
| 2 | * PTP 1588 clock support - support for timestamping in PHY devices | 3 | * PTP 1588 clock support - support for timestamping in PHY devices |
| 3 | * | 4 | * |
| 4 | * Copyright (C) 2010 OMICRON electronics GmbH | 5 | * Copyright (C) 2010 OMICRON electronics GmbH |
| 5 | * | ||
| 6 | * This program is free software; you can redistribute it and/or modify | ||
| 7 | * it under the terms of the GNU General Public License as published by | ||
| 8 | * the Free Software Foundation; either version 2 of the License, or | ||
| 9 | * (at your option) any later version. | ||
| 10 | * | ||
| 11 | * This program is distributed in the hope that it will be useful, | ||
| 12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
| 13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
| 14 | * GNU General Public License for more details. | ||
| 15 | * | ||
| 16 | * You should have received a copy of the GNU General Public License | ||
| 17 | * along with this program; if not, write to the Free Software | ||
| 18 | * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. | ||
| 19 | */ | 6 | */ |
| 20 | #include <linux/errqueue.h> | 7 | #include <linux/errqueue.h> |
| 21 | #include <linux/phy.h> | 8 | #include <linux/phy.h> |
diff --git a/net/dcb/Kconfig b/net/dcb/Kconfig index 4066d59c8de5..917e6e7b1cac 100644 --- a/net/dcb/Kconfig +++ b/net/dcb/Kconfig | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | # SPDX-License-Identifier: GPL-2.0-only | ||
| 1 | config DCB | 2 | config DCB |
| 2 | bool "Data Center Bridging support" | 3 | bool "Data Center Bridging support" |
| 3 | default n | 4 | default n |
diff --git a/net/dcb/Makefile b/net/dcb/Makefile index c1282c9e64fa..3016e5a7716a 100644 --- a/net/dcb/Makefile +++ b/net/dcb/Makefile | |||
| @@ -1 +1,2 @@ | |||
| 1 | # SPDX-License-Identifier: GPL-2.0-only | ||
| 1 | obj-$(CONFIG_DCB) += dcbnl.o dcbevent.o | 2 | obj-$(CONFIG_DCB) += dcbnl.o dcbevent.o |
diff --git a/net/dccp/Kconfig b/net/dccp/Kconfig index b270e84d9c13..f7c7495677b0 100644 --- a/net/dccp/Kconfig +++ b/net/dccp/Kconfig | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | # SPDX-License-Identifier: GPL-2.0-only | ||
| 1 | menuconfig IP_DCCP | 2 | menuconfig IP_DCCP |
| 2 | tristate "The DCCP Protocol" | 3 | tristate "The DCCP Protocol" |
| 3 | depends on INET | 4 | depends on INET |
diff --git a/net/dccp/ccids/Kconfig b/net/dccp/ccids/Kconfig index 8ba3fc9d6d16..4a358e6847a8 100644 --- a/net/dccp/ccids/Kconfig +++ b/net/dccp/ccids/Kconfig | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | # SPDX-License-Identifier: GPL-2.0-only | ||
| 1 | menu "DCCP CCIDs Configuration" | 2 | menu "DCCP CCIDs Configuration" |
| 2 | 3 | ||
| 3 | config IP_DCCP_CCID2_DEBUG | 4 | config IP_DCCP_CCID2_DEBUG |
diff --git a/net/dccp/ccids/ccid2.c b/net/dccp/ccids/ccid2.c index 842a9c7c73a3..3da1f77bd039 100644 --- a/net/dccp/ccids/ccid2.c +++ b/net/dccp/ccids/ccid2.c | |||
| @@ -1,23 +1,10 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-or-later | ||
| 1 | /* | 2 | /* |
| 2 | * Copyright (c) 2005, 2006 Andrea Bittau <a.bittau@cs.ucl.ac.uk> | 3 | * Copyright (c) 2005, 2006 Andrea Bittau <a.bittau@cs.ucl.ac.uk> |
| 3 | * | 4 | * |
| 4 | * Changes to meet Linux coding standards, and DCCP infrastructure fixes. | 5 | * Changes to meet Linux coding standards, and DCCP infrastructure fixes. |
| 5 | * | 6 | * |
| 6 | * Copyright (c) 2006 Arnaldo Carvalho de Melo <acme@conectiva.com.br> | 7 | * Copyright (c) 2006 Arnaldo Carvalho de Melo <acme@conectiva.com.br> |
| 7 | * | ||
| 8 | * This program is free software; you can redistribute it and/or modify | ||
| 9 | * it under the terms of the GNU General Public License as published by | ||
| 10 | * the Free Software Foundation; either version 2 of the License, or | ||
| 11 | * (at your option) any later version. | ||
| 12 | * | ||
| 13 | * This program is distributed in the hope that it will be useful, | ||
| 14 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
| 15 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
| 16 | * GNU General Public License for more details. | ||
| 17 | * | ||
| 18 | * You should have received a copy of the GNU General Public License | ||
| 19 | * along with this program; if not, write to the Free Software | ||
| 20 | * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. | ||
| 21 | */ | 8 | */ |
| 22 | 9 | ||
| 23 | /* | 10 | /* |
diff --git a/net/dccp/ccids/ccid2.h b/net/dccp/ccids/ccid2.h index 1af0116dc6ce..330c7b4ec001 100644 --- a/net/dccp/ccids/ccid2.h +++ b/net/dccp/ccids/ccid2.h | |||
| @@ -1,19 +1,6 @@ | |||
| 1 | /* SPDX-License-Identifier: GPL-2.0-or-later */ | ||
| 1 | /* | 2 | /* |
| 2 | * Copyright (c) 2005 Andrea Bittau <a.bittau@cs.ucl.ac.uk> | 3 | * Copyright (c) 2005 Andrea Bittau <a.bittau@cs.ucl.ac.uk> |
| 3 | * | ||
| 4 | * This program is free software; you can redistribute it and/or modify | ||
| 5 | * it under the terms of the GNU General Public License as published by | ||
| 6 | * the Free Software Foundation; either version 2 of the License, or | ||
| 7 | * (at your option) any later version. | ||
| 8 | * | ||
| 9 | * This program is distributed in the hope that it will be useful, | ||
| 10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
| 11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
| 12 | * GNU General Public License for more details. | ||
| 13 | * | ||
| 14 | * You should have received a copy of the GNU General Public License | ||
| 15 | * along with this program; if not, write to the Free Software | ||
| 16 | * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. | ||
| 17 | */ | 4 | */ |
| 18 | #ifndef _DCCP_CCID2_H_ | 5 | #ifndef _DCCP_CCID2_H_ |
| 19 | #define _DCCP_CCID2_H_ | 6 | #define _DCCP_CCID2_H_ |
diff --git a/net/decnet/Kconfig b/net/decnet/Kconfig index dcc74956badd..0935453ccfd5 100644 --- a/net/decnet/Kconfig +++ b/net/decnet/Kconfig | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | # SPDX-License-Identifier: GPL-2.0-only | ||
| 1 | # | 2 | # |
| 2 | # DECnet configuration | 3 | # DECnet configuration |
| 3 | # | 4 | # |
diff --git a/net/decnet/af_decnet.c b/net/decnet/af_decnet.c index c1fa4785c4c2..0ea75286abf4 100644 --- a/net/decnet/af_decnet.c +++ b/net/decnet/af_decnet.c | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-or-later | ||
| 1 | 2 | ||
| 2 | /* | 3 | /* |
| 3 | * DECnet An implementation of the DECnet protocol suite for the LINUX | 4 | * DECnet An implementation of the DECnet protocol suite for the LINUX |
| @@ -46,15 +47,6 @@ | |||
| 46 | /****************************************************************************** | 47 | /****************************************************************************** |
| 47 | (c) 1995-1998 E.M. Serrat emserrat@geocities.com | 48 | (c) 1995-1998 E.M. Serrat emserrat@geocities.com |
| 48 | 49 | ||
| 49 | This program is free software; you can redistribute it and/or modify | ||
| 50 | it under the terms of the GNU General Public License as published by | ||
| 51 | the Free Software Foundation; either version 2 of the License, or | ||
| 52 | any later version. | ||
| 53 | |||
| 54 | This program is distributed in the hope that it will be useful, | ||
| 55 | but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
| 56 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
| 57 | GNU General Public License for more details. | ||
| 58 | 50 | ||
| 59 | HISTORY: | 51 | HISTORY: |
| 60 | 52 | ||
diff --git a/net/decnet/dn_nsp_in.c b/net/decnet/dn_nsp_in.c index 2fb5e055ba25..e4161e0c86aa 100644 --- a/net/decnet/dn_nsp_in.c +++ b/net/decnet/dn_nsp_in.c | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-or-later | ||
| 1 | /* | 2 | /* |
| 2 | * DECnet An implementation of the DECnet protocol suite for the LINUX | 3 | * DECnet An implementation of the DECnet protocol suite for the LINUX |
| 3 | * operating system. DECnet is implemented using the BSD Socket | 4 | * operating system. DECnet is implemented using the BSD Socket |
| @@ -34,15 +35,6 @@ | |||
| 34 | /****************************************************************************** | 35 | /****************************************************************************** |
| 35 | (c) 1995-1998 E.M. Serrat emserrat@geocities.com | 36 | (c) 1995-1998 E.M. Serrat emserrat@geocities.com |
| 36 | 37 | ||
| 37 | This program is free software; you can redistribute it and/or modify | ||
| 38 | it under the terms of the GNU General Public License as published by | ||
| 39 | the Free Software Foundation; either version 2 of the License, or | ||
| 40 | any later version. | ||
| 41 | |||
| 42 | This program is distributed in the hope that it will be useful, | ||
| 43 | but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
| 44 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
| 45 | GNU General Public License for more details. | ||
| 46 | *******************************************************************************/ | 38 | *******************************************************************************/ |
| 47 | 39 | ||
| 48 | #include <linux/errno.h> | 40 | #include <linux/errno.h> |
diff --git a/net/decnet/dn_nsp_out.c b/net/decnet/dn_nsp_out.c index a1779de6bd9c..00f2ed721ec1 100644 --- a/net/decnet/dn_nsp_out.c +++ b/net/decnet/dn_nsp_out.c | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-or-later | ||
| 1 | /* | 2 | /* |
| 2 | * DECnet An implementation of the DECnet protocol suite for the LINUX | 3 | * DECnet An implementation of the DECnet protocol suite for the LINUX |
| 3 | * operating system. DECnet is implemented using the BSD Socket | 4 | * operating system. DECnet is implemented using the BSD Socket |
| @@ -26,15 +27,6 @@ | |||
| 26 | /****************************************************************************** | 27 | /****************************************************************************** |
| 27 | (c) 1995-1998 E.M. Serrat emserrat@geocities.com | 28 | (c) 1995-1998 E.M. Serrat emserrat@geocities.com |
| 28 | 29 | ||
| 29 | This program is free software; you can redistribute it and/or modify | ||
| 30 | it under the terms of the GNU General Public License as published by | ||
| 31 | the Free Software Foundation; either version 2 of the License, or | ||
| 32 | any later version. | ||
| 33 | |||
| 34 | This program is distributed in the hope that it will be useful, | ||
| 35 | but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
| 36 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
| 37 | GNU General Public License for more details. | ||
| 38 | *******************************************************************************/ | 30 | *******************************************************************************/ |
| 39 | 31 | ||
| 40 | #include <linux/errno.h> | 32 | #include <linux/errno.h> |
diff --git a/net/decnet/dn_route.c b/net/decnet/dn_route.c index 664584763c36..aea918135ec3 100644 --- a/net/decnet/dn_route.c +++ b/net/decnet/dn_route.c | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-or-later | ||
| 1 | /* | 2 | /* |
| 2 | * DECnet An implementation of the DECnet protocol suite for the LINUX | 3 | * DECnet An implementation of the DECnet protocol suite for the LINUX |
| 3 | * operating system. DECnet is implemented using the BSD Socket | 4 | * operating system. DECnet is implemented using the BSD Socket |
| @@ -44,15 +45,6 @@ | |||
| 44 | /****************************************************************************** | 45 | /****************************************************************************** |
| 45 | (c) 1995-1998 E.M. Serrat emserrat@geocities.com | 46 | (c) 1995-1998 E.M. Serrat emserrat@geocities.com |
| 46 | 47 | ||
| 47 | This program is free software; you can redistribute it and/or modify | ||
| 48 | it under the terms of the GNU General Public License as published by | ||
| 49 | the Free Software Foundation; either version 2 of the License, or | ||
| 50 | any later version. | ||
| 51 | |||
| 52 | This program is distributed in the hope that it will be useful, | ||
| 53 | but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
| 54 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
| 55 | GNU General Public License for more details. | ||
| 56 | *******************************************************************************/ | 48 | *******************************************************************************/ |
| 57 | 49 | ||
| 58 | #include <linux/errno.h> | 50 | #include <linux/errno.h> |
diff --git a/net/decnet/netfilter/Kconfig b/net/decnet/netfilter/Kconfig index 8d7c109d5109..14ec4ef95fab 100644 --- a/net/decnet/netfilter/Kconfig +++ b/net/decnet/netfilter/Kconfig | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | # SPDX-License-Identifier: GPL-2.0-only | ||
| 1 | # | 2 | # |
| 2 | # DECnet netfilter configuration | 3 | # DECnet netfilter configuration |
| 3 | # | 4 | # |
diff --git a/net/decnet/netfilter/Makefile b/net/decnet/netfilter/Makefile index b579e52130aa..429c84289d0f 100644 --- a/net/decnet/netfilter/Makefile +++ b/net/decnet/netfilter/Makefile | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | # SPDX-License-Identifier: GPL-2.0-only | ||
| 1 | # | 2 | # |
| 2 | # Makefile for DECnet netfilter modules | 3 | # Makefile for DECnet netfilter modules |
| 3 | # | 4 | # |
diff --git a/net/decnet/netfilter/dn_rtmsg.c b/net/decnet/netfilter/dn_rtmsg.c index a4faacadd8a8..dc705769acc9 100644 --- a/net/decnet/netfilter/dn_rtmsg.c +++ b/net/decnet/netfilter/dn_rtmsg.c | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-or-later | ||
| 1 | /* | 2 | /* |
| 2 | * DECnet An implementation of the DECnet protocol suite for the LINUX | 3 | * DECnet An implementation of the DECnet protocol suite for the LINUX |
| 3 | * operating system. DECnet is implemented using the BSD Socket | 4 | * operating system. DECnet is implemented using the BSD Socket |
| @@ -6,11 +7,8 @@ | |||
| 6 | * DECnet Routing Message Grabulator | 7 | * DECnet Routing Message Grabulator |
| 7 | * | 8 | * |
| 8 | * (C) 2000 ChyGwyn Limited - http://www.chygwyn.com/ | 9 | * (C) 2000 ChyGwyn Limited - http://www.chygwyn.com/ |
| 9 | * This code may be copied under the GPL v.2 or at your option | ||
| 10 | * any later version. | ||
| 11 | * | 10 | * |
| 12 | * Author: Steven Whitehouse <steve@chygwyn.com> | 11 | * Author: Steven Whitehouse <steve@chygwyn.com> |
| 13 | * | ||
| 14 | */ | 12 | */ |
| 15 | #include <linux/module.h> | 13 | #include <linux/module.h> |
| 16 | #include <linux/skbuff.h> | 14 | #include <linux/skbuff.h> |
diff --git a/net/dns_resolver/Kconfig b/net/dns_resolver/Kconfig index 50d49f7e0472..0a1c2238b4bd 100644 --- a/net/dns_resolver/Kconfig +++ b/net/dns_resolver/Kconfig | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | # SPDX-License-Identifier: GPL-2.0-only | ||
| 1 | # | 2 | # |
| 2 | # Configuration for DNS Resolver | 3 | # Configuration for DNS Resolver |
| 3 | # | 4 | # |
diff --git a/net/dns_resolver/Makefile b/net/dns_resolver/Makefile index d5c13c2eb36d..877532d662d0 100644 --- a/net/dns_resolver/Makefile +++ b/net/dns_resolver/Makefile | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | # SPDX-License-Identifier: GPL-2.0-only | ||
| 1 | # | 2 | # |
| 2 | # Makefile for the Linux DNS Resolver. | 3 | # Makefile for the Linux DNS Resolver. |
| 3 | # | 4 | # |
diff --git a/net/dsa/Kconfig b/net/dsa/Kconfig index cf855352a440..d449f78c1bd0 100644 --- a/net/dsa/Kconfig +++ b/net/dsa/Kconfig | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | # SPDX-License-Identifier: GPL-2.0-only | ||
| 1 | config HAVE_NET_DSA | 2 | config HAVE_NET_DSA |
| 2 | def_bool y | 3 | def_bool y |
| 3 | depends on INET && NETDEVICES && !S390 | 4 | depends on INET && NETDEVICES && !S390 |
diff --git a/net/ethernet/Makefile b/net/ethernet/Makefile index 323177505404..e03eff94e0db 100644 --- a/net/ethernet/Makefile +++ b/net/ethernet/Makefile | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | # SPDX-License-Identifier: GPL-2.0-only | ||
| 1 | # | 2 | # |
| 2 | # Makefile for the Linux Ethernet layer. | 3 | # Makefile for the Linux Ethernet layer. |
| 3 | # | 4 | # |
diff --git a/net/hsr/Kconfig b/net/hsr/Kconfig index 4b683fd0abf1..9c58f8763997 100644 --- a/net/hsr/Kconfig +++ b/net/hsr/Kconfig | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | # SPDX-License-Identifier: GPL-2.0-only | ||
| 1 | # | 2 | # |
| 2 | # IEC 62439-3 High-availability Seamless Redundancy | 3 | # IEC 62439-3 High-availability Seamless Redundancy |
| 3 | # | 4 | # |
diff --git a/net/hsr/Makefile b/net/hsr/Makefile index e45757fc477f..75df90d3b416 100644 --- a/net/hsr/Makefile +++ b/net/hsr/Makefile | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | # SPDX-License-Identifier: GPL-2.0-only | ||
| 1 | # | 2 | # |
| 2 | # Makefile for HSR | 3 | # Makefile for HSR |
| 3 | # | 4 | # |
diff --git a/net/ieee802154/6lowpan/Kconfig b/net/ieee802154/6lowpan/Kconfig index d24f985b0bfd..d1b4655a6d43 100644 --- a/net/ieee802154/6lowpan/Kconfig +++ b/net/ieee802154/6lowpan/Kconfig | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | # SPDX-License-Identifier: GPL-2.0-only | ||
| 1 | config IEEE802154_6LOWPAN | 2 | config IEEE802154_6LOWPAN |
| 2 | tristate "6lowpan support over IEEE 802.15.4" | 3 | tristate "6lowpan support over IEEE 802.15.4" |
| 3 | depends on 6LOWPAN | 4 | depends on 6LOWPAN |
diff --git a/net/ieee802154/6lowpan/Makefile b/net/ieee802154/6lowpan/Makefile index 6bfb270a81a6..f11d6376a891 100644 --- a/net/ieee802154/6lowpan/Makefile +++ b/net/ieee802154/6lowpan/Makefile | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | # SPDX-License-Identifier: GPL-2.0-only | ||
| 1 | obj-$(CONFIG_IEEE802154_6LOWPAN) += ieee802154_6lowpan.o | 2 | obj-$(CONFIG_IEEE802154_6LOWPAN) += ieee802154_6lowpan.o |
| 2 | 3 | ||
| 3 | ieee802154_6lowpan-y := core.o rx.o reassembly.o tx.o | 4 | ieee802154_6lowpan-y := core.o rx.o reassembly.o tx.o |
diff --git a/net/ieee802154/Kconfig b/net/ieee802154/Kconfig index 188135bcb803..5dbbc2ca95b4 100644 --- a/net/ieee802154/Kconfig +++ b/net/ieee802154/Kconfig | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | # SPDX-License-Identifier: GPL-2.0-only | ||
| 1 | menuconfig IEEE802154 | 2 | menuconfig IEEE802154 |
| 2 | tristate "IEEE Std 802.15.4 Low-Rate Wireless Personal Area Networks support" | 3 | tristate "IEEE Std 802.15.4 Low-Rate Wireless Personal Area Networks support" |
| 3 | ---help--- | 4 | ---help--- |
diff --git a/net/ife/Kconfig b/net/ife/Kconfig index 31e48b652c7c..6cd1f6d18f30 100644 --- a/net/ife/Kconfig +++ b/net/ife/Kconfig | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | # SPDX-License-Identifier: GPL-2.0-only | ||
| 1 | # | 2 | # |
| 2 | # IFE subsystem configuration | 3 | # IFE subsystem configuration |
| 3 | # | 4 | # |
diff --git a/net/ife/Makefile b/net/ife/Makefile index 2a90d97746cc..1258fcb07f67 100644 --- a/net/ife/Makefile +++ b/net/ife/Makefile | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | # SPDX-License-Identifier: GPL-2.0-only | ||
| 1 | # | 2 | # |
| 2 | # Makefile for the IFE encapsulation protocol | 3 | # Makefile for the IFE encapsulation protocol |
| 3 | # | 4 | # |
diff --git a/net/ipv4/Kconfig b/net/ipv4/Kconfig index 8108e97d4285..974de4d20f25 100644 --- a/net/ipv4/Kconfig +++ b/net/ipv4/Kconfig | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | # SPDX-License-Identifier: GPL-2.0-only | ||
| 1 | # | 2 | # |
| 2 | # IP configuration | 3 | # IP configuration |
| 3 | # | 4 | # |
diff --git a/net/ipv4/ah4.c b/net/ipv4/ah4.c index c01fa791260d..9c3afd550612 100644 --- a/net/ipv4/ah4.c +++ b/net/ipv4/ah4.c | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-only | ||
| 1 | #define pr_fmt(fmt) "IPsec: " fmt | 2 | #define pr_fmt(fmt) "IPsec: " fmt |
| 2 | 3 | ||
| 3 | #include <crypto/algapi.h> | 4 | #include <crypto/algapi.h> |
diff --git a/net/ipv4/bpfilter/Makefile b/net/ipv4/bpfilter/Makefile index e9e42f99725e..00af5305e05a 100644 --- a/net/ipv4/bpfilter/Makefile +++ b/net/ipv4/bpfilter/Makefile | |||
| @@ -1 +1,2 @@ | |||
| 1 | # SPDX-License-Identifier: GPL-2.0-only | ||
| 1 | obj-$(CONFIG_BPFILTER) += sockopt.o | 2 | obj-$(CONFIG_BPFILTER) += sockopt.o |
diff --git a/net/ipv4/bpfilter/sockopt.c b/net/ipv4/bpfilter/sockopt.c index 15427163a041..0480918bfc7c 100644 --- a/net/ipv4/bpfilter/sockopt.c +++ b/net/ipv4/bpfilter/sockopt.c | |||
| @@ -30,13 +30,11 @@ static int bpfilter_mbox_request(struct sock *sk, int optname, | |||
| 30 | mutex_lock(&bpfilter_ops.lock); | 30 | mutex_lock(&bpfilter_ops.lock); |
| 31 | if (!bpfilter_ops.sockopt) { | 31 | if (!bpfilter_ops.sockopt) { |
| 32 | mutex_unlock(&bpfilter_ops.lock); | 32 | mutex_unlock(&bpfilter_ops.lock); |
| 33 | err = request_module("bpfilter"); | 33 | request_module("bpfilter"); |
| 34 | mutex_lock(&bpfilter_ops.lock); | 34 | mutex_lock(&bpfilter_ops.lock); |
| 35 | 35 | ||
| 36 | if (err) | ||
| 37 | goto out; | ||
| 38 | if (!bpfilter_ops.sockopt) { | 36 | if (!bpfilter_ops.sockopt) { |
| 39 | err = -ECHILD; | 37 | err = -ENOPROTOOPT; |
| 40 | goto out; | 38 | goto out; |
| 41 | } | 39 | } |
| 42 | } | 40 | } |
diff --git a/net/ipv4/cipso_ipv4.c b/net/ipv4/cipso_ipv4.c index f0165c5f376b..376882215919 100644 --- a/net/ipv4/cipso_ipv4.c +++ b/net/ipv4/cipso_ipv4.c | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-or-later | ||
| 1 | /* | 2 | /* |
| 2 | * CIPSO - Commercial IP Security Option | 3 | * CIPSO - Commercial IP Security Option |
| 3 | * | 4 | * |
| @@ -14,25 +15,10 @@ | |||
| 14 | * http://www.itl.nist.gov/fipspubs/fip188.htm | 15 | * http://www.itl.nist.gov/fipspubs/fip188.htm |
| 15 | * | 16 | * |
| 16 | * Author: Paul Moore <paul.moore@hp.com> | 17 | * Author: Paul Moore <paul.moore@hp.com> |
| 17 | * | ||
| 18 | */ | 18 | */ |
| 19 | 19 | ||
| 20 | /* | 20 | /* |
| 21 | * (c) Copyright Hewlett-Packard Development Company, L.P., 2006, 2008 | 21 | * (c) Copyright Hewlett-Packard Development Company, L.P., 2006, 2008 |
| 22 | * | ||
| 23 | * This program is free software; you can redistribute it and/or modify | ||
| 24 | * it under the terms of the GNU General Public License as published by | ||
| 25 | * the Free Software Foundation; either version 2 of the License, or | ||
| 26 | * (at your option) any later version. | ||
| 27 | * | ||
| 28 | * This program is distributed in the hope that it will be useful, | ||
| 29 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
| 30 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See | ||
| 31 | * the GNU General Public License for more details. | ||
| 32 | * | ||
| 33 | * You should have received a copy of the GNU General Public License | ||
| 34 | * along with this program; if not, see <http://www.gnu.org/licenses/>. | ||
| 35 | * | ||
| 36 | */ | 22 | */ |
| 37 | 23 | ||
| 38 | #include <linux/init.h> | 24 | #include <linux/init.h> |
diff --git a/net/ipv4/esp4.c b/net/ipv4/esp4.c index fb065a8937ea..b9ae95576084 100644 --- a/net/ipv4/esp4.c +++ b/net/ipv4/esp4.c | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-only | ||
| 1 | #define pr_fmt(fmt) "IPsec: " fmt | 2 | #define pr_fmt(fmt) "IPsec: " fmt |
| 2 | 3 | ||
| 3 | #include <crypto/aead.h> | 4 | #include <crypto/aead.h> |
diff --git a/net/ipv4/fou.c b/net/ipv4/fou.c index ca95051317ed..30fa771d382a 100644 --- a/net/ipv4/fou.c +++ b/net/ipv4/fou.c | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-only | ||
| 1 | #include <linux/module.h> | 2 | #include <linux/module.h> |
| 2 | #include <linux/errno.h> | 3 | #include <linux/errno.h> |
| 3 | #include <linux/socket.h> | 4 | #include <linux/socket.h> |
diff --git a/net/ipv4/inet_timewait_sock.c b/net/ipv4/inet_timewait_sock.c index 88c5069b5d20..c411c87ae865 100644 --- a/net/ipv4/inet_timewait_sock.c +++ b/net/ipv4/inet_timewait_sock.c | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-only | ||
| 1 | /* | 2 | /* |
| 2 | * INET An implementation of the TCP/IP protocol suite for the LINUX | 3 | * INET An implementation of the TCP/IP protocol suite for the LINUX |
| 3 | * operating system. INET is implemented using the BSD Socket | 4 | * operating system. INET is implemented using the BSD Socket |
diff --git a/net/ipv4/ip_output.c b/net/ipv4/ip_output.c index ac880beda8a7..bfd0ca554977 100644 --- a/net/ipv4/ip_output.c +++ b/net/ipv4/ip_output.c | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-only | ||
| 1 | /* | 2 | /* |
| 2 | * INET An implementation of the TCP/IP protocol suite for the LINUX | 3 | * INET An implementation of the TCP/IP protocol suite for the LINUX |
| 3 | * operating system. INET is implemented using the BSD Socket | 4 | * operating system. INET is implemented using the BSD Socket |
diff --git a/net/ipv4/metrics.c b/net/ipv4/metrics.c index ca9a5fefdefa..3205d5f7c8c9 100644 --- a/net/ipv4/metrics.c +++ b/net/ipv4/metrics.c | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-only | ||
| 1 | #include <linux/netlink.h> | 2 | #include <linux/netlink.h> |
| 2 | #include <linux/rtnetlink.h> | 3 | #include <linux/rtnetlink.h> |
| 3 | #include <linux/types.h> | 4 | #include <linux/types.h> |
diff --git a/net/ipv4/netfilter/Kconfig b/net/ipv4/netfilter/Kconfig index 1412b029f37f..3e6494269501 100644 --- a/net/ipv4/netfilter/Kconfig +++ b/net/ipv4/netfilter/Kconfig | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | # SPDX-License-Identifier: GPL-2.0-only | ||
| 1 | # | 2 | # |
| 2 | # IP netfilter configuration | 3 | # IP netfilter configuration |
| 3 | # | 4 | # |
diff --git a/net/ipv4/netfilter/arp_tables.c b/net/ipv4/netfilter/arp_tables.c index 2dc83de53f94..214154b47d56 100644 --- a/net/ipv4/netfilter/arp_tables.c +++ b/net/ipv4/netfilter/arp_tables.c | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-only | ||
| 1 | /* | 2 | /* |
| 2 | * Packet matching code for ARP packets. | 3 | * Packet matching code for ARP packets. |
| 3 | * | 4 | * |
diff --git a/net/ipv4/netfilter/arpt_mangle.c b/net/ipv4/netfilter/arpt_mangle.c index a5e52a9f0a12..87ca2c42359b 100644 --- a/net/ipv4/netfilter/arpt_mangle.c +++ b/net/ipv4/netfilter/arpt_mangle.c | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-only | ||
| 1 | /* module that allows mangling of the arp payload */ | 2 | /* module that allows mangling of the arp payload */ |
| 2 | #include <linux/module.h> | 3 | #include <linux/module.h> |
| 3 | #include <linux/netfilter.h> | 4 | #include <linux/netfilter.h> |
diff --git a/net/ipv4/netfilter/arptable_filter.c b/net/ipv4/netfilter/arptable_filter.c index 8f8713b4388f..c216b9ad3bb2 100644 --- a/net/ipv4/netfilter/arptable_filter.c +++ b/net/ipv4/netfilter/arptable_filter.c | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-only | ||
| 1 | /* | 2 | /* |
| 2 | * Filtering ARP tables module. | 3 | * Filtering ARP tables module. |
| 3 | * | 4 | * |
diff --git a/net/ipv4/netfilter/iptable_raw.c b/net/ipv4/netfilter/iptable_raw.c index 960625aabf04..6eefde5bc468 100644 --- a/net/ipv4/netfilter/iptable_raw.c +++ b/net/ipv4/netfilter/iptable_raw.c | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-only | ||
| 1 | /* | 2 | /* |
| 2 | * 'raw' table, which is the very first hooked in at PRE_ROUTING and LOCAL_OUT . | 3 | * 'raw' table, which is the very first hooked in at PRE_ROUTING and LOCAL_OUT . |
| 3 | * | 4 | * |
diff --git a/net/ipv4/netfilter/nf_dup_ipv4.c b/net/ipv4/netfilter/nf_dup_ipv4.c index 39895b9ddeb9..af3fbf76dbd3 100644 --- a/net/ipv4/netfilter/nf_dup_ipv4.c +++ b/net/ipv4/netfilter/nf_dup_ipv4.c | |||
| @@ -1,12 +1,9 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-or-later | ||
| 1 | /* | 2 | /* |
| 2 | * (C) 2007 by Sebastian Claßen <sebastian.classen@freenet.ag> | 3 | * (C) 2007 by Sebastian Claßen <sebastian.classen@freenet.ag> |
| 3 | * (C) 2007-2010 by Jan Engelhardt <jengelh@medozas.de> | 4 | * (C) 2007-2010 by Jan Engelhardt <jengelh@medozas.de> |
| 4 | * | 5 | * |
| 5 | * Extracted from xt_TEE.c | 6 | * Extracted from xt_TEE.c |
| 6 | * | ||
| 7 | * This program is free software; you can redistribute it and/or modify it | ||
| 8 | * under the terms of the GNU General Public License version 2 or later, as | ||
| 9 | * published by the Free Software Foundation. | ||
| 10 | */ | 7 | */ |
| 11 | #include <linux/ip.h> | 8 | #include <linux/ip.h> |
| 12 | #include <linux/module.h> | 9 | #include <linux/module.h> |
diff --git a/net/ipv4/netfilter/nf_flow_table_ipv4.c b/net/ipv4/netfilter/nf_flow_table_ipv4.c index e1e56d7123d2..012c4047c788 100644 --- a/net/ipv4/netfilter/nf_flow_table_ipv4.c +++ b/net/ipv4/netfilter/nf_flow_table_ipv4.c | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-only | ||
| 1 | #include <linux/kernel.h> | 2 | #include <linux/kernel.h> |
| 2 | #include <linux/init.h> | 3 | #include <linux/init.h> |
| 3 | #include <linux/module.h> | 4 | #include <linux/module.h> |
diff --git a/net/ipv4/netfilter/nf_nat_pptp.c b/net/ipv4/netfilter/nf_nat_pptp.c index e17b4ee7604c..b2aeb7bf5dac 100644 --- a/net/ipv4/netfilter/nf_nat_pptp.c +++ b/net/ipv4/netfilter/nf_nat_pptp.c | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-only | ||
| 1 | /* | 2 | /* |
| 2 | * nf_nat_pptp.c | 3 | * nf_nat_pptp.c |
| 3 | * | 4 | * |
diff --git a/net/ipv4/netfilter/nf_nat_snmp_basic_main.c b/net/ipv4/netfilter/nf_nat_snmp_basic_main.c index 0a8a60c1bf9a..657d2dcec3cc 100644 --- a/net/ipv4/netfilter/nf_nat_snmp_basic_main.c +++ b/net/ipv4/netfilter/nf_nat_snmp_basic_main.c | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-or-later | ||
| 1 | /* | 2 | /* |
| 2 | * nf_nat_snmp_basic.c | 3 | * nf_nat_snmp_basic.c |
| 3 | * | 4 | * |
| @@ -25,17 +26,6 @@ | |||
| 25 | * | 26 | * |
| 26 | * Copyright (c) 2000 RP Internet (www.rpi.net.au). | 27 | * Copyright (c) 2000 RP Internet (www.rpi.net.au). |
| 27 | * | 28 | * |
| 28 | * This program is free software; you can redistribute it and/or modify | ||
| 29 | * it under the terms of the GNU General Public License as published by | ||
| 30 | * the Free Software Foundation; either version 2 of the License, or | ||
| 31 | * (at your option) any later version. | ||
| 32 | * This program is distributed in the hope that it will be useful, | ||
| 33 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
| 34 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
| 35 | * GNU General Public License for more details. | ||
| 36 | * You should have received a copy of the GNU General Public License | ||
| 37 | * along with this program; if not, see <http://www.gnu.org/licenses/>. | ||
| 38 | * | ||
| 39 | * Author: James Morris <jmorris@intercode.com.au> | 29 | * Author: James Morris <jmorris@intercode.com.au> |
| 40 | * | 30 | * |
| 41 | * Copyright (c) 2006-2010 Patrick McHardy <kaber@trash.net> | 31 | * Copyright (c) 2006-2010 Patrick McHardy <kaber@trash.net> |
diff --git a/net/ipv4/netlink.c b/net/ipv4/netlink.c index d8e3a1fb8e82..b920e1bdcf58 100644 --- a/net/ipv4/netlink.c +++ b/net/ipv4/netlink.c | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-only | ||
| 1 | #include <linux/netlink.h> | 2 | #include <linux/netlink.h> |
| 2 | #include <linux/rtnetlink.h> | 3 | #include <linux/rtnetlink.h> |
| 3 | #include <linux/types.h> | 4 | #include <linux/types.h> |
diff --git a/net/ipv4/ping.c b/net/ipv4/ping.c index 7ccb5f87f70b..834be7daeb32 100644 --- a/net/ipv4/ping.c +++ b/net/ipv4/ping.c | |||
| @@ -1113,7 +1113,7 @@ static void ping_v4_format_sock(struct sock *sp, struct seq_file *f, | |||
| 1113 | __u16 srcp = ntohs(inet->inet_sport); | 1113 | __u16 srcp = ntohs(inet->inet_sport); |
| 1114 | 1114 | ||
| 1115 | seq_printf(f, "%5d: %08X:%04X %08X:%04X" | 1115 | seq_printf(f, "%5d: %08X:%04X %08X:%04X" |
| 1116 | " %02X %08X:%08X %02X:%08lX %08X %5u %8d %lu %d %pK %d", | 1116 | " %02X %08X:%08X %02X:%08lX %08X %5u %8d %lu %d %pK %u", |
| 1117 | bucket, src, srcp, dest, destp, sp->sk_state, | 1117 | bucket, src, srcp, dest, destp, sp->sk_state, |
| 1118 | sk_wmem_alloc_get(sp), | 1118 | sk_wmem_alloc_get(sp), |
| 1119 | sk_rmem_alloc_get(sp), | 1119 | sk_rmem_alloc_get(sp), |
diff --git a/net/ipv4/raw.c b/net/ipv4/raw.c index dc91c27bb788..0e482f07b37f 100644 --- a/net/ipv4/raw.c +++ b/net/ipv4/raw.c | |||
| @@ -1076,7 +1076,7 @@ static void raw_sock_seq_show(struct seq_file *seq, struct sock *sp, int i) | |||
| 1076 | srcp = inet->inet_num; | 1076 | srcp = inet->inet_num; |
| 1077 | 1077 | ||
| 1078 | seq_printf(seq, "%4d: %08X:%04X %08X:%04X" | 1078 | seq_printf(seq, "%4d: %08X:%04X %08X:%04X" |
| 1079 | " %02X %08X:%08X %02X:%08lX %08X %5u %8d %lu %d %pK %d\n", | 1079 | " %02X %08X:%08X %02X:%08lX %08X %5u %8d %lu %d %pK %u\n", |
| 1080 | i, src, srcp, dest, destp, sp->sk_state, | 1080 | i, src, srcp, dest, destp, sp->sk_state, |
| 1081 | sk_wmem_alloc_get(sp), | 1081 | sk_wmem_alloc_get(sp), |
| 1082 | sk_rmem_alloc_get(sp), | 1082 | sk_rmem_alloc_get(sp), |
diff --git a/net/ipv4/raw_diag.c b/net/ipv4/raw_diag.c index c200065ef9a5..899e34ceb560 100644 --- a/net/ipv4/raw_diag.c +++ b/net/ipv4/raw_diag.c | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-only | ||
| 1 | #include <linux/module.h> | 2 | #include <linux/module.h> |
| 2 | 3 | ||
| 3 | #include <linux/inet_diag.h> | 4 | #include <linux/inet_diag.h> |
diff --git a/net/ipv4/tcp.c b/net/ipv4/tcp.c index 1fa15beb8380..53d61ca3ac4b 100644 --- a/net/ipv4/tcp.c +++ b/net/ipv4/tcp.c | |||
| @@ -855,7 +855,7 @@ struct sk_buff *sk_stream_alloc_skb(struct sock *sk, int size, gfp_t gfp, | |||
| 855 | 855 | ||
| 856 | if (likely(!size)) { | 856 | if (likely(!size)) { |
| 857 | skb = sk->sk_tx_skb_cache; | 857 | skb = sk->sk_tx_skb_cache; |
| 858 | if (skb && !skb_cloned(skb)) { | 858 | if (skb) { |
| 859 | skb->truesize = SKB_TRUESIZE(skb_end_offset(skb)); | 859 | skb->truesize = SKB_TRUESIZE(skb_end_offset(skb)); |
| 860 | sk->sk_tx_skb_cache = NULL; | 860 | sk->sk_tx_skb_cache = NULL; |
| 861 | pskb_trim(skb, 0); | 861 | pskb_trim(skb, 0); |
diff --git a/net/ipv4/tcp_bic.c b/net/ipv4/tcp_bic.c index fc3614377413..645cc3009e64 100644 --- a/net/ipv4/tcp_bic.c +++ b/net/ipv4/tcp_bic.c | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-only | ||
| 1 | /* | 2 | /* |
| 2 | * Binary Increase Congestion control for TCP | 3 | * Binary Increase Congestion control for TCP |
| 3 | * Home page: | 4 | * Home page: |
diff --git a/net/ipv4/tcp_bpf.c b/net/ipv4/tcp_bpf.c index 1bb7321a256d..3d1e15401384 100644 --- a/net/ipv4/tcp_bpf.c +++ b/net/ipv4/tcp_bpf.c | |||
| @@ -27,7 +27,10 @@ static int tcp_bpf_wait_data(struct sock *sk, struct sk_psock *psock, | |||
| 27 | int flags, long timeo, int *err) | 27 | int flags, long timeo, int *err) |
| 28 | { | 28 | { |
| 29 | DEFINE_WAIT_FUNC(wait, woken_wake_function); | 29 | DEFINE_WAIT_FUNC(wait, woken_wake_function); |
| 30 | int ret; | 30 | int ret = 0; |
| 31 | |||
| 32 | if (!timeo) | ||
| 33 | return ret; | ||
| 31 | 34 | ||
| 32 | add_wait_queue(sk_sleep(sk), &wait); | 35 | add_wait_queue(sk_sleep(sk), &wait); |
| 33 | sk_set_bit(SOCKWQ_ASYNC_WAITDATA, sk); | 36 | sk_set_bit(SOCKWQ_ASYNC_WAITDATA, sk); |
| @@ -528,8 +531,6 @@ static void tcp_bpf_remove(struct sock *sk, struct sk_psock *psock) | |||
| 528 | { | 531 | { |
| 529 | struct sk_psock_link *link; | 532 | struct sk_psock_link *link; |
| 530 | 533 | ||
| 531 | sk_psock_cork_free(psock); | ||
| 532 | __sk_psock_purge_ingress_msg(psock); | ||
| 533 | while ((link = sk_psock_link_pop(psock))) { | 534 | while ((link = sk_psock_link_pop(psock))) { |
| 534 | sk_psock_unlink(sk, link); | 535 | sk_psock_unlink(sk, link); |
| 535 | sk_psock_free_link(link); | 536 | sk_psock_free_link(link); |
diff --git a/net/ipv4/tcp_cdg.c b/net/ipv4/tcp_cdg.c index 37eebd910396..709d23801823 100644 --- a/net/ipv4/tcp_cdg.c +++ b/net/ipv4/tcp_cdg.c | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-only | ||
| 1 | /* | 2 | /* |
| 2 | * CAIA Delay-Gradient (CDG) congestion control | 3 | * CAIA Delay-Gradient (CDG) congestion control |
| 3 | * | 4 | * |
diff --git a/net/ipv4/tcp_cong.c b/net/ipv4/tcp_cong.c index bc6c02f16243..e1862b64a90f 100644 --- a/net/ipv4/tcp_cong.c +++ b/net/ipv4/tcp_cong.c | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-only | ||
| 1 | /* | 2 | /* |
| 2 | * Pluggable TCP congestion control support and newReno | 3 | * Pluggable TCP congestion control support and newReno |
| 3 | * congestion control. | 4 | * congestion control. |
diff --git a/net/ipv4/tcp_cubic.c b/net/ipv4/tcp_cubic.c index 78bfadfcf342..1b3d032a4df2 100644 --- a/net/ipv4/tcp_cubic.c +++ b/net/ipv4/tcp_cubic.c | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-only | ||
| 1 | /* | 2 | /* |
| 2 | * TCP CUBIC: Binary Increase Congestion control for TCP v2.3 | 3 | * TCP CUBIC: Binary Increase Congestion control for TCP v2.3 |
| 3 | * Home page: | 4 | * Home page: |
diff --git a/net/ipv4/tcp_highspeed.c b/net/ipv4/tcp_highspeed.c index d1c33c91eadc..bfdfbb972c57 100644 --- a/net/ipv4/tcp_highspeed.c +++ b/net/ipv4/tcp_highspeed.c | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-only | ||
| 1 | /* | 2 | /* |
| 2 | * Sally Floyd's High Speed TCP (RFC 3649) congestion control | 3 | * Sally Floyd's High Speed TCP (RFC 3649) congestion control |
| 3 | * | 4 | * |
diff --git a/net/ipv4/tcp_htcp.c b/net/ipv4/tcp_htcp.c index 082d479462fa..88e1f011afe0 100644 --- a/net/ipv4/tcp_htcp.c +++ b/net/ipv4/tcp_htcp.c | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-only | ||
| 1 | /* | 2 | /* |
| 2 | * H-TCP congestion control. The algorithm is detailed in: | 3 | * H-TCP congestion control. The algorithm is detailed in: |
| 3 | * R.N.Shorten, D.J.Leith: | 4 | * R.N.Shorten, D.J.Leith: |
diff --git a/net/ipv4/tcp_hybla.c b/net/ipv4/tcp_hybla.c index 0f7175c3338e..be39327e04e6 100644 --- a/net/ipv4/tcp_hybla.c +++ b/net/ipv4/tcp_hybla.c | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-only | ||
| 1 | /* | 2 | /* |
| 2 | * TCP HYBLA | 3 | * TCP HYBLA |
| 3 | * | 4 | * |
diff --git a/net/ipv4/tcp_illinois.c b/net/ipv4/tcp_illinois.c index faddf4f9a707..00e54873213e 100644 --- a/net/ipv4/tcp_illinois.c +++ b/net/ipv4/tcp_illinois.c | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-only | ||
| 1 | /* | 2 | /* |
| 2 | * TCP Illinois congestion control. | 3 | * TCP Illinois congestion control. |
| 3 | * Home page: | 4 | * Home page: |
diff --git a/net/ipv4/tcp_input.c b/net/ipv4/tcp_input.c index 20f6fac5882e..c61edd023b35 100644 --- a/net/ipv4/tcp_input.c +++ b/net/ipv4/tcp_input.c | |||
| @@ -6024,6 +6024,9 @@ reset_and_undo: | |||
| 6024 | static void tcp_rcv_synrecv_state_fastopen(struct sock *sk) | 6024 | static void tcp_rcv_synrecv_state_fastopen(struct sock *sk) |
| 6025 | { | 6025 | { |
| 6026 | tcp_try_undo_loss(sk, false); | 6026 | tcp_try_undo_loss(sk, false); |
| 6027 | |||
| 6028 | /* Reset rtx states to prevent spurious retransmits_timed_out() */ | ||
| 6029 | tcp_sk(sk)->retrans_stamp = 0; | ||
| 6027 | inet_csk(sk)->icsk_retransmits = 0; | 6030 | inet_csk(sk)->icsk_retransmits = 0; |
| 6028 | 6031 | ||
| 6029 | /* Once we leave TCP_SYN_RECV or TCP_FIN_WAIT_1, | 6032 | /* Once we leave TCP_SYN_RECV or TCP_FIN_WAIT_1, |
diff --git a/net/ipv4/tcp_lp.c b/net/ipv4/tcp_lp.c index ae10ed64fe13..8c643a4ffad1 100644 --- a/net/ipv4/tcp_lp.c +++ b/net/ipv4/tcp_lp.c | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-only | ||
| 1 | /* | 2 | /* |
| 2 | * TCP Low Priority (TCP-LP) | 3 | * TCP Low Priority (TCP-LP) |
| 3 | * | 4 | * |
diff --git a/net/ipv4/tcp_minisocks.c b/net/ipv4/tcp_minisocks.c index 9c2a0d36fb20..7c35731816e2 100644 --- a/net/ipv4/tcp_minisocks.c +++ b/net/ipv4/tcp_minisocks.c | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-only | ||
| 1 | /* | 2 | /* |
| 2 | * INET An implementation of the TCP/IP protocol suite for the LINUX | 3 | * INET An implementation of the TCP/IP protocol suite for the LINUX |
| 3 | * operating system. INET is implemented using the BSD Socket | 4 | * operating system. INET is implemented using the BSD Socket |
diff --git a/net/ipv4/tcp_nv.c b/net/ipv4/tcp_nv.c index 764298e52577..95db7a11ba2a 100644 --- a/net/ipv4/tcp_nv.c +++ b/net/ipv4/tcp_nv.c | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-only | ||
| 1 | /* | 2 | /* |
| 2 | * TCP NV: TCP with Congestion Avoidance | 3 | * TCP NV: TCP with Congestion Avoidance |
| 3 | * | 4 | * |
diff --git a/net/ipv4/tcp_output.c b/net/ipv4/tcp_output.c index 0c4ed66dc1bf..f429e856e263 100644 --- a/net/ipv4/tcp_output.c +++ b/net/ipv4/tcp_output.c | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-only | ||
| 1 | /* | 2 | /* |
| 2 | * INET An implementation of the TCP/IP protocol suite for the LINUX | 3 | * INET An implementation of the TCP/IP protocol suite for the LINUX |
| 3 | * operating system. INET is implemented using the BSD Socket | 4 | * operating system. INET is implemented using the BSD Socket |
diff --git a/net/ipv4/tcp_rate.c b/net/ipv4/tcp_rate.c index baed2186c7c6..0de693565963 100644 --- a/net/ipv4/tcp_rate.c +++ b/net/ipv4/tcp_rate.c | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-only | ||
| 1 | #include <net/tcp.h> | 2 | #include <net/tcp.h> |
| 2 | 3 | ||
| 3 | /* The bandwidth estimator estimates the rate at which the network | 4 | /* The bandwidth estimator estimates the rate at which the network |
diff --git a/net/ipv4/tcp_scalable.c b/net/ipv4/tcp_scalable.c index addc122f8818..471571e1ab26 100644 --- a/net/ipv4/tcp_scalable.c +++ b/net/ipv4/tcp_scalable.c | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-only | ||
| 1 | /* Tom Kelly's Scalable TCP | 2 | /* Tom Kelly's Scalable TCP |
| 2 | * | 3 | * |
| 3 | * See http://www.deneholme.net/tom/scalable/ | 4 | * See http://www.deneholme.net/tom/scalable/ |
diff --git a/net/ipv4/tcp_timer.c b/net/ipv4/tcp_timer.c index 2ac23da42dd2..5bad937ce779 100644 --- a/net/ipv4/tcp_timer.c +++ b/net/ipv4/tcp_timer.c | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-only | ||
| 1 | /* | 2 | /* |
| 2 | * INET An implementation of the TCP/IP protocol suite for the LINUX | 3 | * INET An implementation of the TCP/IP protocol suite for the LINUX |
| 3 | * operating system. INET is implemented using the BSD Socket | 4 | * operating system. INET is implemented using the BSD Socket |
diff --git a/net/ipv4/tcp_ulp.c b/net/ipv4/tcp_ulp.c index 95df7f7f6328..3d8a1d835471 100644 --- a/net/ipv4/tcp_ulp.c +++ b/net/ipv4/tcp_ulp.c | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-only | ||
| 1 | /* | 2 | /* |
| 2 | * Pluggable TCP upper layer protocol support. | 3 | * Pluggable TCP upper layer protocol support. |
| 3 | * | 4 | * |
diff --git a/net/ipv4/tcp_vegas.c b/net/ipv4/tcp_vegas.c index ee113ff15fd0..3f51e781562a 100644 --- a/net/ipv4/tcp_vegas.c +++ b/net/ipv4/tcp_vegas.c | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-only | ||
| 1 | /* | 2 | /* |
| 2 | * TCP Vegas congestion control | 3 | * TCP Vegas congestion control |
| 3 | * | 4 | * |
diff --git a/net/ipv4/tcp_veno.c b/net/ipv4/tcp_veno.c index 6fcf482d611b..3b36bb1a0dda 100644 --- a/net/ipv4/tcp_veno.c +++ b/net/ipv4/tcp_veno.c | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-only | ||
| 1 | /* | 2 | /* |
| 2 | * TCP Veno congestion control | 3 | * TCP Veno congestion control |
| 3 | * | 4 | * |
diff --git a/net/ipv4/tcp_westwood.c b/net/ipv4/tcp_westwood.c index bec9cafbe3f9..b2e05c4cea00 100644 --- a/net/ipv4/tcp_westwood.c +++ b/net/ipv4/tcp_westwood.c | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-only | ||
| 1 | /* | 2 | /* |
| 2 | * TCP Westwood+: end-to-end bandwidth estimation for TCP | 3 | * TCP Westwood+: end-to-end bandwidth estimation for TCP |
| 3 | * | 4 | * |
diff --git a/net/ipv4/tcp_yeah.c b/net/ipv4/tcp_yeah.c index 96e829b2e2fc..e00570dd0a69 100644 --- a/net/ipv4/tcp_yeah.c +++ b/net/ipv4/tcp_yeah.c | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-only | ||
| 1 | /* | 2 | /* |
| 2 | * | 3 | * |
| 3 | * YeAH TCP | 4 | * YeAH TCP |
diff --git a/net/ipv4/tunnel4.c b/net/ipv4/tunnel4.c index 33bf8e9c8663..c4b2ccbeba04 100644 --- a/net/ipv4/tunnel4.c +++ b/net/ipv4/tunnel4.c | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-only | ||
| 1 | /* tunnel4.c: Generic IP tunnel transformer. | 2 | /* tunnel4.c: Generic IP tunnel transformer. |
| 2 | * | 3 | * |
| 3 | * Copyright (C) 2003 David S. Miller (davem@redhat.com) | 4 | * Copyright (C) 2003 David S. Miller (davem@redhat.com) |
diff --git a/net/ipv4/udp.c b/net/ipv4/udp.c index 3c58ba02af7d..8fb250ed53d4 100644 --- a/net/ipv4/udp.c +++ b/net/ipv4/udp.c | |||
| @@ -2883,7 +2883,7 @@ static void udp4_format_sock(struct sock *sp, struct seq_file *f, | |||
| 2883 | __u16 srcp = ntohs(inet->inet_sport); | 2883 | __u16 srcp = ntohs(inet->inet_sport); |
| 2884 | 2884 | ||
| 2885 | seq_printf(f, "%5d: %08X:%04X %08X:%04X" | 2885 | seq_printf(f, "%5d: %08X:%04X %08X:%04X" |
| 2886 | " %02X %08X:%08X %02X:%08lX %08X %5u %8d %lu %d %pK %d", | 2886 | " %02X %08X:%08X %02X:%08lX %08X %5u %8d %lu %d %pK %u", |
| 2887 | bucket, src, srcp, dest, destp, sp->sk_state, | 2887 | bucket, src, srcp, dest, destp, sp->sk_state, |
| 2888 | sk_wmem_alloc_get(sp), | 2888 | sk_wmem_alloc_get(sp), |
| 2889 | udp_rqueue_get(sp), | 2889 | udp_rqueue_get(sp), |
diff --git a/net/ipv4/udp_tunnel.c b/net/ipv4/udp_tunnel.c index e93cc0379201..150e6f0fdbf5 100644 --- a/net/ipv4/udp_tunnel.c +++ b/net/ipv4/udp_tunnel.c | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-only | ||
| 1 | #include <linux/module.h> | 2 | #include <linux/module.h> |
| 2 | #include <linux/errno.h> | 3 | #include <linux/errno.h> |
| 3 | #include <linux/socket.h> | 4 | #include <linux/socket.h> |
diff --git a/net/ipv4/xfrm4_tunnel.c b/net/ipv4/xfrm4_tunnel.c index 06347dbd32c1..5d00e54cd319 100644 --- a/net/ipv4/xfrm4_tunnel.c +++ b/net/ipv4/xfrm4_tunnel.c | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-only | ||
| 1 | /* xfrm4_tunnel.c: Generic IP tunnel transformer. | 2 | /* xfrm4_tunnel.c: Generic IP tunnel transformer. |
| 2 | * | 3 | * |
| 3 | * Copyright (C) 2003 David S. Miller (davem@redhat.com) | 4 | * Copyright (C) 2003 David S. Miller (davem@redhat.com) |
diff --git a/net/ipv6/Kconfig b/net/ipv6/Kconfig index cd915e332c98..ae1344e4cec5 100644 --- a/net/ipv6/Kconfig +++ b/net/ipv6/Kconfig | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | # SPDX-License-Identifier: GPL-2.0-only | ||
| 1 | # | 2 | # |
| 2 | # IPv6 configuration | 3 | # IPv6 configuration |
| 3 | # | 4 | # |
diff --git a/net/ipv6/addrconf_core.c b/net/ipv6/addrconf_core.c index 763a947e0d14..5b1246635e02 100644 --- a/net/ipv6/addrconf_core.c +++ b/net/ipv6/addrconf_core.c | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-only | ||
| 1 | /* | 2 | /* |
| 2 | * IPv6 library code, needed by static components when full IPv6 support is | 3 | * IPv6 library code, needed by static components when full IPv6 support is |
| 3 | * not configured or static. | 4 | * not configured or static. |
diff --git a/net/ipv6/ah6.c b/net/ipv6/ah6.c index 78c974391567..68b9e92e469e 100644 --- a/net/ipv6/ah6.c +++ b/net/ipv6/ah6.c | |||
| @@ -1,19 +1,7 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-or-later | ||
| 1 | /* | 2 | /* |
| 2 | * Copyright (C)2002 USAGI/WIDE Project | 3 | * Copyright (C)2002 USAGI/WIDE Project |
| 3 | * | 4 | * |
| 4 | * This program is free software; you can redistribute it and/or modify | ||
| 5 | * it under the terms of the GNU General Public License as published by | ||
| 6 | * the Free Software Foundation; either version 2 of the License, or | ||
| 7 | * (at your option) any later version. | ||
| 8 | * | ||
| 9 | * This program is distributed in the hope that it will be useful, | ||
| 10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
| 11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
| 12 | * GNU General Public License for more details. | ||
| 13 | * | ||
| 14 | * You should have received a copy of the GNU General Public License | ||
| 15 | * along with this program; if not, see <http://www.gnu.org/licenses/>. | ||
| 16 | * | ||
| 17 | * Authors | 5 | * Authors |
| 18 | * | 6 | * |
| 19 | * Mitsuru KANDA @USAGI : IPv6 Support | 7 | * Mitsuru KANDA @USAGI : IPv6 Support |
diff --git a/net/ipv6/calipso.c b/net/ipv6/calipso.c index 1c0bb9fb76e6..221c81f85cbf 100644 --- a/net/ipv6/calipso.c +++ b/net/ipv6/calipso.c | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-or-later | ||
| 1 | /* | 2 | /* |
| 2 | * CALIPSO - Common Architecture Label IPv6 Security Option | 3 | * CALIPSO - Common Architecture Label IPv6 Security Option |
| 3 | * | 4 | * |
| @@ -6,25 +7,10 @@ | |||
| 6 | * | 7 | * |
| 7 | * Authors: Paul Moore <paul.moore@hp.com> | 8 | * Authors: Paul Moore <paul.moore@hp.com> |
| 8 | * Huw Davies <huw@codeweavers.com> | 9 | * Huw Davies <huw@codeweavers.com> |
| 9 | * | ||
| 10 | */ | 10 | */ |
| 11 | 11 | ||
| 12 | /* (c) Copyright Hewlett-Packard Development Company, L.P., 2006, 2008 | 12 | /* (c) Copyright Hewlett-Packard Development Company, L.P., 2006, 2008 |
| 13 | * (c) Copyright Huw Davies <huw@codeweavers.com>, 2015 | 13 | * (c) Copyright Huw Davies <huw@codeweavers.com>, 2015 |
| 14 | * | ||
| 15 | * This program is free software; you can redistribute it and/or modify | ||
| 16 | * it under the terms of the GNU General Public License as published by | ||
| 17 | * the Free Software Foundation; either version 2 of the License, or | ||
| 18 | * (at your option) any later version. | ||
| 19 | * | ||
| 20 | * This program is distributed in the hope that it will be useful, | ||
| 21 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
| 22 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See | ||
| 23 | * the GNU General Public License for more details. | ||
| 24 | * | ||
| 25 | * You should have received a copy of the GNU General Public License | ||
| 26 | * along with this program; if not, see <http://www.gnu.org/licenses/>. | ||
| 27 | * | ||
| 28 | */ | 14 | */ |
| 29 | 15 | ||
| 30 | #include <linux/init.h> | 16 | #include <linux/init.h> |
diff --git a/net/ipv6/datagram.c b/net/ipv6/datagram.c index ee4a4e54d016..f07fb24f4ba1 100644 --- a/net/ipv6/datagram.c +++ b/net/ipv6/datagram.c | |||
| @@ -1034,7 +1034,7 @@ void __ip6_dgram_sock_seq_show(struct seq_file *seq, struct sock *sp, | |||
| 1034 | src = &sp->sk_v6_rcv_saddr; | 1034 | src = &sp->sk_v6_rcv_saddr; |
| 1035 | seq_printf(seq, | 1035 | seq_printf(seq, |
| 1036 | "%5d: %08X%08X%08X%08X:%04X %08X%08X%08X%08X:%04X " | 1036 | "%5d: %08X%08X%08X%08X:%04X %08X%08X%08X%08X:%04X " |
| 1037 | "%02X %08X:%08X %02X:%08lX %08X %5u %8d %lu %d %pK %d\n", | 1037 | "%02X %08X:%08X %02X:%08lX %08X %5u %8d %lu %d %pK %u\n", |
| 1038 | bucket, | 1038 | bucket, |
| 1039 | src->s6_addr32[0], src->s6_addr32[1], | 1039 | src->s6_addr32[0], src->s6_addr32[1], |
| 1040 | src->s6_addr32[2], src->s6_addr32[3], srcp, | 1040 | src->s6_addr32[2], src->s6_addr32[3], srcp, |
diff --git a/net/ipv6/esp6.c b/net/ipv6/esp6.c index 239d4a65ad6e..ae6a739c5f52 100644 --- a/net/ipv6/esp6.c +++ b/net/ipv6/esp6.c | |||
| @@ -1,19 +1,7 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-or-later | ||
| 1 | /* | 2 | /* |
| 2 | * Copyright (C)2002 USAGI/WIDE Project | 3 | * Copyright (C)2002 USAGI/WIDE Project |
| 3 | * | 4 | * |
| 4 | * This program is free software; you can redistribute it and/or modify | ||
| 5 | * it under the terms of the GNU General Public License as published by | ||
| 6 | * the Free Software Foundation; either version 2 of the License, or | ||
| 7 | * (at your option) any later version. | ||
| 8 | * | ||
| 9 | * This program is distributed in the hope that it will be useful, | ||
| 10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
| 11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
| 12 | * GNU General Public License for more details. | ||
| 13 | * | ||
| 14 | * You should have received a copy of the GNU General Public License | ||
| 15 | * along with this program; if not, see <http://www.gnu.org/licenses/>. | ||
| 16 | * | ||
| 17 | * Authors | 5 | * Authors |
| 18 | * | 6 | * |
| 19 | * Mitsuru KANDA @USAGI : IPv6 Support | 7 | * Mitsuru KANDA @USAGI : IPv6 Support |
diff --git a/net/ipv6/exthdrs_core.c b/net/ipv6/exthdrs_core.c index ae365df8abf7..11a43ee4dd45 100644 --- a/net/ipv6/exthdrs_core.c +++ b/net/ipv6/exthdrs_core.c | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-only | ||
| 1 | /* | 2 | /* |
| 2 | * IPv6 library code, needed by static components when full IPv6 support is | 3 | * IPv6 library code, needed by static components when full IPv6 support is |
| 3 | * not configured or static. | 4 | * not configured or static. |
diff --git a/net/ipv6/fou6.c b/net/ipv6/fou6.c index ec4e2ed95f36..091f94184dc1 100644 --- a/net/ipv6/fou6.c +++ b/net/ipv6/fou6.c | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-only | ||
| 1 | #include <linux/module.h> | 2 | #include <linux/module.h> |
| 2 | #include <linux/errno.h> | 3 | #include <linux/errno.h> |
| 3 | #include <linux/socket.h> | 4 | #include <linux/socket.h> |
diff --git a/net/ipv6/ila/Makefile b/net/ipv6/ila/Makefile index b7739aba6e68..1bc88ed7edc5 100644 --- a/net/ipv6/ila/Makefile +++ b/net/ipv6/ila/Makefile | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | # SPDX-License-Identifier: GPL-2.0-only | ||
| 1 | # | 2 | # |
| 2 | # Makefile for ILA module | 3 | # Makefile for ILA module |
| 3 | # | 4 | # |
diff --git a/net/ipv6/ip6_fib.c b/net/ipv6/ip6_fib.c index 08e0390e001c..008421b550c6 100644 --- a/net/ipv6/ip6_fib.c +++ b/net/ipv6/ip6_fib.c | |||
| @@ -904,6 +904,12 @@ static void fib6_drop_pcpu_from(struct fib6_info *f6i, | |||
| 904 | { | 904 | { |
| 905 | int cpu; | 905 | int cpu; |
| 906 | 906 | ||
| 907 | /* Make sure rt6_make_pcpu_route() wont add other percpu routes | ||
| 908 | * while we are cleaning them here. | ||
| 909 | */ | ||
| 910 | f6i->fib6_destroying = 1; | ||
| 911 | mb(); /* paired with the cmpxchg() in rt6_make_pcpu_route() */ | ||
| 912 | |||
| 907 | /* release the reference to this fib entry from | 913 | /* release the reference to this fib entry from |
| 908 | * all of its cached pcpu routes | 914 | * all of its cached pcpu routes |
| 909 | */ | 915 | */ |
| @@ -927,6 +933,9 @@ static void fib6_purge_rt(struct fib6_info *rt, struct fib6_node *fn, | |||
| 927 | { | 933 | { |
| 928 | struct fib6_table *table = rt->fib6_table; | 934 | struct fib6_table *table = rt->fib6_table; |
| 929 | 935 | ||
| 936 | if (rt->rt6i_pcpu) | ||
| 937 | fib6_drop_pcpu_from(rt, table); | ||
| 938 | |||
| 930 | if (refcount_read(&rt->fib6_ref) != 1) { | 939 | if (refcount_read(&rt->fib6_ref) != 1) { |
| 931 | /* This route is used as dummy address holder in some split | 940 | /* This route is used as dummy address holder in some split |
| 932 | * nodes. It is not leaked, but it still holds other resources, | 941 | * nodes. It is not leaked, but it still holds other resources, |
| @@ -948,9 +957,6 @@ static void fib6_purge_rt(struct fib6_info *rt, struct fib6_node *fn, | |||
| 948 | fn = rcu_dereference_protected(fn->parent, | 957 | fn = rcu_dereference_protected(fn->parent, |
| 949 | lockdep_is_held(&table->tb6_lock)); | 958 | lockdep_is_held(&table->tb6_lock)); |
| 950 | } | 959 | } |
| 951 | |||
| 952 | if (rt->rt6i_pcpu) | ||
| 953 | fib6_drop_pcpu_from(rt, table); | ||
| 954 | } | 960 | } |
| 955 | } | 961 | } |
| 956 | 962 | ||
diff --git a/net/ipv6/ip6_udp_tunnel.c b/net/ipv6/ip6_udp_tunnel.c index 25430c991cea..58956a6b66a2 100644 --- a/net/ipv6/ip6_udp_tunnel.c +++ b/net/ipv6/ip6_udp_tunnel.c | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-only | ||
| 1 | #include <linux/module.h> | 2 | #include <linux/module.h> |
| 2 | #include <linux/errno.h> | 3 | #include <linux/errno.h> |
| 3 | #include <linux/socket.h> | 4 | #include <linux/socket.h> |
diff --git a/net/ipv6/ipcomp6.c b/net/ipv6/ipcomp6.c index 54d165b9845a..51fd33294c7c 100644 --- a/net/ipv6/ipcomp6.c +++ b/net/ipv6/ipcomp6.c | |||
| @@ -1,22 +1,10 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-or-later | ||
| 1 | /* | 2 | /* |
| 2 | * IP Payload Compression Protocol (IPComp) for IPv6 - RFC3173 | 3 | * IP Payload Compression Protocol (IPComp) for IPv6 - RFC3173 |
| 3 | * | 4 | * |
| 4 | * Copyright (C)2003 USAGI/WIDE Project | 5 | * Copyright (C)2003 USAGI/WIDE Project |
| 5 | * | 6 | * |
| 6 | * Author Mitsuru KANDA <mk@linux-ipv6.org> | 7 | * Author Mitsuru KANDA <mk@linux-ipv6.org> |
| 7 | * | ||
| 8 | * This program is free software; you can redistribute it and/or modify | ||
| 9 | * it under the terms of the GNU General Public License as published by | ||
| 10 | * the Free Software Foundation; either version 2 of the License, or | ||
| 11 | * (at your option) any later version. | ||
| 12 | * | ||
| 13 | * This program is distributed in the hope that it will be useful, | ||
| 14 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
| 15 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
| 16 | * GNU General Public License for more details. | ||
| 17 | * | ||
| 18 | * You should have received a copy of the GNU General Public License | ||
| 19 | * along with this program; if not, see <http://www.gnu.org/licenses/>. | ||
| 20 | */ | 8 | */ |
| 21 | /* | 9 | /* |
| 22 | * [Memo] | 10 | * [Memo] |
diff --git a/net/ipv6/mip6.c b/net/ipv6/mip6.c index 64f0f7be9e5e..91801432878c 100644 --- a/net/ipv6/mip6.c +++ b/net/ipv6/mip6.c | |||
| @@ -1,19 +1,7 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-or-later | ||
| 1 | /* | 2 | /* |
| 2 | * Copyright (C)2003-2006 Helsinki University of Technology | 3 | * Copyright (C)2003-2006 Helsinki University of Technology |
| 3 | * Copyright (C)2003-2006 USAGI/WIDE Project | 4 | * Copyright (C)2003-2006 USAGI/WIDE Project |
| 4 | * | ||
| 5 | * This program is free software; you can redistribute it and/or modify | ||
| 6 | * it under the terms of the GNU General Public License as published by | ||
| 7 | * the Free Software Foundation; either version 2 of the License, or | ||
| 8 | * (at your option) any later version. | ||
| 9 | * | ||
| 10 | * This program is distributed in the hope that it will be useful, | ||
| 11 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
| 12 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
| 13 | * GNU General Public License for more details. | ||
| 14 | * | ||
| 15 | * You should have received a copy of the GNU General Public License | ||
| 16 | * along with this program; if not, see <http://www.gnu.org/licenses/>. | ||
| 17 | */ | 5 | */ |
| 18 | /* | 6 | /* |
| 19 | * Authors: | 7 | * Authors: |
diff --git a/net/ipv6/netfilter/Kconfig b/net/ipv6/netfilter/Kconfig index 086fc669279e..f7c6f5be9f76 100644 --- a/net/ipv6/netfilter/Kconfig +++ b/net/ipv6/netfilter/Kconfig | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | # SPDX-License-Identifier: GPL-2.0-only | ||
| 1 | # | 2 | # |
| 2 | # IP netfilter configuration | 3 | # IP netfilter configuration |
| 3 | # | 4 | # |
diff --git a/net/ipv6/netfilter/ip6table_raw.c b/net/ipv6/netfilter/ip6table_raw.c index 710fa0806c37..3f7d4691c423 100644 --- a/net/ipv6/netfilter/ip6table_raw.c +++ b/net/ipv6/netfilter/ip6table_raw.c | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-only | ||
| 1 | /* | 2 | /* |
| 2 | * IPv6 raw table, a port of the IPv4 raw table to IPv6 | 3 | * IPv6 raw table, a port of the IPv4 raw table to IPv6 |
| 3 | * | 4 | * |
diff --git a/net/ipv6/netfilter/nf_dup_ipv6.c b/net/ipv6/netfilter/nf_dup_ipv6.c index 4a7ddeddbaab..e6c9da9866b1 100644 --- a/net/ipv6/netfilter/nf_dup_ipv6.c +++ b/net/ipv6/netfilter/nf_dup_ipv6.c | |||
| @@ -1,12 +1,9 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-or-later | ||
| 1 | /* | 2 | /* |
| 2 | * (C) 2007 by Sebastian Claßen <sebastian.classen@freenet.ag> | 3 | * (C) 2007 by Sebastian Claßen <sebastian.classen@freenet.ag> |
| 3 | * (C) 2007-2010 by Jan Engelhardt <jengelh@medozas.de> | 4 | * (C) 2007-2010 by Jan Engelhardt <jengelh@medozas.de> |
| 4 | * | 5 | * |
| 5 | * Extracted from xt_TEE.c | 6 | * Extracted from xt_TEE.c |
| 6 | * | ||
| 7 | * This program is free software; you can redistribute it and/or modify it | ||
| 8 | * under the terms of the GNU General Public License version 2 or later, as | ||
| 9 | * published by the Free Software Foundation. | ||
| 10 | */ | 7 | */ |
| 11 | #include <linux/module.h> | 8 | #include <linux/module.h> |
| 12 | #include <linux/percpu.h> | 9 | #include <linux/percpu.h> |
diff --git a/net/ipv6/netfilter/nf_flow_table_ipv6.c b/net/ipv6/netfilter/nf_flow_table_ipv6.c index c511d206bf9b..f6d9a48c7a2a 100644 --- a/net/ipv6/netfilter/nf_flow_table_ipv6.c +++ b/net/ipv6/netfilter/nf_flow_table_ipv6.c | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-only | ||
| 1 | #include <linux/kernel.h> | 2 | #include <linux/kernel.h> |
| 2 | #include <linux/init.h> | 3 | #include <linux/init.h> |
| 3 | #include <linux/module.h> | 4 | #include <linux/module.h> |
diff --git a/net/ipv6/netfilter/nf_tproxy_ipv6.c b/net/ipv6/netfilter/nf_tproxy_ipv6.c index 5dfd33af6451..34d51cd426b0 100644 --- a/net/ipv6/netfilter/nf_tproxy_ipv6.c +++ b/net/ipv6/netfilter/nf_tproxy_ipv6.c | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-only | ||
| 1 | #include <net/netfilter/nf_tproxy.h> | 2 | #include <net/netfilter/nf_tproxy.h> |
| 2 | #include <linux/module.h> | 3 | #include <linux/module.h> |
| 3 | #include <net/inet6_hashtables.h> | 4 | #include <net/inet6_hashtables.h> |
diff --git a/net/ipv6/output_core.c b/net/ipv6/output_core.c index 868ae23dbae1..af36acc1a644 100644 --- a/net/ipv6/output_core.c +++ b/net/ipv6/output_core.c | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-only | ||
| 1 | /* | 2 | /* |
| 2 | * IPv6 library code, needed by static components when full IPv6 support is | 3 | * IPv6 library code, needed by static components when full IPv6 support is |
| 3 | * not configured or static. These functions are needed by GSO/GRO implementation. | 4 | * not configured or static. These functions are needed by GSO/GRO implementation. |
diff --git a/net/ipv6/raw.c b/net/ipv6/raw.c index 84dbe21b71e5..96a3559f2a09 100644 --- a/net/ipv6/raw.c +++ b/net/ipv6/raw.c | |||
| @@ -287,7 +287,9 @@ static int rawv6_bind(struct sock *sk, struct sockaddr *uaddr, int addr_len) | |||
| 287 | /* Binding to link-local address requires an interface */ | 287 | /* Binding to link-local address requires an interface */ |
| 288 | if (!sk->sk_bound_dev_if) | 288 | if (!sk->sk_bound_dev_if) |
| 289 | goto out_unlock; | 289 | goto out_unlock; |
| 290 | } | ||
| 290 | 291 | ||
| 292 | if (sk->sk_bound_dev_if) { | ||
| 291 | err = -ENODEV; | 293 | err = -ENODEV; |
| 292 | dev = dev_get_by_index_rcu(sock_net(sk), | 294 | dev = dev_get_by_index_rcu(sock_net(sk), |
| 293 | sk->sk_bound_dev_if); | 295 | sk->sk_bound_dev_if); |
diff --git a/net/ipv6/route.c b/net/ipv6/route.c index 23a20d62daac..7a014ca877ed 100644 --- a/net/ipv6/route.c +++ b/net/ipv6/route.c | |||
| @@ -111,8 +111,8 @@ static int rt6_fill_node(struct net *net, struct sk_buff *skb, | |||
| 111 | int iif, int type, u32 portid, u32 seq, | 111 | int iif, int type, u32 portid, u32 seq, |
| 112 | unsigned int flags); | 112 | unsigned int flags); |
| 113 | static struct rt6_info *rt6_find_cached_rt(const struct fib6_result *res, | 113 | static struct rt6_info *rt6_find_cached_rt(const struct fib6_result *res, |
| 114 | struct in6_addr *daddr, | 114 | const struct in6_addr *daddr, |
| 115 | struct in6_addr *saddr); | 115 | const struct in6_addr *saddr); |
| 116 | 116 | ||
| 117 | #ifdef CONFIG_IPV6_ROUTE_INFO | 117 | #ifdef CONFIG_IPV6_ROUTE_INFO |
| 118 | static struct fib6_info *rt6_add_route_info(struct net *net, | 118 | static struct fib6_info *rt6_add_route_info(struct net *net, |
| @@ -1295,6 +1295,13 @@ static struct rt6_info *rt6_make_pcpu_route(struct net *net, | |||
| 1295 | prev = cmpxchg(p, NULL, pcpu_rt); | 1295 | prev = cmpxchg(p, NULL, pcpu_rt); |
| 1296 | BUG_ON(prev); | 1296 | BUG_ON(prev); |
| 1297 | 1297 | ||
| 1298 | if (res->f6i->fib6_destroying) { | ||
| 1299 | struct fib6_info *from; | ||
| 1300 | |||
| 1301 | from = xchg((__force struct fib6_info **)&pcpu_rt->from, NULL); | ||
| 1302 | fib6_info_release(from); | ||
| 1303 | } | ||
| 1304 | |||
| 1298 | return pcpu_rt; | 1305 | return pcpu_rt; |
| 1299 | } | 1306 | } |
| 1300 | 1307 | ||
| @@ -1566,31 +1573,44 @@ out: | |||
| 1566 | * Caller has to hold rcu_read_lock() | 1573 | * Caller has to hold rcu_read_lock() |
| 1567 | */ | 1574 | */ |
| 1568 | static struct rt6_info *rt6_find_cached_rt(const struct fib6_result *res, | 1575 | static struct rt6_info *rt6_find_cached_rt(const struct fib6_result *res, |
| 1569 | struct in6_addr *daddr, | 1576 | const struct in6_addr *daddr, |
| 1570 | struct in6_addr *saddr) | 1577 | const struct in6_addr *saddr) |
| 1571 | { | 1578 | { |
| 1579 | const struct in6_addr *src_key = NULL; | ||
| 1572 | struct rt6_exception_bucket *bucket; | 1580 | struct rt6_exception_bucket *bucket; |
| 1573 | struct in6_addr *src_key = NULL; | ||
| 1574 | struct rt6_exception *rt6_ex; | 1581 | struct rt6_exception *rt6_ex; |
| 1575 | struct rt6_info *ret = NULL; | 1582 | struct rt6_info *ret = NULL; |
| 1576 | 1583 | ||
| 1577 | bucket = rcu_dereference(res->f6i->rt6i_exception_bucket); | ||
| 1578 | |||
| 1579 | #ifdef CONFIG_IPV6_SUBTREES | 1584 | #ifdef CONFIG_IPV6_SUBTREES |
| 1580 | /* fib6i_src.plen != 0 indicates f6i is in subtree | 1585 | /* fib6i_src.plen != 0 indicates f6i is in subtree |
| 1581 | * and exception table is indexed by a hash of | 1586 | * and exception table is indexed by a hash of |
| 1582 | * both fib6_dst and fib6_src. | 1587 | * both fib6_dst and fib6_src. |
| 1583 | * Otherwise, the exception table is indexed by | 1588 | * However, the src addr used to create the hash |
| 1584 | * a hash of only fib6_dst. | 1589 | * might not be exactly the passed in saddr which |
| 1590 | * is a /128 addr from the flow. | ||
| 1591 | * So we need to use f6i->fib6_src to redo lookup | ||
| 1592 | * if the passed in saddr does not find anything. | ||
| 1593 | * (See the logic in ip6_rt_cache_alloc() on how | ||
| 1594 | * rt->rt6i_src is updated.) | ||
| 1585 | */ | 1595 | */ |
| 1586 | if (res->f6i->fib6_src.plen) | 1596 | if (res->f6i->fib6_src.plen) |
| 1587 | src_key = saddr; | 1597 | src_key = saddr; |
| 1598 | find_ex: | ||
| 1588 | #endif | 1599 | #endif |
| 1600 | bucket = rcu_dereference(res->f6i->rt6i_exception_bucket); | ||
| 1589 | rt6_ex = __rt6_find_exception_rcu(&bucket, daddr, src_key); | 1601 | rt6_ex = __rt6_find_exception_rcu(&bucket, daddr, src_key); |
| 1590 | 1602 | ||
| 1591 | if (rt6_ex && !rt6_check_expired(rt6_ex->rt6i)) | 1603 | if (rt6_ex && !rt6_check_expired(rt6_ex->rt6i)) |
| 1592 | ret = rt6_ex->rt6i; | 1604 | ret = rt6_ex->rt6i; |
| 1593 | 1605 | ||
| 1606 | #ifdef CONFIG_IPV6_SUBTREES | ||
| 1607 | /* Use fib6_src as src_key and redo lookup */ | ||
| 1608 | if (!ret && src_key && src_key != &res->f6i->fib6_src.addr) { | ||
| 1609 | src_key = &res->f6i->fib6_src.addr; | ||
| 1610 | goto find_ex; | ||
| 1611 | } | ||
| 1612 | #endif | ||
| 1613 | |||
| 1594 | return ret; | 1614 | return ret; |
| 1595 | } | 1615 | } |
| 1596 | 1616 | ||
| @@ -2665,12 +2685,10 @@ u32 ip6_mtu_from_fib6(const struct fib6_result *res, | |||
| 2665 | const struct in6_addr *daddr, | 2685 | const struct in6_addr *daddr, |
| 2666 | const struct in6_addr *saddr) | 2686 | const struct in6_addr *saddr) |
| 2667 | { | 2687 | { |
| 2668 | struct rt6_exception_bucket *bucket; | ||
| 2669 | const struct fib6_nh *nh = res->nh; | 2688 | const struct fib6_nh *nh = res->nh; |
| 2670 | struct fib6_info *f6i = res->f6i; | 2689 | struct fib6_info *f6i = res->f6i; |
| 2671 | const struct in6_addr *src_key; | ||
| 2672 | struct rt6_exception *rt6_ex; | ||
| 2673 | struct inet6_dev *idev; | 2690 | struct inet6_dev *idev; |
| 2691 | struct rt6_info *rt; | ||
| 2674 | u32 mtu = 0; | 2692 | u32 mtu = 0; |
| 2675 | 2693 | ||
| 2676 | if (unlikely(fib6_metric_locked(f6i, RTAX_MTU))) { | 2694 | if (unlikely(fib6_metric_locked(f6i, RTAX_MTU))) { |
| @@ -2679,18 +2697,10 @@ u32 ip6_mtu_from_fib6(const struct fib6_result *res, | |||
| 2679 | goto out; | 2697 | goto out; |
| 2680 | } | 2698 | } |
| 2681 | 2699 | ||
| 2682 | src_key = NULL; | 2700 | rt = rt6_find_cached_rt(res, daddr, saddr); |
| 2683 | #ifdef CONFIG_IPV6_SUBTREES | 2701 | if (unlikely(rt)) { |
| 2684 | if (f6i->fib6_src.plen) | 2702 | mtu = dst_metric_raw(&rt->dst, RTAX_MTU); |
| 2685 | src_key = saddr; | 2703 | } else { |
| 2686 | #endif | ||
| 2687 | |||
| 2688 | bucket = rcu_dereference(f6i->rt6i_exception_bucket); | ||
| 2689 | rt6_ex = __rt6_find_exception_rcu(&bucket, daddr, src_key); | ||
| 2690 | if (rt6_ex && !rt6_check_expired(rt6_ex->rt6i)) | ||
| 2691 | mtu = dst_metric_raw(&rt6_ex->rt6i->dst, RTAX_MTU); | ||
| 2692 | |||
| 2693 | if (likely(!mtu)) { | ||
| 2694 | struct net_device *dev = nh->fib_nh_dev; | 2704 | struct net_device *dev = nh->fib_nh_dev; |
| 2695 | 2705 | ||
| 2696 | mtu = IPV6_MIN_MTU; | 2706 | mtu = IPV6_MIN_MTU; |
diff --git a/net/ipv6/tunnel6.c b/net/ipv6/tunnel6.c index 1991dede7367..21e7b95ddbfa 100644 --- a/net/ipv6/tunnel6.c +++ b/net/ipv6/tunnel6.c | |||
| @@ -1,19 +1,7 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-or-later | ||
| 1 | /* | 2 | /* |
| 2 | * Copyright (C)2003,2004 USAGI/WIDE Project | 3 | * Copyright (C)2003,2004 USAGI/WIDE Project |
| 3 | * | 4 | * |
| 4 | * This program is free software; you can redistribute it and/or modify | ||
| 5 | * it under the terms of the GNU General Public License as published by | ||
| 6 | * the Free Software Foundation; either version 2 of the License, or | ||
| 7 | * (at your option) any later version. | ||
| 8 | * | ||
| 9 | * This program is distributed in the hope that it will be useful, | ||
| 10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
| 11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
| 12 | * GNU General Public License for more details. | ||
| 13 | * | ||
| 14 | * You should have received a copy of the GNU General Public License | ||
| 15 | * along with this program; if not, see <http://www.gnu.org/licenses/>. | ||
| 16 | * | ||
| 17 | * Authors Mitsuru KANDA <mk@linux-ipv6.org> | 5 | * Authors Mitsuru KANDA <mk@linux-ipv6.org> |
| 18 | * YOSHIFUJI Hideaki <yoshfuji@linux-ipv6.org> | 6 | * YOSHIFUJI Hideaki <yoshfuji@linux-ipv6.org> |
| 19 | */ | 7 | */ |
diff --git a/net/ipv6/xfrm6_tunnel.c b/net/ipv6/xfrm6_tunnel.c index d9e5f6808811..e11bdb0aaa15 100644 --- a/net/ipv6/xfrm6_tunnel.c +++ b/net/ipv6/xfrm6_tunnel.c | |||
| @@ -1,24 +1,11 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-or-later | ||
| 1 | /* | 2 | /* |
| 2 | * Copyright (C)2003,2004 USAGI/WIDE Project | 3 | * Copyright (C)2003,2004 USAGI/WIDE Project |
| 3 | * | 4 | * |
| 4 | * This program is free software; you can redistribute it and/or modify | ||
| 5 | * it under the terms of the GNU General Public License as published by | ||
| 6 | * the Free Software Foundation; either version 2 of the License, or | ||
| 7 | * (at your option) any later version. | ||
| 8 | * | ||
| 9 | * This program is distributed in the hope that it will be useful, | ||
| 10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
| 11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
| 12 | * GNU General Public License for more details. | ||
| 13 | * | ||
| 14 | * You should have received a copy of the GNU General Public License | ||
| 15 | * along with this program; if not, see <http://www.gnu.org/licenses/>. | ||
| 16 | * | ||
| 17 | * Authors Mitsuru KANDA <mk@linux-ipv6.org> | 5 | * Authors Mitsuru KANDA <mk@linux-ipv6.org> |
| 18 | * YOSHIFUJI Hideaki <yoshfuji@linux-ipv6.org> | 6 | * YOSHIFUJI Hideaki <yoshfuji@linux-ipv6.org> |
| 19 | * | 7 | * |
| 20 | * Based on net/ipv4/xfrm4_tunnel.c | 8 | * Based on net/ipv4/xfrm4_tunnel.c |
| 21 | * | ||
| 22 | */ | 9 | */ |
| 23 | #include <linux/module.h> | 10 | #include <linux/module.h> |
| 24 | #include <linux/xfrm.h> | 11 | #include <linux/xfrm.h> |
diff --git a/net/iucv/Kconfig b/net/iucv/Kconfig index 497fbe732def..5cfddc9c6498 100644 --- a/net/iucv/Kconfig +++ b/net/iucv/Kconfig | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | # SPDX-License-Identifier: GPL-2.0-only | ||
| 1 | config IUCV | 2 | config IUCV |
| 2 | depends on S390 | 3 | depends on S390 |
| 3 | def_tristate y if S390 | 4 | def_tristate y if S390 |
diff --git a/net/iucv/Makefile b/net/iucv/Makefile index 7bfdc8532675..984d7ff056ed 100644 --- a/net/iucv/Makefile +++ b/net/iucv/Makefile | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | # SPDX-License-Identifier: GPL-2.0-only | ||
| 1 | # | 2 | # |
| 2 | # Makefile for IUCV | 3 | # Makefile for IUCV |
| 3 | # | 4 | # |
diff --git a/net/iucv/af_iucv.c b/net/iucv/af_iucv.c index 78ea5a739d10..36eb8d1d9128 100644 --- a/net/iucv/af_iucv.c +++ b/net/iucv/af_iucv.c | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-only | ||
| 1 | /* | 2 | /* |
| 2 | * IUCV protocol stack for Linux on zSeries | 3 | * IUCV protocol stack for Linux on zSeries |
| 3 | * | 4 | * |
diff --git a/net/kcm/Kconfig b/net/kcm/Kconfig index 9ca83f2ade6f..bf7e970fad65 100644 --- a/net/kcm/Kconfig +++ b/net/kcm/Kconfig | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | # SPDX-License-Identifier: GPL-2.0-only | ||
| 1 | 2 | ||
| 2 | config AF_KCM | 3 | config AF_KCM |
| 3 | tristate "KCM sockets" | 4 | tristate "KCM sockets" |
diff --git a/net/kcm/Makefile b/net/kcm/Makefile index 71256133e677..6c4569221da8 100644 --- a/net/kcm/Makefile +++ b/net/kcm/Makefile | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | # SPDX-License-Identifier: GPL-2.0-only | ||
| 1 | obj-$(CONFIG_AF_KCM) += kcm.o | 2 | obj-$(CONFIG_AF_KCM) += kcm.o |
| 2 | 3 | ||
| 3 | kcm-y := kcmsock.o kcmproc.o | 4 | kcm-y := kcmsock.o kcmproc.o |
diff --git a/net/key/Makefile b/net/key/Makefile index 857608042475..ed779c22fbbb 100644 --- a/net/key/Makefile +++ b/net/key/Makefile | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | # SPDX-License-Identifier: GPL-2.0-only | ||
| 1 | # | 2 | # |
| 2 | # Makefile for the key AF. | 3 | # Makefile for the key AF. |
| 3 | # | 4 | # |
diff --git a/net/l2tp/Kconfig b/net/l2tp/Kconfig index 378c73b26093..655e0646895b 100644 --- a/net/l2tp/Kconfig +++ b/net/l2tp/Kconfig | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | # SPDX-License-Identifier: GPL-2.0-only | ||
| 1 | # | 2 | # |
| 2 | # Layer Two Tunneling Protocol (L2TP) | 3 | # Layer Two Tunneling Protocol (L2TP) |
| 3 | # | 4 | # |
diff --git a/net/l3mdev/Kconfig b/net/l3mdev/Kconfig index 5d47325037bc..de186dff8f63 100644 --- a/net/l3mdev/Kconfig +++ b/net/l3mdev/Kconfig | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | # SPDX-License-Identifier: GPL-2.0-only | ||
| 1 | # | 2 | # |
| 2 | # Configuration for L3 master device support | 3 | # Configuration for L3 master device support |
| 3 | # | 4 | # |
diff --git a/net/l3mdev/Makefile b/net/l3mdev/Makefile index 84a53a6f609a..59755a9e2f9b 100644 --- a/net/l3mdev/Makefile +++ b/net/l3mdev/Makefile | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | # SPDX-License-Identifier: GPL-2.0-only | ||
| 1 | # | 2 | # |
| 2 | # Makefile for the L3 device API | 3 | # Makefile for the L3 device API |
| 3 | # | 4 | # |
diff --git a/net/lapb/Kconfig b/net/lapb/Kconfig index 6481839b76c9..6acfc999c952 100644 --- a/net/lapb/Kconfig +++ b/net/lapb/Kconfig | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | # SPDX-License-Identifier: GPL-2.0-only | ||
| 1 | # | 2 | # |
| 2 | # LAPB Data Link Drive | 3 | # LAPB Data Link Drive |
| 3 | # | 4 | # |
diff --git a/net/lapb/Makefile b/net/lapb/Makefile index fff797dfc88c..7be91b4c0ca0 100644 --- a/net/lapb/Makefile +++ b/net/lapb/Makefile | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | # SPDX-License-Identifier: GPL-2.0-only | ||
| 1 | # | 2 | # |
| 2 | # Makefile for the Linux LAPB layer. | 3 | # Makefile for the Linux LAPB layer. |
| 3 | # | 4 | # |
diff --git a/net/lapb/lapb_iface.c b/net/lapb/lapb_iface.c index db6e0afe3a20..03f0cd872dce 100644 --- a/net/lapb/lapb_iface.c +++ b/net/lapb/lapb_iface.c | |||
| @@ -1,14 +1,9 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-or-later | ||
| 1 | /* | 2 | /* |
| 2 | * LAPB release 002 | 3 | * LAPB release 002 |
| 3 | * | 4 | * |
| 4 | * This code REQUIRES 2.1.15 or higher/ NET3.038 | 5 | * This code REQUIRES 2.1.15 or higher/ NET3.038 |
| 5 | * | 6 | * |
| 6 | * This module: | ||
| 7 | * This module is free software; you can redistribute it and/or | ||
| 8 | * modify it under the terms of the GNU General Public License | ||
| 9 | * as published by the Free Software Foundation; either version | ||
| 10 | * 2 of the License, or (at your option) any later version. | ||
| 11 | * | ||
| 12 | * History | 7 | * History |
| 13 | * LAPB 001 Jonathan Naylor Started Coding | 8 | * LAPB 001 Jonathan Naylor Started Coding |
| 14 | * LAPB 002 Jonathan Naylor New timer architecture. | 9 | * LAPB 002 Jonathan Naylor New timer architecture. |
diff --git a/net/lapb/lapb_in.c b/net/lapb/lapb_in.c index d5d2110eb717..38ae23c09e83 100644 --- a/net/lapb/lapb_in.c +++ b/net/lapb/lapb_in.c | |||
| @@ -1,14 +1,9 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-or-later | ||
| 1 | /* | 2 | /* |
| 2 | * LAPB release 002 | 3 | * LAPB release 002 |
| 3 | * | 4 | * |
| 4 | * This code REQUIRES 2.1.15 or higher/ NET3.038 | 5 | * This code REQUIRES 2.1.15 or higher/ NET3.038 |
| 5 | * | 6 | * |
| 6 | * This module: | ||
| 7 | * This module is free software; you can redistribute it and/or | ||
| 8 | * modify it under the terms of the GNU General Public License | ||
| 9 | * as published by the Free Software Foundation; either version | ||
| 10 | * 2 of the License, or (at your option) any later version. | ||
| 11 | * | ||
| 12 | * History | 7 | * History |
| 13 | * LAPB 001 Jonathan Naulor Started Coding | 8 | * LAPB 001 Jonathan Naulor Started Coding |
| 14 | * LAPB 002 Jonathan Naylor New timer architecture. | 9 | * LAPB 002 Jonathan Naylor New timer architecture. |
diff --git a/net/lapb/lapb_out.c b/net/lapb/lapb_out.c index eda726e22f64..7a4d0715d1c3 100644 --- a/net/lapb/lapb_out.c +++ b/net/lapb/lapb_out.c | |||
| @@ -1,14 +1,9 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-or-later | ||
| 1 | /* | 2 | /* |
| 2 | * LAPB release 002 | 3 | * LAPB release 002 |
| 3 | * | 4 | * |
| 4 | * This code REQUIRES 2.1.15 or higher/ NET3.038 | 5 | * This code REQUIRES 2.1.15 or higher/ NET3.038 |
| 5 | * | 6 | * |
| 6 | * This module: | ||
| 7 | * This module is free software; you can redistribute it and/or | ||
| 8 | * modify it under the terms of the GNU General Public License | ||
| 9 | * as published by the Free Software Foundation; either version | ||
| 10 | * 2 of the License, or (at your option) any later version. | ||
| 11 | * | ||
| 12 | * History | 7 | * History |
| 13 | * LAPB 001 Jonathan Naylor Started Coding | 8 | * LAPB 001 Jonathan Naylor Started Coding |
| 14 | * LAPB 002 Jonathan Naylor New timer architecture. | 9 | * LAPB 002 Jonathan Naylor New timer architecture. |
diff --git a/net/lapb/lapb_subr.c b/net/lapb/lapb_subr.c index 75efde3e616c..592a22d86a97 100644 --- a/net/lapb/lapb_subr.c +++ b/net/lapb/lapb_subr.c | |||
| @@ -1,14 +1,9 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-or-later | ||
| 1 | /* | 2 | /* |
| 2 | * LAPB release 002 | 3 | * LAPB release 002 |
| 3 | * | 4 | * |
| 4 | * This code REQUIRES 2.1.15 or higher/ NET3.038 | 5 | * This code REQUIRES 2.1.15 or higher/ NET3.038 |
| 5 | * | 6 | * |
| 6 | * This module: | ||
| 7 | * This module is free software; you can redistribute it and/or | ||
| 8 | * modify it under the terms of the GNU General Public License | ||
| 9 | * as published by the Free Software Foundation; either version | ||
| 10 | * 2 of the License, or (at your option) any later version. | ||
| 11 | * | ||
| 12 | * History | 7 | * History |
| 13 | * LAPB 001 Jonathan Naylor Started Coding | 8 | * LAPB 001 Jonathan Naylor Started Coding |
| 14 | */ | 9 | */ |
diff --git a/net/lapb/lapb_timer.c b/net/lapb/lapb_timer.c index 5d4ae01951b5..8f5b17001a07 100644 --- a/net/lapb/lapb_timer.c +++ b/net/lapb/lapb_timer.c | |||
| @@ -1,14 +1,9 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-or-later | ||
| 1 | /* | 2 | /* |
| 2 | * LAPB release 002 | 3 | * LAPB release 002 |
| 3 | * | 4 | * |
| 4 | * This code REQUIRES 2.1.15 or higher/ NET3.038 | 5 | * This code REQUIRES 2.1.15 or higher/ NET3.038 |
| 5 | * | 6 | * |
| 6 | * This module: | ||
| 7 | * This module is free software; you can redistribute it and/or | ||
| 8 | * modify it under the terms of the GNU General Public License | ||
| 9 | * as published by the Free Software Foundation; either version | ||
| 10 | * 2 of the License, or (at your option) any later version. | ||
| 11 | * | ||
| 12 | * History | 7 | * History |
| 13 | * LAPB 001 Jonathan Naylor Started Coding | 8 | * LAPB 001 Jonathan Naylor Started Coding |
| 14 | * LAPB 002 Jonathan Naylor New timer architecture. | 9 | * LAPB 002 Jonathan Naylor New timer architecture. |
diff --git a/net/llc/Kconfig b/net/llc/Kconfig index 176a6c1521a5..b0e646ac47eb 100644 --- a/net/llc/Kconfig +++ b/net/llc/Kconfig | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | # SPDX-License-Identifier: GPL-2.0-only | ||
| 1 | config LLC | 2 | config LLC |
| 2 | tristate | 3 | tristate |
| 3 | depends on NET | 4 | depends on NET |
diff --git a/net/mac80211/Kconfig b/net/mac80211/Kconfig index be471fe95048..0227cce9685e 100644 --- a/net/mac80211/Kconfig +++ b/net/mac80211/Kconfig | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | # SPDX-License-Identifier: GPL-2.0-only | ||
| 1 | config MAC80211 | 2 | config MAC80211 |
| 2 | tristate "Generic IEEE 802.11 Networking Stack (mac80211)" | 3 | tristate "Generic IEEE 802.11 Networking Stack (mac80211)" |
| 3 | depends on CFG80211 | 4 | depends on CFG80211 |
diff --git a/net/mac80211/chan.c b/net/mac80211/chan.c index d9558ffb8acf..9c94baaf693c 100644 --- a/net/mac80211/chan.c +++ b/net/mac80211/chan.c | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-only | ||
| 1 | /* | 2 | /* |
| 2 | * mac80211 - channel management | 3 | * mac80211 - channel management |
| 3 | */ | 4 | */ |
diff --git a/net/mac802154/Kconfig b/net/mac802154/Kconfig index fb45287ebac3..742624e4f7bb 100644 --- a/net/mac802154/Kconfig +++ b/net/mac802154/Kconfig | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | # SPDX-License-Identifier: GPL-2.0-only | ||
| 1 | config MAC802154 | 2 | config MAC802154 |
| 2 | tristate "Generic IEEE 802.15.4 Soft Networking Stack (mac802154)" | 3 | tristate "Generic IEEE 802.15.4 Soft Networking Stack (mac802154)" |
| 3 | depends on IEEE802154 | 4 | depends on IEEE802154 |
diff --git a/net/mac802154/Makefile b/net/mac802154/Makefile index 5857bb1e1695..4059295fdbf8 100644 --- a/net/mac802154/Makefile +++ b/net/mac802154/Makefile | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | # SPDX-License-Identifier: GPL-2.0-only | ||
| 1 | obj-$(CONFIG_MAC802154) += mac802154.o | 2 | obj-$(CONFIG_MAC802154) += mac802154.o |
| 2 | mac802154-objs := main.o rx.o tx.o mac_cmd.o mib.o \ | 3 | mac802154-objs := main.o rx.o tx.o mac_cmd.o mib.o \ |
| 3 | iface.o llsec.o util.o cfg.o trace.o | 4 | iface.o llsec.o util.o cfg.o trace.o |
diff --git a/net/mpls/Kconfig b/net/mpls/Kconfig index 801ea9098387..d9391beea980 100644 --- a/net/mpls/Kconfig +++ b/net/mpls/Kconfig | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | # SPDX-License-Identifier: GPL-2.0-only | ||
| 1 | # | 2 | # |
| 2 | # MPLS configuration | 3 | # MPLS configuration |
| 3 | # | 4 | # |
diff --git a/net/mpls/Makefile b/net/mpls/Makefile index 9ca923625016..53e33b6c72a1 100644 --- a/net/mpls/Makefile +++ b/net/mpls/Makefile | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | # SPDX-License-Identifier: GPL-2.0-only | ||
| 1 | # | 2 | # |
| 2 | # Makefile for MPLS. | 3 | # Makefile for MPLS. |
| 3 | # | 4 | # |
diff --git a/net/mpls/af_mpls.c b/net/mpls/af_mpls.c index baa098291fb0..198ec4fe4148 100644 --- a/net/mpls/af_mpls.c +++ b/net/mpls/af_mpls.c | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-only | ||
| 1 | #include <linux/types.h> | 2 | #include <linux/types.h> |
| 2 | #include <linux/skbuff.h> | 3 | #include <linux/skbuff.h> |
| 3 | #include <linux/socket.h> | 4 | #include <linux/socket.h> |
diff --git a/net/ncsi/Kconfig b/net/ncsi/Kconfig index 7f2b46108a24..2f1e5756c03a 100644 --- a/net/ncsi/Kconfig +++ b/net/ncsi/Kconfig | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | # SPDX-License-Identifier: GPL-2.0-only | ||
| 1 | # | 2 | # |
| 2 | # Configuration for NCSI support | 3 | # Configuration for NCSI support |
| 3 | # | 4 | # |
diff --git a/net/ncsi/Makefile b/net/ncsi/Makefile index 436ef68331f2..e205f3bf1e42 100644 --- a/net/ncsi/Makefile +++ b/net/ncsi/Makefile | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | # SPDX-License-Identifier: GPL-2.0-only | ||
| 1 | # | 2 | # |
| 2 | # Makefile for NCSI API | 3 | # Makefile for NCSI API |
| 3 | # | 4 | # |
diff --git a/net/netfilter/Kconfig b/net/netfilter/Kconfig index 02b281d3c167..21025c2c605b 100644 --- a/net/netfilter/Kconfig +++ b/net/netfilter/Kconfig | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | # SPDX-License-Identifier: GPL-2.0-only | ||
| 1 | menu "Core Netfilter Configuration" | 2 | menu "Core Netfilter Configuration" |
| 2 | depends on NET && INET && NETFILTER | 3 | depends on NET && INET && NETFILTER |
| 3 | 4 | ||
diff --git a/net/netfilter/ipset/Kconfig b/net/netfilter/ipset/Kconfig index 4083a8051f0f..3c273483df23 100644 --- a/net/netfilter/ipset/Kconfig +++ b/net/netfilter/ipset/Kconfig | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | # SPDX-License-Identifier: GPL-2.0-only | ||
| 1 | menuconfig IP_SET | 2 | menuconfig IP_SET |
| 2 | tristate "IP set support" | 3 | tristate "IP set support" |
| 3 | depends on INET && NETFILTER | 4 | depends on INET && NETFILTER |
diff --git a/net/netfilter/ipset/pfxlen.c b/net/netfilter/ipset/pfxlen.c index d5be9c25fad6..ff570bff9221 100644 --- a/net/netfilter/ipset/pfxlen.c +++ b/net/netfilter/ipset/pfxlen.c | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-only | ||
| 1 | #include <linux/export.h> | 2 | #include <linux/export.h> |
| 2 | #include <linux/netfilter/ipset/pfxlen.h> | 3 | #include <linux/netfilter/ipset/pfxlen.h> |
| 3 | 4 | ||
diff --git a/net/netfilter/ipvs/Kconfig b/net/netfilter/ipvs/Kconfig index 8401cefd9f65..f6f1a0d5c47d 100644 --- a/net/netfilter/ipvs/Kconfig +++ b/net/netfilter/ipvs/Kconfig | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | # SPDX-License-Identifier: GPL-2.0-only | ||
| 1 | # | 2 | # |
| 2 | # IP Virtual Server configuration | 3 | # IP Virtual Server configuration |
| 3 | # | 4 | # |
diff --git a/net/netfilter/ipvs/ip_vs_nfct.c b/net/netfilter/ipvs/ip_vs_nfct.c index eb8b9c883889..403541996952 100644 --- a/net/netfilter/ipvs/ip_vs_nfct.c +++ b/net/netfilter/ipvs/ip_vs_nfct.c | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-or-later | ||
| 1 | /* | 2 | /* |
| 2 | * ip_vs_nfct.c: Netfilter connection tracking support for IPVS | 3 | * ip_vs_nfct.c: Netfilter connection tracking support for IPVS |
| 3 | * | 4 | * |
| @@ -7,27 +8,11 @@ | |||
| 7 | * Portions Copyright (C) 2003-2010 | 8 | * Portions Copyright (C) 2003-2010 |
| 8 | * Julian Anastasov | 9 | * Julian Anastasov |
| 9 | * | 10 | * |
| 10 | * | ||
| 11 | * This code is free software; you can redistribute it and/or modify | ||
| 12 | * it under the terms of the GNU General Public License as published by | ||
| 13 | * the Free Software Foundation; either version 2 of the License, or | ||
| 14 | * (at your option) any later version. | ||
| 15 | * | ||
| 16 | * This program is distributed in the hope that it will be useful, | ||
| 17 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
| 18 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
| 19 | * GNU General Public License for more details. | ||
| 20 | * | ||
| 21 | * You should have received a copy of the GNU General Public License | ||
| 22 | * along with this program; if not, see <http://www.gnu.org/licenses/>. | ||
| 23 | * | ||
| 24 | * | ||
| 25 | * Authors: | 11 | * Authors: |
| 26 | * Ben North <ben@redfrontdoor.org> | 12 | * Ben North <ben@redfrontdoor.org> |
| 27 | * Julian Anastasov <ja@ssi.bg> Reorganize and sync with latest kernels | 13 | * Julian Anastasov <ja@ssi.bg> Reorganize and sync with latest kernels |
| 28 | * Hannes Eder <heder@google.com> Extend NFCT support for FTP, ipvs match | 14 | * Hannes Eder <heder@google.com> Extend NFCT support for FTP, ipvs match |
| 29 | * | 15 | * |
| 30 | * | ||
| 31 | * Current status: | 16 | * Current status: |
| 32 | * | 17 | * |
| 33 | * - provide conntrack confirmation for new and related connections, by | 18 | * - provide conntrack confirmation for new and related connections, by |
| @@ -43,7 +28,6 @@ | |||
| 43 | * when RELATED conntrack is created from real server (Active FTP DATA) | 28 | * when RELATED conntrack is created from real server (Active FTP DATA) |
| 44 | * - if iptables_nat is not loaded the Passive FTP will not work (the | 29 | * - if iptables_nat is not loaded the Passive FTP will not work (the |
| 45 | * PASV response can not be NAT-ed) but Active FTP should work | 30 | * PASV response can not be NAT-ed) but Active FTP should work |
| 46 | * | ||
| 47 | */ | 31 | */ |
| 48 | 32 | ||
| 49 | #define KMSG_COMPONENT "IPVS" | 33 | #define KMSG_COMPONENT "IPVS" |
diff --git a/net/netfilter/ipvs/ip_vs_pe.c b/net/netfilter/ipvs/ip_vs_pe.c index 0df17caa8af6..8e104dff7abc 100644 --- a/net/netfilter/ipvs/ip_vs_pe.c +++ b/net/netfilter/ipvs/ip_vs_pe.c | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-only | ||
| 1 | #define KMSG_COMPONENT "IPVS" | 2 | #define KMSG_COMPONENT "IPVS" |
| 2 | #define pr_fmt(fmt) KMSG_COMPONENT ": " fmt | 3 | #define pr_fmt(fmt) KMSG_COMPONENT ": " fmt |
| 3 | 4 | ||
diff --git a/net/netfilter/ipvs/ip_vs_pe_sip.c b/net/netfilter/ipvs/ip_vs_pe_sip.c index d07ef9e31c12..0ac6705a61d3 100644 --- a/net/netfilter/ipvs/ip_vs_pe_sip.c +++ b/net/netfilter/ipvs/ip_vs_pe_sip.c | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-only | ||
| 1 | #define KMSG_COMPONENT "IPVS" | 2 | #define KMSG_COMPONENT "IPVS" |
| 2 | #define pr_fmt(fmt) KMSG_COMPONENT ": " fmt | 3 | #define pr_fmt(fmt) KMSG_COMPONENT ": " fmt |
| 3 | 4 | ||
diff --git a/net/netfilter/nf_conncount.c b/net/netfilter/nf_conncount.c index 7554c56b2e63..82f36beb2e76 100644 --- a/net/netfilter/nf_conncount.c +++ b/net/netfilter/nf_conncount.c | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-only | ||
| 1 | /* | 2 | /* |
| 2 | * count the number of connections matching an arbitrary key. | 3 | * count the number of connections matching an arbitrary key. |
| 3 | * | 4 | * |
diff --git a/net/netfilter/nf_conntrack_pptp.c b/net/netfilter/nf_conntrack_pptp.c index 976f1dcb97f0..b22042ad0fca 100644 --- a/net/netfilter/nf_conntrack_pptp.c +++ b/net/netfilter/nf_conntrack_pptp.c | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-only | ||
| 1 | /* | 2 | /* |
| 2 | * Connection tracking support for PPTP (Point to Point Tunneling Protocol). | 3 | * Connection tracking support for PPTP (Point to Point Tunneling Protocol). |
| 3 | * PPTP is a a protocol for creating virtual private networks. | 4 | * PPTP is a a protocol for creating virtual private networks. |
diff --git a/net/netfilter/nf_conntrack_proto_gre.c b/net/netfilter/nf_conntrack_proto_gre.c index ee9ab10a32e4..c2eb365f1723 100644 --- a/net/netfilter/nf_conntrack_proto_gre.c +++ b/net/netfilter/nf_conntrack_proto_gre.c | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-only | ||
| 1 | /* | 2 | /* |
| 2 | * ip_conntrack_proto_gre.c - Version 3.0 | 3 | * ip_conntrack_proto_gre.c - Version 3.0 |
| 3 | * | 4 | * |
diff --git a/net/netfilter/nf_conntrack_seqadj.c b/net/netfilter/nf_conntrack_seqadj.c index 9da303461069..dc21a43cd145 100644 --- a/net/netfilter/nf_conntrack_seqadj.c +++ b/net/netfilter/nf_conntrack_seqadj.c | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-only | ||
| 1 | #include <linux/types.h> | 2 | #include <linux/types.h> |
| 2 | #include <linux/netfilter.h> | 3 | #include <linux/netfilter.h> |
| 3 | #include <net/tcp.h> | 4 | #include <net/tcp.h> |
diff --git a/net/netfilter/nf_conntrack_timeout.c b/net/netfilter/nf_conntrack_timeout.c index edac8ea4436d..13d0f4a92647 100644 --- a/net/netfilter/nf_conntrack_timeout.c +++ b/net/netfilter/nf_conntrack_timeout.c | |||
| @@ -1,10 +1,7 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-or-later | ||
| 1 | /* | 2 | /* |
| 2 | * (C) 2012 by Pablo Neira Ayuso <pablo@netfilter.org> | 3 | * (C) 2012 by Pablo Neira Ayuso <pablo@netfilter.org> |
| 3 | * (C) 2012 by Vyatta Inc. <http://www.vyatta.com> | 4 | * (C) 2012 by Vyatta Inc. <http://www.vyatta.com> |
| 4 | * | ||
| 5 | * This program is free software; you can redistribute it and/or modify | ||
| 6 | * it under the terms of the GNU General Public License version 2 as | ||
| 7 | * published by the Free Software Foundation (or any later at your option). | ||
| 8 | */ | 5 | */ |
| 9 | 6 | ||
| 10 | #include <linux/types.h> | 7 | #include <linux/types.h> |
diff --git a/net/netfilter/nf_conntrack_timestamp.c b/net/netfilter/nf_conntrack_timestamp.c index 705b912bd91f..f656d393fa92 100644 --- a/net/netfilter/nf_conntrack_timestamp.c +++ b/net/netfilter/nf_conntrack_timestamp.c | |||
| @@ -1,9 +1,6 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-or-later | ||
| 1 | /* | 2 | /* |
| 2 | * (C) 2010 Pablo Neira Ayuso <pablo@netfilter.org> | 3 | * (C) 2010 Pablo Neira Ayuso <pablo@netfilter.org> |
| 3 | * | ||
| 4 | * This program is free software; you can redistribute it and/or modify | ||
| 5 | * it under the terms of the GNU General Public License version 2 as | ||
| 6 | * published by the Free Software Foundation (or any later at your option). | ||
| 7 | */ | 4 | */ |
| 8 | 5 | ||
| 9 | #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt | 6 | #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt |
diff --git a/net/netfilter/nf_flow_table_core.c b/net/netfilter/nf_flow_table_core.c index 4469519a4879..948b4ebbe3fb 100644 --- a/net/netfilter/nf_flow_table_core.c +++ b/net/netfilter/nf_flow_table_core.c | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-only | ||
| 1 | #include <linux/kernel.h> | 2 | #include <linux/kernel.h> |
| 2 | #include <linux/init.h> | 3 | #include <linux/init.h> |
| 3 | #include <linux/module.h> | 4 | #include <linux/module.h> |
diff --git a/net/netfilter/nf_flow_table_inet.c b/net/netfilter/nf_flow_table_inet.c index 99771aa7e7ea..593357aedb36 100644 --- a/net/netfilter/nf_flow_table_inet.c +++ b/net/netfilter/nf_flow_table_inet.c | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-only | ||
| 1 | #include <linux/kernel.h> | 2 | #include <linux/kernel.h> |
| 2 | #include <linux/init.h> | 3 | #include <linux/init.h> |
| 3 | #include <linux/module.h> | 4 | #include <linux/module.h> |
diff --git a/net/netfilter/nf_flow_table_ip.c b/net/netfilter/nf_flow_table_ip.c index 0d603e20b519..96825e20368f 100644 --- a/net/netfilter/nf_flow_table_ip.c +++ b/net/netfilter/nf_flow_table_ip.c | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-only | ||
| 1 | #include <linux/kernel.h> | 2 | #include <linux/kernel.h> |
| 2 | #include <linux/init.h> | 3 | #include <linux/init.h> |
| 3 | #include <linux/module.h> | 4 | #include <linux/module.h> |
diff --git a/net/netfilter/nf_log.c b/net/netfilter/nf_log.c index a61d6df6e5f6..3574a212bdc2 100644 --- a/net/netfilter/nf_log.c +++ b/net/netfilter/nf_log.c | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-only | ||
| 1 | #include <linux/kernel.h> | 2 | #include <linux/kernel.h> |
| 2 | #include <linux/init.h> | 3 | #include <linux/init.h> |
| 3 | #include <linux/module.h> | 4 | #include <linux/module.h> |
diff --git a/net/netfilter/nfnetlink_acct.c b/net/netfilter/nfnetlink_acct.c index 02c877432d71..2481470dec36 100644 --- a/net/netfilter/nfnetlink_acct.c +++ b/net/netfilter/nfnetlink_acct.c | |||
| @@ -1,10 +1,7 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-or-later | ||
| 1 | /* | 2 | /* |
| 2 | * (C) 2011 Pablo Neira Ayuso <pablo@netfilter.org> | 3 | * (C) 2011 Pablo Neira Ayuso <pablo@netfilter.org> |
| 3 | * (C) 2011 Intra2net AG <http://www.intra2net.com> | 4 | * (C) 2011 Intra2net AG <http://www.intra2net.com> |
| 4 | * | ||
| 5 | * This program is free software; you can redistribute it and/or modify | ||
| 6 | * it under the terms of the GNU General Public License version 2 as | ||
| 7 | * published by the Free Software Foundation (or any later at your option). | ||
| 8 | */ | 5 | */ |
| 9 | #include <linux/init.h> | 6 | #include <linux/init.h> |
| 10 | #include <linux/module.h> | 7 | #include <linux/module.h> |
diff --git a/net/netfilter/nfnetlink_cthelper.c b/net/netfilter/nfnetlink_cthelper.c index 17eb473a626b..7525063c25f5 100644 --- a/net/netfilter/nfnetlink_cthelper.c +++ b/net/netfilter/nfnetlink_cthelper.c | |||
| @@ -1,10 +1,7 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-or-later | ||
| 1 | /* | 2 | /* |
| 2 | * (C) 2012 Pablo Neira Ayuso <pablo@netfilter.org> | 3 | * (C) 2012 Pablo Neira Ayuso <pablo@netfilter.org> |
| 3 | * | 4 | * |
| 4 | * This program is free software; you can redistribute it and/or modify | ||
| 5 | * it under the terms of the GNU General Public License version 2 as | ||
| 6 | * published by the Free Software Foundation (or any later at your option). | ||
| 7 | * | ||
| 8 | * This software has been sponsored by Vyatta Inc. <http://www.vyatta.com> | 5 | * This software has been sponsored by Vyatta Inc. <http://www.vyatta.com> |
| 9 | */ | 6 | */ |
| 10 | #include <linux/init.h> | 7 | #include <linux/init.h> |
diff --git a/net/netfilter/nfnetlink_cttimeout.c b/net/netfilter/nfnetlink_cttimeout.c index 427b411c5739..da915c224a82 100644 --- a/net/netfilter/nfnetlink_cttimeout.c +++ b/net/netfilter/nfnetlink_cttimeout.c | |||
| @@ -1,10 +1,7 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-or-later | ||
| 1 | /* | 2 | /* |
| 2 | * (C) 2012 by Pablo Neira Ayuso <pablo@netfilter.org> | 3 | * (C) 2012 by Pablo Neira Ayuso <pablo@netfilter.org> |
| 3 | * (C) 2012 by Vyatta Inc. <http://www.vyatta.com> | 4 | * (C) 2012 by Vyatta Inc. <http://www.vyatta.com> |
| 4 | * | ||
| 5 | * This program is free software; you can redistribute it and/or modify | ||
| 6 | * it under the terms of the GNU General Public License version 2 as | ||
| 7 | * published by the Free Software Foundation (or any later at your option). | ||
| 8 | */ | 5 | */ |
| 9 | #include <linux/init.h> | 6 | #include <linux/init.h> |
| 10 | #include <linux/module.h> | 7 | #include <linux/module.h> |
diff --git a/net/netfilter/nfnetlink_osf.c b/net/netfilter/nfnetlink_osf.c index 7b827bcb412c..f42326b40d6f 100644 --- a/net/netfilter/nfnetlink_osf.c +++ b/net/netfilter/nfnetlink_osf.c | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-only | ||
| 1 | #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt | 2 | #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt |
| 2 | #include <linux/module.h> | 3 | #include <linux/module.h> |
| 3 | #include <linux/kernel.h> | 4 | #include <linux/kernel.h> |
diff --git a/net/netfilter/nft_flow_offload.c b/net/netfilter/nft_flow_offload.c index 69d7a8439c7a..ffb25d5e8dbe 100644 --- a/net/netfilter/nft_flow_offload.c +++ b/net/netfilter/nft_flow_offload.c | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-only | ||
| 1 | #include <linux/kernel.h> | 2 | #include <linux/kernel.h> |
| 2 | #include <linux/module.h> | 3 | #include <linux/module.h> |
| 3 | #include <linux/init.h> | 4 | #include <linux/init.h> |
diff --git a/net/netfilter/nft_osf.c b/net/netfilter/nft_osf.c index 87b60d6617ef..f54d6ae15bb1 100644 --- a/net/netfilter/nft_osf.c +++ b/net/netfilter/nft_osf.c | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-only | ||
| 1 | #include <net/ip.h> | 2 | #include <net/ip.h> |
| 2 | #include <net/tcp.h> | 3 | #include <net/tcp.h> |
| 3 | 4 | ||
diff --git a/net/netfilter/xt_TEE.c b/net/netfilter/xt_TEE.c index 1dae02a97ee3..a5ebd5640457 100644 --- a/net/netfilter/xt_TEE.c +++ b/net/netfilter/xt_TEE.c | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-or-later | ||
| 1 | /* | 2 | /* |
| 2 | * "TEE" target extension for Xtables | 3 | * "TEE" target extension for Xtables |
| 3 | * Copyright © Sebastian Claßen, 2007 | 4 | * Copyright © Sebastian Claßen, 2007 |
| @@ -5,10 +6,6 @@ | |||
| 5 | * | 6 | * |
| 6 | * based on ipt_ROUTE.c from Cédric de Launois | 7 | * based on ipt_ROUTE.c from Cédric de Launois |
| 7 | * <delaunois@info.ucl.be> | 8 | * <delaunois@info.ucl.be> |
| 8 | * | ||
| 9 | * This program is free software; you can redistribute it and/or | ||
| 10 | * modify it under the terms of the GNU General Public License | ||
| 11 | * version 2 or later, as published by the Free Software Foundation. | ||
| 12 | */ | 9 | */ |
| 13 | #include <linux/module.h> | 10 | #include <linux/module.h> |
| 14 | #include <linux/skbuff.h> | 11 | #include <linux/skbuff.h> |
diff --git a/net/netfilter/xt_TRACE.c b/net/netfilter/xt_TRACE.c index 858d189a1303..349ab5609b1b 100644 --- a/net/netfilter/xt_TRACE.c +++ b/net/netfilter/xt_TRACE.c | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-only | ||
| 1 | /* This is a module which is used to mark packets for tracing. | 2 | /* This is a module which is used to mark packets for tracing. |
| 2 | */ | 3 | */ |
| 3 | #include <linux/module.h> | 4 | #include <linux/module.h> |
diff --git a/net/netfilter/xt_comment.c b/net/netfilter/xt_comment.c index 5c861d2f21ca..f095557e3ef6 100644 --- a/net/netfilter/xt_comment.c +++ b/net/netfilter/xt_comment.c | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-only | ||
| 1 | /* | 2 | /* |
| 2 | * Implements a dummy match to allow attaching comments to rules | 3 | * Implements a dummy match to allow attaching comments to rules |
| 3 | * | 4 | * |
diff --git a/net/netfilter/xt_connmark.c b/net/netfilter/xt_connmark.c index 29c38aa7f726..eec2f3a88d73 100644 --- a/net/netfilter/xt_connmark.c +++ b/net/netfilter/xt_connmark.c | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-or-later | ||
| 1 | /* | 2 | /* |
| 2 | * xt_connmark - Netfilter module to operate on connection marks | 3 | * xt_connmark - Netfilter module to operate on connection marks |
| 3 | * | 4 | * |
| @@ -5,19 +6,6 @@ | |||
| 5 | * by Henrik Nordstrom <hno@marasystems.com> | 6 | * by Henrik Nordstrom <hno@marasystems.com> |
| 6 | * Copyright © CC Computer Consultants GmbH, 2007 - 2008 | 7 | * Copyright © CC Computer Consultants GmbH, 2007 - 2008 |
| 7 | * Jan Engelhardt <jengelh@medozas.de> | 8 | * Jan Engelhardt <jengelh@medozas.de> |
| 8 | * | ||
| 9 | * This program is free software; you can redistribute it and/or modify | ||
| 10 | * it under the terms of the GNU General Public License as published by | ||
| 11 | * the Free Software Foundation; either version 2 of the License, or | ||
| 12 | * (at your option) any later version. | ||
| 13 | * | ||
| 14 | * This program is distributed in the hope that it will be useful, | ||
| 15 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
| 16 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
| 17 | * GNU General Public License for more details. | ||
| 18 | * | ||
| 19 | * You should have received a copy of the GNU General Public License | ||
| 20 | * along with this program; if not, see <http://www.gnu.org/licenses/>. | ||
| 21 | */ | 9 | */ |
| 22 | 10 | ||
| 23 | #include <linux/module.h> | 11 | #include <linux/module.h> |
diff --git a/net/netfilter/xt_hashlimit.c b/net/netfilter/xt_hashlimit.c index a30536b17ee1..2d2691dd51e0 100644 --- a/net/netfilter/xt_hashlimit.c +++ b/net/netfilter/xt_hashlimit.c | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-only | ||
| 1 | /* | 2 | /* |
| 2 | * xt_hashlimit - Netfilter module to limit the number of packets per time | 3 | * xt_hashlimit - Netfilter module to limit the number of packets per time |
| 3 | * separately for each hashbucket (sourceip/sourceport/dstip/dstport) | 4 | * separately for each hashbucket (sourceip/sourceport/dstip/dstport) |
diff --git a/net/netfilter/xt_ipvs.c b/net/netfilter/xt_ipvs.c index 1d950a6100af..253c71cc9a63 100644 --- a/net/netfilter/xt_ipvs.c +++ b/net/netfilter/xt_ipvs.c | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-only | ||
| 1 | /* | 2 | /* |
| 2 | * xt_ipvs - kernel module to match IPVS connection properties | 3 | * xt_ipvs - kernel module to match IPVS connection properties |
| 3 | * | 4 | * |
diff --git a/net/netfilter/xt_nfacct.c b/net/netfilter/xt_nfacct.c index 6b56f4170860..d0ab1adf5bff 100644 --- a/net/netfilter/xt_nfacct.c +++ b/net/netfilter/xt_nfacct.c | |||
| @@ -1,10 +1,7 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-or-later | ||
| 1 | /* | 2 | /* |
| 2 | * (C) 2011 Pablo Neira Ayuso <pablo@netfilter.org> | 3 | * (C) 2011 Pablo Neira Ayuso <pablo@netfilter.org> |
| 3 | * (C) 2011 Intra2net AG <http://www.intra2net.com> | 4 | * (C) 2011 Intra2net AG <http://www.intra2net.com> |
| 4 | * | ||
| 5 | * This program is free software; you can redistribute it and/or modify | ||
| 6 | * it under the terms of the GNU General Public License version 2 (or any | ||
| 7 | * later at your option) as published by the Free Software Foundation. | ||
| 8 | */ | 5 | */ |
| 9 | #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt | 6 | #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt |
| 10 | 7 | ||
diff --git a/net/netfilter/xt_osf.c b/net/netfilter/xt_osf.c index 7a103553d10d..e1990baf3a3b 100644 --- a/net/netfilter/xt_osf.c +++ b/net/netfilter/xt_osf.c | |||
| @@ -1,19 +1,6 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-or-later | ||
| 1 | /* | 2 | /* |
| 2 | * Copyright (c) 2003+ Evgeniy Polyakov <zbr@ioremap.net> | 3 | * Copyright (c) 2003+ Evgeniy Polyakov <zbr@ioremap.net> |
| 3 | * | ||
| 4 | * | ||
| 5 | * This program is free software; you can redistribute it and/or modify | ||
| 6 | * it under the terms of the GNU General Public License as published by | ||
| 7 | * the Free Software Foundation; either version 2 of the License, or | ||
| 8 | * (at your option) any later version. | ||
| 9 | * | ||
| 10 | * This program is distributed in the hope that it will be useful, | ||
| 11 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
| 12 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
| 13 | * GNU General Public License for more details. | ||
| 14 | * | ||
| 15 | * You should have received a copy of the GNU General Public License | ||
| 16 | * along with this program; if not, see <http://www.gnu.org/licenses/>. | ||
| 17 | */ | 4 | */ |
| 18 | #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt | 5 | #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt |
| 19 | #include <linux/module.h> | 6 | #include <linux/module.h> |
diff --git a/net/netfilter/xt_quota.c b/net/netfilter/xt_quota.c index 10d61a6eed71..4452cc93b990 100644 --- a/net/netfilter/xt_quota.c +++ b/net/netfilter/xt_quota.c | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-only | ||
| 1 | /* | 2 | /* |
| 2 | * netfilter module to enforce network quotas | 3 | * netfilter module to enforce network quotas |
| 3 | * | 4 | * |
diff --git a/net/netfilter/xt_sctp.c b/net/netfilter/xt_sctp.c index 2d2fa1d53ea6..680015ba7cb6 100644 --- a/net/netfilter/xt_sctp.c +++ b/net/netfilter/xt_sctp.c | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-only | ||
| 1 | #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt | 2 | #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt |
| 2 | #include <linux/module.h> | 3 | #include <linux/module.h> |
| 3 | #include <linux/skbuff.h> | 4 | #include <linux/skbuff.h> |
diff --git a/net/netfilter/xt_tcpudp.c b/net/netfilter/xt_tcpudp.c index ade024c90f4f..11ec2abf0c72 100644 --- a/net/netfilter/xt_tcpudp.c +++ b/net/netfilter/xt_tcpudp.c | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-only | ||
| 1 | #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt | 2 | #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt |
| 2 | #include <linux/types.h> | 3 | #include <linux/types.h> |
| 3 | #include <linux/module.h> | 4 | #include <linux/module.h> |
diff --git a/net/netfilter/xt_u32.c b/net/netfilter/xt_u32.c index a95b50342dbb..177b40d08098 100644 --- a/net/netfilter/xt_u32.c +++ b/net/netfilter/xt_u32.c | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-only | ||
| 1 | /* | 2 | /* |
| 2 | * xt_u32 - kernel module to match u32 packet content | 3 | * xt_u32 - kernel module to match u32 packet content |
| 3 | * | 4 | * |
diff --git a/net/netlabel/Kconfig b/net/netlabel/Kconfig index d9eaa30ffe3f..64280a1d3906 100644 --- a/net/netlabel/Kconfig +++ b/net/netlabel/Kconfig | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | # SPDX-License-Identifier: GPL-2.0-only | ||
| 1 | # | 2 | # |
| 2 | # NetLabel configuration | 3 | # NetLabel configuration |
| 3 | # | 4 | # |
diff --git a/net/netlabel/netlabel_addrlist.c b/net/netlabel/netlabel_addrlist.c index d0a3acfa5742..3282acf7f343 100644 --- a/net/netlabel/netlabel_addrlist.c +++ b/net/netlabel/netlabel_addrlist.c | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-or-later | ||
| 1 | /* | 2 | /* |
| 2 | * NetLabel Network Address Lists | 3 | * NetLabel Network Address Lists |
| 3 | * | 4 | * |
| @@ -7,25 +8,10 @@ | |||
| 7 | * as CIPSO and RIPSO. | 8 | * as CIPSO and RIPSO. |
| 8 | * | 9 | * |
| 9 | * Author: Paul Moore <paul@paul-moore.com> | 10 | * Author: Paul Moore <paul@paul-moore.com> |
| 10 | * | ||
| 11 | */ | 11 | */ |
| 12 | 12 | ||
| 13 | /* | 13 | /* |
| 14 | * (c) Copyright Hewlett-Packard Development Company, L.P., 2008 | 14 | * (c) Copyright Hewlett-Packard Development Company, L.P., 2008 |
| 15 | * | ||
| 16 | * This program is free software; you can redistribute it and/or modify | ||
| 17 | * it under the terms of the GNU General Public License as published by | ||
| 18 | * the Free Software Foundation; either version 2 of the License, or | ||
| 19 | * (at your option) any later version. | ||
| 20 | * | ||
| 21 | * This program is distributed in the hope that it will be useful, | ||
| 22 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
| 23 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See | ||
| 24 | * the GNU General Public License for more details. | ||
| 25 | * | ||
| 26 | * You should have received a copy of the GNU General Public License | ||
| 27 | * along with this program; if not, see <http://www.gnu.org/licenses/>. | ||
| 28 | * | ||
| 29 | */ | 15 | */ |
| 30 | 16 | ||
| 31 | #include <linux/types.h> | 17 | #include <linux/types.h> |
diff --git a/net/netlabel/netlabel_addrlist.h b/net/netlabel/netlabel_addrlist.h index ac709f0f197b..a01cf4955c09 100644 --- a/net/netlabel/netlabel_addrlist.h +++ b/net/netlabel/netlabel_addrlist.h | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | /* SPDX-License-Identifier: GPL-2.0-or-later */ | ||
| 1 | /* | 2 | /* |
| 2 | * NetLabel Network Address Lists | 3 | * NetLabel Network Address Lists |
| 3 | * | 4 | * |
| @@ -7,25 +8,10 @@ | |||
| 7 | * as CIPSO and RIPSO. | 8 | * as CIPSO and RIPSO. |
| 8 | * | 9 | * |
| 9 | * Author: Paul Moore <paul@paul-moore.com> | 10 | * Author: Paul Moore <paul@paul-moore.com> |
| 10 | * | ||
| 11 | */ | 11 | */ |
| 12 | 12 | ||
| 13 | /* | 13 | /* |
| 14 | * (c) Copyright Hewlett-Packard Development Company, L.P., 2008 | 14 | * (c) Copyright Hewlett-Packard Development Company, L.P., 2008 |
| 15 | * | ||
| 16 | * This program is free software; you can redistribute it and/or modify | ||
| 17 | * it under the terms of the GNU General Public License as published by | ||
| 18 | * the Free Software Foundation; either version 2 of the License, or | ||
| 19 | * (at your option) any later version. | ||
| 20 | * | ||
| 21 | * This program is distributed in the hope that it will be useful, | ||
| 22 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
| 23 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See | ||
| 24 | * the GNU General Public License for more details. | ||
| 25 | * | ||
| 26 | * You should have received a copy of the GNU General Public License | ||
| 27 | * along with this program; if not, see <http://www.gnu.org/licenses/>. | ||
| 28 | * | ||
| 29 | */ | 15 | */ |
| 30 | 16 | ||
| 31 | #ifndef _NETLABEL_ADDRLIST_H | 17 | #ifndef _NETLABEL_ADDRLIST_H |
diff --git a/net/netlabel/netlabel_calipso.c b/net/netlabel/netlabel_calipso.c index 1de87172885d..249da67d50a2 100644 --- a/net/netlabel/netlabel_calipso.c +++ b/net/netlabel/netlabel_calipso.c | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-or-later | ||
| 1 | /* | 2 | /* |
| 2 | * NetLabel CALIPSO/IPv6 Support | 3 | * NetLabel CALIPSO/IPv6 Support |
| 3 | * | 4 | * |
| @@ -7,25 +8,10 @@ | |||
| 7 | * | 8 | * |
| 8 | * Authors: Paul Moore <paul@paul-moore.com> | 9 | * Authors: Paul Moore <paul@paul-moore.com> |
| 9 | * Huw Davies <huw@codeweavers.com> | 10 | * Huw Davies <huw@codeweavers.com> |
| 10 | * | ||
| 11 | */ | 11 | */ |
| 12 | 12 | ||
| 13 | /* (c) Copyright Hewlett-Packard Development Company, L.P., 2006 | 13 | /* (c) Copyright Hewlett-Packard Development Company, L.P., 2006 |
| 14 | * (c) Copyright Huw Davies <huw@codeweavers.com>, 2015 | 14 | * (c) Copyright Huw Davies <huw@codeweavers.com>, 2015 |
| 15 | * | ||
| 16 | * This program is free software; you can redistribute it and/or modify | ||
| 17 | * it under the terms of the GNU General Public License as published by | ||
| 18 | * the Free Software Foundation; either version 2 of the License, or | ||
| 19 | * (at your option) any later version. | ||
| 20 | * | ||
| 21 | * This program is distributed in the hope that it will be useful, | ||
| 22 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
| 23 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See | ||
| 24 | * the GNU General Public License for more details. | ||
| 25 | * | ||
| 26 | * You should have received a copy of the GNU General Public License | ||
| 27 | * along with this program; if not, see <http://www.gnu.org/licenses/>. | ||
| 28 | * | ||
| 29 | */ | 15 | */ |
| 30 | 16 | ||
| 31 | #include <linux/types.h> | 17 | #include <linux/types.h> |
diff --git a/net/netlabel/netlabel_calipso.h b/net/netlabel/netlabel_calipso.h index 9fd291cd0fc5..ef3e9a7ab944 100644 --- a/net/netlabel/netlabel_calipso.h +++ b/net/netlabel/netlabel_calipso.h | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | /* SPDX-License-Identifier: GPL-2.0-or-later */ | ||
| 1 | /* | 2 | /* |
| 2 | * NetLabel CALIPSO Support | 3 | * NetLabel CALIPSO Support |
| 3 | * | 4 | * |
| @@ -7,25 +8,10 @@ | |||
| 7 | * | 8 | * |
| 8 | * Authors: Paul Moore <paul@paul-moore.com> | 9 | * Authors: Paul Moore <paul@paul-moore.com> |
| 9 | * Huw Davies <huw@codeweavers.com> | 10 | * Huw Davies <huw@codeweavers.com> |
| 10 | * | ||
| 11 | */ | 11 | */ |
| 12 | 12 | ||
| 13 | /* (c) Copyright Hewlett-Packard Development Company, L.P., 2006 | 13 | /* (c) Copyright Hewlett-Packard Development Company, L.P., 2006 |
| 14 | * (c) Copyright Huw Davies <huw@codeweavers.com>, 2015 | 14 | * (c) Copyright Huw Davies <huw@codeweavers.com>, 2015 |
| 15 | * | ||
| 16 | * This program is free software; you can redistribute it and/or modify | ||
| 17 | * it under the terms of the GNU General Public License as published by | ||
| 18 | * the Free Software Foundation; either version 2 of the License, or | ||
| 19 | * (at your option) any later version. | ||
| 20 | * | ||
| 21 | * This program is distributed in the hope that it will be useful, | ||
| 22 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
| 23 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See | ||
| 24 | * the GNU General Public License for more details. | ||
| 25 | * | ||
| 26 | * You should have received a copy of the GNU General Public License | ||
| 27 | * along with this program; if not, see <http://www.gnu.org/licenses/>. | ||
| 28 | * | ||
| 29 | */ | 15 | */ |
| 30 | 16 | ||
| 31 | #ifndef _NETLABEL_CALIPSO | 17 | #ifndef _NETLABEL_CALIPSO |
diff --git a/net/netlabel/netlabel_cipso_v4.c b/net/netlabel/netlabel_cipso_v4.c index 5d1121981d0b..0f16080b87cb 100644 --- a/net/netlabel/netlabel_cipso_v4.c +++ b/net/netlabel/netlabel_cipso_v4.c | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-or-later | ||
| 1 | /* | 2 | /* |
| 2 | * NetLabel CIPSO/IPv4 Support | 3 | * NetLabel CIPSO/IPv4 Support |
| 3 | * | 4 | * |
| @@ -6,25 +7,10 @@ | |||
| 6 | * protocols such as CIPSO and RIPSO. | 7 | * protocols such as CIPSO and RIPSO. |
| 7 | * | 8 | * |
| 8 | * Author: Paul Moore <paul@paul-moore.com> | 9 | * Author: Paul Moore <paul@paul-moore.com> |
| 9 | * | ||
| 10 | */ | 10 | */ |
| 11 | 11 | ||
| 12 | /* | 12 | /* |
| 13 | * (c) Copyright Hewlett-Packard Development Company, L.P., 2006 | 13 | * (c) Copyright Hewlett-Packard Development Company, L.P., 2006 |
| 14 | * | ||
| 15 | * This program is free software; you can redistribute it and/or modify | ||
| 16 | * it under the terms of the GNU General Public License as published by | ||
| 17 | * the Free Software Foundation; either version 2 of the License, or | ||
| 18 | * (at your option) any later version. | ||
| 19 | * | ||
| 20 | * This program is distributed in the hope that it will be useful, | ||
| 21 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
| 22 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See | ||
| 23 | * the GNU General Public License for more details. | ||
| 24 | * | ||
| 25 | * You should have received a copy of the GNU General Public License | ||
| 26 | * along with this program; if not, see <http://www.gnu.org/licenses/>. | ||
| 27 | * | ||
| 28 | */ | 14 | */ |
| 29 | 15 | ||
| 30 | #include <linux/types.h> | 16 | #include <linux/types.h> |
diff --git a/net/netlabel/netlabel_cipso_v4.h b/net/netlabel/netlabel_cipso_v4.h index 875826808b00..85d7ecb05728 100644 --- a/net/netlabel/netlabel_cipso_v4.h +++ b/net/netlabel/netlabel_cipso_v4.h | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | /* SPDX-License-Identifier: GPL-2.0-or-later */ | ||
| 1 | /* | 2 | /* |
| 2 | * NetLabel CIPSO/IPv4 Support | 3 | * NetLabel CIPSO/IPv4 Support |
| 3 | * | 4 | * |
| @@ -6,25 +7,10 @@ | |||
| 6 | * protocols such as CIPSO and RIPSO. | 7 | * protocols such as CIPSO and RIPSO. |
| 7 | * | 8 | * |
| 8 | * Author: Paul Moore <paul@paul-moore.com> | 9 | * Author: Paul Moore <paul@paul-moore.com> |
| 9 | * | ||
| 10 | */ | 10 | */ |
| 11 | 11 | ||
| 12 | /* | 12 | /* |
| 13 | * (c) Copyright Hewlett-Packard Development Company, L.P., 2006 | 13 | * (c) Copyright Hewlett-Packard Development Company, L.P., 2006 |
| 14 | * | ||
| 15 | * This program is free software; you can redistribute it and/or modify | ||
| 16 | * it under the terms of the GNU General Public License as published by | ||
| 17 | * the Free Software Foundation; either version 2 of the License, or | ||
| 18 | * (at your option) any later version. | ||
| 19 | * | ||
| 20 | * This program is distributed in the hope that it will be useful, | ||
| 21 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
| 22 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See | ||
| 23 | * the GNU General Public License for more details. | ||
| 24 | * | ||
| 25 | * You should have received a copy of the GNU General Public License | ||
| 26 | * along with this program; if not, see <http://www.gnu.org/licenses/>. | ||
| 27 | * | ||
| 28 | */ | 14 | */ |
| 29 | 15 | ||
| 30 | #ifndef _NETLABEL_CIPSO_V4 | 16 | #ifndef _NETLABEL_CIPSO_V4 |
diff --git a/net/netlabel/netlabel_domainhash.c b/net/netlabel/netlabel_domainhash.c index 41d0e95d171e..f5d34da0646e 100644 --- a/net/netlabel/netlabel_domainhash.c +++ b/net/netlabel/netlabel_domainhash.c | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-or-later | ||
| 1 | /* | 2 | /* |
| 2 | * NetLabel Domain Hash Table | 3 | * NetLabel Domain Hash Table |
| 3 | * | 4 | * |
| @@ -7,25 +8,10 @@ | |||
| 7 | * as CIPSO and RIPSO. | 8 | * as CIPSO and RIPSO. |
| 8 | * | 9 | * |
| 9 | * Author: Paul Moore <paul@paul-moore.com> | 10 | * Author: Paul Moore <paul@paul-moore.com> |
| 10 | * | ||
| 11 | */ | 11 | */ |
| 12 | 12 | ||
| 13 | /* | 13 | /* |
| 14 | * (c) Copyright Hewlett-Packard Development Company, L.P., 2006, 2008 | 14 | * (c) Copyright Hewlett-Packard Development Company, L.P., 2006, 2008 |
| 15 | * | ||
| 16 | * This program is free software; you can redistribute it and/or modify | ||
| 17 | * it under the terms of the GNU General Public License as published by | ||
| 18 | * the Free Software Foundation; either version 2 of the License, or | ||
| 19 | * (at your option) any later version. | ||
| 20 | * | ||
| 21 | * This program is distributed in the hope that it will be useful, | ||
| 22 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
| 23 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See | ||
| 24 | * the GNU General Public License for more details. | ||
| 25 | * | ||
| 26 | * You should have received a copy of the GNU General Public License | ||
| 27 | * along with this program; if not, see <http://www.gnu.org/licenses/>. | ||
| 28 | * | ||
| 29 | */ | 15 | */ |
| 30 | 16 | ||
| 31 | #include <linux/types.h> | 17 | #include <linux/types.h> |
diff --git a/net/netlabel/netlabel_domainhash.h b/net/netlabel/netlabel_domainhash.h index 1f9247781927..9f80972ae39b 100644 --- a/net/netlabel/netlabel_domainhash.h +++ b/net/netlabel/netlabel_domainhash.h | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | /* SPDX-License-Identifier: GPL-2.0-or-later */ | ||
| 1 | /* | 2 | /* |
| 2 | * NetLabel Domain Hash Table | 3 | * NetLabel Domain Hash Table |
| 3 | * | 4 | * |
| @@ -7,25 +8,10 @@ | |||
| 7 | * as CIPSO and RIPSO. | 8 | * as CIPSO and RIPSO. |
| 8 | * | 9 | * |
| 9 | * Author: Paul Moore <paul@paul-moore.com> | 10 | * Author: Paul Moore <paul@paul-moore.com> |
| 10 | * | ||
| 11 | */ | 11 | */ |
| 12 | 12 | ||
| 13 | /* | 13 | /* |
| 14 | * (c) Copyright Hewlett-Packard Development Company, L.P., 2006, 2008 | 14 | * (c) Copyright Hewlett-Packard Development Company, L.P., 2006, 2008 |
| 15 | * | ||
| 16 | * This program is free software; you can redistribute it and/or modify | ||
| 17 | * it under the terms of the GNU General Public License as published by | ||
| 18 | * the Free Software Foundation; either version 2 of the License, or | ||
| 19 | * (at your option) any later version. | ||
| 20 | * | ||
| 21 | * This program is distributed in the hope that it will be useful, | ||
| 22 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
| 23 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See | ||
| 24 | * the GNU General Public License for more details. | ||
| 25 | * | ||
| 26 | * You should have received a copy of the GNU General Public License | ||
| 27 | * along with this program; if not, see <http://www.gnu.org/licenses/>. | ||
| 28 | * | ||
| 29 | */ | 15 | */ |
| 30 | 16 | ||
| 31 | #ifndef _NETLABEL_DOMAINHASH_H | 17 | #ifndef _NETLABEL_DOMAINHASH_H |
diff --git a/net/netlabel/netlabel_kapi.c b/net/netlabel/netlabel_kapi.c index ee3e5b6471a6..2b0ef55cf89e 100644 --- a/net/netlabel/netlabel_kapi.c +++ b/net/netlabel/netlabel_kapi.c | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-or-later | ||
| 1 | /* | 2 | /* |
| 2 | * NetLabel Kernel API | 3 | * NetLabel Kernel API |
| 3 | * | 4 | * |
| @@ -6,25 +7,10 @@ | |||
| 6 | * as CIPSO and RIPSO. | 7 | * as CIPSO and RIPSO. |
| 7 | * | 8 | * |
| 8 | * Author: Paul Moore <paul@paul-moore.com> | 9 | * Author: Paul Moore <paul@paul-moore.com> |
| 9 | * | ||
| 10 | */ | 10 | */ |
| 11 | 11 | ||
| 12 | /* | 12 | /* |
| 13 | * (c) Copyright Hewlett-Packard Development Company, L.P., 2006, 2008 | 13 | * (c) Copyright Hewlett-Packard Development Company, L.P., 2006, 2008 |
| 14 | * | ||
| 15 | * This program is free software; you can redistribute it and/or modify | ||
| 16 | * it under the terms of the GNU General Public License as published by | ||
| 17 | * the Free Software Foundation; either version 2 of the License, or | ||
| 18 | * (at your option) any later version. | ||
| 19 | * | ||
| 20 | * This program is distributed in the hope that it will be useful, | ||
| 21 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
| 22 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See | ||
| 23 | * the GNU General Public License for more details. | ||
| 24 | * | ||
| 25 | * You should have received a copy of the GNU General Public License | ||
| 26 | * along with this program; if not, see <http://www.gnu.org/licenses/>. | ||
| 27 | * | ||
| 28 | */ | 14 | */ |
| 29 | 15 | ||
| 30 | #include <linux/init.h> | 16 | #include <linux/init.h> |
diff --git a/net/netlabel/netlabel_mgmt.c b/net/netlabel/netlabel_mgmt.c index cae04f207782..e7a25fbfaf8b 100644 --- a/net/netlabel/netlabel_mgmt.c +++ b/net/netlabel/netlabel_mgmt.c | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-or-later | ||
| 1 | /* | 2 | /* |
| 2 | * NetLabel Management Support | 3 | * NetLabel Management Support |
| 3 | * | 4 | * |
| @@ -6,25 +7,10 @@ | |||
| 6 | * protocols such as CIPSO and RIPSO. | 7 | * protocols such as CIPSO and RIPSO. |
| 7 | * | 8 | * |
| 8 | * Author: Paul Moore <paul@paul-moore.com> | 9 | * Author: Paul Moore <paul@paul-moore.com> |
| 9 | * | ||
| 10 | */ | 10 | */ |
| 11 | 11 | ||
| 12 | /* | 12 | /* |
| 13 | * (c) Copyright Hewlett-Packard Development Company, L.P., 2006, 2008 | 13 | * (c) Copyright Hewlett-Packard Development Company, L.P., 2006, 2008 |
| 14 | * | ||
| 15 | * This program is free software; you can redistribute it and/or modify | ||
| 16 | * it under the terms of the GNU General Public License as published by | ||
| 17 | * the Free Software Foundation; either version 2 of the License, or | ||
| 18 | * (at your option) any later version. | ||
| 19 | * | ||
| 20 | * This program is distributed in the hope that it will be useful, | ||
| 21 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
| 22 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See | ||
| 23 | * the GNU General Public License for more details. | ||
| 24 | * | ||
| 25 | * You should have received a copy of the GNU General Public License | ||
| 26 | * along with this program; if not, see <http://www.gnu.org/licenses/>. | ||
| 27 | * | ||
| 28 | */ | 14 | */ |
| 29 | 15 | ||
| 30 | #include <linux/types.h> | 16 | #include <linux/types.h> |
diff --git a/net/netlabel/netlabel_mgmt.h b/net/netlabel/netlabel_mgmt.h index ea01e42bca78..db20dfbbd8c4 100644 --- a/net/netlabel/netlabel_mgmt.h +++ b/net/netlabel/netlabel_mgmt.h | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | /* SPDX-License-Identifier: GPL-2.0-or-later */ | ||
| 1 | /* | 2 | /* |
| 2 | * NetLabel Management Support | 3 | * NetLabel Management Support |
| 3 | * | 4 | * |
| @@ -6,25 +7,10 @@ | |||
| 6 | * protocols such as CIPSO and RIPSO. | 7 | * protocols such as CIPSO and RIPSO. |
| 7 | * | 8 | * |
| 8 | * Author: Paul Moore <paul@paul-moore.com> | 9 | * Author: Paul Moore <paul@paul-moore.com> |
| 9 | * | ||
| 10 | */ | 10 | */ |
| 11 | 11 | ||
| 12 | /* | 12 | /* |
| 13 | * (c) Copyright Hewlett-Packard Development Company, L.P., 2006 | 13 | * (c) Copyright Hewlett-Packard Development Company, L.P., 2006 |
| 14 | * | ||
| 15 | * This program is free software; you can redistribute it and/or modify | ||
| 16 | * it under the terms of the GNU General Public License as published by | ||
| 17 | * the Free Software Foundation; either version 2 of the License, or | ||
| 18 | * (at your option) any later version. | ||
| 19 | * | ||
| 20 | * This program is distributed in the hope that it will be useful, | ||
| 21 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
| 22 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See | ||
| 23 | * the GNU General Public License for more details. | ||
| 24 | * | ||
| 25 | * You should have received a copy of the GNU General Public License | ||
| 26 | * along with this program; if not, see <http://www.gnu.org/licenses/>. | ||
| 27 | * | ||
| 28 | */ | 14 | */ |
| 29 | 15 | ||
| 30 | #ifndef _NETLABEL_MGMT_H | 16 | #ifndef _NETLABEL_MGMT_H |
diff --git a/net/netlabel/netlabel_unlabeled.c b/net/netlabel/netlabel_unlabeled.c index b87dd34e1835..d2e4ab8d1cb1 100644 --- a/net/netlabel/netlabel_unlabeled.c +++ b/net/netlabel/netlabel_unlabeled.c | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-or-later | ||
| 1 | /* | 2 | /* |
| 2 | * NetLabel Unlabeled Support | 3 | * NetLabel Unlabeled Support |
| 3 | * | 4 | * |
| @@ -6,25 +7,10 @@ | |||
| 6 | * mappings for network protocols such as CIPSO and RIPSO. | 7 | * mappings for network protocols such as CIPSO and RIPSO. |
| 7 | * | 8 | * |
| 8 | * Author: Paul Moore <paul@paul-moore.com> | 9 | * Author: Paul Moore <paul@paul-moore.com> |
| 9 | * | ||
| 10 | */ | 10 | */ |
| 11 | 11 | ||
| 12 | /* | 12 | /* |
| 13 | * (c) Copyright Hewlett-Packard Development Company, L.P., 2006 - 2008 | 13 | * (c) Copyright Hewlett-Packard Development Company, L.P., 2006 - 2008 |
| 14 | * | ||
| 15 | * This program is free software; you can redistribute it and/or modify | ||
| 16 | * it under the terms of the GNU General Public License as published by | ||
| 17 | * the Free Software Foundation; either version 2 of the License, or | ||
| 18 | * (at your option) any later version. | ||
| 19 | * | ||
| 20 | * This program is distributed in the hope that it will be useful, | ||
| 21 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
| 22 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See | ||
| 23 | * the GNU General Public License for more details. | ||
| 24 | * | ||
| 25 | * You should have received a copy of the GNU General Public License | ||
| 26 | * along with this program; if not, see <http://www.gnu.org/licenses/>. | ||
| 27 | * | ||
| 28 | */ | 14 | */ |
| 29 | 15 | ||
| 30 | #include <linux/types.h> | 16 | #include <linux/types.h> |
diff --git a/net/netlabel/netlabel_unlabeled.h b/net/netlabel/netlabel_unlabeled.h index 3a9e5dc9511b..058e3a285d56 100644 --- a/net/netlabel/netlabel_unlabeled.h +++ b/net/netlabel/netlabel_unlabeled.h | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | /* SPDX-License-Identifier: GPL-2.0-or-later */ | ||
| 1 | /* | 2 | /* |
| 2 | * NetLabel Unlabeled Support | 3 | * NetLabel Unlabeled Support |
| 3 | * | 4 | * |
| @@ -6,25 +7,10 @@ | |||
| 6 | * mappings for network protocols such as CIPSO and RIPSO. | 7 | * mappings for network protocols such as CIPSO and RIPSO. |
| 7 | * | 8 | * |
| 8 | * Author: Paul Moore <paul@paul-moore.com> | 9 | * Author: Paul Moore <paul@paul-moore.com> |
| 9 | * | ||
| 10 | */ | 10 | */ |
| 11 | 11 | ||
| 12 | /* | 12 | /* |
| 13 | * (c) Copyright Hewlett-Packard Development Company, L.P., 2006 | 13 | * (c) Copyright Hewlett-Packard Development Company, L.P., 2006 |
| 14 | * | ||
| 15 | * This program is free software; you can redistribute it and/or modify | ||
| 16 | * it under the terms of the GNU General Public License as published by | ||
| 17 | * the Free Software Foundation; either version 2 of the License, or | ||
| 18 | * (at your option) any later version. | ||
| 19 | * | ||
| 20 | * This program is distributed in the hope that it will be useful, | ||
| 21 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
| 22 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See | ||
| 23 | * the GNU General Public License for more details. | ||
| 24 | * | ||
| 25 | * You should have received a copy of the GNU General Public License | ||
| 26 | * along with this program; if not, see <http://www.gnu.org/licenses/>. | ||
| 27 | * | ||
| 28 | */ | 14 | */ |
| 29 | 15 | ||
| 30 | #ifndef _NETLABEL_UNLABELED_H | 16 | #ifndef _NETLABEL_UNLABELED_H |
diff --git a/net/netlabel/netlabel_user.c b/net/netlabel/netlabel_user.c index 4676f5bb16ae..3ed4fea2a2de 100644 --- a/net/netlabel/netlabel_user.c +++ b/net/netlabel/netlabel_user.c | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-or-later | ||
| 1 | /* | 2 | /* |
| 2 | * NetLabel NETLINK Interface | 3 | * NetLabel NETLINK Interface |
| 3 | * | 4 | * |
| @@ -6,25 +7,10 @@ | |||
| 6 | * protocols such as CIPSO and RIPSO. | 7 | * protocols such as CIPSO and RIPSO. |
| 7 | * | 8 | * |
| 8 | * Author: Paul Moore <paul@paul-moore.com> | 9 | * Author: Paul Moore <paul@paul-moore.com> |
| 9 | * | ||
| 10 | */ | 10 | */ |
| 11 | 11 | ||
| 12 | /* | 12 | /* |
| 13 | * (c) Copyright Hewlett-Packard Development Company, L.P., 2006 | 13 | * (c) Copyright Hewlett-Packard Development Company, L.P., 2006 |
| 14 | * | ||
| 15 | * This program is free software; you can redistribute it and/or modify | ||
| 16 | * it under the terms of the GNU General Public License as published by | ||
| 17 | * the Free Software Foundation; either version 2 of the License, or | ||
| 18 | * (at your option) any later version. | ||
| 19 | * | ||
| 20 | * This program is distributed in the hope that it will be useful, | ||
| 21 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
| 22 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See | ||
| 23 | * the GNU General Public License for more details. | ||
| 24 | * | ||
| 25 | * You should have received a copy of the GNU General Public License | ||
| 26 | * along with this program; if not, see <http://www.gnu.org/licenses/>. | ||
| 27 | * | ||
| 28 | */ | 14 | */ |
| 29 | 15 | ||
| 30 | #include <linux/init.h> | 16 | #include <linux/init.h> |
diff --git a/net/netlabel/netlabel_user.h b/net/netlabel/netlabel_user.h index 4a397cde1a48..3c67afce64f1 100644 --- a/net/netlabel/netlabel_user.h +++ b/net/netlabel/netlabel_user.h | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | /* SPDX-License-Identifier: GPL-2.0-or-later */ | ||
| 1 | /* | 2 | /* |
| 2 | * NetLabel NETLINK Interface | 3 | * NetLabel NETLINK Interface |
| 3 | * | 4 | * |
| @@ -6,25 +7,10 @@ | |||
| 6 | * protocols such as CIPSO and RIPSO. | 7 | * protocols such as CIPSO and RIPSO. |
| 7 | * | 8 | * |
| 8 | * Author: Paul Moore <paul@paul-moore.com> | 9 | * Author: Paul Moore <paul@paul-moore.com> |
| 9 | * | ||
| 10 | */ | 10 | */ |
| 11 | 11 | ||
| 12 | /* | 12 | /* |
| 13 | * (c) Copyright Hewlett-Packard Development Company, L.P., 2006 | 13 | * (c) Copyright Hewlett-Packard Development Company, L.P., 2006 |
| 14 | * | ||
| 15 | * This program is free software; you can redistribute it and/or modify | ||
| 16 | * it under the terms of the GNU General Public License as published by | ||
| 17 | * the Free Software Foundation; either version 2 of the License, or | ||
| 18 | * (at your option) any later version. | ||
| 19 | * | ||
| 20 | * This program is distributed in the hope that it will be useful, | ||
| 21 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
| 22 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See | ||
| 23 | * the GNU General Public License for more details. | ||
| 24 | * | ||
| 25 | * You should have received a copy of the GNU General Public License | ||
| 26 | * along with this program; if not, see <http://www.gnu.org/licenses/>. | ||
| 27 | * | ||
| 28 | */ | 14 | */ |
| 29 | 15 | ||
| 30 | #ifndef _NETLABEL_USER_H | 16 | #ifndef _NETLABEL_USER_H |
diff --git a/net/netlink/Kconfig b/net/netlink/Kconfig index 5d6e8c05b3d4..20f967974da0 100644 --- a/net/netlink/Kconfig +++ b/net/netlink/Kconfig | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | # SPDX-License-Identifier: GPL-2.0-only | ||
| 1 | # | 2 | # |
| 2 | # Netlink Sockets | 3 | # Netlink Sockets |
| 3 | # | 4 | # |
diff --git a/net/netlink/Makefile b/net/netlink/Makefile index e837917f6c03..de42df7f0068 100644 --- a/net/netlink/Makefile +++ b/net/netlink/Makefile | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | # SPDX-License-Identifier: GPL-2.0-only | ||
| 1 | # | 2 | # |
| 2 | # Makefile for the netlink driver. | 3 | # Makefile for the netlink driver. |
| 3 | # | 4 | # |
diff --git a/net/netlink/af_netlink.c b/net/netlink/af_netlink.c index 216ab915dd54..718a97d5f1fd 100644 --- a/net/netlink/af_netlink.c +++ b/net/netlink/af_netlink.c | |||
| @@ -2642,7 +2642,7 @@ static int netlink_seq_show(struct seq_file *seq, void *v) | |||
| 2642 | struct sock *s = v; | 2642 | struct sock *s = v; |
| 2643 | struct netlink_sock *nlk = nlk_sk(s); | 2643 | struct netlink_sock *nlk = nlk_sk(s); |
| 2644 | 2644 | ||
| 2645 | seq_printf(seq, "%pK %-3d %-10u %08x %-8d %-8d %-5d %-8d %-8d %-8lu\n", | 2645 | seq_printf(seq, "%pK %-3d %-10u %08x %-8d %-8d %-5d %-8d %-8u %-8lu\n", |
| 2646 | s, | 2646 | s, |
| 2647 | s->sk_protocol, | 2647 | s->sk_protocol, |
| 2648 | nlk->portid, | 2648 | nlk->portid, |
diff --git a/net/netlink/diag.c b/net/netlink/diag.c index 7dda33b9b784..c6255eac305c 100644 --- a/net/netlink/diag.c +++ b/net/netlink/diag.c | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-only | ||
| 1 | #include <linux/module.h> | 2 | #include <linux/module.h> |
| 2 | 3 | ||
| 3 | #include <net/sock.h> | 4 | #include <net/sock.h> |
diff --git a/net/netrom/Makefile b/net/netrom/Makefile index 2660f5a16991..603e36c9af2e 100644 --- a/net/netrom/Makefile +++ b/net/netrom/Makefile | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | # SPDX-License-Identifier: GPL-2.0-only | ||
| 1 | # | 2 | # |
| 2 | # Makefile for the Linux NET/ROM layer. | 3 | # Makefile for the Linux NET/ROM layer. |
| 3 | # | 4 | # |
diff --git a/net/nfc/Kconfig b/net/nfc/Kconfig index 6e0fa0cce198..9b27599870e3 100644 --- a/net/nfc/Kconfig +++ b/net/nfc/Kconfig | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | # SPDX-License-Identifier: GPL-2.0-only | ||
| 1 | # | 2 | # |
| 2 | # NFC sybsystem configuration | 3 | # NFC sybsystem configuration |
| 3 | # | 4 | # |
diff --git a/net/nfc/af_nfc.c b/net/nfc/af_nfc.c index d3e594eb36d0..4a9e72073564 100644 --- a/net/nfc/af_nfc.c +++ b/net/nfc/af_nfc.c | |||
| @@ -1,22 +1,10 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-or-later | ||
| 1 | /* | 2 | /* |
| 2 | * Copyright (C) 2011 Instituto Nokia de Tecnologia | 3 | * Copyright (C) 2011 Instituto Nokia de Tecnologia |
| 3 | * | 4 | * |
| 4 | * Authors: | 5 | * Authors: |
| 5 | * Aloisio Almeida Jr <aloisio.almeida@openbossa.org> | 6 | * Aloisio Almeida Jr <aloisio.almeida@openbossa.org> |
| 6 | * Lauro Ramos Venancio <lauro.venancio@openbossa.org> | 7 | * Lauro Ramos Venancio <lauro.venancio@openbossa.org> |
| 7 | * | ||
| 8 | * This program is free software; you can redistribute it and/or modify | ||
| 9 | * it under the terms of the GNU General Public License as published by | ||
| 10 | * the Free Software Foundation; either version 2 of the License, or | ||
| 11 | * (at your option) any later version. | ||
| 12 | * | ||
| 13 | * This program is distributed in the hope that it will be useful, | ||
| 14 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
| 15 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
| 16 | * GNU General Public License for more details. | ||
| 17 | * | ||
| 18 | * You should have received a copy of the GNU General Public License | ||
| 19 | * along with this program; if not, see <http://www.gnu.org/licenses/>. | ||
| 20 | */ | 8 | */ |
| 21 | 9 | ||
| 22 | #include <linux/nfc.h> | 10 | #include <linux/nfc.h> |
diff --git a/net/nfc/core.c b/net/nfc/core.c index 947a470f929d..c5f9c3ee82f8 100644 --- a/net/nfc/core.c +++ b/net/nfc/core.c | |||
| @@ -1,22 +1,10 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-or-later | ||
| 1 | /* | 2 | /* |
| 2 | * Copyright (C) 2011 Instituto Nokia de Tecnologia | 3 | * Copyright (C) 2011 Instituto Nokia de Tecnologia |
| 3 | * | 4 | * |
| 4 | * Authors: | 5 | * Authors: |
| 5 | * Lauro Ramos Venancio <lauro.venancio@openbossa.org> | 6 | * Lauro Ramos Venancio <lauro.venancio@openbossa.org> |
| 6 | * Aloisio Almeida Jr <aloisio.almeida@openbossa.org> | 7 | * Aloisio Almeida Jr <aloisio.almeida@openbossa.org> |
| 7 | * | ||
| 8 | * This program is free software; you can redistribute it and/or modify | ||
| 9 | * it under the terms of the GNU General Public License as published by | ||
| 10 | * the Free Software Foundation; either version 2 of the License, or | ||
| 11 | * (at your option) any later version. | ||
| 12 | * | ||
| 13 | * This program is distributed in the hope that it will be useful, | ||
| 14 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
| 15 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
| 16 | * GNU General Public License for more details. | ||
| 17 | * | ||
| 18 | * You should have received a copy of the GNU General Public License | ||
| 19 | * along with this program; if not, see <http://www.gnu.org/licenses/>. | ||
| 20 | */ | 8 | */ |
| 21 | 9 | ||
| 22 | #define pr_fmt(fmt) KBUILD_MODNAME ": %s: " fmt, __func__ | 10 | #define pr_fmt(fmt) KBUILD_MODNAME ": %s: " fmt, __func__ |
diff --git a/net/nfc/hci/Kconfig b/net/nfc/hci/Kconfig index fd67f51d18e9..97bd3a2c5c98 100644 --- a/net/nfc/hci/Kconfig +++ b/net/nfc/hci/Kconfig | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | # SPDX-License-Identifier: GPL-2.0-only | ||
| 1 | config NFC_HCI | 2 | config NFC_HCI |
| 2 | depends on NFC | 3 | depends on NFC |
| 3 | tristate "NFC HCI implementation" | 4 | tristate "NFC HCI implementation" |
diff --git a/net/nfc/hci/Makefile b/net/nfc/hci/Makefile index c5dbb6891b24..5a0aaae6fc3a 100644 --- a/net/nfc/hci/Makefile +++ b/net/nfc/hci/Makefile | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | # SPDX-License-Identifier: GPL-2.0-only | ||
| 1 | # | 2 | # |
| 2 | # Makefile for the Linux NFC HCI layer. | 3 | # Makefile for the Linux NFC HCI layer. |
| 3 | # | 4 | # |
diff --git a/net/nfc/hci/command.c b/net/nfc/hci/command.c index 844673cb7c18..e02b9befce0b 100644 --- a/net/nfc/hci/command.c +++ b/net/nfc/hci/command.c | |||
| @@ -1,18 +1,6 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-or-later | ||
| 1 | /* | 2 | /* |
| 2 | * Copyright (C) 2012 Intel Corporation. All rights reserved. | 3 | * Copyright (C) 2012 Intel Corporation. All rights reserved. |
| 3 | * | ||
| 4 | * This program is free software; you can redistribute it and/or modify | ||
| 5 | * it under the terms of the GNU General Public License as published by | ||
| 6 | * the Free Software Foundation; either version 2 of the License, or | ||
| 7 | * (at your option) any later version. | ||
| 8 | * | ||
| 9 | * This program is distributed in the hope that it will be useful, | ||
| 10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
| 11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
| 12 | * GNU General Public License for more details. | ||
| 13 | * | ||
| 14 | * You should have received a copy of the GNU General Public License | ||
| 15 | * along with this program; if not, see <http://www.gnu.org/licenses/>. | ||
| 16 | */ | 4 | */ |
| 17 | 5 | ||
| 18 | #define pr_fmt(fmt) "hci: %s: " fmt, __func__ | 6 | #define pr_fmt(fmt) "hci: %s: " fmt, __func__ |
diff --git a/net/nfc/hci/core.c b/net/nfc/hci/core.c index 19cb2e473ea6..6f1b096e601c 100644 --- a/net/nfc/hci/core.c +++ b/net/nfc/hci/core.c | |||
| @@ -1,18 +1,6 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-or-later | ||
| 1 | /* | 2 | /* |
| 2 | * Copyright (C) 2012 Intel Corporation. All rights reserved. | 3 | * Copyright (C) 2012 Intel Corporation. All rights reserved. |
| 3 | * | ||
| 4 | * This program is free software; you can redistribute it and/or modify | ||
| 5 | * it under the terms of the GNU General Public License as published by | ||
| 6 | * the Free Software Foundation; either version 2 of the License, or | ||
| 7 | * (at your option) any later version. | ||
| 8 | * | ||
| 9 | * This program is distributed in the hope that it will be useful, | ||
| 10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
| 11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
| 12 | * GNU General Public License for more details. | ||
| 13 | * | ||
| 14 | * You should have received a copy of the GNU General Public License | ||
| 15 | * along with this program; if not, see <http://www.gnu.org/licenses/>. | ||
| 16 | */ | 4 | */ |
| 17 | 5 | ||
| 18 | #define pr_fmt(fmt) "hci: %s: " fmt, __func__ | 6 | #define pr_fmt(fmt) "hci: %s: " fmt, __func__ |
diff --git a/net/nfc/hci/hci.h b/net/nfc/hci/hci.h index ab4c8e80b1ad..a59c96fcfa5d 100644 --- a/net/nfc/hci/hci.h +++ b/net/nfc/hci/hci.h | |||
| @@ -1,18 +1,6 @@ | |||
| 1 | /* SPDX-License-Identifier: GPL-2.0-or-later */ | ||
| 1 | /* | 2 | /* |
| 2 | * Copyright (C) 2012 Intel Corporation. All rights reserved. | 3 | * Copyright (C) 2012 Intel Corporation. All rights reserved. |
| 3 | * | ||
| 4 | * This program is free software; you can redistribute it and/or modify | ||
| 5 | * it under the terms of the GNU General Public License as published by | ||
| 6 | * the Free Software Foundation; either version 2 of the License, or | ||
| 7 | * (at your option) any later version. | ||
| 8 | * | ||
| 9 | * This program is distributed in the hope that it will be useful, | ||
| 10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
| 11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
| 12 | * GNU General Public License for more details. | ||
| 13 | * | ||
| 14 | * You should have received a copy of the GNU General Public License | ||
| 15 | * along with this program; if not, see <http://www.gnu.org/licenses/>. | ||
| 16 | */ | 4 | */ |
| 17 | 5 | ||
| 18 | #ifndef __LOCAL_HCI_H | 6 | #ifndef __LOCAL_HCI_H |
diff --git a/net/nfc/hci/hcp.c b/net/nfc/hci/hcp.c index 1fe725d66085..05c60988f59a 100644 --- a/net/nfc/hci/hcp.c +++ b/net/nfc/hci/hcp.c | |||
| @@ -1,18 +1,6 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-or-later | ||
| 1 | /* | 2 | /* |
| 2 | * Copyright (C) 2012 Intel Corporation. All rights reserved. | 3 | * Copyright (C) 2012 Intel Corporation. All rights reserved. |
| 3 | * | ||
| 4 | * This program is free software; you can redistribute it and/or modify | ||
| 5 | * it under the terms of the GNU General Public License as published by | ||
| 6 | * the Free Software Foundation; either version 2 of the License, or | ||
| 7 | * (at your option) any later version. | ||
| 8 | * | ||
| 9 | * This program is distributed in the hope that it will be useful, | ||
| 10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
| 11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
| 12 | * GNU General Public License for more details. | ||
| 13 | * | ||
| 14 | * You should have received a copy of the GNU General Public License | ||
| 15 | * along with this program; if not, see <http://www.gnu.org/licenses/>. | ||
| 16 | */ | 4 | */ |
| 17 | 5 | ||
| 18 | #define pr_fmt(fmt) "hci: %s: " fmt, __func__ | 6 | #define pr_fmt(fmt) "hci: %s: " fmt, __func__ |
diff --git a/net/nfc/llcp.h b/net/nfc/llcp.h index 1f68724d44d3..97853c9cefc7 100644 --- a/net/nfc/llcp.h +++ b/net/nfc/llcp.h | |||
| @@ -1,18 +1,6 @@ | |||
| 1 | /* SPDX-License-Identifier: GPL-2.0-or-later */ | ||
| 1 | /* | 2 | /* |
| 2 | * Copyright (C) 2011 Intel Corporation. All rights reserved. | 3 | * Copyright (C) 2011 Intel Corporation. All rights reserved. |
| 3 | * | ||
| 4 | * This program is free software; you can redistribute it and/or modify | ||
| 5 | * it under the terms of the GNU General Public License as published by | ||
| 6 | * the Free Software Foundation; either version 2 of the License, or | ||
| 7 | * (at your option) any later version. | ||
| 8 | * | ||
| 9 | * This program is distributed in the hope that it will be useful, | ||
| 10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
| 11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
| 12 | * GNU General Public License for more details. | ||
| 13 | * | ||
| 14 | * You should have received a copy of the GNU General Public License | ||
| 15 | * along with this program; if not, see <http://www.gnu.org/licenses/>. | ||
| 16 | */ | 4 | */ |
| 17 | 5 | ||
| 18 | enum llcp_state { | 6 | enum llcp_state { |
diff --git a/net/nfc/llcp_commands.c b/net/nfc/llcp_commands.c index d1fc019e932e..475061c79c44 100644 --- a/net/nfc/llcp_commands.c +++ b/net/nfc/llcp_commands.c | |||
| @@ -1,18 +1,6 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-or-later | ||
| 1 | /* | 2 | /* |
| 2 | * Copyright (C) 2011 Intel Corporation. All rights reserved. | 3 | * Copyright (C) 2011 Intel Corporation. All rights reserved. |
| 3 | * | ||
| 4 | * This program is free software; you can redistribute it and/or modify | ||
| 5 | * it under the terms of the GNU General Public License as published by | ||
| 6 | * the Free Software Foundation; either version 2 of the License, or | ||
| 7 | * (at your option) any later version. | ||
| 8 | * | ||
| 9 | * This program is distributed in the hope that it will be useful, | ||
| 10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
| 11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
| 12 | * GNU General Public License for more details. | ||
| 13 | * | ||
| 14 | * You should have received a copy of the GNU General Public License | ||
| 15 | * along with this program; if not, see <http://www.gnu.org/licenses/>. | ||
| 16 | */ | 4 | */ |
| 17 | 5 | ||
| 18 | #define pr_fmt(fmt) "llcp: %s: " fmt, __func__ | 6 | #define pr_fmt(fmt) "llcp: %s: " fmt, __func__ |
diff --git a/net/nfc/llcp_core.c b/net/nfc/llcp_core.c index 4fa015208aab..cc997518f79d 100644 --- a/net/nfc/llcp_core.c +++ b/net/nfc/llcp_core.c | |||
| @@ -1,19 +1,7 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-or-later | ||
| 1 | /* | 2 | /* |
| 2 | * Copyright (C) 2011 Intel Corporation. All rights reserved. | 3 | * Copyright (C) 2011 Intel Corporation. All rights reserved. |
| 3 | * Copyright (C) 2014 Marvell International Ltd. | 4 | * Copyright (C) 2014 Marvell International Ltd. |
| 4 | * | ||
| 5 | * This program is free software; you can redistribute it and/or modify | ||
| 6 | * it under the terms of the GNU General Public License as published by | ||
| 7 | * the Free Software Foundation; either version 2 of the License, or | ||
| 8 | * (at your option) any later version. | ||
| 9 | * | ||
| 10 | * This program is distributed in the hope that it will be useful, | ||
| 11 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
| 12 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
| 13 | * GNU General Public License for more details. | ||
| 14 | * | ||
| 15 | * You should have received a copy of the GNU General Public License | ||
| 16 | * along with this program; if not, see <http://www.gnu.org/licenses/>. | ||
| 17 | */ | 5 | */ |
| 18 | 6 | ||
| 19 | #define pr_fmt(fmt) "llcp: %s: " fmt, __func__ | 7 | #define pr_fmt(fmt) "llcp: %s: " fmt, __func__ |
diff --git a/net/nfc/llcp_sock.c b/net/nfc/llcp_sock.c index 17dcd0b5eb32..9b8742947aff 100644 --- a/net/nfc/llcp_sock.c +++ b/net/nfc/llcp_sock.c | |||
| @@ -1,18 +1,6 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-or-later | ||
| 1 | /* | 2 | /* |
| 2 | * Copyright (C) 2011 Intel Corporation. All rights reserved. | 3 | * Copyright (C) 2011 Intel Corporation. All rights reserved. |
| 3 | * | ||
| 4 | * This program is free software; you can redistribute it and/or modify | ||
| 5 | * it under the terms of the GNU General Public License as published by | ||
| 6 | * the Free Software Foundation; either version 2 of the License, or | ||
| 7 | * (at your option) any later version. | ||
| 8 | * | ||
| 9 | * This program is distributed in the hope that it will be useful, | ||
| 10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
| 11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
| 12 | * GNU General Public License for more details. | ||
| 13 | * | ||
| 14 | * You should have received a copy of the GNU General Public License | ||
| 15 | * along with this program; if not, see <http://www.gnu.org/licenses/>. | ||
| 16 | */ | 4 | */ |
| 17 | 5 | ||
| 18 | #define pr_fmt(fmt) "llcp: %s: " fmt, __func__ | 6 | #define pr_fmt(fmt) "llcp: %s: " fmt, __func__ |
diff --git a/net/nfc/nci/Kconfig b/net/nfc/nci/Kconfig index 85d4819ab657..ff1f295fef5a 100644 --- a/net/nfc/nci/Kconfig +++ b/net/nfc/nci/Kconfig | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | # SPDX-License-Identifier: GPL-2.0-only | ||
| 1 | config NFC_NCI | 2 | config NFC_NCI |
| 2 | depends on NFC | 3 | depends on NFC |
| 3 | tristate "NCI protocol support" | 4 | tristate "NCI protocol support" |
diff --git a/net/nfc/netlink.c b/net/nfc/netlink.c index 04a8e47674ec..1180b3e58a0a 100644 --- a/net/nfc/netlink.c +++ b/net/nfc/netlink.c | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-or-later | ||
| 1 | /* | 2 | /* |
| 2 | * Copyright (C) 2011 Instituto Nokia de Tecnologia | 3 | * Copyright (C) 2011 Instituto Nokia de Tecnologia |
| 3 | * | 4 | * |
| @@ -10,19 +11,6 @@ | |||
| 10 | * | 11 | * |
| 11 | * Copyright 2006-2010 Johannes Berg <johannes@sipsolutions.net> | 12 | * Copyright 2006-2010 Johannes Berg <johannes@sipsolutions.net> |
| 12 | * Copyright 2013-2014 Intel Mobile Communications GmbH | 13 | * Copyright 2013-2014 Intel Mobile Communications GmbH |
| 13 | * | ||
| 14 | * This program is free software; you can redistribute it and/or modify | ||
| 15 | * it under the terms of the GNU General Public License as published by | ||
| 16 | * the Free Software Foundation; either version 2 of the License, or | ||
| 17 | * (at your option) any later version. | ||
| 18 | * | ||
| 19 | * This program is distributed in the hope that it will be useful, | ||
| 20 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
| 21 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
| 22 | * GNU General Public License for more details. | ||
| 23 | * | ||
| 24 | * You should have received a copy of the GNU General Public License | ||
| 25 | * along with this program; if not, see <http://www.gnu.org/licenses/>. | ||
| 26 | */ | 14 | */ |
| 27 | 15 | ||
| 28 | #define pr_fmt(fmt) KBUILD_MODNAME ": %s: " fmt, __func__ | 16 | #define pr_fmt(fmt) KBUILD_MODNAME ": %s: " fmt, __func__ |
diff --git a/net/nfc/nfc.h b/net/nfc/nfc.h index 6c6f76b370b1..889fefd64e56 100644 --- a/net/nfc/nfc.h +++ b/net/nfc/nfc.h | |||
| @@ -1,22 +1,10 @@ | |||
| 1 | /* SPDX-License-Identifier: GPL-2.0-or-later */ | ||
| 1 | /* | 2 | /* |
| 2 | * Copyright (C) 2011 Instituto Nokia de Tecnologia | 3 | * Copyright (C) 2011 Instituto Nokia de Tecnologia |
| 3 | * | 4 | * |
| 4 | * Authors: | 5 | * Authors: |
| 5 | * Lauro Ramos Venancio <lauro.venancio@openbossa.org> | 6 | * Lauro Ramos Venancio <lauro.venancio@openbossa.org> |
| 6 | * Aloisio Almeida Jr <aloisio.almeida@openbossa.org> | 7 | * Aloisio Almeida Jr <aloisio.almeida@openbossa.org> |
| 7 | * | ||
| 8 | * This program is free software; you can redistribute it and/or modify | ||
| 9 | * it under the terms of the GNU General Public License as published by | ||
| 10 | * the Free Software Foundation; either version 2 of the License, or | ||
| 11 | * (at your option) any later version. | ||
| 12 | * | ||
| 13 | * This program is distributed in the hope that it will be useful, | ||
| 14 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
| 15 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
| 16 | * GNU General Public License for more details. | ||
| 17 | * | ||
| 18 | * You should have received a copy of the GNU General Public License | ||
| 19 | * along with this program; if not, see <http://www.gnu.org/licenses/>. | ||
| 20 | */ | 8 | */ |
| 21 | 9 | ||
| 22 | #ifndef __LOCAL_NFC_H | 10 | #ifndef __LOCAL_NFC_H |
diff --git a/net/nfc/rawsock.c b/net/nfc/rawsock.c index e2188deb08dc..ba5ffd3badd3 100644 --- a/net/nfc/rawsock.c +++ b/net/nfc/rawsock.c | |||
| @@ -1,22 +1,10 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-or-later | ||
| 1 | /* | 2 | /* |
| 2 | * Copyright (C) 2011 Instituto Nokia de Tecnologia | 3 | * Copyright (C) 2011 Instituto Nokia de Tecnologia |
| 3 | * | 4 | * |
| 4 | * Authors: | 5 | * Authors: |
| 5 | * Aloisio Almeida Jr <aloisio.almeida@openbossa.org> | 6 | * Aloisio Almeida Jr <aloisio.almeida@openbossa.org> |
| 6 | * Lauro Ramos Venancio <lauro.venancio@openbossa.org> | 7 | * Lauro Ramos Venancio <lauro.venancio@openbossa.org> |
| 7 | * | ||
| 8 | * This program is free software; you can redistribute it and/or modify | ||
| 9 | * it under the terms of the GNU General Public License as published by | ||
| 10 | * the Free Software Foundation; either version 2 of the License, or | ||
| 11 | * (at your option) any later version. | ||
| 12 | * | ||
| 13 | * This program is distributed in the hope that it will be useful, | ||
| 14 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
| 15 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
| 16 | * GNU General Public License for more details. | ||
| 17 | * | ||
| 18 | * You should have received a copy of the GNU General Public License | ||
| 19 | * along with this program; if not, see <http://www.gnu.org/licenses/>. | ||
| 20 | */ | 8 | */ |
| 21 | 9 | ||
| 22 | #define pr_fmt(fmt) KBUILD_MODNAME ": %s: " fmt, __func__ | 10 | #define pr_fmt(fmt) KBUILD_MODNAME ": %s: " fmt, __func__ |
diff --git a/net/nsh/Kconfig b/net/nsh/Kconfig index bafc3dd60c2c..19af948ab6f0 100644 --- a/net/nsh/Kconfig +++ b/net/nsh/Kconfig | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | # SPDX-License-Identifier: GPL-2.0-only | ||
| 1 | menuconfig NET_NSH | 2 | menuconfig NET_NSH |
| 2 | tristate "Network Service Header (NSH) protocol" | 3 | tristate "Network Service Header (NSH) protocol" |
| 3 | default n | 4 | default n |
diff --git a/net/nsh/Makefile b/net/nsh/Makefile index c93c787385ca..de34a615a158 100644 --- a/net/nsh/Makefile +++ b/net/nsh/Makefile | |||
| @@ -1 +1,2 @@ | |||
| 1 | # SPDX-License-Identifier: GPL-2.0-only | ||
| 1 | obj-$(CONFIG_NET_NSH) += nsh.o | 2 | obj-$(CONFIG_NET_NSH) += nsh.o |
diff --git a/net/openvswitch/Kconfig b/net/openvswitch/Kconfig index ac1cc6e38170..22d7d5604b4c 100644 --- a/net/openvswitch/Kconfig +++ b/net/openvswitch/Kconfig | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | # SPDX-License-Identifier: GPL-2.0-only | ||
| 1 | # | 2 | # |
| 2 | # Open vSwitch | 3 | # Open vSwitch |
| 3 | # | 4 | # |
diff --git a/net/packet/Kconfig b/net/packet/Kconfig index cc55b35f80e5..b4abad135294 100644 --- a/net/packet/Kconfig +++ b/net/packet/Kconfig | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | # SPDX-License-Identifier: GPL-2.0-only | ||
| 1 | # | 2 | # |
| 2 | # Packet configuration | 3 | # Packet configuration |
| 3 | # | 4 | # |
diff --git a/net/packet/Makefile b/net/packet/Makefile index 9df61347a3c3..97d502e21b68 100644 --- a/net/packet/Makefile +++ b/net/packet/Makefile | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | # SPDX-License-Identifier: GPL-2.0-only | ||
| 1 | # | 2 | # |
| 2 | # Makefile for the packet AF. | 3 | # Makefile for the packet AF. |
| 3 | # | 4 | # |
diff --git a/net/packet/diag.c b/net/packet/diag.c index 98abfd8644a4..07812ae5ca07 100644 --- a/net/packet/diag.c +++ b/net/packet/diag.c | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-only | ||
| 1 | #include <linux/module.h> | 2 | #include <linux/module.h> |
| 2 | #include <linux/sock_diag.h> | 3 | #include <linux/sock_diag.h> |
| 3 | #include <linux/net.h> | 4 | #include <linux/net.h> |
diff --git a/net/phonet/Kconfig b/net/phonet/Kconfig index 6ec7d55b1769..07f2c217210b 100644 --- a/net/phonet/Kconfig +++ b/net/phonet/Kconfig | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | # SPDX-License-Identifier: GPL-2.0-only | ||
| 1 | # | 2 | # |
| 2 | # Phonet protocol | 3 | # Phonet protocol |
| 3 | # | 4 | # |
diff --git a/net/phonet/socket.c b/net/phonet/socket.c index 30187990257f..2567af2fbd6f 100644 --- a/net/phonet/socket.c +++ b/net/phonet/socket.c | |||
| @@ -607,7 +607,7 @@ static int pn_sock_seq_show(struct seq_file *seq, void *v) | |||
| 607 | struct pn_sock *pn = pn_sk(sk); | 607 | struct pn_sock *pn = pn_sk(sk); |
| 608 | 608 | ||
| 609 | seq_printf(seq, "%2d %04X:%04X:%02X %02X %08X:%08X %5d %lu " | 609 | seq_printf(seq, "%2d %04X:%04X:%02X %02X %08X:%08X %5d %lu " |
| 610 | "%d %pK %d", | 610 | "%d %pK %u", |
| 611 | sk->sk_protocol, pn->sobject, pn->dobject, | 611 | sk->sk_protocol, pn->sobject, pn->dobject, |
| 612 | pn->resource, sk->sk_state, | 612 | pn->resource, sk->sk_state, |
| 613 | sk_wmem_alloc_get(sk), sk_rmem_alloc_get(sk), | 613 | sk_wmem_alloc_get(sk), sk_rmem_alloc_get(sk), |
diff --git a/net/psample/Kconfig b/net/psample/Kconfig index d850246a6059..028f514a9c60 100644 --- a/net/psample/Kconfig +++ b/net/psample/Kconfig | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | # SPDX-License-Identifier: GPL-2.0-only | ||
| 1 | # | 2 | # |
| 2 | # psample packet sampling configuration | 3 | # psample packet sampling configuration |
| 3 | # | 4 | # |
diff --git a/net/psample/Makefile b/net/psample/Makefile index 609b0a79c9f3..a04367b9e8eb 100644 --- a/net/psample/Makefile +++ b/net/psample/Makefile | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | # SPDX-License-Identifier: GPL-2.0-only | ||
| 1 | # | 2 | # |
| 2 | # Makefile for the psample netlink channel | 3 | # Makefile for the psample netlink channel |
| 3 | # | 4 | # |
diff --git a/net/qrtr/Kconfig b/net/qrtr/Kconfig index 1944834d225c..63f89cc6e82c 100644 --- a/net/qrtr/Kconfig +++ b/net/qrtr/Kconfig | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | # SPDX-License-Identifier: GPL-2.0-only | ||
| 1 | # Qualcomm IPC Router configuration | 2 | # Qualcomm IPC Router configuration |
| 2 | # | 3 | # |
| 3 | 4 | ||
diff --git a/net/qrtr/Makefile b/net/qrtr/Makefile index be012bfd3e52..1c6d6c120fb7 100644 --- a/net/qrtr/Makefile +++ b/net/qrtr/Makefile | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | # SPDX-License-Identifier: GPL-2.0-only | ||
| 1 | obj-$(CONFIG_QRTR) := qrtr.o | 2 | obj-$(CONFIG_QRTR) := qrtr.o |
| 2 | 3 | ||
| 3 | obj-$(CONFIG_QRTR_SMD) += qrtr-smd.o | 4 | obj-$(CONFIG_QRTR_SMD) += qrtr-smd.o |
diff --git a/net/qrtr/qrtr.c b/net/qrtr/qrtr.c index 801872a2e7aa..05fa058bee59 100644 --- a/net/qrtr/qrtr.c +++ b/net/qrtr/qrtr.c | |||
| @@ -733,8 +733,8 @@ static int qrtr_sendmsg(struct socket *sock, struct msghdr *msg, size_t len) | |||
| 733 | struct sock *sk = sock->sk; | 733 | struct sock *sk = sock->sk; |
| 734 | struct qrtr_node *node; | 734 | struct qrtr_node *node; |
| 735 | struct sk_buff *skb; | 735 | struct sk_buff *skb; |
| 736 | u32 type = 0; | ||
| 737 | size_t plen; | 736 | size_t plen; |
| 737 | u32 type; | ||
| 738 | int rc; | 738 | int rc; |
| 739 | 739 | ||
| 740 | if (msg->msg_flags & ~(MSG_DONTWAIT)) | 740 | if (msg->msg_flags & ~(MSG_DONTWAIT)) |
| @@ -809,9 +809,9 @@ static int qrtr_sendmsg(struct socket *sock, struct msghdr *msg, size_t len) | |||
| 809 | 809 | ||
| 810 | /* control messages already require the type as 'command' */ | 810 | /* control messages already require the type as 'command' */ |
| 811 | skb_copy_bits(skb, 0, &qrtr_type, 4); | 811 | skb_copy_bits(skb, 0, &qrtr_type, 4); |
| 812 | type = le32_to_cpu(qrtr_type); | ||
| 813 | } | 812 | } |
| 814 | 813 | ||
| 814 | type = le32_to_cpu(qrtr_type); | ||
| 815 | rc = enqueue_fn(node, skb, type, &ipc->us, addr); | 815 | rc = enqueue_fn(node, skb, type, &ipc->us, addr); |
| 816 | if (rc >= 0) | 816 | if (rc >= 0) |
| 817 | rc = len; | 817 | rc = len; |
diff --git a/net/rds/Kconfig b/net/rds/Kconfig index b9092111bc45..38ea7f0f2699 100644 --- a/net/rds/Kconfig +++ b/net/rds/Kconfig | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | # SPDX-License-Identifier: GPL-2.0-only | ||
| 1 | 2 | ||
| 2 | config RDS | 3 | config RDS |
| 3 | tristate "The Reliable Datagram Sockets Protocol" | 4 | tristate "The Reliable Datagram Sockets Protocol" |
diff --git a/net/rfkill/Kconfig b/net/rfkill/Kconfig index 060600b03fad..83a7af8982bb 100644 --- a/net/rfkill/Kconfig +++ b/net/rfkill/Kconfig | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | # SPDX-License-Identifier: GPL-2.0-only | ||
| 1 | # | 2 | # |
| 2 | # RF switch subsystem configuration | 3 | # RF switch subsystem configuration |
| 3 | # | 4 | # |
diff --git a/net/rfkill/Makefile b/net/rfkill/Makefile index 87a80aded0b3..dc47b6174ec5 100644 --- a/net/rfkill/Makefile +++ b/net/rfkill/Makefile | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | # SPDX-License-Identifier: GPL-2.0-only | ||
| 1 | # | 2 | # |
| 2 | # Makefile for the RF switch subsystem. | 3 | # Makefile for the RF switch subsystem. |
| 3 | # | 4 | # |
diff --git a/net/rfkill/core.c b/net/rfkill/core.c index 742e186bfadb..f9b08a6d8dbe 100644 --- a/net/rfkill/core.c +++ b/net/rfkill/core.c | |||
| @@ -1,20 +1,8 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-or-later | ||
| 1 | /* | 2 | /* |
| 2 | * Copyright (C) 2006 - 2007 Ivo van Doorn | 3 | * Copyright (C) 2006 - 2007 Ivo van Doorn |
| 3 | * Copyright (C) 2007 Dmitry Torokhov | 4 | * Copyright (C) 2007 Dmitry Torokhov |
| 4 | * Copyright 2009 Johannes Berg <johannes@sipsolutions.net> | 5 | * Copyright 2009 Johannes Berg <johannes@sipsolutions.net> |
| 5 | * | ||
| 6 | * This program is free software; you can redistribute it and/or modify | ||
| 7 | * it under the terms of the GNU General Public License as published by | ||
| 8 | * the Free Software Foundation; either version 2 of the License, or | ||
| 9 | * (at your option) any later version. | ||
| 10 | * | ||
| 11 | * This program is distributed in the hope that it will be useful, | ||
| 12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
| 13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
| 14 | * GNU General Public License for more details. | ||
| 15 | * | ||
| 16 | * You should have received a copy of the GNU General Public License | ||
| 17 | * along with this program; if not, see <http://www.gnu.org/licenses/>. | ||
| 18 | */ | 6 | */ |
| 19 | 7 | ||
| 20 | #include <linux/kernel.h> | 8 | #include <linux/kernel.h> |
diff --git a/net/rfkill/rfkill-gpio.c b/net/rfkill/rfkill-gpio.c index 41a5cd4b5c0e..f5afc9bcdee6 100644 --- a/net/rfkill/rfkill-gpio.c +++ b/net/rfkill/rfkill-gpio.c | |||
| @@ -1,19 +1,6 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-or-later | ||
| 1 | /* | 2 | /* |
| 2 | * Copyright (c) 2011, NVIDIA Corporation. | 3 | * Copyright (c) 2011, NVIDIA Corporation. |
| 3 | * | ||
| 4 | * This program is free software; you can redistribute it and/or modify | ||
| 5 | * it under the terms of the GNU General Public License as published by | ||
| 6 | * the Free Software Foundation; either version 2 of the License, or | ||
| 7 | * (at your option) any later version. | ||
| 8 | * | ||
| 9 | * This program is distributed in the hope that it will be useful, but WITHOUT | ||
| 10 | * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or | ||
| 11 | * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for | ||
| 12 | * more details. | ||
| 13 | * | ||
| 14 | * You should have received a copy of the GNU General Public License along | ||
| 15 | * with this program; if not, write to the Free Software Foundation, Inc., | ||
| 16 | * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. | ||
| 17 | */ | 4 | */ |
| 18 | 5 | ||
| 19 | #include <linux/init.h> | 6 | #include <linux/init.h> |
diff --git a/net/rose/Makefile b/net/rose/Makefile index fa248116fd5b..3e6638f5ba57 100644 --- a/net/rose/Makefile +++ b/net/rose/Makefile | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | # SPDX-License-Identifier: GPL-2.0-only | ||
| 1 | # | 2 | # |
| 2 | # Makefile for the Linux Rose (X.25 PLP) layer. | 3 | # Makefile for the Linux Rose (X.25 PLP) layer. |
| 3 | # | 4 | # |
diff --git a/net/rxrpc/Kconfig b/net/rxrpc/Kconfig index 86f8853a038c..05610c3a3d25 100644 --- a/net/rxrpc/Kconfig +++ b/net/rxrpc/Kconfig | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | # SPDX-License-Identifier: GPL-2.0-only | ||
| 1 | # | 2 | # |
| 2 | # RxRPC session sockets | 3 | # RxRPC session sockets |
| 3 | # | 4 | # |
diff --git a/net/rxrpc/conn_client.c b/net/rxrpc/conn_client.c index 5cf5595a14d8..aea82f909c60 100644 --- a/net/rxrpc/conn_client.c +++ b/net/rxrpc/conn_client.c | |||
| @@ -1,14 +1,9 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-or-later | ||
| 1 | /* Client connection-specific management code. | 2 | /* Client connection-specific management code. |
| 2 | * | 3 | * |
| 3 | * Copyright (C) 2016 Red Hat, Inc. All Rights Reserved. | 4 | * Copyright (C) 2016 Red Hat, Inc. All Rights Reserved. |
| 4 | * Written by David Howells (dhowells@redhat.com) | 5 | * Written by David Howells (dhowells@redhat.com) |
| 5 | * | 6 | * |
| 6 | * This program is free software; you can redistribute it and/or | ||
| 7 | * modify it under the terms of the GNU General Public Licence | ||
| 8 | * as published by the Free Software Foundation; either version | ||
| 9 | * 2 of the Licence, or (at your option) any later version. | ||
| 10 | * | ||
| 11 | * | ||
| 12 | * Client connections need to be cached for a little while after they've made a | 7 | * Client connections need to be cached for a little while after they've made a |
| 13 | * call so as to handle retransmitted DATA packets in case the server didn't | 8 | * call so as to handle retransmitted DATA packets in case the server didn't |
| 14 | * receive the final ACK or terminating ABORT we sent it. | 9 | * receive the final ACK or terminating ABORT we sent it. |
diff --git a/net/rxrpc/conn_service.c b/net/rxrpc/conn_service.c index 80773a50c755..b30e13f6d95f 100644 --- a/net/rxrpc/conn_service.c +++ b/net/rxrpc/conn_service.c | |||
| @@ -1,12 +1,8 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-or-later | ||
| 1 | /* Service connection management | 2 | /* Service connection management |
| 2 | * | 3 | * |
| 3 | * Copyright (C) 2016 Red Hat, Inc. All Rights Reserved. | 4 | * Copyright (C) 2016 Red Hat, Inc. All Rights Reserved. |
| 4 | * Written by David Howells (dhowells@redhat.com) | 5 | * Written by David Howells (dhowells@redhat.com) |
| 5 | * | ||
| 6 | * This program is free software; you can redistribute it and/or | ||
| 7 | * modify it under the terms of the GNU General Public Licence | ||
| 8 | * as published by the Free Software Foundation; either version | ||
| 9 | * 2 of the Licence, or (at your option) any later version. | ||
| 10 | */ | 6 | */ |
| 11 | 7 | ||
| 12 | #include <linux/slab.h> | 8 | #include <linux/slab.h> |
diff --git a/net/rxrpc/insecure.c b/net/rxrpc/insecure.c index af276f173b10..a29d26c273b5 100644 --- a/net/rxrpc/insecure.c +++ b/net/rxrpc/insecure.c | |||
| @@ -1,12 +1,8 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-or-later | ||
| 1 | /* Null security operations. | 2 | /* Null security operations. |
| 2 | * | 3 | * |
| 3 | * Copyright (C) 2016 Red Hat, Inc. All Rights Reserved. | 4 | * Copyright (C) 2016 Red Hat, Inc. All Rights Reserved. |
| 4 | * Written by David Howells (dhowells@redhat.com) | 5 | * Written by David Howells (dhowells@redhat.com) |
| 5 | * | ||
| 6 | * This program is free software; you can redistribute it and/or | ||
| 7 | * modify it under the terms of the GNU General Public Licence | ||
| 8 | * as published by the Free Software Foundation; either version | ||
| 9 | * 2 of the Licence, or (at your option) any later version. | ||
| 10 | */ | 6 | */ |
| 11 | 7 | ||
| 12 | #include <net/af_rxrpc.h> | 8 | #include <net/af_rxrpc.h> |
diff --git a/net/rxrpc/local_object.c b/net/rxrpc/local_object.c index b67dec945498..b1c71bad510b 100644 --- a/net/rxrpc/local_object.c +++ b/net/rxrpc/local_object.c | |||
| @@ -1,12 +1,8 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-or-later | ||
| 1 | /* Local endpoint object management | 2 | /* Local endpoint object management |
| 2 | * | 3 | * |
| 3 | * Copyright (C) 2016 Red Hat, Inc. All Rights Reserved. | 4 | * Copyright (C) 2016 Red Hat, Inc. All Rights Reserved. |
| 4 | * Written by David Howells (dhowells@redhat.com) | 5 | * Written by David Howells (dhowells@redhat.com) |
| 5 | * | ||
| 6 | * This program is free software; you can redistribute it and/or | ||
| 7 | * modify it under the terms of the GNU General Public Licence | ||
| 8 | * as published by the Free Software Foundation; either version | ||
| 9 | * 2 of the Licence, or (at your option) any later version. | ||
| 10 | */ | 6 | */ |
| 11 | 7 | ||
| 12 | #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt | 8 | #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt |
diff --git a/net/rxrpc/misc.c b/net/rxrpc/misc.c index c1d9e7fd7448..214405f75346 100644 --- a/net/rxrpc/misc.c +++ b/net/rxrpc/misc.c | |||
| @@ -1,12 +1,8 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-or-later | ||
| 1 | /* Miscellaneous bits | 2 | /* Miscellaneous bits |
| 2 | * | 3 | * |
| 3 | * Copyright (C) 2016 Red Hat, Inc. All Rights Reserved. | 4 | * Copyright (C) 2016 Red Hat, Inc. All Rights Reserved. |
| 4 | * Written by David Howells (dhowells@redhat.com) | 5 | * Written by David Howells (dhowells@redhat.com) |
| 5 | * | ||
| 6 | * This program is free software; you can redistribute it and/or | ||
| 7 | * modify it under the terms of the GNU General Public Licence | ||
| 8 | * as published by the Free Software Foundation; either version | ||
| 9 | * 2 of the Licence, or (at your option) any later version. | ||
| 10 | */ | 6 | */ |
| 11 | 7 | ||
| 12 | #include <linux/kernel.h> | 8 | #include <linux/kernel.h> |
diff --git a/net/rxrpc/net_ns.c b/net/rxrpc/net_ns.c index fd7eba8467fa..b312aab80fed 100644 --- a/net/rxrpc/net_ns.c +++ b/net/rxrpc/net_ns.c | |||
| @@ -1,12 +1,8 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-or-later | ||
| 1 | /* rxrpc network namespace handling. | 2 | /* rxrpc network namespace handling. |
| 2 | * | 3 | * |
| 3 | * Copyright (C) 2017 Red Hat, Inc. All Rights Reserved. | 4 | * Copyright (C) 2017 Red Hat, Inc. All Rights Reserved. |
| 4 | * Written by David Howells (dhowells@redhat.com) | 5 | * Written by David Howells (dhowells@redhat.com) |
| 5 | * | ||
| 6 | * This program is free software; you can redistribute it and/or | ||
| 7 | * modify it under the terms of the GNU General Public Licence | ||
| 8 | * as published by the Free Software Foundation; either version | ||
| 9 | * 2 of the Licence, or (at your option) any later version. | ||
| 10 | */ | 6 | */ |
| 11 | 7 | ||
| 12 | #include <linux/proc_fs.h> | 8 | #include <linux/proc_fs.h> |
diff --git a/net/rxrpc/sendmsg.c b/net/rxrpc/sendmsg.c index 45a05d9a27fa..5d3f33ce6d41 100644 --- a/net/rxrpc/sendmsg.c +++ b/net/rxrpc/sendmsg.c | |||
| @@ -1,12 +1,8 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-or-later | ||
| 1 | /* AF_RXRPC sendmsg() implementation. | 2 | /* AF_RXRPC sendmsg() implementation. |
| 2 | * | 3 | * |
| 3 | * Copyright (C) 2007, 2016 Red Hat, Inc. All Rights Reserved. | 4 | * Copyright (C) 2007, 2016 Red Hat, Inc. All Rights Reserved. |
| 4 | * Written by David Howells (dhowells@redhat.com) | 5 | * Written by David Howells (dhowells@redhat.com) |
| 5 | * | ||
| 6 | * This program is free software; you can redistribute it and/or | ||
| 7 | * modify it under the terms of the GNU General Public Licence | ||
| 8 | * as published by the Free Software Foundation; either version | ||
| 9 | * 2 of the Licence, or (at your option) any later version. | ||
| 10 | */ | 6 | */ |
| 11 | 7 | ||
| 12 | #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt | 8 | #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt |
diff --git a/net/rxrpc/sysctl.c b/net/rxrpc/sysctl.c index d75bd15151e6..1e3fa67d91aa 100644 --- a/net/rxrpc/sysctl.c +++ b/net/rxrpc/sysctl.c | |||
| @@ -1,12 +1,8 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-or-later | ||
| 1 | /* sysctls for configuring RxRPC operating parameters | 2 | /* sysctls for configuring RxRPC operating parameters |
| 2 | * | 3 | * |
| 3 | * Copyright (C) 2014 Red Hat, Inc. All Rights Reserved. | 4 | * Copyright (C) 2014 Red Hat, Inc. All Rights Reserved. |
| 4 | * Written by David Howells (dhowells@redhat.com) | 5 | * Written by David Howells (dhowells@redhat.com) |
| 5 | * | ||
| 6 | * This program is free software; you can redistribute it and/or | ||
| 7 | * modify it under the terms of the GNU General Public Licence | ||
| 8 | * as published by the Free Software Foundation; either version | ||
| 9 | * 2 of the Licence, or (at your option) any later version. | ||
| 10 | */ | 6 | */ |
| 11 | 7 | ||
| 12 | #include <linux/sysctl.h> | 8 | #include <linux/sysctl.h> |
diff --git a/net/rxrpc/utils.c b/net/rxrpc/utils.c index ff7af71c4b49..2e4b9d86e899 100644 --- a/net/rxrpc/utils.c +++ b/net/rxrpc/utils.c | |||
| @@ -1,12 +1,8 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-or-later | ||
| 1 | /* Utility routines | 2 | /* Utility routines |
| 2 | * | 3 | * |
| 3 | * Copyright (C) 2015 Red Hat, Inc. All Rights Reserved. | 4 | * Copyright (C) 2015 Red Hat, Inc. All Rights Reserved. |
| 4 | * Written by David Howells (dhowells@redhat.com) | 5 | * Written by David Howells (dhowells@redhat.com) |
| 5 | * | ||
| 6 | * This program is free software; you can redistribute it and/or | ||
| 7 | * modify it under the terms of the GNU General Public Licence | ||
| 8 | * as published by the Free Software Foundation; either version | ||
| 9 | * 2 of the Licence, or (at your option) any later version. | ||
| 10 | */ | 6 | */ |
| 11 | 7 | ||
| 12 | #include <linux/ip.h> | 8 | #include <linux/ip.h> |
diff --git a/net/sched/Kconfig b/net/sched/Kconfig index 5c02ad97ef23..2c72d95c3050 100644 --- a/net/sched/Kconfig +++ b/net/sched/Kconfig | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | # SPDX-License-Identifier: GPL-2.0-only | ||
| 1 | # | 2 | # |
| 2 | # Traffic control configuration. | 3 | # Traffic control configuration. |
| 3 | # | 4 | # |
diff --git a/net/sched/cls_tcindex.c b/net/sched/cls_tcindex.c index 9f4f4203c388..e573e5a5c794 100644 --- a/net/sched/cls_tcindex.c +++ b/net/sched/cls_tcindex.c | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-only | ||
| 1 | /* | 2 | /* |
| 2 | * net/sched/cls_tcindex.c Packet classifier for skb->tc_index | 3 | * net/sched/cls_tcindex.c Packet classifier for skb->tc_index |
| 3 | * | 4 | * |
diff --git a/net/sched/em_canid.c b/net/sched/em_canid.c index ddd883ca55b2..b9a94fdf9397 100644 --- a/net/sched/em_canid.c +++ b/net/sched/em_canid.c | |||
| @@ -1,11 +1,7 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-or-later | ||
| 1 | /* | 2 | /* |
| 2 | * em_canid.c Ematch rule to match CAN frames according to their CAN IDs | 3 | * em_canid.c Ematch rule to match CAN frames according to their CAN IDs |
| 3 | * | 4 | * |
| 4 | * This program is free software; you can distribute it and/or | ||
| 5 | * modify it under the terms of the GNU General Public License | ||
| 6 | * as published by the Free Software Foundation; either version | ||
| 7 | * 2 of the License, or (at your option) any later version. | ||
| 8 | * | ||
| 9 | * Idea: Oliver Hartkopp <oliver.hartkopp@volkswagen.de> | 5 | * Idea: Oliver Hartkopp <oliver.hartkopp@volkswagen.de> |
| 10 | * Copyright: (c) 2011 Czech Technical University in Prague | 6 | * Copyright: (c) 2011 Czech Technical University in Prague |
| 11 | * (c) 2011 Volkswagen Group Research | 7 | * (c) 2011 Volkswagen Group Research |
diff --git a/net/sched/sch_atm.c b/net/sched/sch_atm.c index ae506c7906cd..f4f9b8cdbffb 100644 --- a/net/sched/sch_atm.c +++ b/net/sched/sch_atm.c | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-only | ||
| 1 | /* net/sched/sch_atm.c - ATM VC selection "queueing discipline" */ | 2 | /* net/sched/sch_atm.c - ATM VC selection "queueing discipline" */ |
| 2 | 3 | ||
| 3 | /* Written 1998-2000 by Werner Almesberger, EPFL ICA */ | 4 | /* Written 1998-2000 by Werner Almesberger, EPFL ICA */ |
diff --git a/net/sched/sch_dsmark.c b/net/sched/sch_dsmark.c index 3deeb06eaecf..bad1cbe59a56 100644 --- a/net/sched/sch_dsmark.c +++ b/net/sched/sch_dsmark.c | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-only | ||
| 1 | /* net/sched/sch_dsmark.c - Differentiated Services field marker */ | 2 | /* net/sched/sch_dsmark.c - Differentiated Services field marker */ |
| 2 | 3 | ||
| 3 | /* Written 1998-2000 by Werner Almesberger, EPFL ICA */ | 4 | /* Written 1998-2000 by Werner Almesberger, EPFL ICA */ |
diff --git a/net/sched/sch_hhf.c b/net/sched/sch_hhf.c index a28e09b1609c..cee6971c1c82 100644 --- a/net/sched/sch_hhf.c +++ b/net/sched/sch_hhf.c | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-only | ||
| 1 | /* net/sched/sch_hhf.c Heavy-Hitter Filter (HHF) | 2 | /* net/sched/sch_hhf.c Heavy-Hitter Filter (HHF) |
| 2 | * | 3 | * |
| 3 | * Copyright (C) 2013 Terry Lam <vtlam@google.com> | 4 | * Copyright (C) 2013 Terry Lam <vtlam@google.com> |
diff --git a/net/sctp/Kconfig b/net/sctp/Kconfig index 950ecf6e7439..6e2eb1dd64ed 100644 --- a/net/sctp/Kconfig +++ b/net/sctp/Kconfig | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | # SPDX-License-Identifier: GPL-2.0-only | ||
| 1 | # | 2 | # |
| 2 | # SCTP configuration | 3 | # SCTP configuration |
| 3 | # | 4 | # |
diff --git a/net/sctp/associola.c b/net/sctp/associola.c index d2c7d0d2abc1..1999237ce481 100644 --- a/net/sctp/associola.c +++ b/net/sctp/associola.c | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-or-later | ||
| 1 | /* SCTP kernel implementation | 2 | /* SCTP kernel implementation |
| 2 | * (C) Copyright IBM Corp. 2001, 2004 | 3 | * (C) Copyright IBM Corp. 2001, 2004 |
| 3 | * Copyright (c) 1999-2000 Cisco, Inc. | 4 | * Copyright (c) 1999-2000 Cisco, Inc. |
| @@ -9,22 +10,6 @@ | |||
| 9 | * | 10 | * |
| 10 | * This module provides the abstraction for an SCTP association. | 11 | * This module provides the abstraction for an SCTP association. |
| 11 | * | 12 | * |
| 12 | * This SCTP implementation is free software; | ||
| 13 | * you can redistribute it and/or modify it under the terms of | ||
| 14 | * the GNU General Public License as published by | ||
| 15 | * the Free Software Foundation; either version 2, or (at your option) | ||
| 16 | * any later version. | ||
| 17 | * | ||
| 18 | * This SCTP implementation is distributed in the hope that it | ||
| 19 | * will be useful, but WITHOUT ANY WARRANTY; without even the implied | ||
| 20 | * ************************ | ||
| 21 | * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. | ||
| 22 | * See the GNU General Public License for more details. | ||
| 23 | * | ||
| 24 | * You should have received a copy of the GNU General Public License | ||
| 25 | * along with GNU CC; see the file COPYING. If not, see | ||
| 26 | * <http://www.gnu.org/licenses/>. | ||
| 27 | * | ||
| 28 | * Please send any bug reports or fixes you make to the | 13 | * Please send any bug reports or fixes you make to the |
| 29 | * email address(es): | 14 | * email address(es): |
| 30 | * lksctp developers <linux-sctp@vger.kernel.org> | 15 | * lksctp developers <linux-sctp@vger.kernel.org> |
diff --git a/net/sctp/auth.c b/net/sctp/auth.c index 31569f4809f6..de4c78d4a21e 100644 --- a/net/sctp/auth.c +++ b/net/sctp/auth.c | |||
| @@ -1,24 +1,9 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-or-later | ||
| 1 | /* SCTP kernel implementation | 2 | /* SCTP kernel implementation |
| 2 | * (C) Copyright 2007 Hewlett-Packard Development Company, L.P. | 3 | * (C) Copyright 2007 Hewlett-Packard Development Company, L.P. |
| 3 | * | 4 | * |
| 4 | * This file is part of the SCTP kernel implementation | 5 | * This file is part of the SCTP kernel implementation |
| 5 | * | 6 | * |
| 6 | * This SCTP implementation is free software; | ||
| 7 | * you can redistribute it and/or modify it under the terms of | ||
| 8 | * the GNU General Public License as published by | ||
| 9 | * the Free Software Foundation; either version 2, or (at your option) | ||
| 10 | * any later version. | ||
| 11 | * | ||
| 12 | * This SCTP implementation is distributed in the hope that it | ||
| 13 | * will be useful, but WITHOUT ANY WARRANTY; without even the implied | ||
| 14 | * ************************ | ||
| 15 | * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. | ||
| 16 | * See the GNU General Public License for more details. | ||
| 17 | * | ||
| 18 | * You should have received a copy of the GNU General Public License | ||
| 19 | * along with GNU CC; see the file COPYING. If not, see | ||
| 20 | * <http://www.gnu.org/licenses/>. | ||
| 21 | * | ||
| 22 | * Please send any bug reports or fixes you make to the | 7 | * Please send any bug reports or fixes you make to the |
| 23 | * email address(es): | 8 | * email address(es): |
| 24 | * lksctp developers <linux-sctp@vger.kernel.org> | 9 | * lksctp developers <linux-sctp@vger.kernel.org> |
diff --git a/net/sctp/bind_addr.c b/net/sctp/bind_addr.c index ebf28adba789..f54333cbbe0f 100644 --- a/net/sctp/bind_addr.c +++ b/net/sctp/bind_addr.c | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-or-later | ||
| 1 | /* SCTP kernel implementation | 2 | /* SCTP kernel implementation |
| 2 | * (C) Copyright IBM Corp. 2001, 2003 | 3 | * (C) Copyright IBM Corp. 2001, 2003 |
| 3 | * Copyright (c) Cisco 1999,2000 | 4 | * Copyright (c) Cisco 1999,2000 |
| @@ -8,22 +9,6 @@ | |||
| 8 | * | 9 | * |
| 9 | * A collection class to handle the storage of transport addresses. | 10 | * A collection class to handle the storage of transport addresses. |
| 10 | * | 11 | * |
| 11 | * This SCTP implementation is free software; | ||
| 12 | * you can redistribute it and/or modify it under the terms of | ||
| 13 | * the GNU General Public License as published by | ||
| 14 | * the Free Software Foundation; either version 2, or (at your option) | ||
| 15 | * any later version. | ||
| 16 | * | ||
| 17 | * This SCTP implementation is distributed in the hope that it | ||
| 18 | * will be useful, but WITHOUT ANY WARRANTY; without even the implied | ||
| 19 | * ************************ | ||
| 20 | * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. | ||
| 21 | * See the GNU General Public License for more details. | ||
| 22 | * | ||
| 23 | * You should have received a copy of the GNU General Public License | ||
| 24 | * along with GNU CC; see the file COPYING. If not, see | ||
| 25 | * <http://www.gnu.org/licenses/>. | ||
| 26 | * | ||
| 27 | * Please send any bug reports or fixes you make to the | 12 | * Please send any bug reports or fixes you make to the |
| 28 | * email address(es): | 13 | * email address(es): |
| 29 | * lksctp developers <linux-sctp@vger.kernel.org> | 14 | * lksctp developers <linux-sctp@vger.kernel.org> |
diff --git a/net/sctp/chunk.c b/net/sctp/chunk.c index 5cb7c1ff97e9..cc0405c79dfc 100644 --- a/net/sctp/chunk.c +++ b/net/sctp/chunk.c | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-or-later | ||
| 1 | /* SCTP kernel implementation | 2 | /* SCTP kernel implementation |
| 2 | * (C) Copyright IBM Corp. 2003, 2004 | 3 | * (C) Copyright IBM Corp. 2003, 2004 |
| 3 | * | 4 | * |
| @@ -5,22 +6,6 @@ | |||
| 5 | * | 6 | * |
| 6 | * This file contains the code relating the chunk abstraction. | 7 | * This file contains the code relating the chunk abstraction. |
| 7 | * | 8 | * |
| 8 | * This SCTP implementation is free software; | ||
| 9 | * you can redistribute it and/or modify it under the terms of | ||
| 10 | * the GNU General Public License as published by | ||
| 11 | * the Free Software Foundation; either version 2, or (at your option) | ||
| 12 | * any later version. | ||
| 13 | * | ||
| 14 | * This SCTP implementation is distributed in the hope that it | ||
| 15 | * will be useful, but WITHOUT ANY WARRANTY; without even the implied | ||
| 16 | * ************************ | ||
| 17 | * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. | ||
| 18 | * See the GNU General Public License for more details. | ||
| 19 | * | ||
| 20 | * You should have received a copy of the GNU General Public License | ||
| 21 | * along with GNU CC; see the file COPYING. If not, see | ||
| 22 | * <http://www.gnu.org/licenses/>. | ||
| 23 | * | ||
| 24 | * Please send any bug reports or fixes you make to the | 9 | * Please send any bug reports or fixes you make to the |
| 25 | * email address(es): | 10 | * email address(es): |
| 26 | * lksctp developers <linux-sctp@vger.kernel.org> | 11 | * lksctp developers <linux-sctp@vger.kernel.org> |
diff --git a/net/sctp/debug.c b/net/sctp/debug.c index 8f6c2e8c0953..c4d9c7feffb9 100644 --- a/net/sctp/debug.c +++ b/net/sctp/debug.c | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-or-later | ||
| 1 | /* SCTP kernel implementation | 2 | /* SCTP kernel implementation |
| 2 | * (C) Copyright IBM Corp. 2001, 2004 | 3 | * (C) Copyright IBM Corp. 2001, 2004 |
| 3 | * Copyright (c) 1999-2000 Cisco, Inc. | 4 | * Copyright (c) 1999-2000 Cisco, Inc. |
| @@ -9,22 +10,6 @@ | |||
| 9 | * This file converts numerical ID value to alphabetical names for SCTP | 10 | * This file converts numerical ID value to alphabetical names for SCTP |
| 10 | * terms such as chunk type, parameter time, event type, etc. | 11 | * terms such as chunk type, parameter time, event type, etc. |
| 11 | * | 12 | * |
| 12 | * This SCTP implementation is free software; | ||
| 13 | * you can redistribute it and/or modify it under the terms of | ||
| 14 | * the GNU General Public License as published by | ||
| 15 | * the Free Software Foundation; either version 2, or (at your option) | ||
| 16 | * any later version. | ||
| 17 | * | ||
| 18 | * This SCTP implementation is distributed in the hope that it | ||
| 19 | * will be useful, but WITHOUT ANY WARRANTY; without even the implied | ||
| 20 | * ************************ | ||
| 21 | * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. | ||
| 22 | * See the GNU General Public License for more details. | ||
| 23 | * | ||
| 24 | * You should have received a copy of the GNU General Public License | ||
| 25 | * along with GNU CC; see the file COPYING. If not, see | ||
| 26 | * <http://www.gnu.org/licenses/>. | ||
| 27 | * | ||
| 28 | * Please send any bug reports or fixes you make to the | 13 | * Please send any bug reports or fixes you make to the |
| 29 | * email address(es): | 14 | * email address(es): |
| 30 | * lksctp developers <linux-sctp@vger.kernel.org> | 15 | * lksctp developers <linux-sctp@vger.kernel.org> |
diff --git a/net/sctp/diag.c b/net/sctp/diag.c index 435847d98b51..fc9a4c6629ce 100644 --- a/net/sctp/diag.c +++ b/net/sctp/diag.c | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-or-later | ||
| 1 | /* SCTP kernel implementation | 2 | /* SCTP kernel implementation |
| 2 | * (C) Copyright Red Hat Inc. 2017 | 3 | * (C) Copyright Red Hat Inc. 2017 |
| 3 | * | 4 | * |
| @@ -5,22 +6,6 @@ | |||
| 5 | * | 6 | * |
| 6 | * These functions implement sctp diag support. | 7 | * These functions implement sctp diag support. |
| 7 | * | 8 | * |
| 8 | * This SCTP implementation is free software; | ||
| 9 | * you can redistribute it and/or modify it under the terms of | ||
| 10 | * the GNU General Public License as published by | ||
| 11 | * the Free Software Foundation; either version 2, or (at your option) | ||
| 12 | * any later version. | ||
| 13 | * | ||
| 14 | * This SCTP implementation is distributed in the hope that it | ||
| 15 | * will be useful, but WITHOUT ANY WARRANTY; without even the implied | ||
| 16 | * ************************ | ||
| 17 | * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. | ||
| 18 | * See the GNU General Public License for more details. | ||
| 19 | * | ||
| 20 | * You should have received a copy of the GNU General Public License | ||
| 21 | * along with GNU CC; see the file COPYING. If not, see | ||
| 22 | * <http://www.gnu.org/licenses/>. | ||
| 23 | * | ||
| 24 | * Please send any bug reports or fixes you make to the | 9 | * Please send any bug reports or fixes you make to the |
| 25 | * email addresched(es): | 10 | * email addresched(es): |
| 26 | * lksctp developers <linux-sctp@vger.kernel.org> | 11 | * lksctp developers <linux-sctp@vger.kernel.org> |
diff --git a/net/sctp/endpointola.c b/net/sctp/endpointola.c index 0448b68fce74..e358437ba29b 100644 --- a/net/sctp/endpointola.c +++ b/net/sctp/endpointola.c | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-or-later | ||
| 1 | /* SCTP kernel implementation | 2 | /* SCTP kernel implementation |
| 2 | * Copyright (c) 1999-2000 Cisco, Inc. | 3 | * Copyright (c) 1999-2000 Cisco, Inc. |
| 3 | * Copyright (c) 1999-2001 Motorola, Inc. | 4 | * Copyright (c) 1999-2001 Motorola, Inc. |
| @@ -10,22 +11,6 @@ | |||
| 10 | * | 11 | * |
| 11 | * This abstraction represents an SCTP endpoint. | 12 | * This abstraction represents an SCTP endpoint. |
| 12 | * | 13 | * |
| 13 | * The SCTP implementation is free software; | ||
| 14 | * you can redistribute it and/or modify it under the terms of | ||
| 15 | * the GNU General Public License as published by | ||
| 16 | * the Free Software Foundation; either version 2, or (at your option) | ||
| 17 | * any later version. | ||
| 18 | * | ||
| 19 | * The SCTP implementation is distributed in the hope that it | ||
| 20 | * will be useful, but WITHOUT ANY WARRANTY; without even the implied | ||
| 21 | * ************************ | ||
| 22 | * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. | ||
| 23 | * See the GNU General Public License for more details. | ||
| 24 | * | ||
| 25 | * You should have received a copy of the GNU General Public License | ||
| 26 | * along with GNU CC; see the file COPYING. If not, see | ||
| 27 | * <http://www.gnu.org/licenses/>. | ||
| 28 | * | ||
| 29 | * Please send any bug reports or fixes you make to the | 14 | * Please send any bug reports or fixes you make to the |
| 30 | * email address(es): | 15 | * email address(es): |
| 31 | * lksctp developers <linux-sctp@vger.kernel.org> | 16 | * lksctp developers <linux-sctp@vger.kernel.org> |
diff --git a/net/sctp/input.c b/net/sctp/input.c index d7a649d240e5..1008cdc44dd6 100644 --- a/net/sctp/input.c +++ b/net/sctp/input.c | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-or-later | ||
| 1 | /* SCTP kernel implementation | 2 | /* SCTP kernel implementation |
| 2 | * Copyright (c) 1999-2000 Cisco, Inc. | 3 | * Copyright (c) 1999-2000 Cisco, Inc. |
| 3 | * Copyright (c) 1999-2001 Motorola, Inc. | 4 | * Copyright (c) 1999-2001 Motorola, Inc. |
| @@ -10,22 +11,6 @@ | |||
| 10 | * | 11 | * |
| 11 | * These functions handle all input from the IP layer into SCTP. | 12 | * These functions handle all input from the IP layer into SCTP. |
| 12 | * | 13 | * |
| 13 | * This SCTP implementation is free software; | ||
| 14 | * you can redistribute it and/or modify it under the terms of | ||
| 15 | * the GNU General Public License as published by | ||
| 16 | * the Free Software Foundation; either version 2, or (at your option) | ||
| 17 | * any later version. | ||
| 18 | * | ||
| 19 | * This SCTP implementation is distributed in the hope that it | ||
| 20 | * will be useful, but WITHOUT ANY WARRANTY; without even the implied | ||
| 21 | * ************************ | ||
| 22 | * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. | ||
| 23 | * See the GNU General Public License for more details. | ||
| 24 | * | ||
| 25 | * You should have received a copy of the GNU General Public License | ||
| 26 | * along with GNU CC; see the file COPYING. If not, see | ||
| 27 | * <http://www.gnu.org/licenses/>. | ||
| 28 | * | ||
| 29 | * Please send any bug reports or fixes you make to the | 14 | * Please send any bug reports or fixes you make to the |
| 30 | * email address(es): | 15 | * email address(es): |
| 31 | * lksctp developers <linux-sctp@vger.kernel.org> | 16 | * lksctp developers <linux-sctp@vger.kernel.org> |
diff --git a/net/sctp/inqueue.c b/net/sctp/inqueue.c index eb93ffe2408b..7182c5a450fb 100644 --- a/net/sctp/inqueue.c +++ b/net/sctp/inqueue.c | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-or-later | ||
| 1 | /* SCTP kernel implementation | 2 | /* SCTP kernel implementation |
| 2 | * Copyright (c) 1999-2000 Cisco, Inc. | 3 | * Copyright (c) 1999-2000 Cisco, Inc. |
| 3 | * Copyright (c) 1999-2001 Motorola, Inc. | 4 | * Copyright (c) 1999-2001 Motorola, Inc. |
| @@ -11,22 +12,6 @@ | |||
| 11 | * (which might be bundles or fragments of chunks) and out of which you | 12 | * (which might be bundles or fragments of chunks) and out of which you |
| 12 | * pop SCTP whole chunks. | 13 | * pop SCTP whole chunks. |
| 13 | * | 14 | * |
| 14 | * This SCTP implementation is free software; | ||
| 15 | * you can redistribute it and/or modify it under the terms of | ||
| 16 | * the GNU General Public License as published by | ||
| 17 | * the Free Software Foundation; either version 2, or (at your option) | ||
| 18 | * any later version. | ||
| 19 | * | ||
| 20 | * This SCTP implementation is distributed in the hope that it | ||
| 21 | * will be useful, but WITHOUT ANY WARRANTY; without even the implied | ||
| 22 | * ************************ | ||
| 23 | * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. | ||
| 24 | * See the GNU General Public License for more details. | ||
| 25 | * | ||
| 26 | * You should have received a copy of the GNU General Public License | ||
| 27 | * along with GNU CC; see the file COPYING. If not, see | ||
| 28 | * <http://www.gnu.org/licenses/>. | ||
| 29 | * | ||
| 30 | * Please send any bug reports or fixes you make to the | 15 | * Please send any bug reports or fixes you make to the |
| 31 | * email address(es): | 16 | * email address(es): |
| 32 | * lksctp developers <linux-sctp@vger.kernel.org> | 17 | * lksctp developers <linux-sctp@vger.kernel.org> |
diff --git a/net/sctp/ipv6.c b/net/sctp/ipv6.c index 188c47eb206e..64e0a594a651 100644 --- a/net/sctp/ipv6.c +++ b/net/sctp/ipv6.c | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-or-later | ||
| 1 | /* SCTP kernel implementation | 2 | /* SCTP kernel implementation |
| 2 | * (C) Copyright IBM Corp. 2002, 2004 | 3 | * (C) Copyright IBM Corp. 2002, 2004 |
| 3 | * Copyright (c) 2001 Nokia, Inc. | 4 | * Copyright (c) 2001 Nokia, Inc. |
| @@ -8,22 +9,6 @@ | |||
| 8 | * | 9 | * |
| 9 | * SCTP over IPv6. | 10 | * SCTP over IPv6. |
| 10 | * | 11 | * |
| 11 | * This SCTP implementation is free software; | ||
| 12 | * you can redistribute it and/or modify it under the terms of | ||
| 13 | * the GNU General Public License as published by | ||
| 14 | * the Free Software Foundation; either version 2, or (at your option) | ||
| 15 | * any later version. | ||
| 16 | * | ||
| 17 | * This SCTP implementation is distributed in the hope that it | ||
| 18 | * will be useful, but WITHOUT ANY WARRANTY; without even the implied | ||
| 19 | * ************************ | ||
| 20 | * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. | ||
| 21 | * See the GNU General Public License for more details. | ||
| 22 | * | ||
| 23 | * You should have received a copy of the GNU General Public License | ||
| 24 | * along with GNU CC; see the file COPYING. If not, see | ||
| 25 | * <http://www.gnu.org/licenses/>. | ||
| 26 | * | ||
| 27 | * Please send any bug reports or fixes you make to the | 12 | * Please send any bug reports or fixes you make to the |
| 28 | * email address(es): | 13 | * email address(es): |
| 29 | * lksctp developers <linux-sctp@vger.kernel.org> | 14 | * lksctp developers <linux-sctp@vger.kernel.org> |
diff --git a/net/sctp/objcnt.c b/net/sctp/objcnt.c index a6179b26b80c..0400c964e125 100644 --- a/net/sctp/objcnt.c +++ b/net/sctp/objcnt.c | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-or-later | ||
| 1 | /* SCTP kernel implementation | 2 | /* SCTP kernel implementation |
| 2 | * (C) Copyright IBM Corp. 2001, 2004 | 3 | * (C) Copyright IBM Corp. 2001, 2004 |
| 3 | * | 4 | * |
| @@ -7,22 +8,6 @@ | |||
| 7 | * object allocations/deallocations for types instrumented for this | 8 | * object allocations/deallocations for types instrumented for this |
| 8 | * via the proc fs. | 9 | * via the proc fs. |
| 9 | * | 10 | * |
| 10 | * This SCTP implementation is free software; | ||
| 11 | * you can redistribute it and/or modify it under the terms of | ||
| 12 | * the GNU General Public License as published by | ||
| 13 | * the Free Software Foundation; either version 2, or (at your option) | ||
| 14 | * any later version. | ||
| 15 | * | ||
| 16 | * This SCTP implementation is distributed in the hope that it | ||
| 17 | * will be useful, but WITHOUT ANY WARRANTY; without even the implied | ||
| 18 | * ************************ | ||
| 19 | * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. | ||
| 20 | * See the GNU General Public License for more details. | ||
| 21 | * | ||
| 22 | * You should have received a copy of the GNU General Public License | ||
| 23 | * along with GNU CC; see the file COPYING. If not, see | ||
| 24 | * <http://www.gnu.org/licenses/>. | ||
| 25 | * | ||
| 26 | * Please send any bug reports or fixes you make to the | 11 | * Please send any bug reports or fixes you make to the |
| 27 | * email address(es): | 12 | * email address(es): |
| 28 | * lksctp developers <linux-sctp@vger.kernel.org> | 13 | * lksctp developers <linux-sctp@vger.kernel.org> |
diff --git a/net/sctp/output.c b/net/sctp/output.c index 025f48e14a91..e0c27477788d 100644 --- a/net/sctp/output.c +++ b/net/sctp/output.c | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-or-later | ||
| 1 | /* SCTP kernel implementation | 2 | /* SCTP kernel implementation |
| 2 | * (C) Copyright IBM Corp. 2001, 2004 | 3 | * (C) Copyright IBM Corp. 2001, 2004 |
| 3 | * Copyright (c) 1999-2000 Cisco, Inc. | 4 | * Copyright (c) 1999-2000 Cisco, Inc. |
| @@ -7,22 +8,6 @@ | |||
| 7 | * | 8 | * |
| 8 | * These functions handle output processing. | 9 | * These functions handle output processing. |
| 9 | * | 10 | * |
| 10 | * This SCTP implementation is free software; | ||
| 11 | * you can redistribute it and/or modify it under the terms of | ||
| 12 | * the GNU General Public License as published by | ||
| 13 | * the Free Software Foundation; either version 2, or (at your option) | ||
| 14 | * any later version. | ||
| 15 | * | ||
| 16 | * This SCTP implementation is distributed in the hope that it | ||
| 17 | * will be useful, but WITHOUT ANY WARRANTY; without even the implied | ||
| 18 | * ************************ | ||
| 19 | * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. | ||
| 20 | * See the GNU General Public License for more details. | ||
| 21 | * | ||
| 22 | * You should have received a copy of the GNU General Public License | ||
| 23 | * along with GNU CC; see the file COPYING. If not, see | ||
| 24 | * <http://www.gnu.org/licenses/>. | ||
| 25 | * | ||
| 26 | * Please send any bug reports or fixes you make to the | 11 | * Please send any bug reports or fixes you make to the |
| 27 | * email address(es): | 12 | * email address(es): |
| 28 | * lksctp developers <linux-sctp@vger.kernel.org> | 13 | * lksctp developers <linux-sctp@vger.kernel.org> |
diff --git a/net/sctp/outqueue.c b/net/sctp/outqueue.c index fd33281999b5..0dab62b67b9a 100644 --- a/net/sctp/outqueue.c +++ b/net/sctp/outqueue.c | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-or-later | ||
| 1 | /* SCTP kernel implementation | 2 | /* SCTP kernel implementation |
| 2 | * (C) Copyright IBM Corp. 2001, 2004 | 3 | * (C) Copyright IBM Corp. 2001, 2004 |
| 3 | * Copyright (c) 1999-2000 Cisco, Inc. | 4 | * Copyright (c) 1999-2000 Cisco, Inc. |
| @@ -9,22 +10,6 @@ | |||
| 9 | * These functions implement the sctp_outq class. The outqueue handles | 10 | * These functions implement the sctp_outq class. The outqueue handles |
| 10 | * bundling and queueing of outgoing SCTP chunks. | 11 | * bundling and queueing of outgoing SCTP chunks. |
| 11 | * | 12 | * |
| 12 | * This SCTP implementation is free software; | ||
| 13 | * you can redistribute it and/or modify it under the terms of | ||
| 14 | * the GNU General Public License as published by | ||
| 15 | * the Free Software Foundation; either version 2, or (at your option) | ||
| 16 | * any later version. | ||
| 17 | * | ||
| 18 | * This SCTP implementation is distributed in the hope that it | ||
| 19 | * will be useful, but WITHOUT ANY WARRANTY; without even the implied | ||
| 20 | * ************************ | ||
| 21 | * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. | ||
| 22 | * See the GNU General Public License for more details. | ||
| 23 | * | ||
| 24 | * You should have received a copy of the GNU General Public License | ||
| 25 | * along with GNU CC; see the file COPYING. If not, see | ||
| 26 | * <http://www.gnu.org/licenses/>. | ||
| 27 | * | ||
| 28 | * Please send any bug reports or fixes you make to the | 13 | * Please send any bug reports or fixes you make to the |
| 29 | * email address(es): | 14 | * email address(es): |
| 30 | * lksctp developers <linux-sctp@vger.kernel.org> | 15 | * lksctp developers <linux-sctp@vger.kernel.org> |
diff --git a/net/sctp/primitive.c b/net/sctp/primitive.c index a8c4c33377bc..782d673c3fba 100644 --- a/net/sctp/primitive.c +++ b/net/sctp/primitive.c | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-or-later | ||
| 1 | /* SCTP kernel implementation | 2 | /* SCTP kernel implementation |
| 2 | * Copyright (c) 1999-2000 Cisco, Inc. | 3 | * Copyright (c) 1999-2000 Cisco, Inc. |
| 3 | * Copyright (c) 1999-2001 Motorola, Inc. | 4 | * Copyright (c) 1999-2001 Motorola, Inc. |
| @@ -10,22 +11,6 @@ | |||
| 10 | * functions--this file is the functions which populate the struct proto | 11 | * functions--this file is the functions which populate the struct proto |
| 11 | * for SCTP which is the BOTTOM of the sockets interface. | 12 | * for SCTP which is the BOTTOM of the sockets interface. |
| 12 | * | 13 | * |
| 13 | * This SCTP implementation is free software; | ||
| 14 | * you can redistribute it and/or modify it under the terms of | ||
| 15 | * the GNU General Public License as published by | ||
| 16 | * the Free Software Foundation; either version 2, or (at your option) | ||
| 17 | * any later version. | ||
| 18 | * | ||
| 19 | * This SCTP implementation is distributed in the hope that it | ||
| 20 | * will be useful, but WITHOUT ANY WARRANTY; without even the implied | ||
| 21 | * ************************ | ||
| 22 | * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. | ||
| 23 | * See the GNU General Public License for more details. | ||
| 24 | * | ||
| 25 | * You should have received a copy of the GNU General Public License | ||
| 26 | * along with GNU CC; see the file COPYING. If not, see | ||
| 27 | * <http://www.gnu.org/licenses/>. | ||
| 28 | * | ||
| 29 | * Please send any bug reports or fixes you make to the | 14 | * Please send any bug reports or fixes you make to the |
| 30 | * email address(es): | 15 | * email address(es): |
| 31 | * lksctp developers <linux-sctp@vger.kernel.org> | 16 | * lksctp developers <linux-sctp@vger.kernel.org> |
diff --git a/net/sctp/proc.c b/net/sctp/proc.c index a644292f9faf..f7da88ae20a5 100644 --- a/net/sctp/proc.c +++ b/net/sctp/proc.c | |||
| @@ -1,24 +1,9 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-or-later | ||
| 1 | /* SCTP kernel implementation | 2 | /* SCTP kernel implementation |
| 2 | * Copyright (c) 2003 International Business Machines, Corp. | 3 | * Copyright (c) 2003 International Business Machines, Corp. |
| 3 | * | 4 | * |
| 4 | * This file is part of the SCTP kernel implementation | 5 | * This file is part of the SCTP kernel implementation |
| 5 | * | 6 | * |
| 6 | * This SCTP implementation is free software; | ||
| 7 | * you can redistribute it and/or modify it under the terms of | ||
| 8 | * the GNU General Public License as published by | ||
| 9 | * the Free Software Foundation; either version 2, or (at your option) | ||
| 10 | * any later version. | ||
| 11 | * | ||
| 12 | * This SCTP implementation is distributed in the hope that it | ||
| 13 | * will be useful, but WITHOUT ANY WARRANTY; without even the implied | ||
| 14 | * ************************ | ||
| 15 | * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. | ||
| 16 | * See the GNU General Public License for more details. | ||
| 17 | * | ||
| 18 | * You should have received a copy of the GNU General Public License | ||
| 19 | * along with GNU CC; see the file COPYING. If not, see | ||
| 20 | * <http://www.gnu.org/licenses/>. | ||
| 21 | * | ||
| 22 | * Please send any bug reports or fixes you make to the | 7 | * Please send any bug reports or fixes you make to the |
| 23 | * email address(es): | 8 | * email address(es): |
| 24 | * lksctp developers <linux-sctp@vger.kernel.org> | 9 | * lksctp developers <linux-sctp@vger.kernel.org> |
diff --git a/net/sctp/protocol.c b/net/sctp/protocol.c index f0631bf486b6..23af232c0a25 100644 --- a/net/sctp/protocol.c +++ b/net/sctp/protocol.c | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-or-later | ||
| 1 | /* SCTP kernel implementation | 2 | /* SCTP kernel implementation |
| 2 | * (C) Copyright IBM Corp. 2001, 2004 | 3 | * (C) Copyright IBM Corp. 2001, 2004 |
| 3 | * Copyright (c) 1999-2000 Cisco, Inc. | 4 | * Copyright (c) 1999-2000 Cisco, Inc. |
| @@ -10,22 +11,6 @@ | |||
| 10 | * | 11 | * |
| 11 | * Initialization/cleanup for SCTP protocol support. | 12 | * Initialization/cleanup for SCTP protocol support. |
| 12 | * | 13 | * |
| 13 | * This SCTP implementation is free software; | ||
| 14 | * you can redistribute it and/or modify it under the terms of | ||
| 15 | * the GNU General Public License as published by | ||
| 16 | * the Free Software Foundation; either version 2, or (at your option) | ||
| 17 | * any later version. | ||
| 18 | * | ||
| 19 | * This SCTP implementation is distributed in the hope that it | ||
| 20 | * will be useful, but WITHOUT ANY WARRANTY; without even the implied | ||
| 21 | * ************************ | ||
| 22 | * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. | ||
| 23 | * See the GNU General Public License for more details. | ||
| 24 | * | ||
| 25 | * You should have received a copy of the GNU General Public License | ||
| 26 | * along with GNU CC; see the file COPYING. If not, see | ||
| 27 | * <http://www.gnu.org/licenses/>. | ||
| 28 | * | ||
| 29 | * Please send any bug reports or fixes you make to the | 14 | * Please send any bug reports or fixes you make to the |
| 30 | * email address(es): | 15 | * email address(es): |
| 31 | * lksctp developers <linux-sctp@vger.kernel.org> | 16 | * lksctp developers <linux-sctp@vger.kernel.org> |
diff --git a/net/sctp/sm_make_chunk.c b/net/sctp/sm_make_chunk.c index 72e74503f9fc..92331e1195c1 100644 --- a/net/sctp/sm_make_chunk.c +++ b/net/sctp/sm_make_chunk.c | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-or-later | ||
| 1 | /* SCTP kernel implementation | 2 | /* SCTP kernel implementation |
| 2 | * (C) Copyright IBM Corp. 2001, 2004 | 3 | * (C) Copyright IBM Corp. 2001, 2004 |
| 3 | * Copyright (c) 1999-2000 Cisco, Inc. | 4 | * Copyright (c) 1999-2000 Cisco, Inc. |
| @@ -10,22 +11,6 @@ | |||
| 10 | * to implement the state operations. These functions implement the | 11 | * to implement the state operations. These functions implement the |
| 11 | * steps which require modifying existing data structures. | 12 | * steps which require modifying existing data structures. |
| 12 | * | 13 | * |
| 13 | * This SCTP implementation is free software; | ||
| 14 | * you can redistribute it and/or modify it under the terms of | ||
| 15 | * the GNU General Public License as published by | ||
| 16 | * the Free Software Foundation; either version 2, or (at your option) | ||
| 17 | * any later version. | ||
| 18 | * | ||
| 19 | * This SCTP implementation is distributed in the hope that it | ||
| 20 | * will be useful, but WITHOUT ANY WARRANTY; without even the implied | ||
| 21 | * ************************ | ||
| 22 | * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. | ||
| 23 | * See the GNU General Public License for more details. | ||
| 24 | * | ||
| 25 | * You should have received a copy of the GNU General Public License | ||
| 26 | * along with GNU CC; see the file COPYING. If not, see | ||
| 27 | * <http://www.gnu.org/licenses/>. | ||
| 28 | * | ||
| 29 | * Please send any bug reports or fixes you make to the | 14 | * Please send any bug reports or fixes you make to the |
| 30 | * email address(es): | 15 | * email address(es): |
| 31 | * lksctp developers <linux-sctp@vger.kernel.org> | 16 | * lksctp developers <linux-sctp@vger.kernel.org> |
diff --git a/net/sctp/sm_sideeffect.c b/net/sctp/sm_sideeffect.c index 4aa03588f87b..9b50da548db2 100644 --- a/net/sctp/sm_sideeffect.c +++ b/net/sctp/sm_sideeffect.c | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-or-later | ||
| 1 | /* SCTP kernel implementation | 2 | /* SCTP kernel implementation |
| 2 | * (C) Copyright IBM Corp. 2001, 2004 | 3 | * (C) Copyright IBM Corp. 2001, 2004 |
| 3 | * Copyright (c) 1999 Cisco, Inc. | 4 | * Copyright (c) 1999 Cisco, Inc. |
| @@ -9,22 +10,6 @@ | |||
| 9 | * to implement that state operations. These functions implement the | 10 | * to implement that state operations. These functions implement the |
| 10 | * steps which require modifying existing data structures. | 11 | * steps which require modifying existing data structures. |
| 11 | * | 12 | * |
| 12 | * This SCTP implementation is free software; | ||
| 13 | * you can redistribute it and/or modify it under the terms of | ||
| 14 | * the GNU General Public License as published by | ||
| 15 | * the Free Software Foundation; either version 2, or (at your option) | ||
| 16 | * any later version. | ||
| 17 | * | ||
| 18 | * This SCTP implementation is distributed in the hope that it | ||
| 19 | * will be useful, but WITHOUT ANY WARRANTY; without even the implied | ||
| 20 | * ************************ | ||
| 21 | * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. | ||
| 22 | * See the GNU General Public License for more details. | ||
| 23 | * | ||
| 24 | * You should have received a copy of the GNU General Public License | ||
| 25 | * along with GNU CC; see the file COPYING. If not, see | ||
| 26 | * <http://www.gnu.org/licenses/>. | ||
| 27 | * | ||
| 28 | * Please send any bug reports or fixes you make to the | 13 | * Please send any bug reports or fixes you make to the |
| 29 | * email address(es): | 14 | * email address(es): |
| 30 | * lksctp developers <linux-sctp@vger.kernel.org> | 15 | * lksctp developers <linux-sctp@vger.kernel.org> |
diff --git a/net/sctp/sm_statefuns.c b/net/sctp/sm_statefuns.c index e3f4abe6134e..2c244b29a199 100644 --- a/net/sctp/sm_statefuns.c +++ b/net/sctp/sm_statefuns.c | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-or-later | ||
| 1 | /* SCTP kernel implementation | 2 | /* SCTP kernel implementation |
| 2 | * (C) Copyright IBM Corp. 2001, 2004 | 3 | * (C) Copyright IBM Corp. 2001, 2004 |
| 3 | * Copyright (c) 1999-2000 Cisco, Inc. | 4 | * Copyright (c) 1999-2000 Cisco, Inc. |
| @@ -9,22 +10,6 @@ | |||
| 9 | * | 10 | * |
| 10 | * These are the state functions for the state machine. | 11 | * These are the state functions for the state machine. |
| 11 | * | 12 | * |
| 12 | * This SCTP implementation is free software; | ||
| 13 | * you can redistribute it and/or modify it under the terms of | ||
| 14 | * the GNU General Public License as published by | ||
| 15 | * the Free Software Foundation; either version 2, or (at your option) | ||
| 16 | * any later version. | ||
| 17 | * | ||
| 18 | * This SCTP implementation is distributed in the hope that it | ||
| 19 | * will be useful, but WITHOUT ANY WARRANTY; without even the implied | ||
| 20 | * ************************ | ||
| 21 | * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. | ||
| 22 | * See the GNU General Public License for more details. | ||
| 23 | * | ||
| 24 | * You should have received a copy of the GNU General Public License | ||
| 25 | * along with GNU CC; see the file COPYING. If not, see | ||
| 26 | * <http://www.gnu.org/licenses/>. | ||
| 27 | * | ||
| 28 | * Please send any bug reports or fixes you make to the | 13 | * Please send any bug reports or fixes you make to the |
| 29 | * email address(es): | 14 | * email address(es): |
| 30 | * lksctp developers <linux-sctp@vger.kernel.org> | 15 | * lksctp developers <linux-sctp@vger.kernel.org> |
diff --git a/net/sctp/sm_statetable.c b/net/sctp/sm_statetable.c index d239b94aa48c..61ed9c6e3be3 100644 --- a/net/sctp/sm_statetable.c +++ b/net/sctp/sm_statetable.c | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-or-later | ||
| 1 | /* SCTP kernel implementation | 2 | /* SCTP kernel implementation |
| 2 | * (C) Copyright IBM Corp. 2001, 2004 | 3 | * (C) Copyright IBM Corp. 2001, 2004 |
| 3 | * Copyright (c) 1999-2000 Cisco, Inc. | 4 | * Copyright (c) 1999-2000 Cisco, Inc. |
| @@ -9,22 +10,6 @@ | |||
| 9 | * | 10 | * |
| 10 | * These are the state tables for the SCTP state machine. | 11 | * These are the state tables for the SCTP state machine. |
| 11 | * | 12 | * |
| 12 | * This SCTP implementation is free software; | ||
| 13 | * you can redistribute it and/or modify it under the terms of | ||
| 14 | * the GNU General Public License as published by | ||
| 15 | * the Free Software Foundation; either version 2, or (at your option) | ||
| 16 | * any later version. | ||
| 17 | * | ||
| 18 | * This SCTP implementation is distributed in the hope that it | ||
| 19 | * will be useful, but WITHOUT ANY WARRANTY; without even the implied | ||
| 20 | * ************************ | ||
| 21 | * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. | ||
| 22 | * See the GNU General Public License for more details. | ||
| 23 | * | ||
| 24 | * You should have received a copy of the GNU General Public License | ||
| 25 | * along with GNU CC; see the file COPYING. If not, see | ||
| 26 | * <http://www.gnu.org/licenses/>. | ||
| 27 | * | ||
| 28 | * Please send any bug reports or fixes you make to the | 13 | * Please send any bug reports or fixes you make to the |
| 29 | * email address(es): | 14 | * email address(es): |
| 30 | * lksctp developers <linux-sctp@vger.kernel.org> | 15 | * lksctp developers <linux-sctp@vger.kernel.org> |
diff --git a/net/sctp/socket.c b/net/sctp/socket.c index e4e892cc5644..39ea0a37af09 100644 --- a/net/sctp/socket.c +++ b/net/sctp/socket.c | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-or-later | ||
| 1 | /* SCTP kernel implementation | 2 | /* SCTP kernel implementation |
| 2 | * (C) Copyright IBM Corp. 2001, 2004 | 3 | * (C) Copyright IBM Corp. 2001, 2004 |
| 3 | * Copyright (c) 1999-2000 Cisco, Inc. | 4 | * Copyright (c) 1999-2000 Cisco, Inc. |
| @@ -15,22 +16,6 @@ | |||
| 15 | * functions--this file is the functions which populate the struct proto | 16 | * functions--this file is the functions which populate the struct proto |
| 16 | * for SCTP which is the BOTTOM of the sockets interface. | 17 | * for SCTP which is the BOTTOM of the sockets interface. |
| 17 | * | 18 | * |
| 18 | * This SCTP implementation is free software; | ||
| 19 | * you can redistribute it and/or modify it under the terms of | ||
| 20 | * the GNU General Public License as published by | ||
| 21 | * the Free Software Foundation; either version 2, or (at your option) | ||
| 22 | * any later version. | ||
| 23 | * | ||
| 24 | * This SCTP implementation is distributed in the hope that it | ||
| 25 | * will be useful, but WITHOUT ANY WARRANTY; without even the implied | ||
| 26 | * ************************ | ||
| 27 | * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. | ||
| 28 | * See the GNU General Public License for more details. | ||
| 29 | * | ||
| 30 | * You should have received a copy of the GNU General Public License | ||
| 31 | * along with GNU CC; see the file COPYING. If not, see | ||
| 32 | * <http://www.gnu.org/licenses/>. | ||
| 33 | * | ||
| 34 | * Please send any bug reports or fixes you make to the | 19 | * Please send any bug reports or fixes you make to the |
| 35 | * email address(es): | 20 | * email address(es): |
| 36 | * lksctp developers <linux-sctp@vger.kernel.org> | 21 | * lksctp developers <linux-sctp@vger.kernel.org> |
diff --git a/net/sctp/stream.c b/net/sctp/stream.c index b6bb68adac6e..93ed07877337 100644 --- a/net/sctp/stream.c +++ b/net/sctp/stream.c | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-or-later | ||
| 1 | /* SCTP kernel implementation | 2 | /* SCTP kernel implementation |
| 2 | * (C) Copyright IBM Corp. 2001, 2004 | 3 | * (C) Copyright IBM Corp. 2001, 2004 |
| 3 | * Copyright (c) 1999-2000 Cisco, Inc. | 4 | * Copyright (c) 1999-2000 Cisco, Inc. |
| @@ -8,22 +9,6 @@ | |||
| 8 | * | 9 | * |
| 9 | * This file contains sctp stream maniuplation primitives and helpers. | 10 | * This file contains sctp stream maniuplation primitives and helpers. |
| 10 | * | 11 | * |
| 11 | * This SCTP implementation is free software; | ||
| 12 | * you can redistribute it and/or modify it under the terms of | ||
| 13 | * the GNU General Public License as published by | ||
| 14 | * the Free Software Foundation; either version 2, or (at your option) | ||
| 15 | * any later version. | ||
| 16 | * | ||
| 17 | * This SCTP implementation is distributed in the hope that it | ||
| 18 | * will be useful, but WITHOUT ANY WARRANTY; without even the implied | ||
| 19 | * ************************ | ||
| 20 | * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. | ||
| 21 | * See the GNU General Public License for more details. | ||
| 22 | * | ||
| 23 | * You should have received a copy of the GNU General Public License | ||
| 24 | * along with GNU CC; see the file COPYING. If not, see | ||
| 25 | * <http://www.gnu.org/licenses/>. | ||
| 26 | * | ||
| 27 | * Please send any bug reports or fixes you make to the | 12 | * Please send any bug reports or fixes you make to the |
| 28 | * email address(es): | 13 | * email address(es): |
| 29 | * lksctp developers <linux-sctp@vger.kernel.org> | 14 | * lksctp developers <linux-sctp@vger.kernel.org> |
diff --git a/net/sctp/stream_interleave.c b/net/sctp/stream_interleave.c index 25e0b7e5189c..afbf1223d91c 100644 --- a/net/sctp/stream_interleave.c +++ b/net/sctp/stream_interleave.c | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-or-later | ||
| 1 | /* SCTP kernel implementation | 2 | /* SCTP kernel implementation |
| 2 | * (C) Copyright Red Hat Inc. 2017 | 3 | * (C) Copyright Red Hat Inc. 2017 |
| 3 | * | 4 | * |
| @@ -6,22 +7,6 @@ | |||
| 6 | * These functions implement sctp stream message interleaving, mostly | 7 | * These functions implement sctp stream message interleaving, mostly |
| 7 | * including I-DATA and I-FORWARD-TSN chunks process. | 8 | * including I-DATA and I-FORWARD-TSN chunks process. |
| 8 | * | 9 | * |
| 9 | * This SCTP implementation is free software; | ||
| 10 | * you can redistribute it and/or modify it under the terms of | ||
| 11 | * the GNU General Public License as published by | ||
| 12 | * the Free Software Foundation; either version 2, or (at your option) | ||
| 13 | * any later version. | ||
| 14 | * | ||
| 15 | * This SCTP implementation is distributed in the hope that it | ||
| 16 | * will be useful, but WITHOUT ANY WARRANTY; without even the implied | ||
| 17 | * ************************ | ||
| 18 | * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. | ||
| 19 | * See the GNU General Public License for more details. | ||
| 20 | * | ||
| 21 | * You should have received a copy of the GNU General Public License | ||
| 22 | * along with GNU CC; see the file COPYING. If not, see | ||
| 23 | * <http://www.gnu.org/licenses/>. | ||
| 24 | * | ||
| 25 | * Please send any bug reports or fixes you make to the | 10 | * Please send any bug reports or fixes you make to the |
| 26 | * email addresched(es): | 11 | * email addresched(es): |
| 27 | * lksctp developers <linux-sctp@vger.kernel.org> | 12 | * lksctp developers <linux-sctp@vger.kernel.org> |
diff --git a/net/sctp/stream_sched.c b/net/sctp/stream_sched.c index a6c04a94b08f..b8fa7ab3e394 100644 --- a/net/sctp/stream_sched.c +++ b/net/sctp/stream_sched.c | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-or-later | ||
| 1 | /* SCTP kernel implementation | 2 | /* SCTP kernel implementation |
| 2 | * (C) Copyright Red Hat Inc. 2017 | 3 | * (C) Copyright Red Hat Inc. 2017 |
| 3 | * | 4 | * |
| @@ -5,22 +6,6 @@ | |||
| 5 | * | 6 | * |
| 6 | * These functions manipulate sctp stream queue/scheduling. | 7 | * These functions manipulate sctp stream queue/scheduling. |
| 7 | * | 8 | * |
| 8 | * This SCTP implementation is free software; | ||
| 9 | * you can redistribute it and/or modify it under the terms of | ||
| 10 | * the GNU General Public License as published by | ||
| 11 | * the Free Software Foundation; either version 2, or (at your option) | ||
| 12 | * any later version. | ||
| 13 | * | ||
| 14 | * This SCTP implementation is distributed in the hope that it | ||
| 15 | * will be useful, but WITHOUT ANY WARRANTY; without even the implied | ||
| 16 | * ************************ | ||
| 17 | * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. | ||
| 18 | * See the GNU General Public License for more details. | ||
| 19 | * | ||
| 20 | * You should have received a copy of the GNU General Public License | ||
| 21 | * along with GNU CC; see the file COPYING. If not, see | ||
| 22 | * <http://www.gnu.org/licenses/>. | ||
| 23 | * | ||
| 24 | * Please send any bug reports or fixes you make to the | 9 | * Please send any bug reports or fixes you make to the |
| 25 | * email addresched(es): | 10 | * email addresched(es): |
| 26 | * lksctp developers <linux-sctp@vger.kernel.org> | 11 | * lksctp developers <linux-sctp@vger.kernel.org> |
diff --git a/net/sctp/stream_sched_prio.c b/net/sctp/stream_sched_prio.c index 2245083a98f2..80b5a2c4cbc7 100644 --- a/net/sctp/stream_sched_prio.c +++ b/net/sctp/stream_sched_prio.c | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-or-later | ||
| 1 | /* SCTP kernel implementation | 2 | /* SCTP kernel implementation |
| 2 | * (C) Copyright Red Hat Inc. 2017 | 3 | * (C) Copyright Red Hat Inc. 2017 |
| 3 | * | 4 | * |
| @@ -5,22 +6,6 @@ | |||
| 5 | * | 6 | * |
| 6 | * These functions manipulate sctp stream queue/scheduling. | 7 | * These functions manipulate sctp stream queue/scheduling. |
| 7 | * | 8 | * |
| 8 | * This SCTP implementation is free software; | ||
| 9 | * you can redistribute it and/or modify it under the terms of | ||
| 10 | * the GNU General Public License as published by | ||
| 11 | * the Free Software Foundation; either version 2, or (at your option) | ||
| 12 | * any later version. | ||
| 13 | * | ||
| 14 | * This SCTP implementation is distributed in the hope that it | ||
| 15 | * will be useful, but WITHOUT ANY WARRANTY; without even the implied | ||
| 16 | * ************************ | ||
| 17 | * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. | ||
| 18 | * See the GNU General Public License for more details. | ||
| 19 | * | ||
| 20 | * You should have received a copy of the GNU General Public License | ||
| 21 | * along with GNU CC; see the file COPYING. If not, see | ||
| 22 | * <http://www.gnu.org/licenses/>. | ||
| 23 | * | ||
| 24 | * Please send any bug reports or fixes you make to the | 9 | * Please send any bug reports or fixes you make to the |
| 25 | * email addresched(es): | 10 | * email addresched(es): |
| 26 | * lksctp developers <linux-sctp@vger.kernel.org> | 11 | * lksctp developers <linux-sctp@vger.kernel.org> |
diff --git a/net/sctp/stream_sched_rr.c b/net/sctp/stream_sched_rr.c index 52ba743fa7a7..ff425aed62c7 100644 --- a/net/sctp/stream_sched_rr.c +++ b/net/sctp/stream_sched_rr.c | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-or-later | ||
| 1 | /* SCTP kernel implementation | 2 | /* SCTP kernel implementation |
| 2 | * (C) Copyright Red Hat Inc. 2017 | 3 | * (C) Copyright Red Hat Inc. 2017 |
| 3 | * | 4 | * |
| @@ -5,22 +6,6 @@ | |||
| 5 | * | 6 | * |
| 6 | * These functions manipulate sctp stream queue/scheduling. | 7 | * These functions manipulate sctp stream queue/scheduling. |
| 7 | * | 8 | * |
| 8 | * This SCTP implementation is free software; | ||
| 9 | * you can redistribute it and/or modify it under the terms of | ||
| 10 | * the GNU General Public License as published by | ||
| 11 | * the Free Software Foundation; either version 2, or (at your option) | ||
| 12 | * any later version. | ||
| 13 | * | ||
| 14 | * This SCTP implementation is distributed in the hope that it | ||
| 15 | * will be useful, but WITHOUT ANY WARRANTY; without even the implied | ||
| 16 | * ************************ | ||
| 17 | * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. | ||
| 18 | * See the GNU General Public License for more details. | ||
| 19 | * | ||
| 20 | * You should have received a copy of the GNU General Public License | ||
| 21 | * along with GNU CC; see the file COPYING. If not, see | ||
| 22 | * <http://www.gnu.org/licenses/>. | ||
| 23 | * | ||
| 24 | * Please send any bug reports or fixes you make to the | 9 | * Please send any bug reports or fixes you make to the |
| 25 | * email addresched(es): | 10 | * email addresched(es): |
| 26 | * lksctp developers <linux-sctp@vger.kernel.org> | 11 | * lksctp developers <linux-sctp@vger.kernel.org> |
diff --git a/net/sctp/sysctl.c b/net/sctp/sysctl.c index 33ca5b73cdb3..9a19147902f1 100644 --- a/net/sctp/sysctl.c +++ b/net/sctp/sysctl.c | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-or-later | ||
| 1 | /* SCTP kernel implementation | 2 | /* SCTP kernel implementation |
| 2 | * (C) Copyright IBM Corp. 2002, 2004 | 3 | * (C) Copyright IBM Corp. 2002, 2004 |
| 3 | * Copyright (c) 2002 Intel Corp. | 4 | * Copyright (c) 2002 Intel Corp. |
| @@ -6,22 +7,6 @@ | |||
| 6 | * | 7 | * |
| 7 | * Sysctl related interfaces for SCTP. | 8 | * Sysctl related interfaces for SCTP. |
| 8 | * | 9 | * |
| 9 | * This SCTP implementation is free software; | ||
| 10 | * you can redistribute it and/or modify it under the terms of | ||
| 11 | * the GNU General Public License as published by | ||
| 12 | * the Free Software Foundation; either version 2, or (at your option) | ||
| 13 | * any later version. | ||
| 14 | * | ||
| 15 | * This SCTP implementation is distributed in the hope that it | ||
| 16 | * will be useful, but WITHOUT ANY WARRANTY; without even the implied | ||
| 17 | * ************************ | ||
| 18 | * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. | ||
| 19 | * See the GNU General Public License for more details. | ||
| 20 | * | ||
| 21 | * You should have received a copy of the GNU General Public License | ||
| 22 | * along with GNU CC; see the file COPYING. If not, see | ||
| 23 | * <http://www.gnu.org/licenses/>. | ||
| 24 | * | ||
| 25 | * Please send any bug reports or fixes you make to the | 10 | * Please send any bug reports or fixes you make to the |
| 26 | * email address(es): | 11 | * email address(es): |
| 27 | * lksctp developers <linux-sctp@vger.kernel.org> | 12 | * lksctp developers <linux-sctp@vger.kernel.org> |
diff --git a/net/sctp/transport.c b/net/sctp/transport.c index ad158d311ffa..e2f8e369cd08 100644 --- a/net/sctp/transport.c +++ b/net/sctp/transport.c | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-or-later | ||
| 1 | /* SCTP kernel implementation | 2 | /* SCTP kernel implementation |
| 2 | * Copyright (c) 1999-2000 Cisco, Inc. | 3 | * Copyright (c) 1999-2000 Cisco, Inc. |
| 3 | * Copyright (c) 1999-2001 Motorola, Inc. | 4 | * Copyright (c) 1999-2001 Motorola, Inc. |
| @@ -11,22 +12,6 @@ | |||
| 11 | * a remote transport address. For local transport addresses, we just use | 12 | * a remote transport address. For local transport addresses, we just use |
| 12 | * union sctp_addr. | 13 | * union sctp_addr. |
| 13 | * | 14 | * |
| 14 | * This SCTP implementation is free software; | ||
| 15 | * you can redistribute it and/or modify it under the terms of | ||
| 16 | * the GNU General Public License as published by | ||
| 17 | * the Free Software Foundation; either version 2, or (at your option) | ||
| 18 | * any later version. | ||
| 19 | * | ||
| 20 | * This SCTP implementation is distributed in the hope that it | ||
| 21 | * will be useful, but WITHOUT ANY WARRANTY; without even the implied | ||
| 22 | * ************************ | ||
| 23 | * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. | ||
| 24 | * See the GNU General Public License for more details. | ||
| 25 | * | ||
| 26 | * You should have received a copy of the GNU General Public License | ||
| 27 | * along with GNU CC; see the file COPYING. If not, see | ||
| 28 | * <http://www.gnu.org/licenses/>. | ||
| 29 | * | ||
| 30 | * Please send any bug reports or fixes you make to the | 15 | * Please send any bug reports or fixes you make to the |
| 31 | * email address(es): | 16 | * email address(es): |
| 32 | * lksctp developers <linux-sctp@vger.kernel.org> | 17 | * lksctp developers <linux-sctp@vger.kernel.org> |
diff --git a/net/sctp/tsnmap.c b/net/sctp/tsnmap.c index 7635f9f2311d..a9c6af5795d8 100644 --- a/net/sctp/tsnmap.c +++ b/net/sctp/tsnmap.c | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-or-later | ||
| 1 | /* SCTP kernel implementation | 2 | /* SCTP kernel implementation |
| 2 | * (C) Copyright IBM Corp. 2001, 2004 | 3 | * (C) Copyright IBM Corp. 2001, 2004 |
| 3 | * Copyright (c) 1999-2000 Cisco, Inc. | 4 | * Copyright (c) 1999-2000 Cisco, Inc. |
| @@ -8,22 +9,6 @@ | |||
| 8 | * | 9 | * |
| 9 | * These functions manipulate sctp tsn mapping array. | 10 | * These functions manipulate sctp tsn mapping array. |
| 10 | * | 11 | * |
| 11 | * This SCTP implementation is free software; | ||
| 12 | * you can redistribute it and/or modify it under the terms of | ||
| 13 | * the GNU General Public License as published by | ||
| 14 | * the Free Software Foundation; either version 2, or (at your option) | ||
| 15 | * any later version. | ||
| 16 | * | ||
| 17 | * This SCTP implementation is distributed in the hope that it | ||
| 18 | * will be useful, but WITHOUT ANY WARRANTY; without even the implied | ||
| 19 | * ************************ | ||
| 20 | * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. | ||
| 21 | * See the GNU General Public License for more details. | ||
| 22 | * | ||
| 23 | * You should have received a copy of the GNU General Public License | ||
| 24 | * along with GNU CC; see the file COPYING. If not, see | ||
| 25 | * <http://www.gnu.org/licenses/>. | ||
| 26 | * | ||
| 27 | * Please send any bug reports or fixes you make to the | 12 | * Please send any bug reports or fixes you make to the |
| 28 | * email address(es): | 13 | * email address(es): |
| 29 | * lksctp developers <linux-sctp@vger.kernel.org> | 14 | * lksctp developers <linux-sctp@vger.kernel.org> |
diff --git a/net/sctp/ulpevent.c b/net/sctp/ulpevent.c index c2a7478587ab..e0cc1edf49a0 100644 --- a/net/sctp/ulpevent.c +++ b/net/sctp/ulpevent.c | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-or-later | ||
| 1 | /* SCTP kernel implementation | 2 | /* SCTP kernel implementation |
| 2 | * (C) Copyright IBM Corp. 2001, 2004 | 3 | * (C) Copyright IBM Corp. 2001, 2004 |
| 3 | * Copyright (c) 1999-2000 Cisco, Inc. | 4 | * Copyright (c) 1999-2000 Cisco, Inc. |
| @@ -9,22 +10,6 @@ | |||
| 9 | * These functions manipulate an sctp event. The struct ulpevent is used | 10 | * These functions manipulate an sctp event. The struct ulpevent is used |
| 10 | * to carry notifications and data to the ULP (sockets). | 11 | * to carry notifications and data to the ULP (sockets). |
| 11 | * | 12 | * |
| 12 | * This SCTP implementation is free software; | ||
| 13 | * you can redistribute it and/or modify it under the terms of | ||
| 14 | * the GNU General Public License as published by | ||
| 15 | * the Free Software Foundation; either version 2, or (at your option) | ||
| 16 | * any later version. | ||
| 17 | * | ||
| 18 | * This SCTP implementation is distributed in the hope that it | ||
| 19 | * will be useful, but WITHOUT ANY WARRANTY; without even the implied | ||
| 20 | * ************************ | ||
| 21 | * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. | ||
| 22 | * See the GNU General Public License for more details. | ||
| 23 | * | ||
| 24 | * You should have received a copy of the GNU General Public License | ||
| 25 | * along with GNU CC; see the file COPYING. If not, see | ||
| 26 | * <http://www.gnu.org/licenses/>. | ||
| 27 | * | ||
| 28 | * Please send any bug reports or fixes you make to the | 13 | * Please send any bug reports or fixes you make to the |
| 29 | * email address(es): | 14 | * email address(es): |
| 30 | * lksctp developers <linux-sctp@vger.kernel.org> | 15 | * lksctp developers <linux-sctp@vger.kernel.org> |
diff --git a/net/sctp/ulpqueue.c b/net/sctp/ulpqueue.c index a212fe079c07..b6536b7f14c0 100644 --- a/net/sctp/ulpqueue.c +++ b/net/sctp/ulpqueue.c | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-or-later | ||
| 1 | /* SCTP kernel implementation | 2 | /* SCTP kernel implementation |
| 2 | * (C) Copyright IBM Corp. 2001, 2004 | 3 | * (C) Copyright IBM Corp. 2001, 2004 |
| 3 | * Copyright (c) 1999-2000 Cisco, Inc. | 4 | * Copyright (c) 1999-2000 Cisco, Inc. |
| @@ -8,22 +9,6 @@ | |||
| 8 | * | 9 | * |
| 9 | * This abstraction carries sctp events to the ULP (sockets). | 10 | * This abstraction carries sctp events to the ULP (sockets). |
| 10 | * | 11 | * |
| 11 | * This SCTP implementation is free software; | ||
| 12 | * you can redistribute it and/or modify it under the terms of | ||
| 13 | * the GNU General Public License as published by | ||
| 14 | * the Free Software Foundation; either version 2, or (at your option) | ||
| 15 | * any later version. | ||
| 16 | * | ||
| 17 | * This SCTP implementation is distributed in the hope that it | ||
| 18 | * will be useful, but WITHOUT ANY WARRANTY; without even the implied | ||
| 19 | * ************************ | ||
| 20 | * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. | ||
| 21 | * See the GNU General Public License for more details. | ||
| 22 | * | ||
| 23 | * You should have received a copy of the GNU General Public License | ||
| 24 | * along with GNU CC; see the file COPYING. If not, see | ||
| 25 | * <http://www.gnu.org/licenses/>. | ||
| 26 | * | ||
| 27 | * Please send any bug reports or fixes you make to the | 12 | * Please send any bug reports or fixes you make to the |
| 28 | * email address(es): | 13 | * email address(es): |
| 29 | * lksctp developers <linux-sctp@vger.kernel.org> | 14 | * lksctp developers <linux-sctp@vger.kernel.org> |
diff --git a/net/smc/Kconfig b/net/smc/Kconfig index c717ef0896aa..f54a70b8da82 100644 --- a/net/smc/Kconfig +++ b/net/smc/Kconfig | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | # SPDX-License-Identifier: GPL-2.0-only | ||
| 1 | config SMC | 2 | config SMC |
| 2 | tristate "SMC socket protocol family" | 3 | tristate "SMC socket protocol family" |
| 3 | depends on INET && INFINIBAND | 4 | depends on INET && INFINIBAND |
diff --git a/net/smc/Makefile b/net/smc/Makefile index 4df96b4b8130..cb1254541f37 100644 --- a/net/smc/Makefile +++ b/net/smc/Makefile | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | # SPDX-License-Identifier: GPL-2.0-only | ||
| 1 | obj-$(CONFIG_SMC) += smc.o | 2 | obj-$(CONFIG_SMC) += smc.o |
| 2 | obj-$(CONFIG_SMC_DIAG) += smc_diag.o | 3 | obj-$(CONFIG_SMC_DIAG) += smc_diag.o |
| 3 | smc-y := af_smc.o smc_pnet.o smc_ib.o smc_clc.o smc_core.o smc_wr.o smc_llc.o | 4 | smc-y := af_smc.o smc_pnet.o smc_ib.o smc_clc.o smc_core.o smc_wr.o smc_llc.o |
diff --git a/net/smc/af_smc.c b/net/smc/af_smc.c index 086d9913975d..0c874e996f85 100644 --- a/net/smc/af_smc.c +++ b/net/smc/af_smc.c | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-only | ||
| 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/net/smc/smc_diag.c b/net/smc/smc_diag.c index 371b4cf31fcd..f38727ecf8b2 100644 --- a/net/smc/smc_diag.c +++ b/net/smc/smc_diag.c | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-only | ||
| 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/net/socket.c b/net/socket.c index 472fbefa5d9b..72372dc5dd70 100644 --- a/net/socket.c +++ b/net/socket.c | |||
| @@ -645,14 +645,6 @@ void __sock_tx_timestamp(__u16 tsflags, __u8 *tx_flags) | |||
| 645 | } | 645 | } |
| 646 | EXPORT_SYMBOL(__sock_tx_timestamp); | 646 | EXPORT_SYMBOL(__sock_tx_timestamp); |
| 647 | 647 | ||
| 648 | /** | ||
| 649 | * sock_sendmsg - send a message through @sock | ||
| 650 | * @sock: socket | ||
| 651 | * @msg: message to send | ||
| 652 | * | ||
| 653 | * Sends @msg through @sock, passing through LSM. | ||
| 654 | * Returns the number of bytes sent, or an error code. | ||
| 655 | */ | ||
| 656 | INDIRECT_CALLABLE_DECLARE(int inet_sendmsg(struct socket *, struct msghdr *, | 648 | INDIRECT_CALLABLE_DECLARE(int inet_sendmsg(struct socket *, struct msghdr *, |
| 657 | size_t)); | 649 | size_t)); |
| 658 | static inline int sock_sendmsg_nosec(struct socket *sock, struct msghdr *msg) | 650 | static inline int sock_sendmsg_nosec(struct socket *sock, struct msghdr *msg) |
| @@ -663,6 +655,14 @@ static inline int sock_sendmsg_nosec(struct socket *sock, struct msghdr *msg) | |||
| 663 | return ret; | 655 | return ret; |
| 664 | } | 656 | } |
| 665 | 657 | ||
| 658 | /** | ||
| 659 | * sock_sendmsg - send a message through @sock | ||
| 660 | * @sock: socket | ||
| 661 | * @msg: message to send | ||
| 662 | * | ||
| 663 | * Sends @msg through @sock, passing through LSM. | ||
| 664 | * Returns the number of bytes sent, or an error code. | ||
| 665 | */ | ||
| 666 | int sock_sendmsg(struct socket *sock, struct msghdr *msg) | 666 | int sock_sendmsg(struct socket *sock, struct msghdr *msg) |
| 667 | { | 667 | { |
| 668 | int err = security_socket_sendmsg(sock, msg, | 668 | int err = security_socket_sendmsg(sock, msg, |
| @@ -875,15 +875,6 @@ void __sock_recv_ts_and_drops(struct msghdr *msg, struct sock *sk, | |||
| 875 | } | 875 | } |
| 876 | EXPORT_SYMBOL_GPL(__sock_recv_ts_and_drops); | 876 | EXPORT_SYMBOL_GPL(__sock_recv_ts_and_drops); |
| 877 | 877 | ||
| 878 | /** | ||
| 879 | * sock_recvmsg - receive a message from @sock | ||
| 880 | * @sock: socket | ||
| 881 | * @msg: message to receive | ||
| 882 | * @flags: message flags | ||
| 883 | * | ||
| 884 | * Receives @msg from @sock, passing through LSM. Returns the total number | ||
| 885 | * of bytes received, or an error. | ||
| 886 | */ | ||
| 887 | INDIRECT_CALLABLE_DECLARE(int inet_recvmsg(struct socket *, struct msghdr *, | 878 | INDIRECT_CALLABLE_DECLARE(int inet_recvmsg(struct socket *, struct msghdr *, |
| 888 | size_t , int )); | 879 | size_t , int )); |
| 889 | static inline int sock_recvmsg_nosec(struct socket *sock, struct msghdr *msg, | 880 | static inline int sock_recvmsg_nosec(struct socket *sock, struct msghdr *msg, |
| @@ -893,6 +884,15 @@ static inline int sock_recvmsg_nosec(struct socket *sock, struct msghdr *msg, | |||
| 893 | msg_data_left(msg), flags); | 884 | msg_data_left(msg), flags); |
| 894 | } | 885 | } |
| 895 | 886 | ||
| 887 | /** | ||
| 888 | * sock_recvmsg - receive a message from @sock | ||
| 889 | * @sock: socket | ||
| 890 | * @msg: message to receive | ||
| 891 | * @flags: message flags | ||
| 892 | * | ||
| 893 | * Receives @msg from @sock, passing through LSM. Returns the total number | ||
| 894 | * of bytes received, or an error. | ||
| 895 | */ | ||
| 896 | int sock_recvmsg(struct socket *sock, struct msghdr *msg, int flags) | 896 | int sock_recvmsg(struct socket *sock, struct msghdr *msg, int flags) |
| 897 | { | 897 | { |
| 898 | int err = security_socket_recvmsg(sock, msg, msg_data_left(msg), flags); | 898 | int err = security_socket_recvmsg(sock, msg, msg_data_left(msg), flags); |
diff --git a/net/strparser/Kconfig b/net/strparser/Kconfig index 94da19a2a220..e6146c21a360 100644 --- a/net/strparser/Kconfig +++ b/net/strparser/Kconfig | |||
| @@ -1,2 +1,3 @@ | |||
| 1 | # SPDX-License-Identifier: GPL-2.0-only | ||
| 1 | config STREAM_PARSER | 2 | config STREAM_PARSER |
| 2 | def_bool n | 3 | def_bool n |
diff --git a/net/strparser/Makefile b/net/strparser/Makefile index 858a126ebaa0..9313191530a6 100644 --- a/net/strparser/Makefile +++ b/net/strparser/Makefile | |||
| @@ -1 +1,2 @@ | |||
| 1 | # SPDX-License-Identifier: GPL-2.0-only | ||
| 1 | obj-$(CONFIG_STREAM_PARSER) += strparser.o | 2 | obj-$(CONFIG_STREAM_PARSER) += strparser.o |
diff --git a/net/sunrpc/Kconfig b/net/sunrpc/Kconfig index 83f5617bae07..aa307505ca54 100644 --- a/net/sunrpc/Kconfig +++ b/net/sunrpc/Kconfig | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | # SPDX-License-Identifier: GPL-2.0-only | ||
| 1 | config SUNRPC | 2 | config SUNRPC |
| 2 | tristate | 3 | tristate |
| 3 | depends on MULTIUSER | 4 | depends on MULTIUSER |
diff --git a/net/sunrpc/addr.c b/net/sunrpc/addr.c index 2e0a6f92e563..d024af4be85e 100644 --- a/net/sunrpc/addr.c +++ b/net/sunrpc/addr.c | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-only | ||
| 1 | /* | 2 | /* |
| 2 | * Copyright 2009, Oracle. All rights reserved. | 3 | * Copyright 2009, Oracle. All rights reserved. |
| 3 | * | 4 | * |
diff --git a/net/sunrpc/auth.c b/net/sunrpc/auth.c index e7861026b9e5..cdb05b48de44 100644 --- a/net/sunrpc/auth.c +++ b/net/sunrpc/auth.c | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-only | ||
| 1 | /* | 2 | /* |
| 2 | * linux/net/sunrpc/auth.c | 3 | * linux/net/sunrpc/auth.c |
| 3 | * | 4 | * |
diff --git a/net/sunrpc/clnt.c b/net/sunrpc/clnt.c index c1f1afabd024..d6e57da56c94 100644 --- a/net/sunrpc/clnt.c +++ b/net/sunrpc/clnt.c | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-only | ||
| 1 | /* | 2 | /* |
| 2 | * linux/net/sunrpc/clnt.c | 3 | * linux/net/sunrpc/clnt.c |
| 3 | * | 4 | * |
diff --git a/net/sunrpc/rpc_pipe.c b/net/sunrpc/rpc_pipe.c index 979d23646e33..126d31472a99 100644 --- a/net/sunrpc/rpc_pipe.c +++ b/net/sunrpc/rpc_pipe.c | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-only | ||
| 1 | /* | 2 | /* |
| 2 | * net/sunrpc/rpc_pipe.c | 3 | * net/sunrpc/rpc_pipe.c |
| 3 | * | 4 | * |
diff --git a/net/sunrpc/rpcb_clnt.c b/net/sunrpc/rpcb_clnt.c index 2277b7cdad27..4a020b688860 100644 --- a/net/sunrpc/rpcb_clnt.c +++ b/net/sunrpc/rpcb_clnt.c | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-only | ||
| 1 | /* | 2 | /* |
| 2 | * In-kernel rpcbind client supporting versions 2, 3, and 4 of the rpcbind | 3 | * In-kernel rpcbind client supporting versions 2, 3, and 4 of the rpcbind |
| 3 | * protocol | 4 | * protocol |
diff --git a/net/sunrpc/sched.c b/net/sunrpc/sched.c index 1a12fb03e611..bb04ae52803a 100644 --- a/net/sunrpc/sched.c +++ b/net/sunrpc/sched.c | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-only | ||
| 1 | /* | 2 | /* |
| 2 | * linux/net/sunrpc/sched.c | 3 | * linux/net/sunrpc/sched.c |
| 3 | * | 4 | * |
diff --git a/net/sunrpc/socklib.c b/net/sunrpc/socklib.c index 9faea12624a6..1a864f1ed119 100644 --- a/net/sunrpc/socklib.c +++ b/net/sunrpc/socklib.c | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-only | ||
| 1 | /* | 2 | /* |
| 2 | * linux/net/sunrpc/socklib.c | 3 | * linux/net/sunrpc/socklib.c |
| 3 | * | 4 | * |
diff --git a/net/sunrpc/stats.c b/net/sunrpc/stats.c index 71166b393732..2b6dc7e5f74f 100644 --- a/net/sunrpc/stats.c +++ b/net/sunrpc/stats.c | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-only | ||
| 1 | /* | 2 | /* |
| 2 | * linux/net/sunrpc/stats.c | 3 | * linux/net/sunrpc/stats.c |
| 3 | * | 4 | * |
diff --git a/net/sunrpc/sunrpc_syms.c b/net/sunrpc/sunrpc_syms.c index 56f9eff74150..f9edaa9174a4 100644 --- a/net/sunrpc/sunrpc_syms.c +++ b/net/sunrpc/sunrpc_syms.c | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-only | ||
| 1 | /* | 2 | /* |
| 2 | * linux/net/sunrpc/sunrpc_syms.c | 3 | * linux/net/sunrpc/sunrpc_syms.c |
| 3 | * | 4 | * |
diff --git a/net/sunrpc/svc.c b/net/sunrpc/svc.c index 2be827820247..e15cb704453e 100644 --- a/net/sunrpc/svc.c +++ b/net/sunrpc/svc.c | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-only | ||
| 1 | /* | 2 | /* |
| 2 | * linux/net/sunrpc/svc.c | 3 | * linux/net/sunrpc/svc.c |
| 3 | * | 4 | * |
diff --git a/net/sunrpc/svc_xprt.c b/net/sunrpc/svc_xprt.c index 9429b28e9ba0..869ce7737997 100644 --- a/net/sunrpc/svc_xprt.c +++ b/net/sunrpc/svc_xprt.c | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-only | ||
| 1 | /* | 2 | /* |
| 2 | * linux/net/sunrpc/svc_xprt.c | 3 | * linux/net/sunrpc/svc_xprt.c |
| 3 | * | 4 | * |
diff --git a/net/sunrpc/svcauth.c b/net/sunrpc/svcauth.c index 775b8c94265b..550b214cb001 100644 --- a/net/sunrpc/svcauth.c +++ b/net/sunrpc/svcauth.c | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-only | ||
| 1 | /* | 2 | /* |
| 2 | * linux/net/sunrpc/svcauth.c | 3 | * linux/net/sunrpc/svcauth.c |
| 3 | * | 4 | * |
diff --git a/net/sunrpc/svcauth_unix.c b/net/sunrpc/svcauth_unix.c index f92ef79c8ea5..5c04ba7d456b 100644 --- a/net/sunrpc/svcauth_unix.c +++ b/net/sunrpc/svcauth_unix.c | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-only | ||
| 1 | #include <linux/types.h> | 2 | #include <linux/types.h> |
| 2 | #include <linux/sched.h> | 3 | #include <linux/sched.h> |
| 3 | #include <linux/module.h> | 4 | #include <linux/module.h> |
diff --git a/net/sunrpc/svcsock.c b/net/sunrpc/svcsock.c index 540fde2804d0..2934dd711715 100644 --- a/net/sunrpc/svcsock.c +++ b/net/sunrpc/svcsock.c | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-only | ||
| 1 | /* | 2 | /* |
| 2 | * linux/net/sunrpc/svcsock.c | 3 | * linux/net/sunrpc/svcsock.c |
| 3 | * | 4 | * |
diff --git a/net/sunrpc/sysctl.c b/net/sunrpc/sysctl.c index 0bea8ff8b0d3..d75f17b56f0e 100644 --- a/net/sunrpc/sysctl.c +++ b/net/sunrpc/sysctl.c | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-only | ||
| 1 | /* | 2 | /* |
| 2 | * linux/net/sunrpc/sysctl.c | 3 | * linux/net/sunrpc/sysctl.c |
| 3 | * | 4 | * |
diff --git a/net/sunrpc/timer.c b/net/sunrpc/timer.c index 08881d0c9672..81ae35b3764f 100644 --- a/net/sunrpc/timer.c +++ b/net/sunrpc/timer.c | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-only | ||
| 1 | /* | 2 | /* |
| 2 | * linux/net/sunrpc/timer.c | 3 | * linux/net/sunrpc/timer.c |
| 3 | * | 4 | * |
diff --git a/net/sunrpc/xdr.c b/net/sunrpc/xdr.c index aa8177ddcbda..48c93b9e525e 100644 --- a/net/sunrpc/xdr.c +++ b/net/sunrpc/xdr.c | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-only | ||
| 1 | /* | 2 | /* |
| 2 | * linux/net/sunrpc/xdr.c | 3 | * linux/net/sunrpc/xdr.c |
| 3 | * | 4 | * |
diff --git a/net/sunrpc/xprt.c b/net/sunrpc/xprt.c index a9d40bc7ebed..ad21880d5601 100644 --- a/net/sunrpc/xprt.c +++ b/net/sunrpc/xprt.c | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-only | ||
| 1 | /* | 2 | /* |
| 2 | * linux/net/sunrpc/xprt.c | 3 | * linux/net/sunrpc/xprt.c |
| 3 | * | 4 | * |
diff --git a/net/switchdev/Kconfig b/net/switchdev/Kconfig index 651fa201a570..50f21a657007 100644 --- a/net/switchdev/Kconfig +++ b/net/switchdev/Kconfig | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | # SPDX-License-Identifier: GPL-2.0-only | ||
| 1 | # | 2 | # |
| 2 | # Configuration for Switch device support | 3 | # Configuration for Switch device support |
| 3 | # | 4 | # |
diff --git a/net/switchdev/Makefile b/net/switchdev/Makefile index 5ed63ed324d0..bd69a3136e76 100644 --- a/net/switchdev/Makefile +++ b/net/switchdev/Makefile | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | # SPDX-License-Identifier: GPL-2.0-only | ||
| 1 | # | 2 | # |
| 2 | # Makefile for the Switch device API | 3 | # Makefile for the Switch device API |
| 3 | # | 4 | # |
diff --git a/net/sysctl_net.c b/net/sysctl_net.c index 9aed6fe1bf1a..d14dab8b6774 100644 --- a/net/sysctl_net.c +++ b/net/sysctl_net.c | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-only | ||
| 1 | /* -*- linux-c -*- | 2 | /* -*- linux-c -*- |
| 2 | * sysctl_net.c: sysctl interface to net subsystem. | 3 | * sysctl_net.c: sysctl interface to net subsystem. |
| 3 | * | 4 | * |
diff --git a/net/tipc/Kconfig b/net/tipc/Kconfig index e450212121d2..b93bb7bdb04a 100644 --- a/net/tipc/Kconfig +++ b/net/tipc/Kconfig | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | # SPDX-License-Identifier: GPL-2.0-only | ||
| 1 | # | 2 | # |
| 2 | # TIPC configuration | 3 | # TIPC configuration |
| 3 | # | 4 | # |
diff --git a/net/tipc/core.c b/net/tipc/core.c index 27cccd101ef6..ed536c05252a 100644 --- a/net/tipc/core.c +++ b/net/tipc/core.c | |||
| @@ -77,9 +77,6 @@ static int __net_init tipc_init_net(struct net *net) | |||
| 77 | goto out_nametbl; | 77 | goto out_nametbl; |
| 78 | 78 | ||
| 79 | INIT_LIST_HEAD(&tn->dist_queue); | 79 | INIT_LIST_HEAD(&tn->dist_queue); |
| 80 | err = tipc_topsrv_start(net); | ||
| 81 | if (err) | ||
| 82 | goto out_subscr; | ||
| 83 | 80 | ||
| 84 | err = tipc_bcast_init(net); | 81 | err = tipc_bcast_init(net); |
| 85 | if (err) | 82 | if (err) |
| @@ -88,8 +85,6 @@ static int __net_init tipc_init_net(struct net *net) | |||
| 88 | return 0; | 85 | return 0; |
| 89 | 86 | ||
| 90 | out_bclink: | 87 | out_bclink: |
| 91 | tipc_bcast_stop(net); | ||
| 92 | out_subscr: | ||
| 93 | tipc_nametbl_stop(net); | 88 | tipc_nametbl_stop(net); |
| 94 | out_nametbl: | 89 | out_nametbl: |
| 95 | tipc_sk_rht_destroy(net); | 90 | tipc_sk_rht_destroy(net); |
| @@ -99,7 +94,6 @@ out_sk_rht: | |||
| 99 | 94 | ||
| 100 | static void __net_exit tipc_exit_net(struct net *net) | 95 | static void __net_exit tipc_exit_net(struct net *net) |
| 101 | { | 96 | { |
| 102 | tipc_topsrv_stop(net); | ||
| 103 | tipc_net_stop(net); | 97 | tipc_net_stop(net); |
| 104 | tipc_bcast_stop(net); | 98 | tipc_bcast_stop(net); |
| 105 | tipc_nametbl_stop(net); | 99 | tipc_nametbl_stop(net); |
| @@ -113,6 +107,11 @@ static struct pernet_operations tipc_net_ops = { | |||
| 113 | .size = sizeof(struct tipc_net), | 107 | .size = sizeof(struct tipc_net), |
| 114 | }; | 108 | }; |
| 115 | 109 | ||
| 110 | static struct pernet_operations tipc_topsrv_net_ops = { | ||
| 111 | .init = tipc_topsrv_init_net, | ||
| 112 | .exit = tipc_topsrv_exit_net, | ||
| 113 | }; | ||
| 114 | |||
| 116 | static int __init tipc_init(void) | 115 | static int __init tipc_init(void) |
| 117 | { | 116 | { |
| 118 | int err; | 117 | int err; |
| @@ -131,10 +130,6 @@ static int __init tipc_init(void) | |||
| 131 | if (err) | 130 | if (err) |
| 132 | goto out_netlink_compat; | 131 | goto out_netlink_compat; |
| 133 | 132 | ||
| 134 | err = tipc_socket_init(); | ||
| 135 | if (err) | ||
| 136 | goto out_socket; | ||
| 137 | |||
| 138 | err = tipc_register_sysctl(); | 133 | err = tipc_register_sysctl(); |
| 139 | if (err) | 134 | if (err) |
| 140 | goto out_sysctl; | 135 | goto out_sysctl; |
| @@ -143,6 +138,14 @@ static int __init tipc_init(void) | |||
| 143 | if (err) | 138 | if (err) |
| 144 | goto out_pernet; | 139 | goto out_pernet; |
| 145 | 140 | ||
| 141 | err = tipc_socket_init(); | ||
| 142 | if (err) | ||
| 143 | goto out_socket; | ||
| 144 | |||
| 145 | err = register_pernet_subsys(&tipc_topsrv_net_ops); | ||
| 146 | if (err) | ||
| 147 | goto out_pernet_topsrv; | ||
| 148 | |||
| 146 | err = tipc_bearer_setup(); | 149 | err = tipc_bearer_setup(); |
| 147 | if (err) | 150 | if (err) |
| 148 | goto out_bearer; | 151 | goto out_bearer; |
| @@ -150,12 +153,14 @@ static int __init tipc_init(void) | |||
| 150 | pr_info("Started in single node mode\n"); | 153 | pr_info("Started in single node mode\n"); |
| 151 | return 0; | 154 | return 0; |
| 152 | out_bearer: | 155 | out_bearer: |
| 156 | unregister_pernet_subsys(&tipc_topsrv_net_ops); | ||
| 157 | out_pernet_topsrv: | ||
| 158 | tipc_socket_stop(); | ||
| 159 | out_socket: | ||
| 153 | unregister_pernet_subsys(&tipc_net_ops); | 160 | unregister_pernet_subsys(&tipc_net_ops); |
| 154 | out_pernet: | 161 | out_pernet: |
| 155 | tipc_unregister_sysctl(); | 162 | tipc_unregister_sysctl(); |
| 156 | out_sysctl: | 163 | out_sysctl: |
| 157 | tipc_socket_stop(); | ||
| 158 | out_socket: | ||
| 159 | tipc_netlink_compat_stop(); | 164 | tipc_netlink_compat_stop(); |
| 160 | out_netlink_compat: | 165 | out_netlink_compat: |
| 161 | tipc_netlink_stop(); | 166 | tipc_netlink_stop(); |
| @@ -167,10 +172,11 @@ out_netlink: | |||
| 167 | static void __exit tipc_exit(void) | 172 | static void __exit tipc_exit(void) |
| 168 | { | 173 | { |
| 169 | tipc_bearer_cleanup(); | 174 | tipc_bearer_cleanup(); |
| 175 | unregister_pernet_subsys(&tipc_topsrv_net_ops); | ||
| 176 | tipc_socket_stop(); | ||
| 170 | unregister_pernet_subsys(&tipc_net_ops); | 177 | unregister_pernet_subsys(&tipc_net_ops); |
| 171 | tipc_netlink_stop(); | 178 | tipc_netlink_stop(); |
| 172 | tipc_netlink_compat_stop(); | 179 | tipc_netlink_compat_stop(); |
| 173 | tipc_socket_stop(); | ||
| 174 | tipc_unregister_sysctl(); | 180 | tipc_unregister_sysctl(); |
| 175 | 181 | ||
| 176 | pr_info("Deactivated\n"); | 182 | pr_info("Deactivated\n"); |
diff --git a/net/tipc/subscr.h b/net/tipc/subscr.h index d793b4343885..aa015c233898 100644 --- a/net/tipc/subscr.h +++ b/net/tipc/subscr.h | |||
| @@ -77,8 +77,9 @@ void tipc_sub_report_overlap(struct tipc_subscription *sub, | |||
| 77 | u32 found_lower, u32 found_upper, | 77 | u32 found_lower, u32 found_upper, |
| 78 | u32 event, u32 port, u32 node, | 78 | u32 event, u32 port, u32 node, |
| 79 | u32 scope, int must); | 79 | u32 scope, int must); |
| 80 | int tipc_topsrv_start(struct net *net); | 80 | |
| 81 | void tipc_topsrv_stop(struct net *net); | 81 | int __net_init tipc_topsrv_init_net(struct net *net); |
| 82 | void __net_exit tipc_topsrv_exit_net(struct net *net); | ||
| 82 | 83 | ||
| 83 | void tipc_sub_put(struct tipc_subscription *subscription); | 84 | void tipc_sub_put(struct tipc_subscription *subscription); |
| 84 | void tipc_sub_get(struct tipc_subscription *subscription); | 85 | void tipc_sub_get(struct tipc_subscription *subscription); |
diff --git a/net/tipc/topsrv.c b/net/tipc/topsrv.c index b45932d78004..f345662890a6 100644 --- a/net/tipc/topsrv.c +++ b/net/tipc/topsrv.c | |||
| @@ -635,7 +635,7 @@ static void tipc_topsrv_work_stop(struct tipc_topsrv *s) | |||
| 635 | destroy_workqueue(s->send_wq); | 635 | destroy_workqueue(s->send_wq); |
| 636 | } | 636 | } |
| 637 | 637 | ||
| 638 | int tipc_topsrv_start(struct net *net) | 638 | static int tipc_topsrv_start(struct net *net) |
| 639 | { | 639 | { |
| 640 | struct tipc_net *tn = tipc_net(net); | 640 | struct tipc_net *tn = tipc_net(net); |
| 641 | const char name[] = "topology_server"; | 641 | const char name[] = "topology_server"; |
| @@ -668,7 +668,7 @@ int tipc_topsrv_start(struct net *net) | |||
| 668 | return ret; | 668 | return ret; |
| 669 | } | 669 | } |
| 670 | 670 | ||
| 671 | void tipc_topsrv_stop(struct net *net) | 671 | static void tipc_topsrv_stop(struct net *net) |
| 672 | { | 672 | { |
| 673 | struct tipc_topsrv *srv = tipc_topsrv(net); | 673 | struct tipc_topsrv *srv = tipc_topsrv(net); |
| 674 | struct socket *lsock = srv->listener; | 674 | struct socket *lsock = srv->listener; |
| @@ -693,3 +693,13 @@ void tipc_topsrv_stop(struct net *net) | |||
| 693 | idr_destroy(&srv->conn_idr); | 693 | idr_destroy(&srv->conn_idr); |
| 694 | kfree(srv); | 694 | kfree(srv); |
| 695 | } | 695 | } |
| 696 | |||
| 697 | int __net_init tipc_topsrv_init_net(struct net *net) | ||
| 698 | { | ||
| 699 | return tipc_topsrv_start(net); | ||
| 700 | } | ||
| 701 | |||
| 702 | void __net_exit tipc_topsrv_exit_net(struct net *net) | ||
| 703 | { | ||
| 704 | tipc_topsrv_stop(net); | ||
| 705 | } | ||
diff --git a/net/tls/Kconfig b/net/tls/Kconfig index 99c1a19c17b1..e4328b3b72eb 100644 --- a/net/tls/Kconfig +++ b/net/tls/Kconfig | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | # SPDX-License-Identifier: GPL-2.0-only | ||
| 1 | # | 2 | # |
| 2 | # TLS configuration | 3 | # TLS configuration |
| 3 | # | 4 | # |
diff --git a/net/tls/Makefile b/net/tls/Makefile index 4d6b728a67d0..ef0dc74ce8f9 100644 --- a/net/tls/Makefile +++ b/net/tls/Makefile | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | # SPDX-License-Identifier: GPL-2.0-only | ||
| 1 | # | 2 | # |
| 2 | # Makefile for the TLS subsystem. | 3 | # Makefile for the TLS subsystem. |
| 3 | # | 4 | # |
diff --git a/net/unix/Kconfig b/net/unix/Kconfig index 3b9e450656a4..a23a5cca9753 100644 --- a/net/unix/Kconfig +++ b/net/unix/Kconfig | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | # SPDX-License-Identifier: GPL-2.0-only | ||
| 1 | # | 2 | # |
| 2 | # Unix Domain Sockets | 3 | # Unix Domain Sockets |
| 3 | # | 4 | # |
diff --git a/net/unix/diag.c b/net/unix/diag.c index 3183d9b8ab33..c51a707260fa 100644 --- a/net/unix/diag.c +++ b/net/unix/diag.c | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-only | ||
| 1 | #include <linux/types.h> | 2 | #include <linux/types.h> |
| 2 | #include <linux/spinlock.h> | 3 | #include <linux/spinlock.h> |
| 3 | #include <linux/sock_diag.h> | 4 | #include <linux/sock_diag.h> |
diff --git a/net/unix/garbage.c b/net/unix/garbage.c index 8bbe1b8e4ff7..12e2ddaf887f 100644 --- a/net/unix/garbage.c +++ b/net/unix/garbage.c | |||
| @@ -1,9 +1,9 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-or-later | ||
| 1 | /* | 2 | /* |
| 2 | * NET3: Garbage Collector For AF_UNIX sockets | 3 | * NET3: Garbage Collector For AF_UNIX sockets |
| 3 | * | 4 | * |
| 4 | * Garbage Collector: | 5 | * Garbage Collector: |
| 5 | * Copyright (C) Barak A. Pearlmutter. | 6 | * Copyright (C) Barak A. Pearlmutter. |
| 6 | * Released under the GPL version 2 or later. | ||
| 7 | * | 7 | * |
| 8 | * Chopped about by Alan Cox 22/3/96 to make it fit the AF_UNIX socket problem. | 8 | * Chopped about by Alan Cox 22/3/96 to make it fit the AF_UNIX socket problem. |
| 9 | * If it doesn't work blame me, it worked when Barak sent it. | 9 | * If it doesn't work blame me, it worked when Barak sent it. |
| @@ -24,11 +24,6 @@ | |||
| 24 | * | 24 | * |
| 25 | * - don't just push entire root set; process in place | 25 | * - don't just push entire root set; process in place |
| 26 | * | 26 | * |
| 27 | * This program is free software; you can redistribute it and/or | ||
| 28 | * modify it under the terms of the GNU General Public License | ||
| 29 | * as published by the Free Software Foundation; either version | ||
| 30 | * 2 of the License, or (at your option) any later version. | ||
| 31 | * | ||
| 32 | * Fixes: | 27 | * Fixes: |
| 33 | * Alan Cox 07 Sept 1997 Vmalloc internal stack as needed. | 28 | * Alan Cox 07 Sept 1997 Vmalloc internal stack as needed. |
| 34 | * Cope with changing max_files. | 29 | * Cope with changing max_files. |
diff --git a/net/vmw_vsock/Kconfig b/net/vmw_vsock/Kconfig index 970f96489fe7..8abcb815af2d 100644 --- a/net/vmw_vsock/Kconfig +++ b/net/vmw_vsock/Kconfig | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | # SPDX-License-Identifier: GPL-2.0-only | ||
| 1 | # | 2 | # |
| 2 | # Vsock protocol | 3 | # Vsock protocol |
| 3 | # | 4 | # |
diff --git a/net/vmw_vsock/hyperv_transport.c b/net/vmw_vsock/hyperv_transport.c index a827547aa102..982a8dc49e03 100644 --- a/net/vmw_vsock/hyperv_transport.c +++ b/net/vmw_vsock/hyperv_transport.c | |||
| @@ -35,6 +35,9 @@ | |||
| 35 | /* The MTU is 16KB per the host side's design */ | 35 | /* The MTU is 16KB per the host side's design */ |
| 36 | #define HVS_MTU_SIZE (1024 * 16) | 36 | #define HVS_MTU_SIZE (1024 * 16) |
| 37 | 37 | ||
| 38 | /* How long to wait for graceful shutdown of a connection */ | ||
| 39 | #define HVS_CLOSE_TIMEOUT (8 * HZ) | ||
| 40 | |||
| 38 | struct vmpipe_proto_header { | 41 | struct vmpipe_proto_header { |
| 39 | u32 pkt_type; | 42 | u32 pkt_type; |
| 40 | u32 data_size; | 43 | u32 data_size; |
| @@ -305,19 +308,32 @@ static void hvs_channel_cb(void *ctx) | |||
| 305 | sk->sk_write_space(sk); | 308 | sk->sk_write_space(sk); |
| 306 | } | 309 | } |
| 307 | 310 | ||
| 308 | static void hvs_close_connection(struct vmbus_channel *chan) | 311 | static void hvs_do_close_lock_held(struct vsock_sock *vsk, |
| 312 | bool cancel_timeout) | ||
| 309 | { | 313 | { |
| 310 | struct sock *sk = get_per_channel_state(chan); | 314 | struct sock *sk = sk_vsock(vsk); |
| 311 | struct vsock_sock *vsk = vsock_sk(sk); | ||
| 312 | |||
| 313 | lock_sock(sk); | ||
| 314 | 315 | ||
| 315 | sk->sk_state = TCP_CLOSE; | ||
| 316 | sock_set_flag(sk, SOCK_DONE); | 316 | sock_set_flag(sk, SOCK_DONE); |
| 317 | vsk->peer_shutdown |= SEND_SHUTDOWN | RCV_SHUTDOWN; | 317 | vsk->peer_shutdown = SHUTDOWN_MASK; |
| 318 | 318 | if (vsock_stream_has_data(vsk) <= 0) | |
| 319 | sk->sk_state = TCP_CLOSING; | ||
| 319 | sk->sk_state_change(sk); | 320 | sk->sk_state_change(sk); |
| 321 | if (vsk->close_work_scheduled && | ||
| 322 | (!cancel_timeout || cancel_delayed_work(&vsk->close_work))) { | ||
| 323 | vsk->close_work_scheduled = false; | ||
| 324 | vsock_remove_sock(vsk); | ||
| 320 | 325 | ||
| 326 | /* Release the reference taken while scheduling the timeout */ | ||
| 327 | sock_put(sk); | ||
| 328 | } | ||
| 329 | } | ||
| 330 | |||
| 331 | static void hvs_close_connection(struct vmbus_channel *chan) | ||
| 332 | { | ||
| 333 | struct sock *sk = get_per_channel_state(chan); | ||
| 334 | |||
| 335 | lock_sock(sk); | ||
| 336 | hvs_do_close_lock_held(vsock_sk(sk), true); | ||
| 321 | release_sock(sk); | 337 | release_sock(sk); |
| 322 | } | 338 | } |
| 323 | 339 | ||
| @@ -452,50 +468,80 @@ static int hvs_connect(struct vsock_sock *vsk) | |||
| 452 | return vmbus_send_tl_connect_request(&h->vm_srv_id, &h->host_srv_id); | 468 | return vmbus_send_tl_connect_request(&h->vm_srv_id, &h->host_srv_id); |
| 453 | } | 469 | } |
| 454 | 470 | ||
| 471 | static void hvs_shutdown_lock_held(struct hvsock *hvs, int mode) | ||
| 472 | { | ||
| 473 | struct vmpipe_proto_header hdr; | ||
| 474 | |||
| 475 | if (hvs->fin_sent || !hvs->chan) | ||
| 476 | return; | ||
| 477 | |||
| 478 | /* It can't fail: see hvs_channel_writable_bytes(). */ | ||
| 479 | (void)hvs_send_data(hvs->chan, (struct hvs_send_buf *)&hdr, 0); | ||
| 480 | hvs->fin_sent = true; | ||
| 481 | } | ||
| 482 | |||
| 455 | static int hvs_shutdown(struct vsock_sock *vsk, int mode) | 483 | static int hvs_shutdown(struct vsock_sock *vsk, int mode) |
| 456 | { | 484 | { |
| 457 | struct sock *sk = sk_vsock(vsk); | 485 | struct sock *sk = sk_vsock(vsk); |
| 458 | struct vmpipe_proto_header hdr; | ||
| 459 | struct hvs_send_buf *send_buf; | ||
| 460 | struct hvsock *hvs; | ||
| 461 | 486 | ||
| 462 | if (!(mode & SEND_SHUTDOWN)) | 487 | if (!(mode & SEND_SHUTDOWN)) |
| 463 | return 0; | 488 | return 0; |
| 464 | 489 | ||
| 465 | lock_sock(sk); | 490 | lock_sock(sk); |
| 491 | hvs_shutdown_lock_held(vsk->trans, mode); | ||
| 492 | release_sock(sk); | ||
| 493 | return 0; | ||
| 494 | } | ||
| 466 | 495 | ||
| 467 | hvs = vsk->trans; | 496 | static void hvs_close_timeout(struct work_struct *work) |
| 468 | if (hvs->fin_sent) | 497 | { |
| 469 | goto out; | 498 | struct vsock_sock *vsk = |
| 470 | 499 | container_of(work, struct vsock_sock, close_work.work); | |
| 471 | send_buf = (struct hvs_send_buf *)&hdr; | 500 | struct sock *sk = sk_vsock(vsk); |
| 472 | 501 | ||
| 473 | /* It can't fail: see hvs_channel_writable_bytes(). */ | 502 | sock_hold(sk); |
| 474 | (void)hvs_send_data(hvs->chan, send_buf, 0); | 503 | lock_sock(sk); |
| 504 | if (!sock_flag(sk, SOCK_DONE)) | ||
| 505 | hvs_do_close_lock_held(vsk, false); | ||
| 475 | 506 | ||
| 476 | hvs->fin_sent = true; | 507 | vsk->close_work_scheduled = false; |
| 477 | out: | ||
| 478 | release_sock(sk); | 508 | release_sock(sk); |
| 479 | return 0; | 509 | sock_put(sk); |
| 480 | } | 510 | } |
| 481 | 511 | ||
| 482 | static void hvs_release(struct vsock_sock *vsk) | 512 | /* Returns true, if it is safe to remove socket; false otherwise */ |
| 513 | static bool hvs_close_lock_held(struct vsock_sock *vsk) | ||
| 483 | { | 514 | { |
| 484 | struct sock *sk = sk_vsock(vsk); | 515 | struct sock *sk = sk_vsock(vsk); |
| 485 | struct hvsock *hvs = vsk->trans; | ||
| 486 | struct vmbus_channel *chan; | ||
| 487 | 516 | ||
| 488 | lock_sock(sk); | 517 | if (!(sk->sk_state == TCP_ESTABLISHED || |
| 518 | sk->sk_state == TCP_CLOSING)) | ||
| 519 | return true; | ||
| 489 | 520 | ||
| 490 | sk->sk_state = TCP_CLOSING; | 521 | if ((sk->sk_shutdown & SHUTDOWN_MASK) != SHUTDOWN_MASK) |
| 491 | vsock_remove_sock(vsk); | 522 | hvs_shutdown_lock_held(vsk->trans, SHUTDOWN_MASK); |
| 492 | 523 | ||
| 493 | release_sock(sk); | 524 | if (sock_flag(sk, SOCK_DONE)) |
| 525 | return true; | ||
| 494 | 526 | ||
| 495 | chan = hvs->chan; | 527 | /* This reference will be dropped by the delayed close routine */ |
| 496 | if (chan) | 528 | sock_hold(sk); |
| 497 | hvs_shutdown(vsk, RCV_SHUTDOWN | SEND_SHUTDOWN); | 529 | INIT_DELAYED_WORK(&vsk->close_work, hvs_close_timeout); |
| 530 | vsk->close_work_scheduled = true; | ||
| 531 | schedule_delayed_work(&vsk->close_work, HVS_CLOSE_TIMEOUT); | ||
| 532 | return false; | ||
| 533 | } | ||
| 498 | 534 | ||
| 535 | static void hvs_release(struct vsock_sock *vsk) | ||
| 536 | { | ||
| 537 | struct sock *sk = sk_vsock(vsk); | ||
| 538 | bool remove_sock; | ||
| 539 | |||
| 540 | lock_sock(sk); | ||
| 541 | remove_sock = hvs_close_lock_held(vsk); | ||
| 542 | release_sock(sk); | ||
| 543 | if (remove_sock) | ||
| 544 | vsock_remove_sock(vsk); | ||
| 499 | } | 545 | } |
| 500 | 546 | ||
| 501 | static void hvs_destruct(struct vsock_sock *vsk) | 547 | static void hvs_destruct(struct vsock_sock *vsk) |
diff --git a/net/vmw_vsock/virtio_transport.c b/net/vmw_vsock/virtio_transport.c index 15eb5d3d4750..96ab344f17bb 100644 --- a/net/vmw_vsock/virtio_transport.c +++ b/net/vmw_vsock/virtio_transport.c | |||
| @@ -702,28 +702,27 @@ static int __init virtio_vsock_init(void) | |||
| 702 | if (!virtio_vsock_workqueue) | 702 | if (!virtio_vsock_workqueue) |
| 703 | return -ENOMEM; | 703 | return -ENOMEM; |
| 704 | 704 | ||
| 705 | ret = register_virtio_driver(&virtio_vsock_driver); | 705 | ret = vsock_core_init(&virtio_transport.transport); |
| 706 | if (ret) | 706 | if (ret) |
| 707 | goto out_wq; | 707 | goto out_wq; |
| 708 | 708 | ||
| 709 | ret = vsock_core_init(&virtio_transport.transport); | 709 | ret = register_virtio_driver(&virtio_vsock_driver); |
| 710 | if (ret) | 710 | if (ret) |
| 711 | goto out_vdr; | 711 | goto out_vci; |
| 712 | 712 | ||
| 713 | return 0; | 713 | return 0; |
| 714 | 714 | ||
| 715 | out_vdr: | 715 | out_vci: |
| 716 | unregister_virtio_driver(&virtio_vsock_driver); | 716 | vsock_core_exit(); |
| 717 | out_wq: | 717 | out_wq: |
| 718 | destroy_workqueue(virtio_vsock_workqueue); | 718 | destroy_workqueue(virtio_vsock_workqueue); |
| 719 | return ret; | 719 | return ret; |
| 720 | |||
| 721 | } | 720 | } |
| 722 | 721 | ||
| 723 | static void __exit virtio_vsock_exit(void) | 722 | static void __exit virtio_vsock_exit(void) |
| 724 | { | 723 | { |
| 725 | vsock_core_exit(); | ||
| 726 | unregister_virtio_driver(&virtio_vsock_driver); | 724 | unregister_virtio_driver(&virtio_vsock_driver); |
| 725 | vsock_core_exit(); | ||
| 727 | destroy_workqueue(virtio_vsock_workqueue); | 726 | destroy_workqueue(virtio_vsock_workqueue); |
| 728 | } | 727 | } |
| 729 | 728 | ||
diff --git a/net/vmw_vsock/virtio_transport_common.c b/net/vmw_vsock/virtio_transport_common.c index 602715fc9a75..f3f3d06cb6d8 100644 --- a/net/vmw_vsock/virtio_transport_common.c +++ b/net/vmw_vsock/virtio_transport_common.c | |||
| @@ -786,12 +786,19 @@ static bool virtio_transport_close(struct vsock_sock *vsk) | |||
| 786 | 786 | ||
| 787 | void virtio_transport_release(struct vsock_sock *vsk) | 787 | void virtio_transport_release(struct vsock_sock *vsk) |
| 788 | { | 788 | { |
| 789 | struct virtio_vsock_sock *vvs = vsk->trans; | ||
| 790 | struct virtio_vsock_pkt *pkt, *tmp; | ||
| 789 | struct sock *sk = &vsk->sk; | 791 | struct sock *sk = &vsk->sk; |
| 790 | bool remove_sock = true; | 792 | bool remove_sock = true; |
| 791 | 793 | ||
| 792 | lock_sock(sk); | 794 | lock_sock(sk); |
| 793 | if (sk->sk_type == SOCK_STREAM) | 795 | if (sk->sk_type == SOCK_STREAM) |
| 794 | remove_sock = virtio_transport_close(vsk); | 796 | remove_sock = virtio_transport_close(vsk); |
| 797 | |||
| 798 | list_for_each_entry_safe(pkt, tmp, &vvs->rx_queue, list) { | ||
| 799 | list_del(&pkt->list); | ||
| 800 | virtio_transport_free_pkt(pkt); | ||
| 801 | } | ||
| 795 | release_sock(sk); | 802 | release_sock(sk); |
| 796 | 803 | ||
| 797 | if (remove_sock) | 804 | if (remove_sock) |
diff --git a/net/wimax/Kconfig b/net/wimax/Kconfig index e4d97ab476d5..d13762bc4abc 100644 --- a/net/wimax/Kconfig +++ b/net/wimax/Kconfig | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | # SPDX-License-Identifier: GPL-2.0-only | ||
| 1 | # | 2 | # |
| 2 | # WiMAX LAN device configuration | 3 | # WiMAX LAN device configuration |
| 3 | # | 4 | # |
diff --git a/net/wireless/Kconfig b/net/wireless/Kconfig index 41722046b937..6310ddede220 100644 --- a/net/wireless/Kconfig +++ b/net/wireless/Kconfig | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | # SPDX-License-Identifier: GPL-2.0-only | ||
| 1 | config WIRELESS_EXT | 2 | config WIRELESS_EXT |
| 2 | bool | 3 | bool |
| 3 | 4 | ||
diff --git a/net/wireless/core.c b/net/wireless/core.c index b36ad8efb5e5..037816163e70 100644 --- a/net/wireless/core.c +++ b/net/wireless/core.c | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-only | ||
| 1 | /* | 2 | /* |
| 2 | * This is the linux wireless configuration interface. | 3 | * This is the linux wireless configuration interface. |
| 3 | * | 4 | * |
diff --git a/net/wireless/lib80211.c b/net/wireless/lib80211.c index 801d4781a73b..cc7b9fd5c166 100644 --- a/net/wireless/lib80211.c +++ b/net/wireless/lib80211.c | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-only | ||
| 1 | /* | 2 | /* |
| 2 | * lib80211 -- common bits for IEEE802.11 drivers | 3 | * lib80211 -- common bits for IEEE802.11 drivers |
| 3 | * | 4 | * |
diff --git a/net/wireless/nl80211.c b/net/wireless/nl80211.c index fffe4b371e23..c391b560d986 100644 --- a/net/wireless/nl80211.c +++ b/net/wireless/nl80211.c | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-only | ||
| 1 | /* | 2 | /* |
| 2 | * This is the new netlink-based wireless configuration interface. | 3 | * This is the new netlink-based wireless configuration interface. |
| 3 | * | 4 | * |
diff --git a/net/wireless/wext-compat.h b/net/wireless/wext-compat.h index 94c7405a5413..8d3cc1552e2f 100644 --- a/net/wireless/wext-compat.h +++ b/net/wireless/wext-compat.h | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | /* SPDX-License-Identifier: GPL-2.0-only */ | ||
| 1 | #ifndef __WEXT_COMPAT | 2 | #ifndef __WEXT_COMPAT |
| 2 | #define __WEXT_COMPAT | 3 | #define __WEXT_COMPAT |
| 3 | 4 | ||
diff --git a/net/x25/Kconfig b/net/x25/Kconfig index 59fcb41fc5e6..2ecb2e5e241e 100644 --- a/net/x25/Kconfig +++ b/net/x25/Kconfig | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | # SPDX-License-Identifier: GPL-2.0-only | ||
| 1 | # | 2 | # |
| 2 | # CCITT X.25 Packet Layer | 3 | # CCITT X.25 Packet Layer |
| 3 | # | 4 | # |
diff --git a/net/x25/af_x25.c b/net/x25/af_x25.c index 0ea48a52ce79..6aee9f5e8e71 100644 --- a/net/x25/af_x25.c +++ b/net/x25/af_x25.c | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-or-later | ||
| 1 | /* | 2 | /* |
| 2 | * X.25 Packet Layer release 002 | 3 | * X.25 Packet Layer release 002 |
| 3 | * | 4 | * |
| @@ -7,12 +8,6 @@ | |||
| 7 | * | 8 | * |
| 8 | * This code REQUIRES 2.1.15 or higher | 9 | * This code REQUIRES 2.1.15 or higher |
| 9 | * | 10 | * |
| 10 | * This module: | ||
| 11 | * This module is free software; you can redistribute it and/or | ||
| 12 | * modify it under the terms of the GNU General Public License | ||
| 13 | * as published by the Free Software Foundation; either version | ||
| 14 | * 2 of the License, or (at your option) any later version. | ||
| 15 | * | ||
| 16 | * History | 11 | * History |
| 17 | * X.25 001 Jonathan Naylor Started coding. | 12 | * X.25 001 Jonathan Naylor Started coding. |
| 18 | * X.25 002 Jonathan Naylor Centralised disconnect handling. | 13 | * X.25 002 Jonathan Naylor Centralised disconnect handling. |
diff --git a/net/x25/x25_dev.c b/net/x25/x25_dev.c index 39231237e1c3..5c111bc3c8ea 100644 --- a/net/x25/x25_dev.c +++ b/net/x25/x25_dev.c | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-or-later | ||
| 1 | /* | 2 | /* |
| 2 | * X.25 Packet Layer release 002 | 3 | * X.25 Packet Layer release 002 |
| 3 | * | 4 | * |
| @@ -6,12 +7,6 @@ | |||
| 6 | * | 7 | * |
| 7 | * This code REQUIRES 2.1.15 or higher | 8 | * This code REQUIRES 2.1.15 or higher |
| 8 | * | 9 | * |
| 9 | * This module: | ||
| 10 | * This module is free software; you can redistribute it and/or | ||
| 11 | * modify it under the terms of the GNU General Public License | ||
| 12 | * as published by the Free Software Foundation; either version | ||
| 13 | * 2 of the License, or (at your option) any later version. | ||
| 14 | * | ||
| 15 | * History | 10 | * History |
| 16 | * X.25 001 Jonathan Naylor Started coding. | 11 | * X.25 001 Jonathan Naylor Started coding. |
| 17 | * 2000-09-04 Henner Eisen Prevent freeing a dangling skb. | 12 | * 2000-09-04 Henner Eisen Prevent freeing a dangling skb. |
diff --git a/net/x25/x25_facilities.c b/net/x25/x25_facilities.c index ad1734d36ed7..7fb327632272 100644 --- a/net/x25/x25_facilities.c +++ b/net/x25/x25_facilities.c | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-or-later | ||
| 1 | /* | 2 | /* |
| 2 | * X.25 Packet Layer release 002 | 3 | * X.25 Packet Layer release 002 |
| 3 | * | 4 | * |
| @@ -7,12 +8,6 @@ | |||
| 7 | * | 8 | * |
| 8 | * This code REQUIRES 2.1.15 or higher | 9 | * This code REQUIRES 2.1.15 or higher |
| 9 | * | 10 | * |
| 10 | * This module: | ||
| 11 | * This module is free software; you can redistribute it and/or | ||
| 12 | * modify it under the terms of the GNU General Public License | ||
| 13 | * as published by the Free Software Foundation; either version | ||
| 14 | * 2 of the License, or (at your option) any later version. | ||
| 15 | * | ||
| 16 | * History | 11 | * History |
| 17 | * X.25 001 Split from x25_subr.c | 12 | * X.25 001 Split from x25_subr.c |
| 18 | * mar/20/00 Daniela Squassoni Disabling/enabling of facilities | 13 | * mar/20/00 Daniela Squassoni Disabling/enabling of facilities |
diff --git a/net/x25/x25_forward.c b/net/x25/x25_forward.c index cf561f1613e1..c82999941d3f 100644 --- a/net/x25/x25_forward.c +++ b/net/x25/x25_forward.c | |||
| @@ -1,10 +1,5 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-or-later | ||
| 1 | /* | 2 | /* |
| 2 | * This module: | ||
| 3 | * This module is free software; you can redistribute it and/or | ||
| 4 | * modify it under the terms of the GNU General Public License | ||
| 5 | * as published by the Free Software Foundation; either version | ||
| 6 | * 2 of the License, or (at your option) any later version. | ||
| 7 | * | ||
| 8 | * History | 3 | * History |
| 9 | * 03-01-2007 Added forwarding for x.25 Andrew Hendry | 4 | * 03-01-2007 Added forwarding for x.25 Andrew Hendry |
| 10 | */ | 5 | */ |
diff --git a/net/x25/x25_in.c b/net/x25/x25_in.c index afb26221d8a8..f97c43344e95 100644 --- a/net/x25/x25_in.c +++ b/net/x25/x25_in.c | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-or-later | ||
| 1 | /* | 2 | /* |
| 2 | * X.25 Packet Layer release 002 | 3 | * X.25 Packet Layer release 002 |
| 3 | * | 4 | * |
| @@ -7,12 +8,6 @@ | |||
| 7 | * | 8 | * |
| 8 | * This code REQUIRES 2.1.15 or higher | 9 | * This code REQUIRES 2.1.15 or higher |
| 9 | * | 10 | * |
| 10 | * This module: | ||
| 11 | * This module is free software; you can redistribute it and/or | ||
| 12 | * modify it under the terms of the GNU General Public License | ||
| 13 | * as published by the Free Software Foundation; either version | ||
| 14 | * 2 of the License, or (at your option) any later version. | ||
| 15 | * | ||
| 16 | * History | 11 | * History |
| 17 | * X.25 001 Jonathan Naylor Started coding. | 12 | * X.25 001 Jonathan Naylor Started coding. |
| 18 | * X.25 002 Jonathan Naylor Centralised disconnection code. | 13 | * X.25 002 Jonathan Naylor Centralised disconnection code. |
diff --git a/net/x25/x25_link.c b/net/x25/x25_link.c index a6a8ab09b914..7d02532aad0d 100644 --- a/net/x25/x25_link.c +++ b/net/x25/x25_link.c | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-or-later | ||
| 1 | /* | 2 | /* |
| 2 | * X.25 Packet Layer release 002 | 3 | * X.25 Packet Layer release 002 |
| 3 | * | 4 | * |
| @@ -7,12 +8,6 @@ | |||
| 7 | * | 8 | * |
| 8 | * This code REQUIRES 2.1.15 or higher | 9 | * This code REQUIRES 2.1.15 or higher |
| 9 | * | 10 | * |
| 10 | * This module: | ||
| 11 | * This module is free software; you can redistribute it and/or | ||
| 12 | * modify it under the terms of the GNU General Public License | ||
| 13 | * as published by the Free Software Foundation; either version | ||
| 14 | * 2 of the License, or (at your option) any later version. | ||
| 15 | * | ||
| 16 | * History | 11 | * History |
| 17 | * X.25 001 Jonathan Naylor Started coding. | 12 | * X.25 001 Jonathan Naylor Started coding. |
| 18 | * X.25 002 Jonathan Naylor New timer architecture. | 13 | * X.25 002 Jonathan Naylor New timer architecture. |
diff --git a/net/x25/x25_out.c b/net/x25/x25_out.c index 0144271d2184..dbc0940bf35f 100644 --- a/net/x25/x25_out.c +++ b/net/x25/x25_out.c | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-or-later | ||
| 1 | /* | 2 | /* |
| 2 | * X.25 Packet Layer release 002 | 3 | * X.25 Packet Layer release 002 |
| 3 | * | 4 | * |
| @@ -7,12 +8,6 @@ | |||
| 7 | * | 8 | * |
| 8 | * This code REQUIRES 2.1.15 or higher | 9 | * This code REQUIRES 2.1.15 or higher |
| 9 | * | 10 | * |
| 10 | * This module: | ||
| 11 | * This module is free software; you can redistribute it and/or | ||
| 12 | * modify it under the terms of the GNU General Public License | ||
| 13 | * as published by the Free Software Foundation; either version | ||
| 14 | * 2 of the License, or (at your option) any later version. | ||
| 15 | * | ||
| 16 | * History | 11 | * History |
| 17 | * X.25 001 Jonathan Naylor Started coding. | 12 | * X.25 001 Jonathan Naylor Started coding. |
| 18 | * X.25 002 Jonathan Naylor New timer architecture. | 13 | * X.25 002 Jonathan Naylor New timer architecture. |
diff --git a/net/x25/x25_proc.c b/net/x25/x25_proc.c index da52c9dc256c..3bddcbdf2e40 100644 --- a/net/x25/x25_proc.c +++ b/net/x25/x25_proc.c | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-or-later | ||
| 1 | /* | 2 | /* |
| 2 | * X.25 Packet Layer release 002 | 3 | * X.25 Packet Layer release 002 |
| 3 | * | 4 | * |
| @@ -7,12 +8,6 @@ | |||
| 7 | * | 8 | * |
| 8 | * This code REQUIRES 2.4 with seq_file support | 9 | * This code REQUIRES 2.4 with seq_file support |
| 9 | * | 10 | * |
| 10 | * This module: | ||
| 11 | * This module is free software; you can redistribute it and/or | ||
| 12 | * modify it under the terms of the GNU General Public License | ||
| 13 | * as published by the Free Software Foundation; either version | ||
| 14 | * 2 of the License, or (at your option) any later version. | ||
| 15 | * | ||
| 16 | * History | 11 | * History |
| 17 | * 2002/10/06 Arnaldo Carvalho de Melo seq_file support | 12 | * 2002/10/06 Arnaldo Carvalho de Melo seq_file support |
| 18 | */ | 13 | */ |
diff --git a/net/x25/x25_route.c b/net/x25/x25_route.c index b85b889596e5..b8e94d58d0f1 100644 --- a/net/x25/x25_route.c +++ b/net/x25/x25_route.c | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-or-later | ||
| 1 | /* | 2 | /* |
| 2 | * X.25 Packet Layer release 002 | 3 | * X.25 Packet Layer release 002 |
| 3 | * | 4 | * |
| @@ -7,12 +8,6 @@ | |||
| 7 | * | 8 | * |
| 8 | * This code REQUIRES 2.1.15 or higher | 9 | * This code REQUIRES 2.1.15 or higher |
| 9 | * | 10 | * |
| 10 | * This module: | ||
| 11 | * This module is free software; you can redistribute it and/or | ||
| 12 | * modify it under the terms of the GNU General Public License | ||
| 13 | * as published by the Free Software Foundation; either version | ||
| 14 | * 2 of the License, or (at your option) any later version. | ||
| 15 | * | ||
| 16 | * History | 11 | * History |
| 17 | * X.25 001 Jonathan Naylor Started coding. | 12 | * X.25 001 Jonathan Naylor Started coding. |
| 18 | */ | 13 | */ |
diff --git a/net/x25/x25_subr.c b/net/x25/x25_subr.c index 743103786652..8aa415a38814 100644 --- a/net/x25/x25_subr.c +++ b/net/x25/x25_subr.c | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-or-later | ||
| 1 | /* | 2 | /* |
| 2 | * X.25 Packet Layer release 002 | 3 | * X.25 Packet Layer release 002 |
| 3 | * | 4 | * |
| @@ -7,12 +8,6 @@ | |||
| 7 | * | 8 | * |
| 8 | * This code REQUIRES 2.1.15 or higher | 9 | * This code REQUIRES 2.1.15 or higher |
| 9 | * | 10 | * |
| 10 | * This module: | ||
| 11 | * This module is free software; you can redistribute it and/or | ||
| 12 | * modify it under the terms of the GNU General Public License | ||
| 13 | * as published by the Free Software Foundation; either version | ||
| 14 | * 2 of the License, or (at your option) any later version. | ||
| 15 | * | ||
| 16 | * History | 11 | * History |
| 17 | * X.25 001 Jonathan Naylor Started coding. | 12 | * X.25 001 Jonathan Naylor Started coding. |
| 18 | * X.25 002 Jonathan Naylor Centralised disconnection processing. | 13 | * X.25 002 Jonathan Naylor Centralised disconnection processing. |
diff --git a/net/x25/x25_timer.c b/net/x25/x25_timer.c index fa3461002b3e..9376365cdcc9 100644 --- a/net/x25/x25_timer.c +++ b/net/x25/x25_timer.c | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-or-later | ||
| 1 | /* | 2 | /* |
| 2 | * X.25 Packet Layer release 002 | 3 | * X.25 Packet Layer release 002 |
| 3 | * | 4 | * |
| @@ -7,12 +8,6 @@ | |||
| 7 | * | 8 | * |
| 8 | * This code REQUIRES 2.1.15 or higher | 9 | * This code REQUIRES 2.1.15 or higher |
| 9 | * | 10 | * |
| 10 | * This module: | ||
| 11 | * This module is free software; you can redistribute it and/or | ||
| 12 | * modify it under the terms of the GNU General Public License | ||
| 13 | * as published by the Free Software Foundation; either version | ||
| 14 | * 2 of the License, or (at your option) any later version. | ||
| 15 | * | ||
| 16 | * History | 11 | * History |
| 17 | * X.25 001 Jonathan Naylor Started coding. | 12 | * X.25 001 Jonathan Naylor Started coding. |
| 18 | * X.25 002 Jonathan Naylor New timer architecture. | 13 | * X.25 002 Jonathan Naylor New timer architecture. |
diff --git a/net/xdp/Kconfig b/net/xdp/Kconfig index 0255b33cff4b..71af2febe72a 100644 --- a/net/xdp/Kconfig +++ b/net/xdp/Kconfig | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | # SPDX-License-Identifier: GPL-2.0-only | ||
| 1 | config XDP_SOCKETS | 2 | config XDP_SOCKETS |
| 2 | bool "XDP sockets" | 3 | bool "XDP sockets" |
| 3 | depends on BPF_SYSCALL | 4 | depends on BPF_SYSCALL |
diff --git a/net/xdp/Makefile b/net/xdp/Makefile index 59dbfdf93dca..71e2bdafb2ce 100644 --- a/net/xdp/Makefile +++ b/net/xdp/Makefile | |||
| @@ -1,2 +1,3 @@ | |||
| 1 | # SPDX-License-Identifier: GPL-2.0-only | ||
| 1 | obj-$(CONFIG_XDP_SOCKETS) += xsk.o xdp_umem.o xsk_queue.o | 2 | obj-$(CONFIG_XDP_SOCKETS) += xsk.o xdp_umem.o xsk_queue.o |
| 2 | obj-$(CONFIG_XDP_SOCKETS_DIAG) += xsk_diag.o | 3 | obj-$(CONFIG_XDP_SOCKETS_DIAG) += xsk_diag.o |
diff --git a/net/xfrm/Kconfig b/net/xfrm/Kconfig index 1ec8071226b2..c967fc3c38c8 100644 --- a/net/xfrm/Kconfig +++ b/net/xfrm/Kconfig | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | # SPDX-License-Identifier: GPL-2.0-only | ||
| 1 | # | 2 | # |
| 2 | # XFRM configuration | 3 | # XFRM configuration |
| 3 | # | 4 | # |
diff --git a/net/xfrm/xfrm_policy.c b/net/xfrm/xfrm_policy.c index 410233c5681e..b1694d5d15d3 100644 --- a/net/xfrm/xfrm_policy.c +++ b/net/xfrm/xfrm_policy.c | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-only | ||
| 1 | /* | 2 | /* |
| 2 | * xfrm_policy.c | 3 | * xfrm_policy.c |
| 3 | * | 4 | * |
| @@ -3264,7 +3265,8 @@ static void | |||
| 3264 | decode_session4(struct sk_buff *skb, struct flowi *fl, bool reverse) | 3265 | decode_session4(struct sk_buff *skb, struct flowi *fl, bool reverse) |
| 3265 | { | 3266 | { |
| 3266 | const struct iphdr *iph = ip_hdr(skb); | 3267 | const struct iphdr *iph = ip_hdr(skb); |
| 3267 | u8 *xprth = skb_network_header(skb) + iph->ihl * 4; | 3268 | int ihl = iph->ihl; |
| 3269 | u8 *xprth = skb_network_header(skb) + ihl * 4; | ||
| 3268 | struct flowi4 *fl4 = &fl->u.ip4; | 3270 | struct flowi4 *fl4 = &fl->u.ip4; |
| 3269 | int oif = 0; | 3271 | int oif = 0; |
| 3270 | 3272 | ||
| @@ -3275,6 +3277,11 @@ decode_session4(struct sk_buff *skb, struct flowi *fl, bool reverse) | |||
| 3275 | fl4->flowi4_mark = skb->mark; | 3277 | fl4->flowi4_mark = skb->mark; |
| 3276 | fl4->flowi4_oif = reverse ? skb->skb_iif : oif; | 3278 | fl4->flowi4_oif = reverse ? skb->skb_iif : oif; |
| 3277 | 3279 | ||
| 3280 | fl4->flowi4_proto = iph->protocol; | ||
| 3281 | fl4->daddr = reverse ? iph->saddr : iph->daddr; | ||
| 3282 | fl4->saddr = reverse ? iph->daddr : iph->saddr; | ||
| 3283 | fl4->flowi4_tos = iph->tos; | ||
| 3284 | |||
| 3278 | if (!ip_is_fragment(iph)) { | 3285 | if (!ip_is_fragment(iph)) { |
| 3279 | switch (iph->protocol) { | 3286 | switch (iph->protocol) { |
| 3280 | case IPPROTO_UDP: | 3287 | case IPPROTO_UDP: |
| @@ -3286,7 +3293,7 @@ decode_session4(struct sk_buff *skb, struct flowi *fl, bool reverse) | |||
| 3286 | pskb_may_pull(skb, xprth + 4 - skb->data)) { | 3293 | pskb_may_pull(skb, xprth + 4 - skb->data)) { |
| 3287 | __be16 *ports; | 3294 | __be16 *ports; |
| 3288 | 3295 | ||
| 3289 | xprth = skb_network_header(skb) + iph->ihl * 4; | 3296 | xprth = skb_network_header(skb) + ihl * 4; |
| 3290 | ports = (__be16 *)xprth; | 3297 | ports = (__be16 *)xprth; |
| 3291 | 3298 | ||
| 3292 | fl4->fl4_sport = ports[!!reverse]; | 3299 | fl4->fl4_sport = ports[!!reverse]; |
| @@ -3298,7 +3305,7 @@ decode_session4(struct sk_buff *skb, struct flowi *fl, bool reverse) | |||
| 3298 | pskb_may_pull(skb, xprth + 2 - skb->data)) { | 3305 | pskb_may_pull(skb, xprth + 2 - skb->data)) { |
| 3299 | u8 *icmp; | 3306 | u8 *icmp; |
| 3300 | 3307 | ||
| 3301 | xprth = skb_network_header(skb) + iph->ihl * 4; | 3308 | xprth = skb_network_header(skb) + ihl * 4; |
| 3302 | icmp = xprth; | 3309 | icmp = xprth; |
| 3303 | 3310 | ||
| 3304 | fl4->fl4_icmp_type = icmp[0]; | 3311 | fl4->fl4_icmp_type = icmp[0]; |
| @@ -3310,7 +3317,7 @@ decode_session4(struct sk_buff *skb, struct flowi *fl, bool reverse) | |||
| 3310 | pskb_may_pull(skb, xprth + 4 - skb->data)) { | 3317 | pskb_may_pull(skb, xprth + 4 - skb->data)) { |
| 3311 | __be32 *ehdr; | 3318 | __be32 *ehdr; |
| 3312 | 3319 | ||
| 3313 | xprth = skb_network_header(skb) + iph->ihl * 4; | 3320 | xprth = skb_network_header(skb) + ihl * 4; |
| 3314 | ehdr = (__be32 *)xprth; | 3321 | ehdr = (__be32 *)xprth; |
| 3315 | 3322 | ||
| 3316 | fl4->fl4_ipsec_spi = ehdr[0]; | 3323 | fl4->fl4_ipsec_spi = ehdr[0]; |
| @@ -3321,7 +3328,7 @@ decode_session4(struct sk_buff *skb, struct flowi *fl, bool reverse) | |||
| 3321 | pskb_may_pull(skb, xprth + 8 - skb->data)) { | 3328 | pskb_may_pull(skb, xprth + 8 - skb->data)) { |
| 3322 | __be32 *ah_hdr; | 3329 | __be32 *ah_hdr; |
| 3323 | 3330 | ||
| 3324 | xprth = skb_network_header(skb) + iph->ihl * 4; | 3331 | xprth = skb_network_header(skb) + ihl * 4; |
| 3325 | ah_hdr = (__be32 *)xprth; | 3332 | ah_hdr = (__be32 *)xprth; |
| 3326 | 3333 | ||
| 3327 | fl4->fl4_ipsec_spi = ah_hdr[1]; | 3334 | fl4->fl4_ipsec_spi = ah_hdr[1]; |
| @@ -3332,7 +3339,7 @@ decode_session4(struct sk_buff *skb, struct flowi *fl, bool reverse) | |||
| 3332 | pskb_may_pull(skb, xprth + 4 - skb->data)) { | 3339 | pskb_may_pull(skb, xprth + 4 - skb->data)) { |
| 3333 | __be16 *ipcomp_hdr; | 3340 | __be16 *ipcomp_hdr; |
| 3334 | 3341 | ||
| 3335 | xprth = skb_network_header(skb) + iph->ihl * 4; | 3342 | xprth = skb_network_header(skb) + ihl * 4; |
| 3336 | ipcomp_hdr = (__be16 *)xprth; | 3343 | ipcomp_hdr = (__be16 *)xprth; |
| 3337 | 3344 | ||
| 3338 | fl4->fl4_ipsec_spi = htonl(ntohs(ipcomp_hdr[1])); | 3345 | fl4->fl4_ipsec_spi = htonl(ntohs(ipcomp_hdr[1])); |
| @@ -3344,7 +3351,7 @@ decode_session4(struct sk_buff *skb, struct flowi *fl, bool reverse) | |||
| 3344 | __be16 *greflags; | 3351 | __be16 *greflags; |
| 3345 | __be32 *gre_hdr; | 3352 | __be32 *gre_hdr; |
| 3346 | 3353 | ||
| 3347 | xprth = skb_network_header(skb) + iph->ihl * 4; | 3354 | xprth = skb_network_header(skb) + ihl * 4; |
| 3348 | greflags = (__be16 *)xprth; | 3355 | greflags = (__be16 *)xprth; |
| 3349 | gre_hdr = (__be32 *)xprth; | 3356 | gre_hdr = (__be32 *)xprth; |
| 3350 | 3357 | ||
| @@ -3360,10 +3367,6 @@ decode_session4(struct sk_buff *skb, struct flowi *fl, bool reverse) | |||
| 3360 | break; | 3367 | break; |
| 3361 | } | 3368 | } |
| 3362 | } | 3369 | } |
| 3363 | fl4->flowi4_proto = iph->protocol; | ||
| 3364 | fl4->daddr = reverse ? iph->saddr : iph->daddr; | ||
| 3365 | fl4->saddr = reverse ? iph->daddr : iph->saddr; | ||
| 3366 | fl4->flowi4_tos = iph->tos; | ||
| 3367 | } | 3370 | } |
| 3368 | 3371 | ||
| 3369 | #if IS_ENABLED(CONFIG_IPV6) | 3372 | #if IS_ENABLED(CONFIG_IPV6) |
diff --git a/net/xfrm/xfrm_state.c b/net/xfrm/xfrm_state.c index c5d81316330b..50621d982970 100644 --- a/net/xfrm/xfrm_state.c +++ b/net/xfrm/xfrm_state.c | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-only | ||
| 1 | /* | 2 | /* |
| 2 | * xfrm_state.c | 3 | * xfrm_state.c |
| 3 | * | 4 | * |
diff --git a/net/xfrm/xfrm_user.c b/net/xfrm/xfrm_user.c index eb8d14389601..173477211e40 100644 --- a/net/xfrm/xfrm_user.c +++ b/net/xfrm/xfrm_user.c | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-only | ||
| 1 | /* xfrm_user.c: User interface to configure xfrm engine. | 2 | /* xfrm_user.c: User interface to configure xfrm engine. |
| 2 | * | 3 | * |
| 3 | * Copyright (C) 2002 David S. Miller (davem@redhat.com) | 4 | * Copyright (C) 2002 David S. Miller (davem@redhat.com) |
