diff options
Diffstat (limited to 'net')
528 files changed, 858 insertions, 3531 deletions
diff --git a/net/6lowpan/core.c b/net/6lowpan/core.c index 40d3d72beb53..2d68351f1ac4 100644 --- a/net/6lowpan/core.c +++ b/net/6lowpan/core.c | |||
| @@ -1,11 +1,5 @@ | |||
| 1 | /* This program is free software; you can redistribute it and/or modify | 1 | // SPDX-License-Identifier: GPL-2.0-only |
| 2 | * it under the terms of the GNU General Public License version 2 | 2 | /* |
| 3 | * as published by the Free Software Foundation. | ||
| 4 | * | ||
| 5 | * This program is distributed in the hope that it will be useful, | ||
| 6 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
| 7 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
| 8 | * GNU General Public License for more details. | ||
| 9 | * | 3 | * |
| 10 | * Authors: | 4 | * Authors: |
| 11 | * (C) 2015 Pengutronix, Alexander Aring <aar@pengutronix.de> | 5 | * (C) 2015 Pengutronix, Alexander Aring <aar@pengutronix.de> |
diff --git a/net/6lowpan/debugfs.c b/net/6lowpan/debugfs.c index 536aae52eead..f5a8eec9d7a3 100644 --- a/net/6lowpan/debugfs.c +++ b/net/6lowpan/debugfs.c | |||
| @@ -1,11 +1,5 @@ | |||
| 1 | /* This program is free software; you can redistribute it and/or modify | 1 | // SPDX-License-Identifier: GPL-2.0-only |
| 2 | * it under the terms of the GNU General Public License version 2 | 2 | /* |
| 3 | * as published by the Free Software Foundation. | ||
| 4 | * | ||
| 5 | * This program is distributed in the hope that it will be useful, | ||
| 6 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
| 7 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
| 8 | * GNU General Public License for more details. | ||
| 9 | * | 3 | * |
| 10 | * Authors: | 4 | * Authors: |
| 11 | * (C) 2015 Pengutronix, Alexander Aring <aar@pengutronix.de> | 5 | * (C) 2015 Pengutronix, Alexander Aring <aar@pengutronix.de> |
diff --git a/net/6lowpan/ndisc.c b/net/6lowpan/ndisc.c index 941df2fa4448..16be8f8b2f8c 100644 --- a/net/6lowpan/ndisc.c +++ b/net/6lowpan/ndisc.c | |||
| @@ -1,11 +1,5 @@ | |||
| 1 | /* This program is free software; you can redistribute it and/or modify | 1 | // SPDX-License-Identifier: GPL-2.0-only |
| 2 | * it under the terms of the GNU General Public License version 2 | 2 | /* |
| 3 | * as published by the Free Software Foundation. | ||
| 4 | * | ||
| 5 | * This program is distributed in the hope that it will be useful, | ||
| 6 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
| 7 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
| 8 | * GNU General Public License for more details. | ||
| 9 | * | 3 | * |
| 10 | * Authors: | 4 | * Authors: |
| 11 | * (C) 2016 Pengutronix, Alexander Aring <aar@pengutronix.de> | 5 | * (C) 2016 Pengutronix, Alexander Aring <aar@pengutronix.de> |
diff --git a/net/6lowpan/nhc.c b/net/6lowpan/nhc.c index 9e56fb98f33c..d6bbbd4ab38b 100644 --- a/net/6lowpan/nhc.c +++ b/net/6lowpan/nhc.c | |||
| @@ -1,14 +1,9 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-or-later | ||
| 1 | /* | 2 | /* |
| 2 | * 6LoWPAN next header compression | 3 | * 6LoWPAN next header compression |
| 3 | * | 4 | * |
| 4 | * | ||
| 5 | * Authors: | 5 | * Authors: |
| 6 | * Alexander Aring <aar@pengutronix.de> | 6 | * Alexander Aring <aar@pengutronix.de> |
| 7 | * | ||
| 8 | * This program is free software; you can redistribute it and/or | ||
| 9 | * modify it under the terms of the GNU General Public License | ||
| 10 | * as published by the Free Software Foundation; either version | ||
| 11 | * 2 of the License, or (at your option) any later version. | ||
| 12 | */ | 7 | */ |
| 13 | 8 | ||
| 14 | #include <linux/netdevice.h> | 9 | #include <linux/netdevice.h> |
diff --git a/net/6lowpan/nhc_dest.c b/net/6lowpan/nhc_dest.c index 0b292c9646eb..4768a9459212 100644 --- a/net/6lowpan/nhc_dest.c +++ b/net/6lowpan/nhc_dest.c | |||
| @@ -1,11 +1,7 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-or-later | ||
| 1 | /* | 2 | /* |
| 2 | * 6LoWPAN IPv6 Destination Options Header compression according to | 3 | * 6LoWPAN IPv6 Destination Options Header compression according to |
| 3 | * RFC6282 | 4 | * RFC6282 |
| 4 | * | ||
| 5 | * This program is free software; you can redistribute it and/or | ||
| 6 | * modify it under the terms of the GNU General Public License | ||
| 7 | * as published by the Free Software Foundation; either version | ||
| 8 | * 2 of the License, or (at your option) any later version. | ||
| 9 | */ | 5 | */ |
| 10 | 6 | ||
| 11 | #include "nhc.h" | 7 | #include "nhc.h" |
diff --git a/net/6lowpan/nhc_fragment.c b/net/6lowpan/nhc_fragment.c index 473dbc58ef84..be85f07715bd 100644 --- a/net/6lowpan/nhc_fragment.c +++ b/net/6lowpan/nhc_fragment.c | |||
| @@ -1,10 +1,6 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-or-later | ||
| 1 | /* | 2 | /* |
| 2 | * 6LoWPAN IPv6 Fragment Header compression according to RFC6282 | 3 | * 6LoWPAN IPv6 Fragment Header compression according to RFC6282 |
| 3 | * | ||
| 4 | * This program is free software; you can redistribute 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 | */ | 4 | */ |
| 9 | 5 | ||
| 10 | #include "nhc.h" | 6 | #include "nhc.h" |
diff --git a/net/6lowpan/nhc_ghc_ext_dest.c b/net/6lowpan/nhc_ghc_ext_dest.c index 9887b3a15348..a9137f1733be 100644 --- a/net/6lowpan/nhc_ghc_ext_dest.c +++ b/net/6lowpan/nhc_ghc_ext_dest.c | |||
| @@ -1,10 +1,6 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-or-later | ||
| 1 | /* | 2 | /* |
| 2 | * 6LoWPAN Extension Header compression according to RFC7400 | 3 | * 6LoWPAN Extension Header compression according to RFC7400 |
| 3 | * | ||
| 4 | * This program is free software; you can redistribute 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 | */ | 4 | */ |
| 9 | 5 | ||
| 10 | #include "nhc.h" | 6 | #include "nhc.h" |
diff --git a/net/6lowpan/nhc_ghc_ext_frag.c b/net/6lowpan/nhc_ghc_ext_frag.c index 1308b79e939d..d49b745918e0 100644 --- a/net/6lowpan/nhc_ghc_ext_frag.c +++ b/net/6lowpan/nhc_ghc_ext_frag.c | |||
| @@ -1,10 +1,6 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-or-later | ||
| 1 | /* | 2 | /* |
| 2 | * 6LoWPAN Extension Header compression according to RFC7400 | 3 | * 6LoWPAN Extension Header compression according to RFC7400 |
| 3 | * | ||
| 4 | * This program is free software; you can redistribute 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 | */ | 4 | */ |
| 9 | 5 | ||
| 10 | #include "nhc.h" | 6 | #include "nhc.h" |
diff --git a/net/6lowpan/nhc_ghc_ext_hop.c b/net/6lowpan/nhc_ghc_ext_hop.c index baec86fd1974..3beedf5140a3 100644 --- a/net/6lowpan/nhc_ghc_ext_hop.c +++ b/net/6lowpan/nhc_ghc_ext_hop.c | |||
| @@ -1,10 +1,6 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-or-later | ||
| 1 | /* | 2 | /* |
| 2 | * 6LoWPAN Extension Header compression according to RFC7400 | 3 | * 6LoWPAN Extension Header compression according to RFC7400 |
| 3 | * | ||
| 4 | * This program is free software; you can redistribute 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 | */ | 4 | */ |
| 9 | 5 | ||
| 10 | #include "nhc.h" | 6 | #include "nhc.h" |
diff --git a/net/6lowpan/nhc_ghc_ext_route.c b/net/6lowpan/nhc_ghc_ext_route.c index d7e5bd791c62..70dc0ea3cf66 100644 --- a/net/6lowpan/nhc_ghc_ext_route.c +++ b/net/6lowpan/nhc_ghc_ext_route.c | |||
| @@ -1,10 +1,6 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-or-later | ||
| 1 | /* | 2 | /* |
| 2 | * 6LoWPAN Extension Header compression according to RFC7400 | 3 | * 6LoWPAN Extension Header compression according to RFC7400 |
| 3 | * | ||
| 4 | * This program is free software; you can redistribute 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 | */ | 4 | */ |
| 9 | 5 | ||
| 10 | #include "nhc.h" | 6 | #include "nhc.h" |
diff --git a/net/6lowpan/nhc_ghc_icmpv6.c b/net/6lowpan/nhc_ghc_icmpv6.c index 32e7c2c66bbc..339ceffc25a9 100644 --- a/net/6lowpan/nhc_ghc_icmpv6.c +++ b/net/6lowpan/nhc_ghc_icmpv6.c | |||
| @@ -1,10 +1,6 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-or-later | ||
| 1 | /* | 2 | /* |
| 2 | * 6LoWPAN ICMPv6 compression according to RFC7400 | 3 | * 6LoWPAN ICMPv6 compression according to RFC7400 |
| 3 | * | ||
| 4 | * This program is free software; you can redistribute 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 | */ | 4 | */ |
| 9 | 5 | ||
| 10 | #include "nhc.h" | 6 | #include "nhc.h" |
diff --git a/net/6lowpan/nhc_ghc_udp.c b/net/6lowpan/nhc_ghc_udp.c index 17beefa52ca8..f47fec601e73 100644 --- a/net/6lowpan/nhc_ghc_udp.c +++ b/net/6lowpan/nhc_ghc_udp.c | |||
| @@ -1,10 +1,6 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-or-later | ||
| 1 | /* | 2 | /* |
| 2 | * 6LoWPAN UDP compression according to RFC7400 | 3 | * 6LoWPAN UDP compression according to RFC7400 |
| 3 | * | ||
| 4 | * This program is free software; you can redistribute 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 | */ | 4 | */ |
| 9 | 5 | ||
| 10 | #include "nhc.h" | 6 | #include "nhc.h" |
diff --git a/net/6lowpan/nhc_hop.c b/net/6lowpan/nhc_hop.c index 1eb66be16f19..158fc1906327 100644 --- a/net/6lowpan/nhc_hop.c +++ b/net/6lowpan/nhc_hop.c | |||
| @@ -1,10 +1,6 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-or-later | ||
| 1 | /* | 2 | /* |
| 2 | * 6LoWPAN IPv6 Hop-by-Hop Options Header compression according to RFC6282 | 3 | * 6LoWPAN IPv6 Hop-by-Hop Options Header compression according to RFC6282 |
| 3 | * | ||
| 4 | * This program is free software; you can redistribute 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 | */ | 4 | */ |
| 9 | 5 | ||
| 10 | #include "nhc.h" | 6 | #include "nhc.h" |
diff --git a/net/6lowpan/nhc_ipv6.c b/net/6lowpan/nhc_ipv6.c index 2313d1600af3..08b7589e5b38 100644 --- a/net/6lowpan/nhc_ipv6.c +++ b/net/6lowpan/nhc_ipv6.c | |||
| @@ -1,10 +1,6 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-or-later | ||
| 1 | /* | 2 | /* |
| 2 | * 6LoWPAN IPv6 Header compression according to RFC6282 | 3 | * 6LoWPAN IPv6 Header compression according to RFC6282 |
| 3 | * | ||
| 4 | * This program is free software; you can redistribute 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 | */ | 4 | */ |
| 9 | 5 | ||
| 10 | #include "nhc.h" | 6 | #include "nhc.h" |
diff --git a/net/6lowpan/nhc_mobility.c b/net/6lowpan/nhc_mobility.c index 60d3f3886c98..ac8fca689828 100644 --- a/net/6lowpan/nhc_mobility.c +++ b/net/6lowpan/nhc_mobility.c | |||
| @@ -1,10 +1,6 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-or-later | ||
| 1 | /* | 2 | /* |
| 2 | * 6LoWPAN IPv6 Mobility Header compression according to RFC6282 | 3 | * 6LoWPAN IPv6 Mobility Header compression according to RFC6282 |
| 3 | * | ||
| 4 | * This program is free software; you can redistribute 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 | */ | 4 | */ |
| 9 | 5 | ||
| 10 | #include "nhc.h" | 6 | #include "nhc.h" |
diff --git a/net/6lowpan/nhc_routing.c b/net/6lowpan/nhc_routing.c index c393280f11c4..1c174023de42 100644 --- a/net/6lowpan/nhc_routing.c +++ b/net/6lowpan/nhc_routing.c | |||
| @@ -1,10 +1,6 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-or-later | ||
| 1 | /* | 2 | /* |
| 2 | * 6LoWPAN IPv6 Routing Header compression according to RFC6282 | 3 | * 6LoWPAN IPv6 Routing Header compression according to RFC6282 |
| 3 | * | ||
| 4 | * This program is free software; you can redistribute 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 | */ | 4 | */ |
| 9 | 5 | ||
| 10 | #include "nhc.h" | 6 | #include "nhc.h" |
diff --git a/net/6lowpan/nhc_udp.c b/net/6lowpan/nhc_udp.c index 225d91906dfa..8a3507524f7b 100644 --- a/net/6lowpan/nhc_udp.c +++ b/net/6lowpan/nhc_udp.c | |||
| @@ -1,18 +1,13 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-or-later | ||
| 1 | /* | 2 | /* |
| 2 | * 6LoWPAN IPv6 UDP compression according to RFC6282 | 3 | * 6LoWPAN IPv6 UDP compression according to RFC6282 |
| 3 | * | 4 | * |
| 4 | * | ||
| 5 | * Authors: | 5 | * Authors: |
| 6 | * Alexander Aring <aar@pengutronix.de> | 6 | * Alexander Aring <aar@pengutronix.de> |
| 7 | * | 7 | * |
| 8 | * Orignal written by: | 8 | * Orignal written by: |
| 9 | * Alexander Smirnov <alex.bluesman.smirnov@gmail.com> | 9 | * Alexander Smirnov <alex.bluesman.smirnov@gmail.com> |
| 10 | * Jon Smirl <jonsmirl@gmail.com> | 10 | * Jon Smirl <jonsmirl@gmail.com> |
| 11 | * | ||
| 12 | * This program is free software; you can redistribute it and/or | ||
| 13 | * modify it under the terms of the GNU General Public License | ||
| 14 | * as published by the Free Software Foundation; either version | ||
| 15 | * 2 of the License, or (at your option) any later version. | ||
| 16 | */ | 11 | */ |
| 17 | 12 | ||
| 18 | #include "nhc.h" | 13 | #include "nhc.h" |
diff --git a/net/802/fc.c b/net/802/fc.c index 058a9f708918..afd3d288a41d 100644 --- a/net/802/fc.c +++ b/net/802/fc.c | |||
| @@ -1,11 +1,7 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-or-later | ||
| 1 | /* | 2 | /* |
| 2 | * NET3: Fibre Channel device handling subroutines | 3 | * NET3: Fibre Channel device handling subroutines |
| 3 | * | 4 | * |
| 4 | * This program is free software; you can redistribute 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 | * Vineet Abraham <vma@iol.unh.edu> | 5 | * Vineet Abraham <vma@iol.unh.edu> |
| 10 | * v 1.0 03/22/99 | 6 | * v 1.0 03/22/99 |
| 11 | */ | 7 | */ |
diff --git a/net/802/fddi.c b/net/802/fddi.c index 90f1416567a1..7533ce26ba5f 100644 --- a/net/802/fddi.c +++ b/net/802/fddi.c | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-or-later | ||
| 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 |
| @@ -16,11 +17,6 @@ | |||
| 16 | * Florian La Roche, <rzsfl@rz.uni-sb.de> | 17 | * Florian La Roche, <rzsfl@rz.uni-sb.de> |
| 17 | * Alan Cox, <gw4pts@gw4pts.ampr.org> | 18 | * Alan Cox, <gw4pts@gw4pts.ampr.org> |
| 18 | * | 19 | * |
| 19 | * This program is free software; you can redistribute it and/or | ||
| 20 | * modify it under the terms of the GNU General Public License | ||
| 21 | * as published by the Free Software Foundation; either version | ||
| 22 | * 2 of the License, or (at your option) any later version. | ||
| 23 | * | ||
| 24 | * Changes | 20 | * Changes |
| 25 | * Alan Cox : New arp/rebuild header | 21 | * Alan Cox : New arp/rebuild header |
| 26 | * Maciej W. Rozycki : IPv6 support | 22 | * Maciej W. Rozycki : IPv6 support |
diff --git a/net/802/hippi.c b/net/802/hippi.c index 690308b9b94a..f80b33a8f7e0 100644 --- a/net/802/hippi.c +++ b/net/802/hippi.c | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-or-later | ||
| 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 |
| @@ -13,11 +14,6 @@ | |||
| 13 | * Florian La Roche, <rzsfl@rz.uni-sb.de> | 14 | * Florian La Roche, <rzsfl@rz.uni-sb.de> |
| 14 | * Alan Cox, <gw4pts@gw4pts.ampr.org> | 15 | * Alan Cox, <gw4pts@gw4pts.ampr.org> |
| 15 | * Jes Sorensen, <Jes.Sorensen@cern.ch> | 16 | * Jes Sorensen, <Jes.Sorensen@cern.ch> |
| 16 | * | ||
| 17 | * This program is free software; you can redistribute it and/or | ||
| 18 | * modify it under the terms of the GNU General Public License | ||
| 19 | * as published by the Free Software Foundation; either version | ||
| 20 | * 2 of the License, or (at your option) any later version. | ||
| 21 | */ | 17 | */ |
| 22 | 18 | ||
| 23 | #include <linux/module.h> | 19 | #include <linux/module.h> |
diff --git a/net/802/p8022.c b/net/802/p8022.c index 0bda8de7df51..a6585627051d 100644 --- a/net/802/p8022.c +++ b/net/802/p8022.c | |||
| @@ -1,9 +1,6 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-or-later | ||
| 1 | /* | 2 | /* |
| 2 | * NET3: Support for 802.2 demultiplexing off Ethernet | 3 | * NET3: Support for 802.2 demultiplexing off Ethernet |
| 3 | * This program 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 | * | 4 | * |
| 8 | * Demultiplex 802.2 encoded protocols. We match the entry by the | 5 | * Demultiplex 802.2 encoded protocols. We match the entry by the |
| 9 | * SSAP/DSAP pair and then deliver to the registered datalink that | 6 | * SSAP/DSAP pair and then deliver to the registered datalink that |
diff --git a/net/802/p8023.c b/net/802/p8023.c index 1256a40da43c..19cd56990db2 100644 --- a/net/802/p8023.c +++ b/net/802/p8023.c | |||
| @@ -1,11 +1,7 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-or-later | ||
| 1 | /* | 2 | /* |
| 2 | * NET3: 802.3 data link hooks used for IPX 802.3 | 3 | * NET3: 802.3 data link hooks used for IPX 802.3 |
| 3 | * | 4 | * |
| 4 | * This program is free software; you can redistribute 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 | * 802.3 isn't really a protocol data link layer. Some old IPX stuff | 5 | * 802.3 isn't really a protocol data link layer. Some old IPX stuff |
| 10 | * uses it however. Note that there is only one 802.3 protocol layer | 6 | * uses it however. Note that there is only one 802.3 protocol layer |
| 11 | * in the system. We don't currently support different protocols | 7 | * in the system. We don't currently support different protocols |
diff --git a/net/802/psnap.c b/net/802/psnap.c index db6baf7cf6e9..40ab2aea7b31 100644 --- a/net/802/psnap.c +++ b/net/802/psnap.c | |||
| @@ -1,14 +1,10 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-or-later | ||
| 1 | /* | 2 | /* |
| 2 | * SNAP data link layer. Derived from 802.2 | 3 | * SNAP data link layer. Derived from 802.2 |
| 3 | * | 4 | * |
| 4 | * Alan Cox <alan@lxorguk.ukuu.org.uk>, | 5 | * Alan Cox <alan@lxorguk.ukuu.org.uk>, |
| 5 | * from the 802.2 layer by Greg Page. | 6 | * from the 802.2 layer by Greg Page. |
| 6 | * Merged in additions from Greg Page's psnap.c. | 7 | * Merged in additions from Greg Page's psnap.c. |
| 7 | * | ||
| 8 | * This program is free software; you can redistribute it and/or | ||
| 9 | * modify it under the terms of the GNU General Public License | ||
| 10 | * as published by the Free Software Foundation; either version | ||
| 11 | * 2 of the License, or (at your option) any later version. | ||
| 12 | */ | 8 | */ |
| 13 | 9 | ||
| 14 | #include <linux/module.h> | 10 | #include <linux/module.h> |
diff --git a/net/8021q/vlan.c b/net/8021q/vlan.c index 1f99678751df..54728d2eda18 100644 --- a/net/8021q/vlan.c +++ b/net/8021q/vlan.c | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-or-later | ||
| 1 | /* | 2 | /* |
| 2 | * INET 802.1Q VLAN | 3 | * INET 802.1Q VLAN |
| 3 | * Ethernet-type device handling. | 4 | * Ethernet-type device handling. |
| @@ -11,11 +12,6 @@ | |||
| 11 | * Add HW acceleration hooks - David S. Miller <davem@redhat.com>; | 12 | * Add HW acceleration hooks - David S. Miller <davem@redhat.com>; |
| 12 | * Correct all the locking - David S. Miller <davem@redhat.com>; | 13 | * Correct all the locking - David S. Miller <davem@redhat.com>; |
| 13 | * Use hash table for VLAN groups - David S. Miller <davem@redhat.com> | 14 | * Use hash table for VLAN groups - David S. Miller <davem@redhat.com> |
| 14 | * | ||
| 15 | * This program is free software; you can redistribute it and/or | ||
| 16 | * modify it under the terms of the GNU General Public License | ||
| 17 | * as published by the Free Software Foundation; either version | ||
| 18 | * 2 of the License, or (at your option) any later version. | ||
| 19 | */ | 15 | */ |
| 20 | 16 | ||
| 21 | #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt | 17 | #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt |
diff --git a/net/8021q/vlan_dev.c b/net/8021q/vlan_dev.c index c546c4228075..a0b2d8b9def7 100644 --- a/net/8021q/vlan_dev.c +++ b/net/8021q/vlan_dev.c | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-or-later | ||
| 1 | /* -*- linux-c -*- | 2 | /* -*- linux-c -*- |
| 2 | * INET 802.1Q VLAN | 3 | * INET 802.1Q VLAN |
| 3 | * Ethernet-type device handling. | 4 | * Ethernet-type device handling. |
| @@ -12,12 +13,6 @@ | |||
| 12 | * Oct 20, 2001: Ard van Breeman: | 13 | * Oct 20, 2001: Ard van Breeman: |
| 13 | * - Fix MC-list, finally. | 14 | * - Fix MC-list, finally. |
| 14 | * - Flush MC-list on VLAN destroy. | 15 | * - Flush MC-list on VLAN destroy. |
| 15 | * | ||
| 16 | * | ||
| 17 | * This program is free software; you can redistribute it and/or | ||
| 18 | * modify it under the terms of the GNU General Public License | ||
| 19 | * as published by the Free Software Foundation; either version | ||
| 20 | * 2 of the License, or (at your option) any later version. | ||
| 21 | */ | 16 | */ |
| 22 | 17 | ||
| 23 | #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt | 18 | #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt |
diff --git a/net/8021q/vlanproc.c b/net/8021q/vlanproc.c index d36e8c4b7f56..ec87dea23719 100644 --- a/net/8021q/vlanproc.c +++ b/net/8021q/vlanproc.c | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-or-later | ||
| 1 | /****************************************************************************** | 2 | /****************************************************************************** |
| 2 | * vlanproc.c VLAN Module. /proc filesystem interface. | 3 | * vlanproc.c VLAN Module. /proc filesystem interface. |
| 3 | * | 4 | * |
| @@ -9,10 +10,6 @@ | |||
| 9 | * | 10 | * |
| 10 | * Copyright: (c) 1998 Ben Greear | 11 | * Copyright: (c) 1998 Ben Greear |
| 11 | * | 12 | * |
| 12 | * This program is free software; you can redistribute it and/or | ||
| 13 | * modify it under the terms of the GNU General Public License | ||
| 14 | * as published by the Free Software Foundation; either version | ||
| 15 | * 2 of the License, or (at your option) any later version. | ||
| 16 | * ============================================================================ | 13 | * ============================================================================ |
| 17 | * Jan 20, 1998 Ben Greear Initial Version | 14 | * Jan 20, 1998 Ben Greear Initial Version |
| 18 | *****************************************************************************/ | 15 | *****************************************************************************/ |
diff --git a/net/9p/client.c b/net/9p/client.c index b85d51f4b8eb..9622f3e469f6 100644 --- a/net/9p/client.c +++ b/net/9p/client.c | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-only | ||
| 1 | /* | 2 | /* |
| 2 | * net/9p/clnt.c | 3 | * net/9p/clnt.c |
| 3 | * | 4 | * |
| @@ -5,22 +6,6 @@ | |||
| 5 | * | 6 | * |
| 6 | * Copyright (C) 2008 by Eric Van Hensbergen <ericvh@gmail.com> | 7 | * Copyright (C) 2008 by Eric Van Hensbergen <ericvh@gmail.com> |
| 7 | * Copyright (C) 2007 by Latchesar Ionkov <lucho@ionkov.net> | 8 | * Copyright (C) 2007 by Latchesar Ionkov <lucho@ionkov.net> |
| 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 version 2 | ||
| 11 | * as published by the Free Software Foundation. | ||
| 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: | ||
| 20 | * Free Software Foundation | ||
| 21 | * 51 Franklin Street, Fifth Floor | ||
| 22 | * Boston, MA 02111-1301 USA | ||
| 23 | * | ||
| 24 | */ | 9 | */ |
| 25 | 10 | ||
| 26 | #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt | 11 | #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt |
diff --git a/net/9p/error.c b/net/9p/error.c index 126fd0dceea2..231f355fa9c6 100644 --- a/net/9p/error.c +++ b/net/9p/error.c | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-only | ||
| 1 | /* | 2 | /* |
| 2 | * linux/fs/9p/error.c | 3 | * linux/fs/9p/error.c |
| 3 | * | 4 | * |
| @@ -9,22 +10,6 @@ | |||
| 9 | * | 10 | * |
| 10 | * Copyright (C) 2004 by Eric Van Hensbergen <ericvh@gmail.com> | 11 | * Copyright (C) 2004 by Eric Van Hensbergen <ericvh@gmail.com> |
| 11 | * Copyright (C) 2002 by Ron Minnich <rminnich@lanl.gov> | 12 | * Copyright (C) 2002 by Ron Minnich <rminnich@lanl.gov> |
| 12 | * | ||
| 13 | * This program is free software; you can redistribute it and/or modify | ||
| 14 | * it under the terms of the GNU General Public License version 2 | ||
| 15 | * as published by the Free Software Foundation. | ||
| 16 | * | ||
| 17 | * This program is distributed in the hope that it will be useful, | ||
| 18 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
| 19 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
| 20 | * GNU General Public License for more details. | ||
| 21 | * | ||
| 22 | * You should have received a copy of the GNU General Public License | ||
| 23 | * along with this program; if not, write to: | ||
| 24 | * Free Software Foundation | ||
| 25 | * 51 Franklin Street, Fifth Floor | ||
| 26 | * Boston, MA 02111-1301 USA | ||
| 27 | * | ||
| 28 | */ | 13 | */ |
| 29 | 14 | ||
| 30 | #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt | 15 | #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt |
diff --git a/net/9p/mod.c b/net/9p/mod.c index 0da56d6af73b..c1b62428da7b 100644 --- a/net/9p/mod.c +++ b/net/9p/mod.c | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-only | ||
| 1 | /* | 2 | /* |
| 2 | * net/9p/9p.c | 3 | * net/9p/9p.c |
| 3 | * | 4 | * |
| @@ -6,22 +7,6 @@ | |||
| 6 | * Copyright (C) 2007 by Latchesar Ionkov <lucho@ionkov.net> | 7 | * Copyright (C) 2007 by Latchesar Ionkov <lucho@ionkov.net> |
| 7 | * Copyright (C) 2004 by Eric Van Hensbergen <ericvh@gmail.com> | 8 | * Copyright (C) 2004 by Eric Van Hensbergen <ericvh@gmail.com> |
| 8 | * Copyright (C) 2002 by Ron Minnich <rminnich@lanl.gov> | 9 | * Copyright (C) 2002 by Ron Minnich <rminnich@lanl.gov> |
| 9 | * | ||
| 10 | * This program is free software; you can redistribute it and/or modify | ||
| 11 | * it under the terms of the GNU General Public License version 2 | ||
| 12 | * as published by the Free Software Foundation. | ||
| 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, write to: | ||
| 21 | * Free Software Foundation | ||
| 22 | * 51 Franklin Street, Fifth Floor | ||
| 23 | * Boston, MA 02111-1301 USA | ||
| 24 | * | ||
| 25 | */ | 10 | */ |
| 26 | 11 | ||
| 27 | #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt | 12 | #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt |
diff --git a/net/9p/protocol.c b/net/9p/protocol.c index 462ba144cb39..03593eb240d8 100644 --- a/net/9p/protocol.c +++ b/net/9p/protocol.c | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-only | ||
| 1 | /* | 2 | /* |
| 2 | * net/9p/protocol.c | 3 | * net/9p/protocol.c |
| 3 | * | 4 | * |
| @@ -7,22 +8,6 @@ | |||
| 7 | * | 8 | * |
| 8 | * Base on code from Anthony Liguori <aliguori@us.ibm.com> | 9 | * Base on code from Anthony Liguori <aliguori@us.ibm.com> |
| 9 | * Copyright (C) 2008 by IBM, Corp. | 10 | * Copyright (C) 2008 by IBM, Corp. |
| 10 | * | ||
| 11 | * This program is free software; you can redistribute it and/or modify | ||
| 12 | * it under the terms of the GNU General Public License version 2 | ||
| 13 | * as published by the Free Software Foundation. | ||
| 14 | * | ||
| 15 | * This program is distributed in the hope that it will be useful, | ||
| 16 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
| 17 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
| 18 | * GNU General Public License for more details. | ||
| 19 | * | ||
| 20 | * You should have received a copy of the GNU General Public License | ||
| 21 | * along with this program; if not, write to: | ||
| 22 | * Free Software Foundation | ||
| 23 | * 51 Franklin Street, Fifth Floor | ||
| 24 | * Boston, MA 02111-1301 USA | ||
| 25 | * | ||
| 26 | */ | 11 | */ |
| 27 | 12 | ||
| 28 | #include <linux/module.h> | 13 | #include <linux/module.h> |
diff --git a/net/9p/protocol.h b/net/9p/protocol.h index 2cc525fa49fa..6835f91cfda5 100644 --- a/net/9p/protocol.h +++ b/net/9p/protocol.h | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | /* SPDX-License-Identifier: GPL-2.0-only */ | ||
| 1 | /* | 2 | /* |
| 2 | * net/9p/protocol.h | 3 | * net/9p/protocol.h |
| 3 | * | 4 | * |
| @@ -7,22 +8,6 @@ | |||
| 7 | * | 8 | * |
| 8 | * Base on code from Anthony Liguori <aliguori@us.ibm.com> | 9 | * Base on code from Anthony Liguori <aliguori@us.ibm.com> |
| 9 | * Copyright (C) 2008 by IBM, Corp. | 10 | * Copyright (C) 2008 by IBM, Corp. |
| 10 | * | ||
| 11 | * This program is free software; you can redistribute it and/or modify | ||
| 12 | * it under the terms of the GNU General Public License version 2 | ||
| 13 | * as published by the Free Software Foundation. | ||
| 14 | * | ||
| 15 | * This program is distributed in the hope that it will be useful, | ||
| 16 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
| 17 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
| 18 | * GNU General Public License for more details. | ||
| 19 | * | ||
| 20 | * You should have received a copy of the GNU General Public License | ||
| 21 | * along with this program; if not, write to: | ||
| 22 | * Free Software Foundation | ||
| 23 | * 51 Franklin Street, Fifth Floor | ||
| 24 | * Boston, MA 02111-1301 USA | ||
| 25 | * | ||
| 26 | */ | 11 | */ |
| 27 | 12 | ||
| 28 | int p9pdu_vwritef(struct p9_fcall *pdu, int proto_version, const char *fmt, | 13 | int p9pdu_vwritef(struct p9_fcall *pdu, int proto_version, const char *fmt, |
diff --git a/net/9p/trans_fd.c b/net/9p/trans_fd.c index f868cf6fba79..13cd683a658a 100644 --- a/net/9p/trans_fd.c +++ b/net/9p/trans_fd.c | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-only | ||
| 1 | /* | 2 | /* |
| 2 | * linux/fs/9p/trans_fd.c | 3 | * linux/fs/9p/trans_fd.c |
| 3 | * | 4 | * |
| @@ -7,22 +8,6 @@ | |||
| 7 | * Copyright (C) 2004-2005 by Latchesar Ionkov <lucho@ionkov.net> | 8 | * Copyright (C) 2004-2005 by Latchesar Ionkov <lucho@ionkov.net> |
| 8 | * Copyright (C) 2004-2008 by Eric Van Hensbergen <ericvh@gmail.com> | 9 | * Copyright (C) 2004-2008 by Eric Van Hensbergen <ericvh@gmail.com> |
| 9 | * Copyright (C) 1997-2002 by Ron Minnich <rminnich@sarnoff.com> | 10 | * Copyright (C) 1997-2002 by Ron Minnich <rminnich@sarnoff.com> |
| 10 | * | ||
| 11 | * This program is free software; you can redistribute it and/or modify | ||
| 12 | * it under the terms of the GNU General Public License version 2 | ||
| 13 | * as published by the Free Software Foundation. | ||
| 14 | * | ||
| 15 | * This program is distributed in the hope that it will be useful, | ||
| 16 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
| 17 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
| 18 | * GNU General Public License for more details. | ||
| 19 | * | ||
| 20 | * You should have received a copy of the GNU General Public License | ||
| 21 | * along with this program; if not, write to: | ||
| 22 | * Free Software Foundation | ||
| 23 | * 51 Franklin Street, Fifth Floor | ||
| 24 | * Boston, MA 02111-1301 USA | ||
| 25 | * | ||
| 26 | */ | 11 | */ |
| 27 | 12 | ||
| 28 | #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt | 13 | #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt |
diff --git a/net/9p/trans_rdma.c b/net/9p/trans_rdma.c index 119103bfa82e..bac8dad5dd69 100644 --- a/net/9p/trans_rdma.c +++ b/net/9p/trans_rdma.c | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-only | ||
| 1 | /* | 2 | /* |
| 2 | * linux/fs/9p/trans_rdma.c | 3 | * linux/fs/9p/trans_rdma.c |
| 3 | * | 4 | * |
| @@ -8,22 +9,6 @@ | |||
| 8 | * Copyright (C) 2004-2005 by Latchesar Ionkov <lucho@ionkov.net> | 9 | * Copyright (C) 2004-2005 by Latchesar Ionkov <lucho@ionkov.net> |
| 9 | * Copyright (C) 2004-2008 by Eric Van Hensbergen <ericvh@gmail.com> | 10 | * Copyright (C) 2004-2008 by Eric Van Hensbergen <ericvh@gmail.com> |
| 10 | * Copyright (C) 1997-2002 by Ron Minnich <rminnich@sarnoff.com> | 11 | * Copyright (C) 1997-2002 by Ron Minnich <rminnich@sarnoff.com> |
| 11 | * | ||
| 12 | * This program is free software; you can redistribute it and/or modify | ||
| 13 | * it under the terms of the GNU General Public License version 2 | ||
| 14 | * as published by the Free Software Foundation. | ||
| 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, write to: | ||
| 23 | * Free Software Foundation | ||
| 24 | * 51 Franklin Street, Fifth Floor | ||
| 25 | * Boston, MA 02111-1301 USA | ||
| 26 | * | ||
| 27 | */ | 12 | */ |
| 28 | 13 | ||
| 29 | #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt | 14 | #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt |
diff --git a/net/9p/trans_virtio.c b/net/9p/trans_virtio.c index b1d39cabf125..549938af02e7 100644 --- a/net/9p/trans_virtio.c +++ b/net/9p/trans_virtio.c | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-only | ||
| 1 | /* | 2 | /* |
| 2 | * The Virtio 9p transport driver | 3 | * The Virtio 9p transport driver |
| 3 | * | 4 | * |
| @@ -8,22 +9,6 @@ | |||
| 8 | * | 9 | * |
| 9 | * Based on virtio console driver | 10 | * Based on virtio console driver |
| 10 | * Copyright (C) 2006, 2007 Rusty Russell, IBM Corporation | 11 | * Copyright (C) 2006, 2007 Rusty Russell, IBM Corporation |
| 11 | * | ||
| 12 | * This program is free software; you can redistribute it and/or modify | ||
| 13 | * it under the terms of the GNU General Public License version 2 | ||
| 14 | * as published by the Free Software Foundation. | ||
| 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, write to: | ||
| 23 | * Free Software Foundation | ||
| 24 | * 51 Franklin Street, Fifth Floor | ||
| 25 | * Boston, MA 02111-1301 USA | ||
| 26 | * | ||
| 27 | */ | 12 | */ |
| 28 | 13 | ||
| 29 | #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt | 14 | #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt |
diff --git a/net/appletalk/aarp.c b/net/appletalk/aarp.c index 420a98bf79b5..45f584171de7 100644 --- a/net/appletalk/aarp.c +++ b/net/appletalk/aarp.c | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-or-later | ||
| 1 | /* | 2 | /* |
| 2 | * AARP: An implementation of the AppleTalk AARP protocol for | 3 | * AARP: An implementation of the AppleTalk AARP protocol for |
| 3 | * Ethernet 'ELAP'. | 4 | * Ethernet 'ELAP'. |
| @@ -13,12 +14,6 @@ | |||
| 13 | * Use neighbour discovery code. | 14 | * Use neighbour discovery code. |
| 14 | * Token Ring Support. | 15 | * Token Ring Support. |
| 15 | * | 16 | * |
| 16 | * This program is free software; you can redistribute it and/or | ||
| 17 | * modify it under the terms of the GNU General Public License | ||
| 18 | * as published by the Free Software Foundation; either version | ||
| 19 | * 2 of the License, or (at your option) any later version. | ||
| 20 | * | ||
| 21 | * | ||
| 22 | * References: | 17 | * References: |
| 23 | * Inside AppleTalk (2nd Ed). | 18 | * Inside AppleTalk (2nd Ed). |
| 24 | * Fixes: | 19 | * Fixes: |
| @@ -26,7 +21,6 @@ | |||
| 26 | * Rob Newberry - Added proxy AARP and AARP proc fs, | 21 | * Rob Newberry - Added proxy AARP and AARP proc fs, |
| 27 | * moved probing from DDP module. | 22 | * moved probing from DDP module. |
| 28 | * Arnaldo C. Melo - don't mangle rx packets | 23 | * Arnaldo C. Melo - don't mangle rx packets |
| 29 | * | ||
| 30 | */ | 24 | */ |
| 31 | 25 | ||
| 32 | #include <linux/if_arp.h> | 26 | #include <linux/if_arp.h> |
diff --git a/net/appletalk/atalk_proc.c b/net/appletalk/atalk_proc.c index 77f203f1febc..550c6ca007cc 100644 --- a/net/appletalk/atalk_proc.c +++ b/net/appletalk/atalk_proc.c | |||
| @@ -1,11 +1,8 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-only | ||
| 1 | /* | 2 | /* |
| 2 | * atalk_proc.c - proc support for Appletalk | 3 | * atalk_proc.c - proc support for Appletalk |
| 3 | * | 4 | * |
| 4 | * Copyright(c) Arnaldo Carvalho de Melo <acme@conectiva.com.br> | 5 | * Copyright(c) Arnaldo Carvalho de Melo <acme@conectiva.com.br> |
| 5 | * | ||
| 6 | * This program is free software; you can redistribute it and/or modify it | ||
| 7 | * under the terms of the GNU General Public License as published by the | ||
| 8 | * Free Software Foundation, version 2. | ||
| 9 | */ | 6 | */ |
| 10 | 7 | ||
| 11 | #include <linux/init.h> | 8 | #include <linux/init.h> |
diff --git a/net/appletalk/ddp.c b/net/appletalk/ddp.c index a2555023c654..a8cb6b2e20c1 100644 --- a/net/appletalk/ddp.c +++ b/net/appletalk/ddp.c | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-or-later | ||
| 1 | /* | 2 | /* |
| 2 | * DDP: An implementation of the AppleTalk DDP protocol for | 3 | * DDP: An implementation of the AppleTalk DDP protocol for |
| 3 | * Ethernet 'ELAP'. | 4 | * Ethernet 'ELAP'. |
| @@ -43,12 +44,6 @@ | |||
| 43 | * shared skb support 8) | 44 | * shared skb support 8) |
| 44 | * Arnaldo C. de Melo : Move proc stuff to atalk_proc.c, | 45 | * Arnaldo C. de Melo : Move proc stuff to atalk_proc.c, |
| 45 | * use seq_file | 46 | * use seq_file |
| 46 | * | ||
| 47 | * This program is free software; you can redistribute it and/or | ||
| 48 | * modify it under the terms of the GNU General Public License | ||
| 49 | * as published by the Free Software Foundation; either version | ||
| 50 | * 2 of the License, or (at your option) any later version. | ||
| 51 | * | ||
| 52 | */ | 47 | */ |
| 53 | 48 | ||
| 54 | #include <linux/capability.h> | 49 | #include <linux/capability.h> |
diff --git a/net/atm/pppoatm.c b/net/atm/pppoatm.c index d84227d75717..bd3da9af5ef6 100644 --- a/net/atm/pppoatm.c +++ b/net/atm/pppoatm.c | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-or-later | ||
| 1 | /* net/atm/pppoatm.c - RFC2364 PPP over ATM/AAL5 */ | 2 | /* net/atm/pppoatm.c - RFC2364 PPP over ATM/AAL5 */ |
| 2 | 3 | ||
| 3 | /* Copyright 1999-2000 by Mitchell Blank Jr */ | 4 | /* Copyright 1999-2000 by Mitchell Blank Jr */ |
| @@ -6,10 +7,6 @@ | |||
| 6 | /* And help from Jens Axboe */ | 7 | /* And help from Jens Axboe */ |
| 7 | 8 | ||
| 8 | /* | 9 | /* |
| 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 | * as published by the Free Software Foundation; either version | ||
| 12 | * 2 of the License, or (at your option) any later version. | ||
| 13 | * | 10 | * |
| 14 | * This driver provides the encapsulation and framing for sending | 11 | * This driver provides the encapsulation and framing for sending |
| 15 | * and receiving PPP frames in ATM AAL5 PDUs. | 12 | * and receiving PPP frames in ATM AAL5 PDUs. |
diff --git a/net/ax25/af_ax25.c b/net/ax25/af_ax25.c index 012c0b6fc4f6..ca5207767dc2 100644 --- a/net/ax25/af_ax25.c +++ b/net/ax25/af_ax25.c | |||
| @@ -1,8 +1,5 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-or-later | ||
| 1 | /* | 2 | /* |
| 2 | * This program is free software; you can redistribute it and/or modify | ||
| 3 | * it under the terms of the GNU General Public License as published by | ||
| 4 | * the Free Software Foundation; either version 2 of the License, or | ||
| 5 | * (at your option) any later version. | ||
| 6 | * | 3 | * |
| 7 | * Copyright (C) Alan Cox GW4PTS (alan@lxorguk.ukuu.org.uk) | 4 | * Copyright (C) Alan Cox GW4PTS (alan@lxorguk.ukuu.org.uk) |
| 8 | * Copyright (C) Jonathan Naylor G4KLX (g4klx@g4klx.demon.co.uk) | 5 | * Copyright (C) Jonathan Naylor G4KLX (g4klx@g4klx.demon.co.uk) |
diff --git a/net/ax25/ax25_addr.c b/net/ax25/ax25_addr.c index a14cfa736b63..f68865a4d0ab 100644 --- a/net/ax25/ax25_addr.c +++ b/net/ax25/ax25_addr.c | |||
| @@ -1,8 +1,5 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-or-later | ||
| 1 | /* | 2 | /* |
| 2 | * This program is free software; you can redistribute it and/or modify | ||
| 3 | * it under the terms of the GNU General Public License as published by | ||
| 4 | * the Free Software Foundation; either version 2 of the License, or | ||
| 5 | * (at your option) any later version. | ||
| 6 | * | 3 | * |
| 7 | * Copyright (C) Jonathan Naylor G4KLX (g4klx@g4klx.demon.co.uk) | 4 | * Copyright (C) Jonathan Naylor G4KLX (g4klx@g4klx.demon.co.uk) |
| 8 | */ | 5 | */ |
diff --git a/net/ax25/ax25_dev.c b/net/ax25/ax25_dev.c index d92195cd7834..4ac2e0847652 100644 --- a/net/ax25/ax25_dev.c +++ b/net/ax25/ax25_dev.c | |||
| @@ -1,8 +1,5 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-or-later | ||
| 1 | /* | 2 | /* |
| 2 | * This program is free software; you can redistribute it and/or modify | ||
| 3 | * it under the terms of the GNU General Public License as published by | ||
| 4 | * the Free Software Foundation; either version 2 of the License, or | ||
| 5 | * (at your option) any later version. | ||
| 6 | * | 3 | * |
| 7 | * Copyright (C) Jonathan Naylor G4KLX (g4klx@g4klx.demon.co.uk) | 4 | * Copyright (C) Jonathan Naylor G4KLX (g4klx@g4klx.demon.co.uk) |
| 8 | */ | 5 | */ |
diff --git a/net/ax25/ax25_ds_in.c b/net/ax25/ax25_ds_in.c index 488fc2d7085a..c62f8fb06189 100644 --- a/net/ax25/ax25_ds_in.c +++ b/net/ax25/ax25_ds_in.c | |||
| @@ -1,8 +1,5 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-or-later | ||
| 1 | /* | 2 | /* |
| 2 | * This program is free software; you can redistribute it and/or modify | ||
| 3 | * it under the terms of the GNU General Public License as published by | ||
| 4 | * the Free Software Foundation; either version 2 of the License, or | ||
| 5 | * (at your option) any later version. | ||
| 6 | * | 3 | * |
| 7 | * Copyright (C) Jonathan Naylor G4KLX (g4klx@g4klx.demon.co.uk) | 4 | * Copyright (C) Jonathan Naylor G4KLX (g4klx@g4klx.demon.co.uk) |
| 8 | * Copyright (C) Joerg Reuter DL1BKE (jreuter@yaina.de) | 5 | * Copyright (C) Joerg Reuter DL1BKE (jreuter@yaina.de) |
diff --git a/net/ax25/ax25_ds_subr.c b/net/ax25/ax25_ds_subr.c index bc0329f43013..f00e27df3c76 100644 --- a/net/ax25/ax25_ds_subr.c +++ b/net/ax25/ax25_ds_subr.c | |||
| @@ -1,8 +1,5 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-or-later | ||
| 1 | /* | 2 | /* |
| 2 | * This program is free software; you can redistribute it and/or modify | ||
| 3 | * it under the terms of the GNU General Public License as published by | ||
| 4 | * the Free Software Foundation; either version 2 of the License, or | ||
| 5 | * (at your option) any later version. | ||
| 6 | * | 3 | * |
| 7 | * Copyright (C) Jonathan Naylor G4KLX (g4klx@g4klx.demon.co.uk) | 4 | * Copyright (C) Jonathan Naylor G4KLX (g4klx@g4klx.demon.co.uk) |
| 8 | * Copyright (C) Joerg Reuter DL1BKE (jreuter@yaina.de) | 5 | * Copyright (C) Joerg Reuter DL1BKE (jreuter@yaina.de) |
diff --git a/net/ax25/ax25_ds_timer.c b/net/ax25/ax25_ds_timer.c index e9d11313d45b..c4f8adbf8144 100644 --- a/net/ax25/ax25_ds_timer.c +++ b/net/ax25/ax25_ds_timer.c | |||
| @@ -1,8 +1,5 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-or-later | ||
| 1 | /* | 2 | /* |
| 2 | * This program is free software; you can redistribute it and/or modify | ||
| 3 | * it under the terms of the GNU General Public License as published by | ||
| 4 | * the Free Software Foundation; either version 2 of the License, or | ||
| 5 | * (at your option) any later version. | ||
| 6 | * | 3 | * |
| 7 | * Copyright (C) Jonathan Naylor G4KLX (g4klx@g4klx.demon.co.uk) | 4 | * Copyright (C) Jonathan Naylor G4KLX (g4klx@g4klx.demon.co.uk) |
| 8 | * Copyright (C) Joerg Reuter DL1BKE (jreuter@yaina.de) | 5 | * Copyright (C) Joerg Reuter DL1BKE (jreuter@yaina.de) |
diff --git a/net/ax25/ax25_iface.c b/net/ax25/ax25_iface.c index 8c07c28569e4..b4083f30af0d 100644 --- a/net/ax25/ax25_iface.c +++ b/net/ax25/ax25_iface.c | |||
| @@ -1,8 +1,5 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-or-later | ||
| 1 | /* | 2 | /* |
| 2 | * This program is free software; you can redistribute it and/or modify | ||
| 3 | * it under the terms of the GNU General Public License as published by | ||
| 4 | * the Free Software Foundation; either version 2 of the License, or | ||
| 5 | * (at your option) any later version. | ||
| 6 | * | 3 | * |
| 7 | * Copyright (C) Jonathan Naylor G4KLX (g4klx@g4klx.demon.co.uk) | 4 | * Copyright (C) Jonathan Naylor G4KLX (g4klx@g4klx.demon.co.uk) |
| 8 | */ | 5 | */ |
diff --git a/net/ax25/ax25_in.c b/net/ax25/ax25_in.c index 860752639b1a..dcdbaeeb2358 100644 --- a/net/ax25/ax25_in.c +++ b/net/ax25/ax25_in.c | |||
| @@ -1,8 +1,5 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-or-later | ||
| 1 | /* | 2 | /* |
| 2 | * This program is free software; you can redistribute it and/or modify | ||
| 3 | * it under the terms of the GNU General Public License as published by | ||
| 4 | * the Free Software Foundation; either version 2 of the License, or | ||
| 5 | * (at your option) any later version. | ||
| 6 | * | 3 | * |
| 7 | * Copyright (C) Alan Cox GW4PTS (alan@lxorguk.ukuu.org.uk) | 4 | * Copyright (C) Alan Cox GW4PTS (alan@lxorguk.ukuu.org.uk) |
| 8 | * Copyright (C) Jonathan Naylor G4KLX (g4klx@g4klx.demon.co.uk) | 5 | * Copyright (C) Jonathan Naylor G4KLX (g4klx@g4klx.demon.co.uk) |
diff --git a/net/ax25/ax25_ip.c b/net/ax25/ax25_ip.c index 314bbc8010fb..e4f63dd43cb5 100644 --- a/net/ax25/ax25_ip.c +++ b/net/ax25/ax25_ip.c | |||
| @@ -1,8 +1,5 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-or-later | ||
| 1 | /* | 2 | /* |
| 2 | * This program is free software; you can redistribute it and/or modify | ||
| 3 | * it under the terms of the GNU General Public License as published by | ||
| 4 | * the Free Software Foundation; either version 2 of the License, or | ||
| 5 | * (at your option) any later version. | ||
| 6 | * | 3 | * |
| 7 | * Copyright (C) Jonathan Naylor G4KLX (g4klx@g4klx.demon.co.uk) | 4 | * Copyright (C) Jonathan Naylor G4KLX (g4klx@g4klx.demon.co.uk) |
| 8 | */ | 5 | */ |
diff --git a/net/ax25/ax25_out.c b/net/ax25/ax25_out.c index 3e5afc8dc93e..f53751ba81b3 100644 --- a/net/ax25/ax25_out.c +++ b/net/ax25/ax25_out.c | |||
| @@ -1,8 +1,5 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-or-later | ||
| 1 | /* | 2 | /* |
| 2 | * This program is free software; you can redistribute it and/or modify | ||
| 3 | * it under the terms of the GNU General Public License as published by | ||
| 4 | * the Free Software Foundation; either version 2 of the License, or | ||
| 5 | * (at your option) any later version. | ||
| 6 | * | 3 | * |
| 7 | * Copyright (C) Alan Cox GW4PTS (alan@lxorguk.ukuu.org.uk) | 4 | * Copyright (C) Alan Cox GW4PTS (alan@lxorguk.ukuu.org.uk) |
| 8 | * Copyright (C) Jonathan Naylor G4KLX (g4klx@g4klx.demon.co.uk) | 5 | * Copyright (C) Jonathan Naylor G4KLX (g4klx@g4klx.demon.co.uk) |
diff --git a/net/ax25/ax25_route.c b/net/ax25/ax25_route.c index 66f74c85cf6b..09fdd0aac4b9 100644 --- a/net/ax25/ax25_route.c +++ b/net/ax25/ax25_route.c | |||
| @@ -1,8 +1,5 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-or-later | ||
| 1 | /* | 2 | /* |
| 2 | * This program is free software; you can redistribute it and/or modify | ||
| 3 | * it under the terms of the GNU General Public License as published by | ||
| 4 | * the Free Software Foundation; either version 2 of the License, or | ||
| 5 | * (at your option) any later version. | ||
| 6 | * | 3 | * |
| 7 | * Copyright (C) Alan Cox GW4PTS (alan@lxorguk.ukuu.org.uk) | 4 | * Copyright (C) Alan Cox GW4PTS (alan@lxorguk.ukuu.org.uk) |
| 8 | * Copyright (C) Jonathan Naylor G4KLX (g4klx@g4klx.demon.co.uk) | 5 | * Copyright (C) Jonathan Naylor G4KLX (g4klx@g4klx.demon.co.uk) |
diff --git a/net/ax25/ax25_std_in.c b/net/ax25/ax25_std_in.c index 8632b86e843e..ba176196ae06 100644 --- a/net/ax25/ax25_std_in.c +++ b/net/ax25/ax25_std_in.c | |||
| @@ -1,8 +1,5 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-or-later | ||
| 1 | /* | 2 | /* |
| 2 | * This program is free software; you can redistribute it and/or modify | ||
| 3 | * it under the terms of the GNU General Public License as published by | ||
| 4 | * the Free Software Foundation; either version 2 of the License, or | ||
| 5 | * (at your option) any later version. | ||
| 6 | * | 3 | * |
| 7 | * Copyright (C) Alan Cox GW4PTS (alan@lxorguk.ukuu.org.uk) | 4 | * Copyright (C) Alan Cox GW4PTS (alan@lxorguk.ukuu.org.uk) |
| 8 | * Copyright (C) Jonathan Naylor G4KLX (g4klx@g4klx.demon.co.uk) | 5 | * Copyright (C) Jonathan Naylor G4KLX (g4klx@g4klx.demon.co.uk) |
diff --git a/net/ax25/ax25_std_subr.c b/net/ax25/ax25_std_subr.c index 94bd06396a43..4c36f1342558 100644 --- a/net/ax25/ax25_std_subr.c +++ b/net/ax25/ax25_std_subr.c | |||
| @@ -1,8 +1,5 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-or-later | ||
| 1 | /* | 2 | /* |
| 2 | * This program is free software; you can redistribute it and/or modify | ||
| 3 | * it under the terms of the GNU General Public License as published by | ||
| 4 | * the Free Software Foundation; either version 2 of the License, or | ||
| 5 | * (at your option) any later version. | ||
| 6 | * | 3 | * |
| 7 | * Copyright (C) Jonathan Naylor G4KLX (g4klx@g4klx.demon.co.uk) | 4 | * Copyright (C) Jonathan Naylor G4KLX (g4klx@g4klx.demon.co.uk) |
| 8 | */ | 5 | */ |
diff --git a/net/ax25/ax25_std_timer.c b/net/ax25/ax25_std_timer.c index 30bbc675261d..b17da41210cb 100644 --- a/net/ax25/ax25_std_timer.c +++ b/net/ax25/ax25_std_timer.c | |||
| @@ -1,8 +1,5 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-or-later | ||
| 1 | /* | 2 | /* |
| 2 | * This program is free software; you can redistribute it and/or modify | ||
| 3 | * it under the terms of the GNU General Public License as published by | ||
| 4 | * the Free Software Foundation; either version 2 of the License, or | ||
| 5 | * (at your option) any later version. | ||
| 6 | * | 3 | * |
| 7 | * Copyright (C) Alan Cox GW4PTS (alan@lxorguk.ukuu.org.uk) | 4 | * Copyright (C) Alan Cox GW4PTS (alan@lxorguk.ukuu.org.uk) |
| 8 | * Copyright (C) Jonathan Naylor G4KLX (g4klx@g4klx.demon.co.uk) | 5 | * Copyright (C) Jonathan Naylor G4KLX (g4klx@g4klx.demon.co.uk) |
diff --git a/net/ax25/ax25_subr.c b/net/ax25/ax25_subr.c index 038b109b2be7..15ab812c4fe4 100644 --- a/net/ax25/ax25_subr.c +++ b/net/ax25/ax25_subr.c | |||
| @@ -1,8 +1,5 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-or-later | ||
| 1 | /* | 2 | /* |
| 2 | * This program is free software; you can redistribute it and/or modify | ||
| 3 | * it under the terms of the GNU General Public License as published by | ||
| 4 | * the Free Software Foundation; either version 2 of the License, or | ||
| 5 | * (at your option) any later version. | ||
| 6 | * | 3 | * |
| 7 | * Copyright (C) Alan Cox GW4PTS (alan@lxorguk.ukuu.org.uk) | 4 | * Copyright (C) Alan Cox GW4PTS (alan@lxorguk.ukuu.org.uk) |
| 8 | * Copyright (C) Jonathan Naylor G4KLX (g4klx@g4klx.demon.co.uk) | 5 | * Copyright (C) Jonathan Naylor G4KLX (g4klx@g4klx.demon.co.uk) |
diff --git a/net/ax25/ax25_timer.c b/net/ax25/ax25_timer.c index c47b7ee1e4da..85865ebfdfa2 100644 --- a/net/ax25/ax25_timer.c +++ b/net/ax25/ax25_timer.c | |||
| @@ -1,8 +1,5 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-or-later | ||
| 1 | /* | 2 | /* |
| 2 | * This program is free software; you can redistribute it and/or modify | ||
| 3 | * it under the terms of the GNU General Public License as published by | ||
| 4 | * the Free Software Foundation; either version 2 of the License, or | ||
| 5 | * (at your option) any later version. | ||
| 6 | * | 3 | * |
| 7 | * Copyright (C) Alan Cox GW4PTS (alan@lxorguk.ukuu.org.uk) | 4 | * Copyright (C) Alan Cox GW4PTS (alan@lxorguk.ukuu.org.uk) |
| 8 | * Copyright (C) Jonathan Naylor G4KLX (g4klx@g4klx.demon.co.uk) | 5 | * Copyright (C) Jonathan Naylor G4KLX (g4klx@g4klx.demon.co.uk) |
diff --git a/net/ax25/ax25_uid.c b/net/ax25/ax25_uid.c index 99d02e390e43..241e4680ecb1 100644 --- a/net/ax25/ax25_uid.c +++ b/net/ax25/ax25_uid.c | |||
| @@ -1,8 +1,5 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-or-later | ||
| 1 | /* | 2 | /* |
| 2 | * This program is free software; you can redistribute it and/or modify | ||
| 3 | * it under the terms of the GNU General Public License as published by | ||
| 4 | * the Free Software Foundation; either version 2 of the License, or | ||
| 5 | * (at your option) any later version. | ||
| 6 | * | 3 | * |
| 7 | * Copyright (C) Jonathan Naylor G4KLX (g4klx@g4klx.demon.co.uk) | 4 | * Copyright (C) Jonathan Naylor G4KLX (g4klx@g4klx.demon.co.uk) |
| 8 | */ | 5 | */ |
diff --git a/net/ax25/sysctl_net_ax25.c b/net/ax25/sysctl_net_ax25.c index 919a5ce47515..2154d004d3dc 100644 --- a/net/ax25/sysctl_net_ax25.c +++ b/net/ax25/sysctl_net_ax25.c | |||
| @@ -1,8 +1,5 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-or-later | ||
| 1 | /* | 2 | /* |
| 2 | * This program is free software; you can redistribute it and/or modify | ||
| 3 | * it under the terms of the GNU General Public License as published by | ||
| 4 | * the Free Software Foundation; either version 2 of the License, or | ||
| 5 | * (at your option) any later version. | ||
| 6 | * | 3 | * |
| 7 | * Copyright (C) 1996 Mike Shaver (shaver@zeroknowledge.com) | 4 | * Copyright (C) 1996 Mike Shaver (shaver@zeroknowledge.com) |
| 8 | */ | 5 | */ |
diff --git a/net/bluetooth/6lowpan.c b/net/bluetooth/6lowpan.c index a7cd23f00bde..19d27bee285e 100644 --- a/net/bluetooth/6lowpan.c +++ b/net/bluetooth/6lowpan.c | |||
| @@ -1,14 +1,7 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-only | ||
| 1 | /* | 2 | /* |
| 2 | Copyright (c) 2013-2014 Intel Corp. | 3 | Copyright (c) 2013-2014 Intel Corp. |
| 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 and | ||
| 6 | only version 2 as published by the Free Software Foundation. | ||
| 7 | |||
| 8 | This program is distributed in the hope that it will be useful, | ||
| 9 | but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
| 10 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
| 11 | GNU General Public License for more details. | ||
| 12 | */ | 5 | */ |
| 13 | 6 | ||
| 14 | #include <linux/if_arp.h> | 7 | #include <linux/if_arp.h> |
diff --git a/net/bluetooth/a2mp.c b/net/bluetooth/a2mp.c index 5f918ea18b5a..26526be579c7 100644 --- a/net/bluetooth/a2mp.c +++ b/net/bluetooth/a2mp.c | |||
| @@ -1,15 +1,8 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-only | ||
| 1 | /* | 2 | /* |
| 2 | Copyright (c) 2010,2011 Code Aurora Forum. All rights reserved. | 3 | Copyright (c) 2010,2011 Code Aurora Forum. All rights reserved. |
| 3 | Copyright (c) 2011,2012 Intel Corp. | 4 | Copyright (c) 2011,2012 Intel Corp. |
| 4 | 5 | ||
| 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 and | ||
| 7 | only version 2 as published by the Free Software Foundation. | ||
| 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 | */ | 6 | */ |
| 14 | 7 | ||
| 15 | #include <net/bluetooth/bluetooth.h> | 8 | #include <net/bluetooth/bluetooth.h> |
diff --git a/net/bluetooth/a2mp.h b/net/bluetooth/a2mp.h index a4ff3ea9b38a..0029d5119be6 100644 --- a/net/bluetooth/a2mp.h +++ b/net/bluetooth/a2mp.h | |||
| @@ -1,15 +1,8 @@ | |||
| 1 | /* SPDX-License-Identifier: GPL-2.0-only */ | ||
| 1 | /* | 2 | /* |
| 2 | Copyright (c) 2010,2011 Code Aurora Forum. All rights reserved. | 3 | Copyright (c) 2010,2011 Code Aurora Forum. All rights reserved. |
| 3 | Copyright (c) 2011,2012 Intel Corp. | 4 | Copyright (c) 2011,2012 Intel Corp. |
| 4 | 5 | ||
| 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 and | ||
| 7 | only version 2 as published by the Free Software Foundation. | ||
| 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 | */ | 6 | */ |
| 14 | 7 | ||
| 15 | #ifndef __A2MP_H | 8 | #ifndef __A2MP_H |
diff --git a/net/bluetooth/amp.c b/net/bluetooth/amp.c index aaa39409eeb7..9c711f0dfae3 100644 --- a/net/bluetooth/amp.c +++ b/net/bluetooth/amp.c | |||
| @@ -1,14 +1,7 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-only | ||
| 1 | /* | 2 | /* |
| 2 | Copyright (c) 2011,2012 Intel Corp. | 3 | Copyright (c) 2011,2012 Intel Corp. |
| 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 and | ||
| 6 | only version 2 as published by the Free Software Foundation. | ||
| 7 | |||
| 8 | This program is distributed in the hope that it will be useful, | ||
| 9 | but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
| 10 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
| 11 | GNU General Public License for more details. | ||
| 12 | */ | 5 | */ |
| 13 | 6 | ||
| 14 | #include <net/bluetooth/bluetooth.h> | 7 | #include <net/bluetooth/bluetooth.h> |
diff --git a/net/bluetooth/amp.h b/net/bluetooth/amp.h index 8848f8158ae4..832764dfbfb3 100644 --- a/net/bluetooth/amp.h +++ b/net/bluetooth/amp.h | |||
| @@ -1,14 +1,7 @@ | |||
| 1 | /* SPDX-License-Identifier: GPL-2.0-only */ | ||
| 1 | /* | 2 | /* |
| 2 | Copyright (c) 2011,2012 Intel Corp. | 3 | Copyright (c) 2011,2012 Intel Corp. |
| 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 and | ||
| 6 | only version 2 as published by the Free Software Foundation. | ||
| 7 | |||
| 8 | This program is distributed in the hope that it will be useful, | ||
| 9 | but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
| 10 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
| 11 | GNU General Public License for more details. | ||
| 12 | */ | 5 | */ |
| 13 | 6 | ||
| 14 | #ifndef __AMP_H | 7 | #ifndef __AMP_H |
diff --git a/net/bpf/test_run.c b/net/bpf/test_run.c index 33e0dc168c16..80e6f3a6864d 100644 --- a/net/bpf/test_run.c +++ b/net/bpf/test_run.c | |||
| @@ -1,8 +1,5 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-only | ||
| 1 | /* Copyright (c) 2017 Facebook | 2 | /* Copyright (c) 2017 Facebook |
| 2 | * | ||
| 3 | * This program is free software; you can redistribute it and/or | ||
| 4 | * modify it under the terms of version 2 of the GNU General Public | ||
| 5 | * License as published by the Free Software Foundation. | ||
| 6 | */ | 3 | */ |
| 7 | #include <linux/bpf.h> | 4 | #include <linux/bpf.h> |
| 8 | #include <linux/slab.h> | 5 | #include <linux/slab.h> |
diff --git a/net/bridge/br.c b/net/bridge/br.c index 3c8e4b38f054..d164f63a4345 100644 --- a/net/bridge/br.c +++ b/net/bridge/br.c | |||
| @@ -1,14 +1,10 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-or-later | ||
| 1 | /* | 2 | /* |
| 2 | * Generic parts | 3 | * Generic parts |
| 3 | * Linux ethernet bridge | 4 | * Linux ethernet bridge |
| 4 | * | 5 | * |
| 5 | * Authors: | 6 | * Authors: |
| 6 | * Lennert Buytenhek <buytenh@gnu.org> | 7 | * Lennert Buytenhek <buytenh@gnu.org> |
| 7 | * | ||
| 8 | * This program is free software; you can redistribute it and/or | ||
| 9 | * modify it under the terms of the GNU General Public License | ||
| 10 | * as published by the Free Software Foundation; either version | ||
| 11 | * 2 of the License, or (at your option) any later version. | ||
| 12 | */ | 8 | */ |
| 13 | 9 | ||
| 14 | #include <linux/module.h> | 10 | #include <linux/module.h> |
diff --git a/net/bridge/br_arp_nd_proxy.c b/net/bridge/br_arp_nd_proxy.c index 15116752365a..37908561a64b 100644 --- a/net/bridge/br_arp_nd_proxy.c +++ b/net/bridge/br_arp_nd_proxy.c | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-or-later | ||
| 1 | /* | 2 | /* |
| 2 | * Handle bridge arp/nd proxy/suppress | 3 | * Handle bridge arp/nd proxy/suppress |
| 3 | * | 4 | * |
| @@ -6,11 +7,6 @@ | |||
| 6 | * | 7 | * |
| 7 | * Authors: | 8 | * Authors: |
| 8 | * Roopa Prabhu <roopa@cumulusnetworks.com> | 9 | * Roopa Prabhu <roopa@cumulusnetworks.com> |
| 9 | * | ||
| 10 | * This program 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 | */ | 10 | */ |
| 15 | 11 | ||
| 16 | #include <linux/kernel.h> | 12 | #include <linux/kernel.h> |
diff --git a/net/bridge/br_device.c b/net/bridge/br_device.c index 013323b6dbe4..c05def8fd9cd 100644 --- a/net/bridge/br_device.c +++ b/net/bridge/br_device.c | |||
| @@ -1,14 +1,10 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-or-later | ||
| 1 | /* | 2 | /* |
| 2 | * Device handling code | 3 | * Device handling code |
| 3 | * Linux ethernet bridge | 4 | * Linux ethernet bridge |
| 4 | * | 5 | * |
| 5 | * Authors: | 6 | * Authors: |
| 6 | * Lennert Buytenhek <buytenh@gnu.org> | 7 | * Lennert Buytenhek <buytenh@gnu.org> |
| 7 | * | ||
| 8 | * This program is free software; you can redistribute it and/or | ||
| 9 | * modify it under the terms of the GNU General Public License | ||
| 10 | * as published by the Free Software Foundation; either version | ||
| 11 | * 2 of the License, or (at your option) any later version. | ||
| 12 | */ | 8 | */ |
| 13 | 9 | ||
| 14 | #include <linux/kernel.h> | 10 | #include <linux/kernel.h> |
diff --git a/net/bridge/br_fdb.c b/net/bridge/br_fdb.c index b1c91f66d79c..b1d3248c0252 100644 --- a/net/bridge/br_fdb.c +++ b/net/bridge/br_fdb.c | |||
| @@ -1,14 +1,10 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-or-later | ||
| 1 | /* | 2 | /* |
| 2 | * Forwarding database | 3 | * Forwarding database |
| 3 | * Linux ethernet bridge | 4 | * Linux ethernet bridge |
| 4 | * | 5 | * |
| 5 | * Authors: | 6 | * Authors: |
| 6 | * Lennert Buytenhek <buytenh@gnu.org> | 7 | * Lennert Buytenhek <buytenh@gnu.org> |
| 7 | * | ||
| 8 | * This program is free software; you can redistribute it and/or | ||
| 9 | * modify it under the terms of the GNU General Public License | ||
| 10 | * as published by the Free Software Foundation; either version | ||
| 11 | * 2 of the License, or (at your option) any later version. | ||
| 12 | */ | 8 | */ |
| 13 | 9 | ||
| 14 | #include <linux/kernel.h> | 10 | #include <linux/kernel.h> |
diff --git a/net/bridge/br_forward.c b/net/bridge/br_forward.c index 82225b8b54f5..86637000f275 100644 --- a/net/bridge/br_forward.c +++ b/net/bridge/br_forward.c | |||
| @@ -1,14 +1,10 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-or-later | ||
| 1 | /* | 2 | /* |
| 2 | * Forwarding decision | 3 | * Forwarding decision |
| 3 | * Linux ethernet bridge | 4 | * Linux ethernet bridge |
| 4 | * | 5 | * |
| 5 | * Authors: | 6 | * Authors: |
| 6 | * Lennert Buytenhek <buytenh@gnu.org> | 7 | * Lennert Buytenhek <buytenh@gnu.org> |
| 7 | * | ||
| 8 | * This program is free software; you can redistribute it and/or | ||
| 9 | * modify it under the terms of the GNU General Public License | ||
| 10 | * as published by the Free Software Foundation; either version | ||
| 11 | * 2 of the License, or (at your option) any later version. | ||
| 12 | */ | 8 | */ |
| 13 | 9 | ||
| 14 | #include <linux/err.h> | 10 | #include <linux/err.h> |
diff --git a/net/bridge/br_if.c b/net/bridge/br_if.c index 6d4a24a7534b..4fe30b182ee7 100644 --- a/net/bridge/br_if.c +++ b/net/bridge/br_if.c | |||
| @@ -1,14 +1,10 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-or-later | ||
| 1 | /* | 2 | /* |
| 2 | * Userspace interface | 3 | * Userspace interface |
| 3 | * Linux ethernet bridge | 4 | * Linux ethernet bridge |
| 4 | * | 5 | * |
| 5 | * Authors: | 6 | * Authors: |
| 6 | * Lennert Buytenhek <buytenh@gnu.org> | 7 | * Lennert Buytenhek <buytenh@gnu.org> |
| 7 | * | ||
| 8 | * This program is free software; you can redistribute it and/or | ||
| 9 | * modify it under the terms of the GNU General Public License | ||
| 10 | * as published by the Free Software Foundation; either version | ||
| 11 | * 2 of the License, or (at your option) any later version. | ||
| 12 | */ | 8 | */ |
| 13 | 9 | ||
| 14 | #include <linux/kernel.h> | 10 | #include <linux/kernel.h> |
diff --git a/net/bridge/br_input.c b/net/bridge/br_input.c index 014af7efef25..21b74e7a7b2f 100644 --- a/net/bridge/br_input.c +++ b/net/bridge/br_input.c | |||
| @@ -1,14 +1,10 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-or-later | ||
| 1 | /* | 2 | /* |
| 2 | * Handle incoming frames | 3 | * Handle incoming frames |
| 3 | * Linux ethernet bridge | 4 | * Linux ethernet bridge |
| 4 | * | 5 | * |
| 5 | * Authors: | 6 | * Authors: |
| 6 | * Lennert Buytenhek <buytenh@gnu.org> | 7 | * Lennert Buytenhek <buytenh@gnu.org> |
| 7 | * | ||
| 8 | * This program is free software; you can redistribute it and/or | ||
| 9 | * modify it under the terms of the GNU General Public License | ||
| 10 | * as published by the Free Software Foundation; either version | ||
| 11 | * 2 of the License, or (at your option) any later version. | ||
| 12 | */ | 8 | */ |
| 13 | 9 | ||
| 14 | #include <linux/slab.h> | 10 | #include <linux/slab.h> |
diff --git a/net/bridge/br_ioctl.c b/net/bridge/br_ioctl.c index 73b957fd639d..ae22d784b88a 100644 --- a/net/bridge/br_ioctl.c +++ b/net/bridge/br_ioctl.c | |||
| @@ -1,14 +1,10 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-or-later | ||
| 1 | /* | 2 | /* |
| 2 | * Ioctl handler | 3 | * Ioctl handler |
| 3 | * Linux ethernet bridge | 4 | * Linux ethernet bridge |
| 4 | * | 5 | * |
| 5 | * Authors: | 6 | * Authors: |
| 6 | * Lennert Buytenhek <buytenh@gnu.org> | 7 | * Lennert Buytenhek <buytenh@gnu.org> |
| 7 | * | ||
| 8 | * This program is free software; you can redistribute it and/or | ||
| 9 | * modify it under the terms of the GNU General Public License | ||
| 10 | * as published by the Free Software Foundation; either version | ||
| 11 | * 2 of the License, or (at your option) any later version. | ||
| 12 | */ | 8 | */ |
| 13 | 9 | ||
| 14 | #include <linux/capability.h> | 10 | #include <linux/capability.h> |
diff --git a/net/bridge/br_multicast.c b/net/bridge/br_multicast.c index c2a30f79a9d0..de22c8fbbb15 100644 --- a/net/bridge/br_multicast.c +++ b/net/bridge/br_multicast.c | |||
| @@ -1,13 +1,8 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-or-later | ||
| 1 | /* | 2 | /* |
| 2 | * Bridge multicast support. | 3 | * Bridge multicast support. |
| 3 | * | 4 | * |
| 4 | * Copyright (c) 2010 Herbert Xu <herbert@gondor.apana.org.au> | 5 | * Copyright (c) 2010 Herbert Xu <herbert@gondor.apana.org.au> |
| 5 | * | ||
| 6 | * This program is free software; you can redistribute it and/or modify it | ||
| 7 | * under the terms of the GNU General Public License as published by the Free | ||
| 8 | * Software Foundation; either version 2 of the License, or (at your option) | ||
| 9 | * any later version. | ||
| 10 | * | ||
| 11 | */ | 6 | */ |
| 12 | 7 | ||
| 13 | #include <linux/err.h> | 8 | #include <linux/err.h> |
diff --git a/net/bridge/br_netfilter_hooks.c b/net/bridge/br_netfilter_hooks.c index 22afa566cbce..34fa72c72ad8 100644 --- a/net/bridge/br_netfilter_hooks.c +++ b/net/bridge/br_netfilter_hooks.c | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-or-later | ||
| 1 | /* | 2 | /* |
| 2 | * Handle firewalling | 3 | * Handle firewalling |
| 3 | * Linux ethernet bridge | 4 | * Linux ethernet bridge |
| @@ -6,11 +7,6 @@ | |||
| 6 | * Lennert Buytenhek <buytenh@gnu.org> | 7 | * Lennert Buytenhek <buytenh@gnu.org> |
| 7 | * Bart De Schuymer <bdschuym@pandora.be> | 8 | * Bart De Schuymer <bdschuym@pandora.be> |
| 8 | * | 9 | * |
| 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 | * as published by the Free Software Foundation; either version | ||
| 12 | * 2 of the License, or (at your option) any later version. | ||
| 13 | * | ||
| 14 | * Lennert dedicates this file to Kerstin Wurdinger. | 10 | * Lennert dedicates this file to Kerstin Wurdinger. |
| 15 | */ | 11 | */ |
| 16 | 12 | ||
diff --git a/net/bridge/br_netfilter_ipv6.c b/net/bridge/br_netfilter_ipv6.c index e88d6641647b..0e63e5dc5ac4 100644 --- a/net/bridge/br_netfilter_ipv6.c +++ b/net/bridge/br_netfilter_ipv6.c | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-or-later | ||
| 1 | /* | 2 | /* |
| 2 | * Handle firewalling | 3 | * Handle firewalling |
| 3 | * Linux ethernet bridge | 4 | * Linux ethernet bridge |
| @@ -6,11 +7,6 @@ | |||
| 6 | * Lennert Buytenhek <buytenh@gnu.org> | 7 | * Lennert Buytenhek <buytenh@gnu.org> |
| 7 | * Bart De Schuymer <bdschuym@pandora.be> | 8 | * Bart De Schuymer <bdschuym@pandora.be> |
| 8 | * | 9 | * |
| 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 | * as published by the Free Software Foundation; either version | ||
| 12 | * 2 of the License, or (at your option) any later version. | ||
| 13 | * | ||
| 14 | * Lennert dedicates this file to Kerstin Wurdinger. | 10 | * Lennert dedicates this file to Kerstin Wurdinger. |
| 15 | */ | 11 | */ |
| 16 | 12 | ||
diff --git a/net/bridge/br_netlink.c b/net/bridge/br_netlink.c index a5acad29cd4f..a0a54482aabc 100644 --- a/net/bridge/br_netlink.c +++ b/net/bridge/br_netlink.c | |||
| @@ -1,13 +1,9 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-or-later | ||
| 1 | /* | 2 | /* |
| 2 | * Bridge netlink control interface | 3 | * Bridge netlink control interface |
| 3 | * | 4 | * |
| 4 | * Authors: | 5 | * Authors: |
| 5 | * Stephen Hemminger <shemminger@osdl.org> | 6 | * Stephen Hemminger <shemminger@osdl.org> |
| 6 | * | ||
| 7 | * This program 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 | */ | 7 | */ |
| 12 | 8 | ||
| 13 | #include <linux/kernel.h> | 9 | #include <linux/kernel.h> |
diff --git a/net/bridge/br_netlink_tunnel.c b/net/bridge/br_netlink_tunnel.c index 34629d558709..afee292fb004 100644 --- a/net/bridge/br_netlink_tunnel.c +++ b/net/bridge/br_netlink_tunnel.c | |||
| @@ -1,13 +1,9 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-or-later | ||
| 1 | /* | 2 | /* |
| 2 | * Bridge per vlan tunnel port dst_metadata netlink control interface | 3 | * Bridge per vlan tunnel port dst_metadata netlink control interface |
| 3 | * | 4 | * |
| 4 | * Authors: | 5 | * Authors: |
| 5 | * Roopa Prabhu <roopa@cumulusnetworks.com> | 6 | * Roopa Prabhu <roopa@cumulusnetworks.com> |
| 6 | * | ||
| 7 | * This program 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 | */ | 7 | */ |
| 12 | 8 | ||
| 13 | #include <linux/kernel.h> | 9 | #include <linux/kernel.h> |
diff --git a/net/bridge/br_nf_core.c b/net/bridge/br_nf_core.c index 8e2d7cfa4e16..2cdfc5d6c25d 100644 --- a/net/bridge/br_nf_core.c +++ b/net/bridge/br_nf_core.c | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-or-later | ||
| 1 | /* | 2 | /* |
| 2 | * Handle firewalling core | 3 | * Handle firewalling core |
| 3 | * Linux ethernet bridge | 4 | * Linux ethernet bridge |
| @@ -6,11 +7,6 @@ | |||
| 6 | * Lennert Buytenhek <buytenh@gnu.org> | 7 | * Lennert Buytenhek <buytenh@gnu.org> |
| 7 | * Bart De Schuymer <bdschuym@pandora.be> | 8 | * Bart De Schuymer <bdschuym@pandora.be> |
| 8 | * | 9 | * |
| 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 | * as published by the Free Software Foundation; either version | ||
| 12 | * 2 of the License, or (at your option) any later version. | ||
| 13 | * | ||
| 14 | * Lennert dedicates this file to Kerstin Wurdinger. | 10 | * Lennert dedicates this file to Kerstin Wurdinger. |
| 15 | */ | 11 | */ |
| 16 | 12 | ||
diff --git a/net/bridge/br_private.h b/net/bridge/br_private.h index 334a8c496b50..159a0e2cb0f6 100644 --- a/net/bridge/br_private.h +++ b/net/bridge/br_private.h | |||
| @@ -1,13 +1,9 @@ | |||
| 1 | /* SPDX-License-Identifier: GPL-2.0-or-later */ | ||
| 1 | /* | 2 | /* |
| 2 | * Linux ethernet bridge | 3 | * Linux ethernet bridge |
| 3 | * | 4 | * |
| 4 | * Authors: | 5 | * Authors: |
| 5 | * Lennert Buytenhek <buytenh@gnu.org> | 6 | * Lennert Buytenhek <buytenh@gnu.org> |
| 6 | * | ||
| 7 | * This program 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 | */ | 7 | */ |
| 12 | 8 | ||
| 13 | #ifndef _BR_PRIVATE_H | 9 | #ifndef _BR_PRIVATE_H |
diff --git a/net/bridge/br_private_stp.h b/net/bridge/br_private_stp.h index 3f7543a29b76..814cf1364cfb 100644 --- a/net/bridge/br_private_stp.h +++ b/net/bridge/br_private_stp.h | |||
| @@ -1,13 +1,9 @@ | |||
| 1 | /* SPDX-License-Identifier: GPL-2.0-or-later */ | ||
| 1 | /* | 2 | /* |
| 2 | * Linux ethernet bridge | 3 | * Linux ethernet bridge |
| 3 | * | 4 | * |
| 4 | * Authors: | 5 | * Authors: |
| 5 | * Lennert Buytenhek <buytenh@gnu.org> | 6 | * Lennert Buytenhek <buytenh@gnu.org> |
| 6 | * | ||
| 7 | * This program 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 | */ | 7 | */ |
| 12 | 8 | ||
| 13 | #ifndef _BR_PRIVATE_STP_H | 9 | #ifndef _BR_PRIVATE_STP_H |
diff --git a/net/bridge/br_private_tunnel.h b/net/bridge/br_private_tunnel.h index a259471bfd78..2bdef2ea3420 100644 --- a/net/bridge/br_private_tunnel.h +++ b/net/bridge/br_private_tunnel.h | |||
| @@ -1,13 +1,9 @@ | |||
| 1 | /* SPDX-License-Identifier: GPL-2.0-or-later */ | ||
| 1 | /* | 2 | /* |
| 2 | * Bridge per vlan tunnels | 3 | * Bridge per vlan tunnels |
| 3 | * | 4 | * |
| 4 | * Authors: | 5 | * Authors: |
| 5 | * Roopa Prabhu <roopa@cumulusnetworks.com> | 6 | * Roopa Prabhu <roopa@cumulusnetworks.com> |
| 6 | * | ||
| 7 | * This program 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 | */ | 7 | */ |
| 12 | 8 | ||
| 13 | #ifndef _BR_PRIVATE_TUNNEL_H | 9 | #ifndef _BR_PRIVATE_TUNNEL_H |
diff --git a/net/bridge/br_stp.c b/net/bridge/br_stp.c index b6941961a876..1f1410f8d312 100644 --- a/net/bridge/br_stp.c +++ b/net/bridge/br_stp.c | |||
| @@ -1,14 +1,10 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-or-later | ||
| 1 | /* | 2 | /* |
| 2 | * Spanning tree protocol; generic parts | 3 | * Spanning tree protocol; generic parts |
| 3 | * Linux ethernet bridge | 4 | * Linux ethernet bridge |
| 4 | * | 5 | * |
| 5 | * Authors: | 6 | * Authors: |
| 6 | * Lennert Buytenhek <buytenh@gnu.org> | 7 | * Lennert Buytenhek <buytenh@gnu.org> |
| 7 | * | ||
| 8 | * This program is free software; you can redistribute it and/or | ||
| 9 | * modify it under the terms of the GNU General Public License | ||
| 10 | * as published by the Free Software Foundation; either version | ||
| 11 | * 2 of the License, or (at your option) any later version. | ||
| 12 | */ | 8 | */ |
| 13 | #include <linux/kernel.h> | 9 | #include <linux/kernel.h> |
| 14 | #include <linux/rculist.h> | 10 | #include <linux/rculist.h> |
diff --git a/net/bridge/br_stp_bpdu.c b/net/bridge/br_stp_bpdu.c index 1b75d6bf12bd..68a6922b4141 100644 --- a/net/bridge/br_stp_bpdu.c +++ b/net/bridge/br_stp_bpdu.c | |||
| @@ -1,14 +1,10 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-or-later | ||
| 1 | /* | 2 | /* |
| 2 | * Spanning tree protocol; BPDU handling | 3 | * Spanning tree protocol; BPDU handling |
| 3 | * Linux ethernet bridge | 4 | * Linux ethernet bridge |
| 4 | * | 5 | * |
| 5 | * Authors: | 6 | * Authors: |
| 6 | * Lennert Buytenhek <buytenh@gnu.org> | 7 | * Lennert Buytenhek <buytenh@gnu.org> |
| 7 | * | ||
| 8 | * This program is free software; you can redistribute it and/or | ||
| 9 | * modify it under the terms of the GNU General Public License | ||
| 10 | * as published by the Free Software Foundation; either version | ||
| 11 | * 2 of the License, or (at your option) any later version. | ||
| 12 | */ | 8 | */ |
| 13 | 9 | ||
| 14 | #include <linux/kernel.h> | 10 | #include <linux/kernel.h> |
diff --git a/net/bridge/br_stp_if.c b/net/bridge/br_stp_if.c index 8d65ae5210e0..d174d3a566aa 100644 --- a/net/bridge/br_stp_if.c +++ b/net/bridge/br_stp_if.c | |||
| @@ -1,14 +1,10 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-or-later | ||
| 1 | /* | 2 | /* |
| 2 | * Spanning tree protocol; interface code | 3 | * Spanning tree protocol; interface code |
| 3 | * Linux ethernet bridge | 4 | * Linux ethernet bridge |
| 4 | * | 5 | * |
| 5 | * Authors: | 6 | * Authors: |
| 6 | * Lennert Buytenhek <buytenh@gnu.org> | 7 | * Lennert Buytenhek <buytenh@gnu.org> |
| 7 | * | ||
| 8 | * This program is free software; you can redistribute it and/or | ||
| 9 | * modify it under the terms of the GNU General Public License | ||
| 10 | * as published by the Free Software Foundation; either version | ||
| 11 | * 2 of the License, or (at your option) any later version. | ||
| 12 | */ | 8 | */ |
| 13 | 9 | ||
| 14 | #include <linux/kernel.h> | 10 | #include <linux/kernel.h> |
diff --git a/net/bridge/br_stp_timer.c b/net/bridge/br_stp_timer.c index e7739de5f0e1..27bf1979b909 100644 --- a/net/bridge/br_stp_timer.c +++ b/net/bridge/br_stp_timer.c | |||
| @@ -1,14 +1,10 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-or-later | ||
| 1 | /* | 2 | /* |
| 2 | * Spanning tree protocol; timer-related code | 3 | * Spanning tree protocol; timer-related code |
| 3 | * Linux ethernet bridge | 4 | * Linux ethernet bridge |
| 4 | * | 5 | * |
| 5 | * Authors: | 6 | * Authors: |
| 6 | * Lennert Buytenhek <buytenh@gnu.org> | 7 | * Lennert Buytenhek <buytenh@gnu.org> |
| 7 | * | ||
| 8 | * This program is free software; you can redistribute it and/or | ||
| 9 | * modify it under the terms of the GNU General Public License | ||
| 10 | * as published by the Free Software Foundation; either version | ||
| 11 | * 2 of the License, or (at your option) any later version. | ||
| 12 | */ | 8 | */ |
| 13 | 9 | ||
| 14 | #include <linux/kernel.h> | 10 | #include <linux/kernel.h> |
diff --git a/net/bridge/br_sysfs_br.c b/net/bridge/br_sysfs_br.c index b05b94e9c595..9ab0f00b1081 100644 --- a/net/bridge/br_sysfs_br.c +++ b/net/bridge/br_sysfs_br.c | |||
| @@ -1,14 +1,10 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-or-later | ||
| 1 | /* | 2 | /* |
| 2 | * Sysfs attributes of bridge | 3 | * Sysfs attributes of bridge |
| 3 | * Linux ethernet bridge | 4 | * Linux ethernet bridge |
| 4 | * | 5 | * |
| 5 | * Authors: | 6 | * Authors: |
| 6 | * Stephen Hemminger <shemminger@osdl.org> | 7 | * Stephen Hemminger <shemminger@osdl.org> |
| 7 | * | ||
| 8 | * This program is free software; you can redistribute it and/or | ||
| 9 | * modify it under the terms of the GNU General Public License | ||
| 10 | * as published by the Free Software Foundation; either version | ||
| 11 | * 2 of the License, or (at your option) any later version. | ||
| 12 | */ | 8 | */ |
| 13 | 9 | ||
| 14 | #include <linux/capability.h> | 10 | #include <linux/capability.h> |
diff --git a/net/bridge/br_sysfs_if.c b/net/bridge/br_sysfs_if.c index 88715edb119a..7a59cdddd3ce 100644 --- a/net/bridge/br_sysfs_if.c +++ b/net/bridge/br_sysfs_if.c | |||
| @@ -1,14 +1,10 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-or-later | ||
| 1 | /* | 2 | /* |
| 2 | * Sysfs attributes of bridge ports | 3 | * Sysfs attributes of bridge ports |
| 3 | * Linux ethernet bridge | 4 | * Linux ethernet bridge |
| 4 | * | 5 | * |
| 5 | * Authors: | 6 | * Authors: |
| 6 | * Stephen Hemminger <shemminger@osdl.org> | 7 | * Stephen Hemminger <shemminger@osdl.org> |
| 7 | * | ||
| 8 | * This program is free software; you can redistribute it and/or | ||
| 9 | * modify it under the terms of the GNU General Public License | ||
| 10 | * as published by the Free Software Foundation; either version | ||
| 11 | * 2 of the License, or (at your option) any later version. | ||
| 12 | */ | 8 | */ |
| 13 | 9 | ||
| 14 | #include <linux/capability.h> | 10 | #include <linux/capability.h> |
diff --git a/net/bridge/br_vlan_tunnel.c b/net/bridge/br_vlan_tunnel.c index 758151863669..d13d2080f527 100644 --- a/net/bridge/br_vlan_tunnel.c +++ b/net/bridge/br_vlan_tunnel.c | |||
| @@ -1,13 +1,9 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-or-later | ||
| 1 | /* | 2 | /* |
| 2 | * Bridge per vlan tunnel port dst_metadata handling code | 3 | * Bridge per vlan tunnel port dst_metadata handling code |
| 3 | * | 4 | * |
| 4 | * Authors: | 5 | * Authors: |
| 5 | * Roopa Prabhu <roopa@cumulusnetworks.com> | 6 | * Roopa Prabhu <roopa@cumulusnetworks.com> |
| 6 | * | ||
| 7 | * This program 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 | */ | 7 | */ |
| 12 | 8 | ||
| 13 | #include <linux/kernel.h> | 9 | #include <linux/kernel.h> |
diff --git a/net/bridge/netfilter/ebtables.c b/net/bridge/netfilter/ebtables.c index 6b07e4978eb3..963dfdc14827 100644 --- a/net/bridge/netfilter/ebtables.c +++ b/net/bridge/netfilter/ebtables.c | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-or-later | ||
| 1 | /* | 2 | /* |
| 2 | * ebtables | 3 | * ebtables |
| 3 | * | 4 | * |
| @@ -8,11 +9,6 @@ | |||
| 8 | * | 9 | * |
| 9 | * This code is strongly inspired by the iptables code which is | 10 | * This code is strongly inspired by the iptables code which is |
| 10 | * Copyright (C) 1999 Paul `Rusty' Russell & Michael J. Neuling | 11 | * Copyright (C) 1999 Paul `Rusty' Russell & Michael J. Neuling |
| 11 | * | ||
| 12 | * This program is free software; you can redistribute it and/or | ||
| 13 | * modify it under the terms of the GNU General Public License | ||
| 14 | * as published by the Free Software Foundation; either version | ||
| 15 | * 2 of the License, or (at your option) any later version. | ||
| 16 | */ | 12 | */ |
| 17 | #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt | 13 | #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt |
| 18 | #include <linux/kmod.h> | 14 | #include <linux/kmod.h> |
diff --git a/net/caif/caif_dev.c b/net/caif/caif_dev.c index 6c6e01963aac..03c7cdd8e4cb 100644 --- a/net/caif/caif_dev.c +++ b/net/caif/caif_dev.c | |||
| @@ -1,8 +1,8 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-only | ||
| 1 | /* | 2 | /* |
| 2 | * CAIF Interface registration. | 3 | * CAIF Interface registration. |
| 3 | * Copyright (C) ST-Ericsson AB 2010 | 4 | * Copyright (C) ST-Ericsson AB 2010 |
| 4 | * Author: Sjur Brendeland | 5 | * Author: Sjur Brendeland |
| 5 | * License terms: GNU General Public License (GPL) version 2 | ||
| 6 | * | 6 | * |
| 7 | * Borrowed heavily from file: pn_dev.c. Thanks to Remi Denis-Courmont | 7 | * Borrowed heavily from file: pn_dev.c. Thanks to Remi Denis-Courmont |
| 8 | * and Sakari Ailus <sakari.ailus@nokia.com> | 8 | * and Sakari Ailus <sakari.ailus@nokia.com> |
diff --git a/net/caif/caif_socket.c b/net/caif/caif_socket.c index 416717c57cd1..13ea920600ae 100644 --- a/net/caif/caif_socket.c +++ b/net/caif/caif_socket.c | |||
| @@ -1,7 +1,7 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-only | ||
| 1 | /* | 2 | /* |
| 2 | * Copyright (C) ST-Ericsson AB 2010 | 3 | * Copyright (C) ST-Ericsson AB 2010 |
| 3 | * Author: Sjur Brendeland | 4 | * Author: Sjur Brendeland |
| 4 | * License terms: GNU General Public License (GPL) version 2 | ||
| 5 | */ | 5 | */ |
| 6 | 6 | ||
| 7 | #define pr_fmt(fmt) KBUILD_MODNAME ":%s(): " fmt, __func__ | 7 | #define pr_fmt(fmt) KBUILD_MODNAME ":%s(): " fmt, __func__ |
diff --git a/net/caif/caif_usb.c b/net/caif/caif_usb.c index 1a082a946045..76bd67891fb3 100644 --- a/net/caif/caif_usb.c +++ b/net/caif/caif_usb.c | |||
| @@ -1,9 +1,8 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-only | ||
| 1 | /* | 2 | /* |
| 2 | * CAIF USB handler | 3 | * CAIF USB handler |
| 3 | * Copyright (C) ST-Ericsson AB 2011 | 4 | * Copyright (C) ST-Ericsson AB 2011 |
| 4 | * Author: Sjur Brendeland | 5 | * Author: Sjur Brendeland |
| 5 | * License terms: GNU General Public License (GPL) version 2 | ||
| 6 | * | ||
| 7 | */ | 6 | */ |
| 8 | 7 | ||
| 9 | #define pr_fmt(fmt) KBUILD_MODNAME ":%s(): " fmt, __func__ | 8 | #define pr_fmt(fmt) KBUILD_MODNAME ":%s(): " fmt, __func__ |
diff --git a/net/caif/cfcnfg.c b/net/caif/cfcnfg.c index 8f00bea093b9..399239a14420 100644 --- a/net/caif/cfcnfg.c +++ b/net/caif/cfcnfg.c | |||
| @@ -1,7 +1,7 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-only | ||
| 1 | /* | 2 | /* |
| 2 | * Copyright (C) ST-Ericsson AB 2010 | 3 | * Copyright (C) ST-Ericsson AB 2010 |
| 3 | * Author: Sjur Brendeland | 4 | * Author: Sjur Brendeland |
| 4 | * License terms: GNU General Public License (GPL) version 2 | ||
| 5 | */ | 5 | */ |
| 6 | 6 | ||
| 7 | #define pr_fmt(fmt) KBUILD_MODNAME ":%s(): " fmt, __func__ | 7 | #define pr_fmt(fmt) KBUILD_MODNAME ":%s(): " fmt, __func__ |
diff --git a/net/caif/cfctrl.c b/net/caif/cfctrl.c index a1e85f032108..2809cbd6b7f7 100644 --- a/net/caif/cfctrl.c +++ b/net/caif/cfctrl.c | |||
| @@ -1,7 +1,7 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-only | ||
| 1 | /* | 2 | /* |
| 2 | * Copyright (C) ST-Ericsson AB 2010 | 3 | * Copyright (C) ST-Ericsson AB 2010 |
| 3 | * Author: Sjur Brendeland | 4 | * Author: Sjur Brendeland |
| 4 | * License terms: GNU General Public License (GPL) version 2 | ||
| 5 | */ | 5 | */ |
| 6 | 6 | ||
| 7 | #define pr_fmt(fmt) KBUILD_MODNAME ":%s(): " fmt, __func__ | 7 | #define pr_fmt(fmt) KBUILD_MODNAME ":%s(): " fmt, __func__ |
diff --git a/net/caif/cfdbgl.c b/net/caif/cfdbgl.c index cce839bf49f7..77f428428b47 100644 --- a/net/caif/cfdbgl.c +++ b/net/caif/cfdbgl.c | |||
| @@ -1,7 +1,7 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-only | ||
| 1 | /* | 2 | /* |
| 2 | * Copyright (C) ST-Ericsson AB 2010 | 3 | * Copyright (C) ST-Ericsson AB 2010 |
| 3 | * Author: Sjur Brendeland | 4 | * Author: Sjur Brendeland |
| 4 | * License terms: GNU General Public License (GPL) version 2 | ||
| 5 | */ | 5 | */ |
| 6 | 6 | ||
| 7 | #define pr_fmt(fmt) KBUILD_MODNAME ":%s(): " fmt, __func__ | 7 | #define pr_fmt(fmt) KBUILD_MODNAME ":%s(): " fmt, __func__ |
diff --git a/net/caif/cfdgml.c b/net/caif/cfdgml.c index 58fdb99a390f..eb6f8ef47a79 100644 --- a/net/caif/cfdgml.c +++ b/net/caif/cfdgml.c | |||
| @@ -1,7 +1,7 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-only | ||
| 1 | /* | 2 | /* |
| 2 | * Copyright (C) ST-Ericsson AB 2010 | 3 | * Copyright (C) ST-Ericsson AB 2010 |
| 3 | * Author: Sjur Brendeland | 4 | * Author: Sjur Brendeland |
| 4 | * License terms: GNU General Public License (GPL) version 2 | ||
| 5 | */ | 5 | */ |
| 6 | 6 | ||
| 7 | #define pr_fmt(fmt) KBUILD_MODNAME ":%s(): " fmt, __func__ | 7 | #define pr_fmt(fmt) KBUILD_MODNAME ":%s(): " fmt, __func__ |
diff --git a/net/caif/cffrml.c b/net/caif/cffrml.c index 434ba8557826..6651a8dc62e0 100644 --- a/net/caif/cffrml.c +++ b/net/caif/cffrml.c | |||
| @@ -1,9 +1,9 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-only | ||
| 1 | /* | 2 | /* |
| 2 | * CAIF Framing Layer. | 3 | * CAIF Framing Layer. |
| 3 | * | 4 | * |
| 4 | * Copyright (C) ST-Ericsson AB 2010 | 5 | * Copyright (C) ST-Ericsson AB 2010 |
| 5 | * Author: Sjur Brendeland | 6 | * Author: Sjur Brendeland |
| 6 | * License terms: GNU General Public License (GPL) version 2 | ||
| 7 | */ | 7 | */ |
| 8 | 8 | ||
| 9 | #define pr_fmt(fmt) KBUILD_MODNAME ":%s(): " fmt, __func__ | 9 | #define pr_fmt(fmt) KBUILD_MODNAME ":%s(): " fmt, __func__ |
diff --git a/net/caif/cfmuxl.c b/net/caif/cfmuxl.c index 510aa5a753f0..4172b0d0db63 100644 --- a/net/caif/cfmuxl.c +++ b/net/caif/cfmuxl.c | |||
| @@ -1,7 +1,7 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-only | ||
| 1 | /* | 2 | /* |
| 2 | * Copyright (C) ST-Ericsson AB 2010 | 3 | * Copyright (C) ST-Ericsson AB 2010 |
| 3 | * Author: Sjur Brendeland | 4 | * Author: Sjur Brendeland |
| 4 | * License terms: GNU General Public License (GPL) version 2 | ||
| 5 | */ | 5 | */ |
| 6 | 6 | ||
| 7 | #define pr_fmt(fmt) KBUILD_MODNAME ":%s(): " fmt, __func__ | 7 | #define pr_fmt(fmt) KBUILD_MODNAME ":%s(): " fmt, __func__ |
diff --git a/net/caif/cfpkt_skbuff.c b/net/caif/cfpkt_skbuff.c index 37ac5ca0ffdf..7796414d47e5 100644 --- a/net/caif/cfpkt_skbuff.c +++ b/net/caif/cfpkt_skbuff.c | |||
| @@ -1,7 +1,7 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-only | ||
| 1 | /* | 2 | /* |
| 2 | * Copyright (C) ST-Ericsson AB 2010 | 3 | * Copyright (C) ST-Ericsson AB 2010 |
| 3 | * Author: Sjur Brendeland | 4 | * Author: Sjur Brendeland |
| 4 | * License terms: GNU General Public License (GPL) version 2 | ||
| 5 | */ | 5 | */ |
| 6 | 6 | ||
| 7 | #define pr_fmt(fmt) KBUILD_MODNAME ":%s(): " fmt, __func__ | 7 | #define pr_fmt(fmt) KBUILD_MODNAME ":%s(): " fmt, __func__ |
diff --git a/net/caif/cfrfml.c b/net/caif/cfrfml.c index a931a71ef6df..ce2767e9cec6 100644 --- a/net/caif/cfrfml.c +++ b/net/caif/cfrfml.c | |||
| @@ -1,7 +1,7 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-only | ||
| 1 | /* | 2 | /* |
| 2 | * Copyright (C) ST-Ericsson AB 2010 | 3 | * Copyright (C) ST-Ericsson AB 2010 |
| 3 | * Author: Sjur Brendeland | 4 | * Author: Sjur Brendeland |
| 4 | * License terms: GNU General Public License (GPL) version 2 | ||
| 5 | */ | 5 | */ |
| 6 | 6 | ||
| 7 | #define pr_fmt(fmt) KBUILD_MODNAME ":%s(): " fmt, __func__ | 7 | #define pr_fmt(fmt) KBUILD_MODNAME ":%s(): " fmt, __func__ |
diff --git a/net/caif/cfserl.c b/net/caif/cfserl.c index ce60f06d76de..e11725a4bb0e 100644 --- a/net/caif/cfserl.c +++ b/net/caif/cfserl.c | |||
| @@ -1,7 +1,7 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-only | ||
| 1 | /* | 2 | /* |
| 2 | * Copyright (C) ST-Ericsson AB 2010 | 3 | * Copyright (C) ST-Ericsson AB 2010 |
| 3 | * Author: Sjur Brendeland | 4 | * Author: Sjur Brendeland |
| 4 | * License terms: GNU General Public License (GPL) version 2 | ||
| 5 | */ | 5 | */ |
| 6 | 6 | ||
| 7 | #define pr_fmt(fmt) KBUILD_MODNAME ":%s(): " fmt, __func__ | 7 | #define pr_fmt(fmt) KBUILD_MODNAME ":%s(): " fmt, __func__ |
diff --git a/net/caif/cfsrvl.c b/net/caif/cfsrvl.c index a6e115463052..d0a4d0ac7045 100644 --- a/net/caif/cfsrvl.c +++ b/net/caif/cfsrvl.c | |||
| @@ -1,7 +1,7 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-only | ||
| 1 | /* | 2 | /* |
| 2 | * Copyright (C) ST-Ericsson AB 2010 | 3 | * Copyright (C) ST-Ericsson AB 2010 |
| 3 | * Author: Sjur Brendeland | 4 | * Author: Sjur Brendeland |
| 4 | * License terms: GNU General Public License (GPL) version 2 | ||
| 5 | */ | 5 | */ |
| 6 | 6 | ||
| 7 | #define pr_fmt(fmt) KBUILD_MODNAME ":%s(): " fmt, __func__ | 7 | #define pr_fmt(fmt) KBUILD_MODNAME ":%s(): " fmt, __func__ |
diff --git a/net/caif/cfutill.c b/net/caif/cfutill.c index be7c43a92ead..b2e47ede912f 100644 --- a/net/caif/cfutill.c +++ b/net/caif/cfutill.c | |||
| @@ -1,7 +1,7 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-only | ||
| 1 | /* | 2 | /* |
| 2 | * Copyright (C) ST-Ericsson AB 2010 | 3 | * Copyright (C) ST-Ericsson AB 2010 |
| 3 | * Author: Sjur Brendeland | 4 | * Author: Sjur Brendeland |
| 4 | * License terms: GNU General Public License (GPL) version 2 | ||
| 5 | */ | 5 | */ |
| 6 | 6 | ||
| 7 | #define pr_fmt(fmt) KBUILD_MODNAME ":%s(): " fmt, __func__ | 7 | #define pr_fmt(fmt) KBUILD_MODNAME ":%s(): " fmt, __func__ |
diff --git a/net/caif/cfveil.c b/net/caif/cfveil.c index 35dd3a600dd1..db2274b94a5d 100644 --- a/net/caif/cfveil.c +++ b/net/caif/cfveil.c | |||
| @@ -1,7 +1,7 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-only | ||
| 1 | /* | 2 | /* |
| 2 | * Copyright (C) ST-Ericsson AB 2010 | 3 | * Copyright (C) ST-Ericsson AB 2010 |
| 3 | * Author: Sjur Brendeland | 4 | * Author: Sjur Brendeland |
| 4 | * License terms: GNU General Public License (GPL) version 2 | ||
| 5 | */ | 5 | */ |
| 6 | 6 | ||
| 7 | #define pr_fmt(fmt) KBUILD_MODNAME ":%s(): " fmt, __func__ | 7 | #define pr_fmt(fmt) KBUILD_MODNAME ":%s(): " fmt, __func__ |
diff --git a/net/caif/cfvidl.c b/net/caif/cfvidl.c index 73615e3b3b58..134bad43196c 100644 --- a/net/caif/cfvidl.c +++ b/net/caif/cfvidl.c | |||
| @@ -1,7 +1,7 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-only | ||
| 1 | /* | 2 | /* |
| 2 | * Copyright (C) ST-Ericsson AB 2010 | 3 | * Copyright (C) ST-Ericsson AB 2010 |
| 3 | * Author: Sjur Brendeland | 4 | * Author: Sjur Brendeland |
| 4 | * License terms: GNU General Public License (GPL) version 2 | ||
| 5 | */ | 5 | */ |
| 6 | 6 | ||
| 7 | #define pr_fmt(fmt) KBUILD_MODNAME ":%s(): " fmt, __func__ | 7 | #define pr_fmt(fmt) KBUILD_MODNAME ":%s(): " fmt, __func__ |
diff --git a/net/caif/chnl_net.c b/net/caif/chnl_net.c index 13e2ae6be620..a56628962852 100644 --- a/net/caif/chnl_net.c +++ b/net/caif/chnl_net.c | |||
| @@ -1,8 +1,8 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-only | ||
| 1 | /* | 2 | /* |
| 2 | * Copyright (C) ST-Ericsson AB 2010 | 3 | * Copyright (C) ST-Ericsson AB 2010 |
| 3 | * Authors: Sjur Brendeland | 4 | * Authors: Sjur Brendeland |
| 4 | * Daniel Martensson | 5 | * Daniel Martensson |
| 5 | * License terms: GNU General Public License (GPL) version 2 | ||
| 6 | */ | 6 | */ |
| 7 | 7 | ||
| 8 | #define pr_fmt(fmt) KBUILD_MODNAME ":%s(): " fmt, __func__ | 8 | #define pr_fmt(fmt) KBUILD_MODNAME ":%s(): " fmt, __func__ |
diff --git a/net/ceph/snapshot.c b/net/ceph/snapshot.c index e14a5d038656..e24315937c45 100644 --- a/net/ceph/snapshot.c +++ b/net/ceph/snapshot.c | |||
| @@ -1,21 +1,8 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-only | ||
| 1 | /* | 2 | /* |
| 2 | * snapshot.c Ceph snapshot context utility routines (part of libceph) | 3 | * snapshot.c Ceph snapshot context utility routines (part of libceph) |
| 3 | * | 4 | * |
| 4 | * Copyright (C) 2013 Inktank Storage, Inc. | 5 | * Copyright (C) 2013 Inktank Storage, Inc. |
| 5 | * | ||
| 6 | * This program is free software; you can redistribute it and/or | ||
| 7 | * modify it under the terms of the GNU General Public License | ||
| 8 | * version 2 as published by the Free Software Foundation. | ||
| 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 GNU | ||
| 13 | * 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, write to the Free Software | ||
| 17 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA | ||
| 18 | * 02110-1301, USA. | ||
| 19 | */ | 6 | */ |
| 20 | 7 | ||
| 21 | #include <linux/types.h> | 8 | #include <linux/types.h> |
diff --git a/net/core/dev.c b/net/core/dev.c index b6b8505cfb3e..eb7fb6daa1ef 100644 --- a/net/core/dev.c +++ b/net/core/dev.c | |||
| @@ -1,11 +1,7 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-or-later | ||
| 1 | /* | 2 | /* |
| 2 | * NET3 Protocol independent device support routines. | 3 | * NET3 Protocol independent device support routines. |
| 3 | * | 4 | * |
| 4 | * This program is free software; you can redistribute 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 | * Derived from the non IP parts of dev.c 1.0.19 | 5 | * Derived from the non IP parts of dev.c 1.0.19 |
| 10 | * Authors: Ross Biro | 6 | * Authors: Ross Biro |
| 11 | * Fred N. van Kempen, <waltje@uWalt.NL.Mugnet.ORG> | 7 | * Fred N. van Kempen, <waltje@uWalt.NL.Mugnet.ORG> |
| @@ -4502,23 +4498,6 @@ static int netif_rx_internal(struct sk_buff *skb) | |||
| 4502 | 4498 | ||
| 4503 | trace_netif_rx(skb); | 4499 | trace_netif_rx(skb); |
| 4504 | 4500 | ||
| 4505 | if (static_branch_unlikely(&generic_xdp_needed_key)) { | ||
| 4506 | int ret; | ||
| 4507 | |||
| 4508 | preempt_disable(); | ||
| 4509 | rcu_read_lock(); | ||
| 4510 | ret = do_xdp_generic(rcu_dereference(skb->dev->xdp_prog), skb); | ||
| 4511 | rcu_read_unlock(); | ||
| 4512 | preempt_enable(); | ||
| 4513 | |||
| 4514 | /* Consider XDP consuming the packet a success from | ||
| 4515 | * the netdev point of view we do not want to count | ||
| 4516 | * this as an error. | ||
| 4517 | */ | ||
| 4518 | if (ret != XDP_PASS) | ||
| 4519 | return NET_RX_SUCCESS; | ||
| 4520 | } | ||
| 4521 | |||
| 4522 | #ifdef CONFIG_RPS | 4501 | #ifdef CONFIG_RPS |
| 4523 | if (static_branch_unlikely(&rps_needed)) { | 4502 | if (static_branch_unlikely(&rps_needed)) { |
| 4524 | struct rps_dev_flow voidflow, *rflow = &voidflow; | 4503 | struct rps_dev_flow voidflow, *rflow = &voidflow; |
| @@ -4858,6 +4837,18 @@ another_round: | |||
| 4858 | 4837 | ||
| 4859 | __this_cpu_inc(softnet_data.processed); | 4838 | __this_cpu_inc(softnet_data.processed); |
| 4860 | 4839 | ||
| 4840 | if (static_branch_unlikely(&generic_xdp_needed_key)) { | ||
| 4841 | int ret2; | ||
| 4842 | |||
| 4843 | preempt_disable(); | ||
| 4844 | ret2 = do_xdp_generic(rcu_dereference(skb->dev->xdp_prog), skb); | ||
| 4845 | preempt_enable(); | ||
| 4846 | |||
| 4847 | if (ret2 != XDP_PASS) | ||
| 4848 | return NET_RX_DROP; | ||
| 4849 | skb_reset_mac_len(skb); | ||
| 4850 | } | ||
| 4851 | |||
| 4861 | if (skb->protocol == cpu_to_be16(ETH_P_8021Q) || | 4852 | if (skb->protocol == cpu_to_be16(ETH_P_8021Q) || |
| 4862 | skb->protocol == cpu_to_be16(ETH_P_8021AD)) { | 4853 | skb->protocol == cpu_to_be16(ETH_P_8021AD)) { |
| 4863 | skb = skb_vlan_untag(skb); | 4854 | skb = skb_vlan_untag(skb); |
| @@ -5030,12 +5021,12 @@ static inline void __netif_receive_skb_list_ptype(struct list_head *head, | |||
| 5030 | if (list_empty(head)) | 5021 | if (list_empty(head)) |
| 5031 | return; | 5022 | return; |
| 5032 | if (pt_prev->list_func != NULL) | 5023 | if (pt_prev->list_func != NULL) |
| 5033 | pt_prev->list_func(head, pt_prev, orig_dev); | 5024 | INDIRECT_CALL_INET(pt_prev->list_func, ipv6_list_rcv, |
| 5025 | ip_list_rcv, head, pt_prev, orig_dev); | ||
| 5034 | else | 5026 | else |
| 5035 | list_for_each_entry_safe(skb, next, head, list) { | 5027 | list_for_each_entry_safe(skb, next, head, list) { |
| 5036 | skb_list_del_init(skb); | 5028 | skb_list_del_init(skb); |
| 5037 | INDIRECT_CALL_INET(pt_prev->func, ipv6_rcv, ip_rcv, skb, | 5029 | pt_prev->func(skb, skb->dev, pt_prev, orig_dev); |
| 5038 | skb->dev, pt_prev, orig_dev); | ||
| 5039 | } | 5030 | } |
| 5040 | } | 5031 | } |
| 5041 | 5032 | ||
| @@ -5178,19 +5169,6 @@ static int netif_receive_skb_internal(struct sk_buff *skb) | |||
| 5178 | if (skb_defer_rx_timestamp(skb)) | 5169 | if (skb_defer_rx_timestamp(skb)) |
| 5179 | return NET_RX_SUCCESS; | 5170 | return NET_RX_SUCCESS; |
| 5180 | 5171 | ||
| 5181 | if (static_branch_unlikely(&generic_xdp_needed_key)) { | ||
| 5182 | int ret; | ||
| 5183 | |||
| 5184 | preempt_disable(); | ||
| 5185 | rcu_read_lock(); | ||
| 5186 | ret = do_xdp_generic(rcu_dereference(skb->dev->xdp_prog), skb); | ||
| 5187 | rcu_read_unlock(); | ||
| 5188 | preempt_enable(); | ||
| 5189 | |||
| 5190 | if (ret != XDP_PASS) | ||
| 5191 | return NET_RX_DROP; | ||
| 5192 | } | ||
| 5193 | |||
| 5194 | rcu_read_lock(); | 5172 | rcu_read_lock(); |
| 5195 | #ifdef CONFIG_RPS | 5173 | #ifdef CONFIG_RPS |
| 5196 | if (static_branch_unlikely(&rps_needed)) { | 5174 | if (static_branch_unlikely(&rps_needed)) { |
| @@ -5211,7 +5189,6 @@ static int netif_receive_skb_internal(struct sk_buff *skb) | |||
| 5211 | 5189 | ||
| 5212 | static void netif_receive_skb_list_internal(struct list_head *head) | 5190 | static void netif_receive_skb_list_internal(struct list_head *head) |
| 5213 | { | 5191 | { |
| 5214 | struct bpf_prog *xdp_prog = NULL; | ||
| 5215 | struct sk_buff *skb, *next; | 5192 | struct sk_buff *skb, *next; |
| 5216 | struct list_head sublist; | 5193 | struct list_head sublist; |
| 5217 | 5194 | ||
| @@ -5224,21 +5201,6 @@ static void netif_receive_skb_list_internal(struct list_head *head) | |||
| 5224 | } | 5201 | } |
| 5225 | list_splice_init(&sublist, head); | 5202 | list_splice_init(&sublist, head); |
| 5226 | 5203 | ||
| 5227 | if (static_branch_unlikely(&generic_xdp_needed_key)) { | ||
| 5228 | preempt_disable(); | ||
| 5229 | rcu_read_lock(); | ||
| 5230 | list_for_each_entry_safe(skb, next, head, list) { | ||
| 5231 | xdp_prog = rcu_dereference(skb->dev->xdp_prog); | ||
| 5232 | skb_list_del_init(skb); | ||
| 5233 | if (do_xdp_generic(xdp_prog, skb) == XDP_PASS) | ||
| 5234 | list_add_tail(&skb->list, &sublist); | ||
| 5235 | } | ||
| 5236 | rcu_read_unlock(); | ||
| 5237 | preempt_enable(); | ||
| 5238 | /* Put passed packets back on main list */ | ||
| 5239 | list_splice_init(&sublist, head); | ||
| 5240 | } | ||
| 5241 | |||
| 5242 | rcu_read_lock(); | 5204 | rcu_read_lock(); |
| 5243 | #ifdef CONFIG_RPS | 5205 | #ifdef CONFIG_RPS |
| 5244 | if (static_branch_unlikely(&rps_needed)) { | 5206 | if (static_branch_unlikely(&rps_needed)) { |
| @@ -5809,7 +5771,6 @@ static struct sk_buff *napi_frags_skb(struct napi_struct *napi) | |||
| 5809 | skb_reset_mac_header(skb); | 5771 | skb_reset_mac_header(skb); |
| 5810 | skb_gro_reset_offset(skb); | 5772 | skb_gro_reset_offset(skb); |
| 5811 | 5773 | ||
| 5812 | eth = skb_gro_header_fast(skb, 0); | ||
| 5813 | if (unlikely(skb_gro_header_hard(skb, hlen))) { | 5774 | if (unlikely(skb_gro_header_hard(skb, hlen))) { |
| 5814 | eth = skb_gro_header_slow(skb, hlen, 0); | 5775 | eth = skb_gro_header_slow(skb, hlen, 0); |
| 5815 | if (unlikely(!eth)) { | 5776 | if (unlikely(!eth)) { |
| @@ -5819,6 +5780,7 @@ static struct sk_buff *napi_frags_skb(struct napi_struct *napi) | |||
| 5819 | return NULL; | 5780 | return NULL; |
| 5820 | } | 5781 | } |
| 5821 | } else { | 5782 | } else { |
| 5783 | eth = (const struct ethhdr *)skb->data; | ||
| 5822 | gro_pull_from_frag0(skb, hlen); | 5784 | gro_pull_from_frag0(skb, hlen); |
| 5823 | NAPI_GRO_CB(skb)->frag0 += hlen; | 5785 | NAPI_GRO_CB(skb)->frag0 += hlen; |
| 5824 | NAPI_GRO_CB(skb)->frag0_len -= hlen; | 5786 | NAPI_GRO_CB(skb)->frag0_len -= hlen; |
diff --git a/net/core/dev_addr_lists.c b/net/core/dev_addr_lists.c index a6723b306717..6393ba930097 100644 --- a/net/core/dev_addr_lists.c +++ b/net/core/dev_addr_lists.c | |||
| @@ -1,14 +1,10 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-or-later | ||
| 1 | /* | 2 | /* |
| 2 | * net/core/dev_addr_lists.c - Functions for handling net device lists | 3 | * net/core/dev_addr_lists.c - Functions for handling net device lists |
| 3 | * Copyright (c) 2010 Jiri Pirko <jpirko@redhat.com> | 4 | * Copyright (c) 2010 Jiri Pirko <jpirko@redhat.com> |
| 4 | * | 5 | * |
| 5 | * This file contains functions for working with unicast, multicast and device | 6 | * This file contains functions for working with unicast, multicast and device |
| 6 | * addresses lists. | 7 | * addresses lists. |
| 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 | */ | 8 | */ |
| 13 | 9 | ||
| 14 | #include <linux/netdevice.h> | 10 | #include <linux/netdevice.h> |
diff --git a/net/core/devlink.c b/net/core/devlink.c index d43bc52b8840..132f4b757963 100644 --- a/net/core/devlink.c +++ b/net/core/devlink.c | |||
| @@ -1,14 +1,10 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-or-later | ||
| 1 | /* | 2 | /* |
| 2 | * net/core/devlink.c - Network physical/parent device Netlink interface | 3 | * net/core/devlink.c - Network physical/parent device Netlink interface |
| 3 | * | 4 | * |
| 4 | * Heavily inspired by net/wireless/ | 5 | * Heavily inspired by net/wireless/ |
| 5 | * Copyright (c) 2016 Mellanox Technologies. All rights reserved. | 6 | * Copyright (c) 2016 Mellanox Technologies. All rights reserved. |
| 6 | * Copyright (c) 2016 Jiri Pirko <jiri@mellanox.com> | 7 | * Copyright (c) 2016 Jiri Pirko <jiri@mellanox.com> |
| 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 | */ | 8 | */ |
| 13 | 9 | ||
| 14 | #include <linux/kernel.h> | 10 | #include <linux/kernel.h> |
diff --git a/net/core/dst_cache.c b/net/core/dst_cache.c index 64cef977484a..be74ab4551c2 100644 --- a/net/core/dst_cache.c +++ b/net/core/dst_cache.c | |||
| @@ -1,12 +1,8 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-or-later | ||
| 1 | /* | 2 | /* |
| 2 | * net/core/dst_cache.c - dst entry cache | 3 | * net/core/dst_cache.c - dst entry cache |
| 3 | * | 4 | * |
| 4 | * Copyright (c) 2016 Paolo Abeni <pabeni@redhat.com> | 5 | * Copyright (c) 2016 Paolo Abeni <pabeni@redhat.com> |
| 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 | */ | 6 | */ |
| 11 | 7 | ||
| 12 | #include <linux/kernel.h> | 8 | #include <linux/kernel.h> |
diff --git a/net/core/ethtool.c b/net/core/ethtool.c index 4a593853cbf2..d08b1e19ce9c 100644 --- a/net/core/ethtool.c +++ b/net/core/ethtool.c | |||
| @@ -1,14 +1,10 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-or-later | ||
| 1 | /* | 2 | /* |
| 2 | * net/core/ethtool.c - Ethtool ioctl handler | 3 | * net/core/ethtool.c - Ethtool ioctl handler |
| 3 | * Copyright (c) 2003 Matthew Wilcox <matthew@wil.cx> | 4 | * Copyright (c) 2003 Matthew Wilcox <matthew@wil.cx> |
| 4 | * | 5 | * |
| 5 | * This file is where we call all the ethtool_ops commands to get | 6 | * This file is where we call all the ethtool_ops commands to get |
| 6 | * the information ethtool needs. | 7 | * the information ethtool needs. |
| 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 | */ | 8 | */ |
| 13 | 9 | ||
| 14 | #include <linux/module.h> | 10 | #include <linux/module.h> |
| @@ -1359,13 +1355,16 @@ static int ethtool_get_regs(struct net_device *dev, char __user *useraddr) | |||
| 1359 | if (!regbuf) | 1355 | if (!regbuf) |
| 1360 | return -ENOMEM; | 1356 | return -ENOMEM; |
| 1361 | 1357 | ||
| 1358 | if (regs.len < reglen) | ||
| 1359 | reglen = regs.len; | ||
| 1360 | |||
| 1362 | ops->get_regs(dev, ®s, regbuf); | 1361 | ops->get_regs(dev, ®s, regbuf); |
| 1363 | 1362 | ||
| 1364 | ret = -EFAULT; | 1363 | ret = -EFAULT; |
| 1365 | if (copy_to_user(useraddr, ®s, sizeof(regs))) | 1364 | if (copy_to_user(useraddr, ®s, sizeof(regs))) |
| 1366 | goto out; | 1365 | goto out; |
| 1367 | useraddr += offsetof(struct ethtool_regs, data); | 1366 | useraddr += offsetof(struct ethtool_regs, data); |
| 1368 | if (regbuf && copy_to_user(useraddr, regbuf, regs.len)) | 1367 | if (copy_to_user(useraddr, regbuf, reglen)) |
| 1369 | goto out; | 1368 | goto out; |
| 1370 | ret = 0; | 1369 | ret = 0; |
| 1371 | 1370 | ||
| @@ -3010,11 +3009,12 @@ ethtool_rx_flow_rule_create(const struct ethtool_rx_flow_spec_input *input) | |||
| 3010 | const struct ethtool_flow_ext *ext_h_spec = &fs->h_ext; | 3009 | const struct ethtool_flow_ext *ext_h_spec = &fs->h_ext; |
| 3011 | const struct ethtool_flow_ext *ext_m_spec = &fs->m_ext; | 3010 | const struct ethtool_flow_ext *ext_m_spec = &fs->m_ext; |
| 3012 | 3011 | ||
| 3013 | if (ext_m_spec->vlan_etype && | 3012 | if (ext_m_spec->vlan_etype) { |
| 3014 | ext_m_spec->vlan_tci) { | ||
| 3015 | match->key.vlan.vlan_tpid = ext_h_spec->vlan_etype; | 3013 | match->key.vlan.vlan_tpid = ext_h_spec->vlan_etype; |
| 3016 | match->mask.vlan.vlan_tpid = ext_m_spec->vlan_etype; | 3014 | match->mask.vlan.vlan_tpid = ext_m_spec->vlan_etype; |
| 3015 | } | ||
| 3017 | 3016 | ||
| 3017 | if (ext_m_spec->vlan_tci) { | ||
| 3018 | match->key.vlan.vlan_id = | 3018 | match->key.vlan.vlan_id = |
| 3019 | ntohs(ext_h_spec->vlan_tci) & 0x0fff; | 3019 | ntohs(ext_h_spec->vlan_tci) & 0x0fff; |
| 3020 | match->mask.vlan.vlan_id = | 3020 | match->mask.vlan.vlan_id = |
| @@ -3024,7 +3024,10 @@ ethtool_rx_flow_rule_create(const struct ethtool_rx_flow_spec_input *input) | |||
| 3024 | (ntohs(ext_h_spec->vlan_tci) & 0xe000) >> 13; | 3024 | (ntohs(ext_h_spec->vlan_tci) & 0xe000) >> 13; |
| 3025 | match->mask.vlan.vlan_priority = | 3025 | match->mask.vlan.vlan_priority = |
| 3026 | (ntohs(ext_m_spec->vlan_tci) & 0xe000) >> 13; | 3026 | (ntohs(ext_m_spec->vlan_tci) & 0xe000) >> 13; |
| 3027 | } | ||
| 3027 | 3028 | ||
| 3029 | if (ext_m_spec->vlan_etype || | ||
| 3030 | ext_m_spec->vlan_tci) { | ||
| 3028 | match->dissector.used_keys |= | 3031 | match->dissector.used_keys |= |
| 3029 | BIT(FLOW_DISSECTOR_KEY_VLAN); | 3032 | BIT(FLOW_DISSECTOR_KEY_VLAN); |
| 3030 | match->dissector.offset[FLOW_DISSECTOR_KEY_VLAN] = | 3033 | match->dissector.offset[FLOW_DISSECTOR_KEY_VLAN] = |
diff --git a/net/core/fib_rules.c b/net/core/fib_rules.c index 43f0115cce9c..dd220ce7ca7a 100644 --- a/net/core/fib_rules.c +++ b/net/core/fib_rules.c | |||
| @@ -1,10 +1,7 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-only | ||
| 1 | /* | 2 | /* |
| 2 | * net/core/fib_rules.c Generic Routing Rules | 3 | * net/core/fib_rules.c Generic Routing Rules |
| 3 | * | 4 | * |
| 4 | * This program is free software; you can redistribute it and/or | ||
| 5 | * modify it under the terms of the GNU General Public License as | ||
| 6 | * published by the Free Software Foundation, version 2. | ||
| 7 | * | ||
| 8 | * Authors: Thomas Graf <tgraf@suug.ch> | 5 | * Authors: Thomas Graf <tgraf@suug.ch> |
| 9 | */ | 6 | */ |
| 10 | 7 | ||
| @@ -757,9 +754,9 @@ int fib_nl_newrule(struct sk_buff *skb, struct nlmsghdr *nlh, | |||
| 757 | if (err) | 754 | if (err) |
| 758 | goto errout; | 755 | goto errout; |
| 759 | 756 | ||
| 760 | if (rule_exists(ops, frh, tb, rule)) { | 757 | if ((nlh->nlmsg_flags & NLM_F_EXCL) && |
| 761 | if (nlh->nlmsg_flags & NLM_F_EXCL) | 758 | rule_exists(ops, frh, tb, rule)) { |
| 762 | err = -EEXIST; | 759 | err = -EEXIST; |
| 763 | goto errout_free; | 760 | goto errout_free; |
| 764 | } | 761 | } |
| 765 | 762 | ||
diff --git a/net/core/filter.c b/net/core/filter.c index 55bfc941d17a..cd09bf5d21f4 100644 --- a/net/core/filter.c +++ b/net/core/filter.c | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-or-later | ||
| 1 | /* | 2 | /* |
| 2 | * Linux Socket Filter - Kernel level socket filtering | 3 | * Linux Socket Filter - Kernel level socket filtering |
| 3 | * | 4 | * |
| @@ -12,11 +13,6 @@ | |||
| 12 | * Alexei Starovoitov <ast@plumgrid.com> | 13 | * Alexei Starovoitov <ast@plumgrid.com> |
| 13 | * Daniel Borkmann <dborkman@redhat.com> | 14 | * Daniel Borkmann <dborkman@redhat.com> |
| 14 | * | 15 | * |
| 15 | * This program is free software; you can redistribute it and/or | ||
| 16 | * modify it under the terms of the GNU General Public License | ||
| 17 | * as published by the Free Software Foundation; either version | ||
| 18 | * 2 of the License, or (at your option) any later version. | ||
| 19 | * | ||
| 20 | * Andi Kleen - Fix a few bad bugs and races. | 16 | * Andi Kleen - Fix a few bad bugs and races. |
| 21 | * Kris Katterjohn - Added many additional checks in bpf_check_classic() | 17 | * Kris Katterjohn - Added many additional checks in bpf_check_classic() |
| 22 | */ | 18 | */ |
diff --git a/net/core/gen_estimator.c b/net/core/gen_estimator.c index e4e442d70c2d..bfe7bdd4c340 100644 --- a/net/core/gen_estimator.c +++ b/net/core/gen_estimator.c | |||
| @@ -1,11 +1,7 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-or-later | ||
| 1 | /* | 2 | /* |
| 2 | * net/sched/gen_estimator.c Simple rate estimator. | 3 | * net/sched/gen_estimator.c Simple rate estimator. |
| 3 | * | 4 | * |
| 4 | * This program is free software; you can redistribute 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 | * Authors: Alexey Kuznetsov, <kuznet@ms2.inr.ac.ru> | 5 | * Authors: Alexey Kuznetsov, <kuznet@ms2.inr.ac.ru> |
| 10 | * Eric Dumazet <edumazet@google.com> | 6 | * Eric Dumazet <edumazet@google.com> |
| 11 | * | 7 | * |
diff --git a/net/core/gen_stats.c b/net/core/gen_stats.c index 9bf1b9ad1780..36888f5e09eb 100644 --- a/net/core/gen_stats.c +++ b/net/core/gen_stats.c | |||
| @@ -1,11 +1,7 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-or-later | ||
| 1 | /* | 2 | /* |
| 2 | * net/core/gen_stats.c | 3 | * net/core/gen_stats.c |
| 3 | * | 4 | * |
| 4 | * This program is free software; you can redistribute 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 | * Authors: Thomas Graf <tgraf@suug.ch> | 5 | * Authors: Thomas Graf <tgraf@suug.ch> |
| 10 | * Jamal Hadi Salim | 6 | * Jamal Hadi Salim |
| 11 | * Alexey Kuznetsov, <kuznet@ms2.inr.ac.ru> | 7 | * Alexey Kuznetsov, <kuznet@ms2.inr.ac.ru> |
diff --git a/net/core/hwbm.c b/net/core/hwbm.c index 2cab489ae62e..fd822ca5a245 100644 --- a/net/core/hwbm.c +++ b/net/core/hwbm.c | |||
| @@ -1,13 +1,9 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-or-later | ||
| 1 | /* Support for hardware buffer manager. | 2 | /* Support for hardware buffer manager. |
| 2 | * | 3 | * |
| 3 | * Copyright (C) 2016 Marvell | 4 | * Copyright (C) 2016 Marvell |
| 4 | * | 5 | * |
| 5 | * Gregory CLEMENT <gregory.clement@free-electrons.com> | 6 | * Gregory CLEMENT <gregory.clement@free-electrons.com> |
| 6 | * | ||
| 7 | * This program is free software; you can redistribute it and/or modify | ||
| 8 | * it under the terms of the GNU General Public License as published by | ||
| 9 | * the Free Software Foundation; either version 2 of the License, or | ||
| 10 | * (at your option) any later version. | ||
| 11 | */ | 7 | */ |
| 12 | #include <linux/kernel.h> | 8 | #include <linux/kernel.h> |
| 13 | #include <linux/printk.h> | 9 | #include <linux/printk.h> |
diff --git a/net/core/link_watch.c b/net/core/link_watch.c index 7f51efb2b3ab..04fdc9535772 100644 --- a/net/core/link_watch.c +++ b/net/core/link_watch.c | |||
| @@ -1,14 +1,9 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-or-later | ||
| 1 | /* | 2 | /* |
| 2 | * Linux network device link state notification | 3 | * Linux network device link state notification |
| 3 | * | 4 | * |
| 4 | * Author: | 5 | * Author: |
| 5 | * Stefan Rompf <sux@loplof.de> | 6 | * Stefan Rompf <sux@loplof.de> |
| 6 | * | ||
| 7 | * This program 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 | */ | 7 | */ |
| 13 | 8 | ||
| 14 | #include <linux/module.h> | 9 | #include <linux/module.h> |
diff --git a/net/core/lwt_bpf.c b/net/core/lwt_bpf.c index 1c94f529f4a1..f93785e5833c 100644 --- a/net/core/lwt_bpf.c +++ b/net/core/lwt_bpf.c | |||
| @@ -1,13 +1,5 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-only | ||
| 1 | /* Copyright (c) 2016 Thomas Graf <tgraf@tgraf.ch> | 2 | /* Copyright (c) 2016 Thomas Graf <tgraf@tgraf.ch> |
| 2 | * | ||
| 3 | * This program is free software; you can redistribute it and/or | ||
| 4 | * modify it under the terms of version 2 of the GNU General Public | ||
| 5 | * License as published by the Free Software Foundation. | ||
| 6 | * | ||
| 7 | * This program is distributed in the hope that it will be useful, but | ||
| 8 | * WITHOUT ANY WARRANTY; without even the implied warranty of | ||
| 9 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | ||
| 10 | * General Public License for more details. | ||
| 11 | */ | 3 | */ |
| 12 | 4 | ||
| 13 | #include <linux/kernel.h> | 5 | #include <linux/kernel.h> |
diff --git a/net/core/lwtunnel.c b/net/core/lwtunnel.c index 69e249fbc02f..2f9c0de533c7 100644 --- a/net/core/lwtunnel.c +++ b/net/core/lwtunnel.c | |||
| @@ -1,13 +1,8 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-or-later | ||
| 1 | /* | 2 | /* |
| 2 | * lwtunnel Infrastructure for light weight tunnels like mpls | 3 | * lwtunnel Infrastructure for light weight tunnels like mpls |
| 3 | * | 4 | * |
| 4 | * Authors: Roopa Prabhu, <roopa@cumulusnetworks.com> | 5 | * Authors: Roopa Prabhu, <roopa@cumulusnetworks.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 License | ||
| 8 | * as published by the Free Software Foundation; either version | ||
| 9 | * 2 of the License, or (at your option) any later version. | ||
| 10 | * | ||
| 11 | */ | 6 | */ |
| 12 | 7 | ||
| 13 | #include <linux/capability.h> | 8 | #include <linux/capability.h> |
diff --git a/net/core/neighbour.c b/net/core/neighbour.c index dfa871061f14..0e2c07355463 100644 --- a/net/core/neighbour.c +++ b/net/core/neighbour.c | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-or-later | ||
| 1 | /* | 2 | /* |
| 2 | * Generic address resolution entity | 3 | * Generic address resolution entity |
| 3 | * | 4 | * |
| @@ -5,11 +6,6 @@ | |||
| 5 | * Pedro Roque <roque@di.fc.ul.pt> | 6 | * Pedro Roque <roque@di.fc.ul.pt> |
| 6 | * Alexey Kuznetsov <kuznet@ms2.inr.ac.ru> | 7 | * Alexey Kuznetsov <kuznet@ms2.inr.ac.ru> |
| 7 | * | 8 | * |
| 8 | * This program is free software; you can redistribute it and/or | ||
| 9 | * modify it under the terms of the GNU General Public License | ||
| 10 | * as published by the Free Software Foundation; either version | ||
| 11 | * 2 of the License, or (at your option) any later version. | ||
| 12 | * | ||
| 13 | * Fixes: | 9 | * Fixes: |
| 14 | * Vitaly E. Lavrov releasing NULL neighbor in neigh_add. | 10 | * Vitaly E. Lavrov releasing NULL neighbor in neigh_add. |
| 15 | * Harald Welte Add neighbour cache statistics like rtstat | 11 | * Harald Welte Add neighbour cache statistics like rtstat |
diff --git a/net/core/net-sysfs.c b/net/core/net-sysfs.c index d9c4360257ce..865ba6ca16eb 100644 --- a/net/core/net-sysfs.c +++ b/net/core/net-sysfs.c | |||
| @@ -1,12 +1,8 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-or-later | ||
| 1 | /* | 2 | /* |
| 2 | * net-sysfs.c - network device class and attributes | 3 | * net-sysfs.c - network device class and attributes |
| 3 | * | 4 | * |
| 4 | * Copyright (c) 2003 Stephen Hemminger <shemminger@osdl.org> | 5 | * Copyright (c) 2003 Stephen Hemminger <shemminger@osdl.org> |
| 5 | * | ||
| 6 | * This program is free software; you can redistribute it and/or | ||
| 7 | * modify it under the terms of the GNU General Public License | ||
| 8 | * as published by the Free Software Foundation; either version | ||
| 9 | * 2 of the License, or (at your option) any later version. | ||
| 10 | */ | 6 | */ |
| 11 | 7 | ||
| 12 | #include <linux/capability.h> | 8 | #include <linux/capability.h> |
diff --git a/net/core/netclassid_cgroup.c b/net/core/netclassid_cgroup.c index 7bf833598615..0642f91c4038 100644 --- a/net/core/netclassid_cgroup.c +++ b/net/core/netclassid_cgroup.c | |||
| @@ -1,11 +1,7 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-or-later | ||
| 1 | /* | 2 | /* |
| 2 | * net/core/netclassid_cgroup.c Classid Cgroupfs Handling | 3 | * net/core/netclassid_cgroup.c Classid Cgroupfs Handling |
| 3 | * | 4 | * |
| 4 | * This program is free software; you can redistribute 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 | * Authors: Thomas Graf <tgraf@suug.ch> | 5 | * Authors: Thomas Graf <tgraf@suug.ch> |
| 10 | */ | 6 | */ |
| 11 | 7 | ||
diff --git a/net/core/netevent.c b/net/core/netevent.c index 8b3bc4fac613..d76ed7739c70 100644 --- a/net/core/netevent.c +++ b/net/core/netevent.c | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-or-later | ||
| 1 | /* | 2 | /* |
| 2 | * Network event notifiers | 3 | * Network event notifiers |
| 3 | * | 4 | * |
| @@ -5,11 +6,6 @@ | |||
| 5 | * Tom Tucker <tom@opengridcomputing.com> | 6 | * Tom Tucker <tom@opengridcomputing.com> |
| 6 | * Steve Wise <swise@opengridcomputing.com> | 7 | * Steve Wise <swise@opengridcomputing.com> |
| 7 | * | 8 | * |
| 8 | * This program is free software; you can redistribute it and/or | ||
| 9 | * modify it under the terms of the GNU General Public License | ||
| 10 | * as published by the Free Software Foundation; either version | ||
| 11 | * 2 of the License, or (at your option) any later version. | ||
| 12 | * | ||
| 13 | * Fixes: | 9 | * Fixes: |
| 14 | */ | 10 | */ |
| 15 | 11 | ||
diff --git a/net/core/netprio_cgroup.c b/net/core/netprio_cgroup.c index 7e3d0d99dfae..256b7954b720 100644 --- a/net/core/netprio_cgroup.c +++ b/net/core/netprio_cgroup.c | |||
| @@ -1,11 +1,7 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-or-later | ||
| 1 | /* | 2 | /* |
| 2 | * net/core/netprio_cgroup.c Priority Control Group | 3 | * net/core/netprio_cgroup.c Priority Control Group |
| 3 | * | 4 | * |
| 4 | * This program is free software; you can redistribute 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 | * Authors: Neil Horman <nhorman@tuxdriver.com> | 5 | * Authors: Neil Horman <nhorman@tuxdriver.com> |
| 10 | */ | 6 | */ |
| 11 | 7 | ||
diff --git a/net/core/pktgen.c b/net/core/pktgen.c index 319ad5490fb3..f975c5e2a369 100644 --- a/net/core/pktgen.c +++ b/net/core/pktgen.c | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-or-later | ||
| 1 | /* | 2 | /* |
| 2 | * Authors: | 3 | * Authors: |
| 3 | * Copyright 2001, 2002 by Robert Olsson <robert.olsson@its.uu.se> | 4 | * Copyright 2001, 2002 by Robert Olsson <robert.olsson@its.uu.se> |
| @@ -8,12 +9,6 @@ | |||
| 8 | * Ben Greear <greearb@candelatech.com> | 9 | * Ben Greear <greearb@candelatech.com> |
| 9 | * Jens Låås <jens.laas@data.slu.se> | 10 | * Jens Låås <jens.laas@data.slu.se> |
| 10 | * | 11 | * |
| 11 | * This program 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 | * | ||
| 17 | * A tool for loading the network with preconfigurated packets. | 12 | * A tool for loading the network with preconfigurated packets. |
| 18 | * The tool is implemented as a linux module. Parameters are output | 13 | * The tool is implemented as a linux module. Parameters are output |
| 19 | * device, delay (to hard_xmit), number of packets, and whether | 14 | * device, delay (to hard_xmit), number of packets, and whether |
| @@ -60,7 +55,6 @@ | |||
| 60 | * | 55 | * |
| 61 | * Integrated to 2.5.x 021029 --Lucio Maciel (luciomaciel@zipmail.com.br) | 56 | * Integrated to 2.5.x 021029 --Lucio Maciel (luciomaciel@zipmail.com.br) |
| 62 | * | 57 | * |
| 63 | * | ||
| 64 | * 021124 Finished major redesign and rewrite for new functionality. | 58 | * 021124 Finished major redesign and rewrite for new functionality. |
| 65 | * See Documentation/networking/pktgen.txt for how to use this. | 59 | * See Documentation/networking/pktgen.txt for how to use this. |
| 66 | * | 60 | * |
| @@ -114,7 +108,6 @@ | |||
| 114 | * | 108 | * |
| 115 | * Fixed src_mac command to set source mac of packet to value specified in | 109 | * Fixed src_mac command to set source mac of packet to value specified in |
| 116 | * command by Adit Ranadive <adit.262@gmail.com> | 110 | * command by Adit Ranadive <adit.262@gmail.com> |
| 117 | * | ||
| 118 | */ | 111 | */ |
| 119 | 112 | ||
| 120 | #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt | 113 | #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt |
| @@ -3066,7 +3059,13 @@ static int pktgen_wait_thread_run(struct pktgen_thread *t) | |||
| 3066 | { | 3059 | { |
| 3067 | while (thread_is_running(t)) { | 3060 | while (thread_is_running(t)) { |
| 3068 | 3061 | ||
| 3062 | /* note: 't' will still be around even after the unlock/lock | ||
| 3063 | * cycle because pktgen_thread threads are only cleared at | ||
| 3064 | * net exit | ||
| 3065 | */ | ||
| 3066 | mutex_unlock(&pktgen_thread_lock); | ||
| 3069 | msleep_interruptible(100); | 3067 | msleep_interruptible(100); |
| 3068 | mutex_lock(&pktgen_thread_lock); | ||
| 3070 | 3069 | ||
| 3071 | if (signal_pending(current)) | 3070 | if (signal_pending(current)) |
| 3072 | goto signal; | 3071 | goto signal; |
| @@ -3081,6 +3080,10 @@ static int pktgen_wait_all_threads_run(struct pktgen_net *pn) | |||
| 3081 | struct pktgen_thread *t; | 3080 | struct pktgen_thread *t; |
| 3082 | int sig = 1; | 3081 | int sig = 1; |
| 3083 | 3082 | ||
| 3083 | /* prevent from racing with rmmod */ | ||
| 3084 | if (!try_module_get(THIS_MODULE)) | ||
| 3085 | return sig; | ||
| 3086 | |||
| 3084 | mutex_lock(&pktgen_thread_lock); | 3087 | mutex_lock(&pktgen_thread_lock); |
| 3085 | 3088 | ||
| 3086 | list_for_each_entry(t, &pn->pktgen_threads, th_list) { | 3089 | list_for_each_entry(t, &pn->pktgen_threads, th_list) { |
| @@ -3094,6 +3097,7 @@ static int pktgen_wait_all_threads_run(struct pktgen_net *pn) | |||
| 3094 | t->control |= (T_STOP); | 3097 | t->control |= (T_STOP); |
| 3095 | 3098 | ||
| 3096 | mutex_unlock(&pktgen_thread_lock); | 3099 | mutex_unlock(&pktgen_thread_lock); |
| 3100 | module_put(THIS_MODULE); | ||
| 3097 | return sig; | 3101 | return sig; |
| 3098 | } | 3102 | } |
| 3099 | 3103 | ||
diff --git a/net/core/ptp_classifier.c b/net/core/ptp_classifier.c index 7109c168b5e0..d964a5147f22 100644 --- a/net/core/ptp_classifier.c +++ b/net/core/ptp_classifier.c | |||
| @@ -1,13 +1,5 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-only | ||
| 1 | /* PTP classifier | 2 | /* PTP classifier |
| 2 | * | ||
| 3 | * This program is free software; you can redistribute it and/or | ||
| 4 | * modify it under the terms of version 2 of the GNU General Public | ||
| 5 | * License as published by the Free Software Foundation. | ||
| 6 | * | ||
| 7 | * This program is distributed in the hope that it will be useful, but | ||
| 8 | * WITHOUT ANY WARRANTY; without even the implied warranty of | ||
| 9 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | ||
| 10 | * General Public License for more details. | ||
| 11 | */ | 3 | */ |
| 12 | 4 | ||
| 13 | /* The below program is the bpf_asm (tools/net/) representation of | 5 | /* The below program is the bpf_asm (tools/net/) representation of |
diff --git a/net/core/request_sock.c b/net/core/request_sock.c index 9b8727c67b58..c9bb00008528 100644 --- a/net/core/request_sock.c +++ b/net/core/request_sock.c | |||
| @@ -1,14 +1,10 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-or-later | ||
| 1 | /* | 2 | /* |
| 2 | * NET Generic infrastructure for Network protocols. | 3 | * NET Generic infrastructure for Network protocols. |
| 3 | * | 4 | * |
| 4 | * Authors: Arnaldo Carvalho de Melo <acme@conectiva.com.br> | 5 | * Authors: Arnaldo Carvalho de Melo <acme@conectiva.com.br> |
| 5 | * | 6 | * |
| 6 | * From code originally in include/net/tcp.h | 7 | * From code originally in include/net/tcp.h |
| 7 | * | ||
| 8 | * This program is free software; you can redistribute it and/or | ||
| 9 | * modify it under the terms of the GNU General Public License | ||
| 10 | * as published by the Free Software Foundation; either version | ||
| 11 | * 2 of the License, or (at your option) any later version. | ||
| 12 | */ | 8 | */ |
| 13 | 9 | ||
| 14 | #include <linux/module.h> | 10 | #include <linux/module.h> |
diff --git a/net/core/rtnetlink.c b/net/core/rtnetlink.c index adcc045952c2..cec60583931f 100644 --- a/net/core/rtnetlink.c +++ b/net/core/rtnetlink.c | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-or-later | ||
| 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 |
| @@ -7,11 +8,6 @@ | |||
| 7 | * | 8 | * |
| 8 | * Authors: Alexey Kuznetsov, <kuznet@ms2.inr.ac.ru> | 9 | * Authors: Alexey Kuznetsov, <kuznet@ms2.inr.ac.ru> |
| 9 | * | 10 | * |
| 10 | * This program 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 | * Fixes: | 11 | * Fixes: |
| 16 | * Vitaly E. Lavrov RTA_OK arithmetics was wrong. | 12 | * Vitaly E. Lavrov RTA_OK arithmetics was wrong. |
| 17 | */ | 13 | */ |
diff --git a/net/core/scm.c b/net/core/scm.c index 52ef219cf6df..31a38239c92f 100644 --- a/net/core/scm.c +++ b/net/core/scm.c | |||
| @@ -1,12 +1,8 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-or-later | ||
| 1 | /* scm.c - Socket level control messages processing. | 2 | /* scm.c - Socket level control messages processing. |
| 2 | * | 3 | * |
| 3 | * Author: Alexey Kuznetsov, <kuznet@ms2.inr.ac.ru> | 4 | * Author: Alexey Kuznetsov, <kuznet@ms2.inr.ac.ru> |
| 4 | * Alignment and value checking mods by Craig Metz | 5 | * Alignment and value checking mods by Craig Metz |
| 5 | * | ||
| 6 | * This program is free software; you can redistribute it and/or | ||
| 7 | * modify it under the terms of the GNU General Public License | ||
| 8 | * as published by the Free Software Foundation; either version | ||
| 9 | * 2 of the License, or (at your option) any later version. | ||
| 10 | */ | 6 | */ |
| 11 | 7 | ||
| 12 | #include <linux/module.h> | 8 | #include <linux/module.h> |
diff --git a/net/core/skbuff.c b/net/core/skbuff.c index e89be6282693..47c1aa9ee045 100644 --- a/net/core/skbuff.c +++ b/net/core/skbuff.c | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-or-later | ||
| 1 | /* | 2 | /* |
| 2 | * Routines having to do with the 'struct sk_buff' memory handlers. | 3 | * Routines having to do with the 'struct sk_buff' memory handlers. |
| 3 | * | 4 | * |
| @@ -25,11 +26,6 @@ | |||
| 25 | * disabled, or you better be *real* sure that the operation is atomic | 26 | * disabled, or you better be *real* sure that the operation is atomic |
| 26 | * with respect to whatever list is being frobbed (e.g. via lock_sock() | 27 | * with respect to whatever list is being frobbed (e.g. via lock_sock() |
| 27 | * or via disabling bottom half handlers, etc). | 28 | * or via disabling bottom half handlers, etc). |
| 28 | * | ||
| 29 | * This program is free software; you can redistribute it and/or | ||
| 30 | * modify it under the terms of the GNU General Public License | ||
| 31 | * as published by the Free Software Foundation; either version | ||
| 32 | * 2 of the License, or (at your option) any later version. | ||
| 33 | */ | 29 | */ |
| 34 | 30 | ||
| 35 | /* | 31 | /* |
| @@ -1036,7 +1032,11 @@ struct ubuf_info *sock_zerocopy_realloc(struct sock *sk, size_t size, | |||
| 1036 | uarg->len++; | 1032 | uarg->len++; |
| 1037 | uarg->bytelen = bytelen; | 1033 | uarg->bytelen = bytelen; |
| 1038 | atomic_set(&sk->sk_zckey, ++next); | 1034 | atomic_set(&sk->sk_zckey, ++next); |
| 1039 | sock_zerocopy_get(uarg); | 1035 | |
| 1036 | /* no extra ref when appending to datagram (MSG_MORE) */ | ||
| 1037 | if (sk->sk_type == SOCK_STREAM) | ||
| 1038 | sock_zerocopy_get(uarg); | ||
| 1039 | |||
| 1040 | return uarg; | 1040 | return uarg; |
| 1041 | } | 1041 | } |
| 1042 | } | 1042 | } |
diff --git a/net/core/sock.c b/net/core/sock.c index 75b1c950b49f..2b3701958486 100644 --- a/net/core/sock.c +++ b/net/core/sock.c | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-or-later | ||
| 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 |
| @@ -6,7 +7,6 @@ | |||
| 6 | * Generic socket support routines. Memory allocators, socket lock/release | 7 | * Generic socket support routines. Memory allocators, socket lock/release |
| 7 | * handler for protocols to use and generic option handler. | 8 | * handler for protocols to use and generic option handler. |
| 8 | * | 9 | * |
| 9 | * | ||
| 10 | * Authors: Ross Biro | 10 | * Authors: Ross Biro |
| 11 | * Fred N. van Kempen, <waltje@uWalt.NL.Mugnet.ORG> | 11 | * Fred N. van Kempen, <waltje@uWalt.NL.Mugnet.ORG> |
| 12 | * Florian La Roche, <flla@stud.uni-sb.de> | 12 | * Florian La Roche, <flla@stud.uni-sb.de> |
| @@ -81,12 +81,6 @@ | |||
| 81 | * Arnaldo C. Melo : cleanups, use skb_queue_purge | 81 | * Arnaldo C. Melo : cleanups, use skb_queue_purge |
| 82 | * | 82 | * |
| 83 | * To Fix: | 83 | * To Fix: |
| 84 | * | ||
| 85 | * | ||
| 86 | * This program is free software; you can redistribute it and/or | ||
| 87 | * modify it under the terms of the GNU General Public License | ||
| 88 | * as published by the Free Software Foundation; either version | ||
| 89 | * 2 of the License, or (at your option) any later version. | ||
| 90 | */ | 84 | */ |
| 91 | 85 | ||
| 92 | #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt | 86 | #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt |
diff --git a/net/core/utils.c b/net/core/utils.c index 2a597ac7808e..6b6e51db9f3b 100644 --- a/net/core/utils.c +++ b/net/core/utils.c | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-or-later | ||
| 1 | /* | 2 | /* |
| 2 | * Generic address resultion entity | 3 | * Generic address resultion entity |
| 3 | * | 4 | * |
| @@ -7,11 +8,6 @@ | |||
| 7 | * in{4,6}_pton YOSHIFUJI Hideaki, Copyright (C)2006 USAGI/WIDE Project | 8 | * in{4,6}_pton YOSHIFUJI Hideaki, Copyright (C)2006 USAGI/WIDE Project |
| 8 | * | 9 | * |
| 9 | * Created by Alexey Kuznetsov <kuznet@ms2.inr.ac.ru> | 10 | * Created by Alexey Kuznetsov <kuznet@ms2.inr.ac.ru> |
| 10 | * | ||
| 11 | * This program 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 | */ | 11 | */ |
| 16 | 12 | ||
| 17 | #include <linux/module.h> | 13 | #include <linux/module.h> |
diff --git a/net/core/xdp.c b/net/core/xdp.c index 4b2b194f4f1f..8aab08b131d9 100644 --- a/net/core/xdp.c +++ b/net/core/xdp.c | |||
| @@ -1,7 +1,7 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-only | ||
| 1 | /* net/core/xdp.c | 2 | /* net/core/xdp.c |
| 2 | * | 3 | * |
| 3 | * Copyright (c) 2017 Jesper Dangaard Brouer, Red Hat Inc. | 4 | * Copyright (c) 2017 Jesper Dangaard Brouer, Red Hat Inc. |
| 4 | * Released under terms in GPL version 2. See COPYING. | ||
| 5 | */ | 5 | */ |
| 6 | #include <linux/bpf.h> | 6 | #include <linux/bpf.h> |
| 7 | #include <linux/filter.h> | 7 | #include <linux/filter.h> |
diff --git a/net/dcb/dcbevent.c b/net/dcb/dcbevent.c index a520d8004d89..8620564c2b0b 100644 --- a/net/dcb/dcbevent.c +++ b/net/dcb/dcbevent.c | |||
| @@ -1,18 +1,7 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-only | ||
| 1 | /* | 2 | /* |
| 2 | * Copyright (c) 2010, Intel Corporation. | 3 | * Copyright (c) 2010, Intel Corporation. |
| 3 | * | 4 | * |
| 4 | * This program is free software; you can redistribute it and/or modify it | ||
| 5 | * under the terms and conditions of the GNU General Public License, | ||
| 6 | * version 2, as published by the Free Software Foundation. | ||
| 7 | * | ||
| 8 | * This program is distributed in the hope it will be useful, but WITHOUT | ||
| 9 | * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or | ||
| 10 | * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for | ||
| 11 | * more details. | ||
| 12 | * | ||
| 13 | * You should have received a copy of the GNU General Public License along with | ||
| 14 | * this program; if not, see <http://www.gnu.org/licenses/>. | ||
| 15 | * | ||
| 16 | * Author: John Fastabend <john.r.fastabend@intel.com> | 5 | * Author: John Fastabend <john.r.fastabend@intel.com> |
| 17 | */ | 6 | */ |
| 18 | 7 | ||
diff --git a/net/dcb/dcbnl.c b/net/dcb/dcbnl.c index ceff9d22deea..d2a4553bcf39 100644 --- a/net/dcb/dcbnl.c +++ b/net/dcb/dcbnl.c | |||
| @@ -1,18 +1,7 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-only | ||
| 1 | /* | 2 | /* |
| 2 | * Copyright (c) 2008-2011, Intel Corporation. | 3 | * Copyright (c) 2008-2011, Intel Corporation. |
| 3 | * | 4 | * |
| 4 | * This program is free software; you can redistribute it and/or modify it | ||
| 5 | * under the terms and conditions of the GNU General Public License, | ||
| 6 | * version 2, as published by the Free Software Foundation. | ||
| 7 | * | ||
| 8 | * This program is distributed in the hope it will be useful, but WITHOUT | ||
| 9 | * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or | ||
| 10 | * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for | ||
| 11 | * more details. | ||
| 12 | * | ||
| 13 | * You should have received a copy of the GNU General Public License along with | ||
| 14 | * this program; if not, see <http://www.gnu.org/licenses/>. | ||
| 15 | * | ||
| 16 | * Description: Data Center Bridging netlink interface | 5 | * Description: Data Center Bridging netlink interface |
| 17 | * Author: Lucy Liu <lucy.liu@intel.com> | 6 | * Author: Lucy Liu <lucy.liu@intel.com> |
| 18 | */ | 7 | */ |
diff --git a/net/dccp/ackvec.c b/net/dccp/ackvec.c index 2a24f7d171a5..0a72510d5de1 100644 --- a/net/dccp/ackvec.c +++ b/net/dccp/ackvec.c | |||
| @@ -1,13 +1,10 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-only | ||
| 1 | /* | 2 | /* |
| 2 | * net/dccp/ackvec.c | 3 | * net/dccp/ackvec.c |
| 3 | * | 4 | * |
| 4 | * An implementation of Ack Vectors for the DCCP protocol | 5 | * An implementation of Ack Vectors for the DCCP protocol |
| 5 | * Copyright (c) 2007 University of Aberdeen, Scotland, UK | 6 | * Copyright (c) 2007 University of Aberdeen, Scotland, UK |
| 6 | * Copyright (c) 2005 Arnaldo Carvalho de Melo <acme@ghostprotocols.net> | 7 | * Copyright (c) 2005 Arnaldo Carvalho de Melo <acme@ghostprotocols.net> |
| 7 | * | ||
| 8 | * This program is free software; you can redistribute it and/or modify it | ||
| 9 | * under the terms of the GNU General Public License as published by the | ||
| 10 | * Free Software Foundation; version 2 of the License; | ||
| 11 | */ | 8 | */ |
| 12 | #include "dccp.h" | 9 | #include "dccp.h" |
| 13 | #include <linux/kernel.h> | 10 | #include <linux/kernel.h> |
diff --git a/net/dccp/ccids/ccid3.c b/net/dccp/ccids/ccid3.c index 12877a1514e7..9ef9bee9610f 100644 --- a/net/dccp/ccids/ccid3.c +++ b/net/dccp/ccids/ccid3.c | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-or-later | ||
| 1 | /* | 2 | /* |
| 2 | * Copyright (c) 2007 The University of Aberdeen, Scotland, UK | 3 | * Copyright (c) 2007 The University of Aberdeen, Scotland, UK |
| 3 | * Copyright (c) 2005-7 The University of Waikato, Hamilton, New Zealand. | 4 | * Copyright (c) 2005-7 The University of Waikato, Hamilton, New Zealand. |
| @@ -17,20 +18,6 @@ | |||
| 17 | * Arnaldo Carvalho de Melo <acme@conectiva.com.br>. | 18 | * Arnaldo Carvalho de Melo <acme@conectiva.com.br>. |
| 18 | * | 19 | * |
| 19 | * Copyright (c) 2005 Arnaldo Carvalho de Melo <acme@conectiva.com.br> | 20 | * Copyright (c) 2005 Arnaldo Carvalho de Melo <acme@conectiva.com.br> |
| 20 | * | ||
| 21 | * This program is free software; you can redistribute it and/or modify | ||
| 22 | * it under the terms of the GNU General Public License as published by | ||
| 23 | * the Free Software Foundation; either version 2 of the License, or | ||
| 24 | * (at your option) any later version. | ||
| 25 | * | ||
| 26 | * This program is distributed in the hope that it will be useful, | ||
| 27 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
| 28 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
| 29 | * GNU General Public License for more details. | ||
| 30 | * | ||
| 31 | * You should have received a copy of the GNU General Public License | ||
| 32 | * along with this program; if not, write to the Free Software | ||
| 33 | * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. | ||
| 34 | */ | 21 | */ |
| 35 | #include "../dccp.h" | 22 | #include "../dccp.h" |
| 36 | #include "ccid3.h" | 23 | #include "ccid3.h" |
diff --git a/net/dccp/ccids/ccid3.h b/net/dccp/ccids/ccid3.h index 813d91c6e1e2..081c195e7f7d 100644 --- a/net/dccp/ccids/ccid3.h +++ b/net/dccp/ccids/ccid3.h | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | /* SPDX-License-Identifier: GPL-2.0-or-later */ | ||
| 1 | /* | 2 | /* |
| 2 | * Copyright (c) 2005-7 The University of Waikato, Hamilton, New Zealand. | 3 | * Copyright (c) 2005-7 The University of Waikato, Hamilton, New Zealand. |
| 3 | * Copyright (c) 2007 The University of Aberdeen, Scotland, UK | 4 | * Copyright (c) 2007 The University of Aberdeen, Scotland, UK |
| @@ -17,20 +18,6 @@ | |||
| 17 | * Arnaldo Carvalho de Melo <acme@conectiva.com.br>. | 18 | * Arnaldo Carvalho de Melo <acme@conectiva.com.br>. |
| 18 | * | 19 | * |
| 19 | * Copyright (c) 2005 Arnaldo Carvalho de Melo <acme@conectiva.com.br> | 20 | * Copyright (c) 2005 Arnaldo Carvalho de Melo <acme@conectiva.com.br> |
| 20 | * | ||
| 21 | * This program is free software; you can redistribute it and/or modify | ||
| 22 | * it under the terms of the GNU General Public License as published by | ||
| 23 | * the Free Software Foundation; either version 2 of the License, or | ||
| 24 | * (at your option) any later version. | ||
| 25 | * | ||
| 26 | * This program is distributed in the hope that it will be useful, | ||
| 27 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
| 28 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
| 29 | * GNU General Public License for more details. | ||
| 30 | * | ||
| 31 | * You should have received a copy of the GNU General Public License | ||
| 32 | * along with this program; if not, write to the Free Software | ||
| 33 | * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. | ||
| 34 | */ | 21 | */ |
| 35 | #ifndef _DCCP_CCID3_H_ | 22 | #ifndef _DCCP_CCID3_H_ |
| 36 | #define _DCCP_CCID3_H_ | 23 | #define _DCCP_CCID3_H_ |
diff --git a/net/dccp/ccids/lib/loss_interval.c b/net/dccp/ccids/lib/loss_interval.c index 57f9fd78c4df..67abad695e66 100644 --- a/net/dccp/ccids/lib/loss_interval.c +++ b/net/dccp/ccids/lib/loss_interval.c | |||
| @@ -1,13 +1,9 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-or-later | ||
| 1 | /* | 2 | /* |
| 2 | * Copyright (c) 2007 The University of Aberdeen, Scotland, UK | 3 | * Copyright (c) 2007 The University of Aberdeen, Scotland, UK |
| 3 | * Copyright (c) 2005-7 The University of Waikato, Hamilton, New Zealand. | 4 | * Copyright (c) 2005-7 The University of Waikato, Hamilton, New Zealand. |
| 4 | * Copyright (c) 2005-7 Ian McDonald <ian.mcdonald@jandi.co.nz> | 5 | * Copyright (c) 2005-7 Ian McDonald <ian.mcdonald@jandi.co.nz> |
| 5 | * Copyright (c) 2005 Arnaldo Carvalho de Melo <acme@conectiva.com.br> | 6 | * Copyright (c) 2005 Arnaldo Carvalho de Melo <acme@conectiva.com.br> |
| 6 | * | ||
| 7 | * This program is free software; you can redistribute it and/or modify | ||
| 8 | * it under the terms of the GNU General Public License as published by | ||
| 9 | * the Free Software Foundation; either version 2 of the License, or | ||
| 10 | * (at your option) any later version. | ||
| 11 | */ | 7 | */ |
| 12 | #include <net/sock.h> | 8 | #include <net/sock.h> |
| 13 | #include "tfrc.h" | 9 | #include "tfrc.h" |
diff --git a/net/dccp/ccids/lib/loss_interval.h b/net/dccp/ccids/lib/loss_interval.h index 57f631a86ccd..c3d95f85e43b 100644 --- a/net/dccp/ccids/lib/loss_interval.h +++ b/net/dccp/ccids/lib/loss_interval.h | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | /* SPDX-License-Identifier: GPL-2.0-or-later */ | ||
| 1 | #ifndef _DCCP_LI_HIST_ | 2 | #ifndef _DCCP_LI_HIST_ |
| 2 | #define _DCCP_LI_HIST_ | 3 | #define _DCCP_LI_HIST_ |
| 3 | /* | 4 | /* |
| @@ -5,11 +6,6 @@ | |||
| 5 | * Copyright (c) 2005-7 The University of Waikato, Hamilton, New Zealand. | 6 | * Copyright (c) 2005-7 The University of Waikato, Hamilton, New Zealand. |
| 6 | * Copyright (c) 2005-7 Ian McDonald <ian.mcdonald@jandi.co.nz> | 7 | * Copyright (c) 2005-7 Ian McDonald <ian.mcdonald@jandi.co.nz> |
| 7 | * Copyright (c) 2005 Arnaldo Carvalho de Melo <acme@conectiva.com.br> | 8 | * Copyright (c) 2005 Arnaldo Carvalho de Melo <acme@conectiva.com.br> |
| 8 | * | ||
| 9 | * This program is free software; you can redistribute it and/or modify it | ||
| 10 | * under the terms of the GNU General Public License as published by the Free | ||
| 11 | * Software Foundation; either version 2 of the License, or (at your option) | ||
| 12 | * any later version. | ||
| 13 | */ | 9 | */ |
| 14 | #include <linux/ktime.h> | 10 | #include <linux/ktime.h> |
| 15 | #include <linux/list.h> | 11 | #include <linux/list.h> |
diff --git a/net/dccp/ccids/lib/packet_history.c b/net/dccp/ccids/lib/packet_history.c index 876e18592d71..2d41bb036271 100644 --- a/net/dccp/ccids/lib/packet_history.c +++ b/net/dccp/ccids/lib/packet_history.c | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-or-later | ||
| 1 | /* | 2 | /* |
| 2 | * Copyright (c) 2007 The University of Aberdeen, Scotland, UK | 3 | * Copyright (c) 2007 The University of Aberdeen, Scotland, UK |
| 3 | * Copyright (c) 2005-7 The University of Waikato, Hamilton, New Zealand. | 4 | * Copyright (c) 2005-7 The University of Waikato, Hamilton, New Zealand. |
| @@ -17,20 +18,6 @@ | |||
| 17 | * Arnaldo Carvalho de Melo <acme@conectiva.com.br>. | 18 | * Arnaldo Carvalho de Melo <acme@conectiva.com.br>. |
| 18 | * | 19 | * |
| 19 | * Copyright (c) 2005 Arnaldo Carvalho de Melo <acme@conectiva.com.br> | 20 | * Copyright (c) 2005 Arnaldo Carvalho de Melo <acme@conectiva.com.br> |
| 20 | * | ||
| 21 | * This program is free software; you can redistribute it and/or modify | ||
| 22 | * it under the terms of the GNU General Public License as published by | ||
| 23 | * the Free Software Foundation; either version 2 of the License, or | ||
| 24 | * (at your option) any later version. | ||
| 25 | * | ||
| 26 | * This program is distributed in the hope that it will be useful, | ||
| 27 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
| 28 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
| 29 | * GNU General Public License for more details. | ||
| 30 | * | ||
| 31 | * You should have received a copy of the GNU General Public License | ||
| 32 | * along with this program; if not, write to the Free Software | ||
| 33 | * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. | ||
| 34 | */ | 21 | */ |
| 35 | 22 | ||
| 36 | #include <linux/string.h> | 23 | #include <linux/string.h> |
diff --git a/net/dccp/ccids/lib/packet_history.h b/net/dccp/ccids/lib/packet_history.h index ee362b0b630d..a157d874840b 100644 --- a/net/dccp/ccids/lib/packet_history.h +++ b/net/dccp/ccids/lib/packet_history.h | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | /* SPDX-License-Identifier: GPL-2.0-or-later */ | ||
| 1 | /* | 2 | /* |
| 2 | * Packet RX/TX history data structures and routines for TFRC-based protocols. | 3 | * Packet RX/TX history data structures and routines for TFRC-based protocols. |
| 3 | * | 4 | * |
| @@ -17,20 +18,6 @@ | |||
| 17 | * Arnaldo Carvalho de Melo <acme@conectiva.com.br>. | 18 | * Arnaldo Carvalho de Melo <acme@conectiva.com.br>. |
| 18 | * | 19 | * |
| 19 | * Copyright (c) 2005 Arnaldo Carvalho de Melo <acme@conectiva.com.br> | 20 | * Copyright (c) 2005 Arnaldo Carvalho de Melo <acme@conectiva.com.br> |
| 20 | * | ||
| 21 | * This program is free software; you can redistribute it and/or modify | ||
| 22 | * it under the terms of the GNU General Public License as published by | ||
| 23 | * the Free Software Foundation; either version 2 of the License, or | ||
| 24 | * (at your option) any later version. | ||
| 25 | * | ||
| 26 | * This program is distributed in the hope that it will be useful, | ||
| 27 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
| 28 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
| 29 | * GNU General Public License for more details. | ||
| 30 | * | ||
| 31 | * You should have received a copy of the GNU General Public License | ||
| 32 | * along with this program; if not, write to the Free Software | ||
| 33 | * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. | ||
| 34 | */ | 21 | */ |
| 35 | 22 | ||
| 36 | #ifndef _DCCP_PKT_HIST_ | 23 | #ifndef _DCCP_PKT_HIST_ |
diff --git a/net/dccp/ccids/lib/tfrc.h b/net/dccp/ccids/lib/tfrc.h index 40ee7d62b652..0a63e8750cc5 100644 --- a/net/dccp/ccids/lib/tfrc.h +++ b/net/dccp/ccids/lib/tfrc.h | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | /* SPDX-License-Identifier: GPL-2.0-or-later */ | ||
| 1 | #ifndef _TFRC_H_ | 2 | #ifndef _TFRC_H_ |
| 2 | #define _TFRC_H_ | 3 | #define _TFRC_H_ |
| 3 | /* | 4 | /* |
| @@ -6,11 +7,6 @@ | |||
| 6 | * Copyright (c) 2005-6 Ian McDonald <ian.mcdonald@jandi.co.nz> | 7 | * Copyright (c) 2005-6 Ian McDonald <ian.mcdonald@jandi.co.nz> |
| 7 | * Copyright (c) 2005 Arnaldo Carvalho de Melo <acme@conectiva.com.br> | 8 | * Copyright (c) 2005 Arnaldo Carvalho de Melo <acme@conectiva.com.br> |
| 8 | * Copyright (c) 2003 Nils-Erik Mattsson, Joacim Haggmark, Magnus Erixzon | 9 | * Copyright (c) 2003 Nils-Erik Mattsson, Joacim Haggmark, Magnus Erixzon |
| 9 | * | ||
| 10 | * This program is free software; you can redistribute it and/or modify | ||
| 11 | * it under the terms of the GNU General Public License as published by | ||
| 12 | * the Free Software Foundation; either version 2 of the License, or | ||
| 13 | * (at your option) any later version. | ||
| 14 | */ | 10 | */ |
| 15 | #include <linux/types.h> | 11 | #include <linux/types.h> |
| 16 | #include <linux/math64.h> | 12 | #include <linux/math64.h> |
diff --git a/net/dccp/ccids/lib/tfrc_equation.c b/net/dccp/ccids/lib/tfrc_equation.c index 88ef98285bec..e2a337fa9ff7 100644 --- a/net/dccp/ccids/lib/tfrc_equation.c +++ b/net/dccp/ccids/lib/tfrc_equation.c | |||
| @@ -1,13 +1,9 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-or-later | ||
| 1 | /* | 2 | /* |
| 2 | * Copyright (c) 2005 The University of Waikato, Hamilton, New Zealand. | 3 | * Copyright (c) 2005 The University of Waikato, Hamilton, New Zealand. |
| 3 | * Copyright (c) 2005 Ian McDonald <ian.mcdonald@jandi.co.nz> | 4 | * Copyright (c) 2005 Ian McDonald <ian.mcdonald@jandi.co.nz> |
| 4 | * Copyright (c) 2005 Arnaldo Carvalho de Melo <acme@conectiva.com.br> | 5 | * Copyright (c) 2005 Arnaldo Carvalho de Melo <acme@conectiva.com.br> |
| 5 | * Copyright (c) 2003 Nils-Erik Mattsson, Joacim Haggmark, Magnus Erixzon | 6 | * Copyright (c) 2003 Nils-Erik Mattsson, Joacim Haggmark, Magnus Erixzon |
| 6 | * | ||
| 7 | * This program is free software; you can redistribute it and/or modify | ||
| 8 | * it under the terms of the GNU General Public License as published by | ||
| 9 | * the Free Software Foundation; either version 2 of the License, or | ||
| 10 | * (at your option) any later version. | ||
| 11 | */ | 7 | */ |
| 12 | 8 | ||
| 13 | #include <linux/module.h> | 9 | #include <linux/module.h> |
diff --git a/net/dccp/feat.c b/net/dccp/feat.c index db87d9f58019..9c3b5e056234 100644 --- a/net/dccp/feat.c +++ b/net/dccp/feat.c | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-or-later | ||
| 1 | /* | 2 | /* |
| 2 | * net/dccp/feat.c | 3 | * net/dccp/feat.c |
| 3 | * | 4 | * |
| @@ -7,7 +8,6 @@ | |||
| 7 | * Rewrote from scratch, some bits from earlier code by | 8 | * Rewrote from scratch, some bits from earlier code by |
| 8 | * Copyright (c) 2005 Andrea Bittau <a.bittau@cs.ucl.ac.uk> | 9 | * Copyright (c) 2005 Andrea Bittau <a.bittau@cs.ucl.ac.uk> |
| 9 | * | 10 | * |
| 10 | * | ||
| 11 | * ASSUMPTIONS | 11 | * ASSUMPTIONS |
| 12 | * ----------- | 12 | * ----------- |
| 13 | * o Feature negotiation is coordinated with connection setup (as in TCP), wild | 13 | * o Feature negotiation is coordinated with connection setup (as in TCP), wild |
| @@ -16,11 +16,6 @@ | |||
| 16 | * o All currently known SP features have 1-byte quantities. If in the future | 16 | * o All currently known SP features have 1-byte quantities. If in the future |
| 17 | * extensions of RFCs 4340..42 define features with item lengths larger than | 17 | * extensions of RFCs 4340..42 define features with item lengths larger than |
| 18 | * one byte, a feature-specific extension of the code will be required. | 18 | * one byte, a feature-specific extension of the code will be required. |
| 19 | * | ||
| 20 | * This program is free software; you can redistribute it and/or | ||
| 21 | * modify it under the terms of the GNU General Public License | ||
| 22 | * as published by the Free Software Foundation; either version | ||
| 23 | * 2 of the License, or (at your option) any later version. | ||
| 24 | */ | 19 | */ |
| 25 | #include <linux/module.h> | 20 | #include <linux/module.h> |
| 26 | #include <linux/slab.h> | 21 | #include <linux/slab.h> |
diff --git a/net/dccp/input.c b/net/dccp/input.c index 8d03707abdac..6dce68a55964 100644 --- a/net/dccp/input.c +++ b/net/dccp/input.c | |||
| @@ -1,13 +1,9 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-or-later | ||
| 1 | /* | 2 | /* |
| 2 | * net/dccp/input.c | 3 | * net/dccp/input.c |
| 3 | * | 4 | * |
| 4 | * An implementation of the DCCP protocol | 5 | * An implementation of the DCCP protocol |
| 5 | * Arnaldo Carvalho de Melo <acme@conectiva.com.br> | 6 | * Arnaldo Carvalho de Melo <acme@conectiva.com.br> |
| 6 | * | ||
| 7 | * This program 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 | */ | 7 | */ |
| 12 | 8 | ||
| 13 | #include <linux/dccp.h> | 9 | #include <linux/dccp.h> |
diff --git a/net/dccp/ipv4.c b/net/dccp/ipv4.c index 004535e4c070..b685bc82f8d0 100644 --- a/net/dccp/ipv4.c +++ b/net/dccp/ipv4.c | |||
| @@ -1,13 +1,9 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-or-later | ||
| 1 | /* | 2 | /* |
| 2 | * net/dccp/ipv4.c | 3 | * net/dccp/ipv4.c |
| 3 | * | 4 | * |
| 4 | * An implementation of the DCCP protocol | 5 | * An implementation of the DCCP protocol |
| 5 | * Arnaldo Carvalho de Melo <acme@conectiva.com.br> | 6 | * Arnaldo Carvalho de Melo <acme@conectiva.com.br> |
| 6 | * | ||
| 7 | * This program 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 | */ | 7 | */ |
| 12 | 8 | ||
| 13 | #include <linux/dccp.h> | 9 | #include <linux/dccp.h> |
diff --git a/net/dccp/ipv6.c b/net/dccp/ipv6.c index c4e4d1301062..85c10c8f50bd 100644 --- a/net/dccp/ipv6.c +++ b/net/dccp/ipv6.c | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-or-later | ||
| 1 | /* | 2 | /* |
| 2 | * DCCP over IPv6 | 3 | * DCCP over IPv6 |
| 3 | * Linux INET6 implementation | 4 | * Linux INET6 implementation |
| @@ -5,11 +6,6 @@ | |||
| 5 | * Based on net/dccp6/ipv6.c | 6 | * Based on net/dccp6/ipv6.c |
| 6 | * | 7 | * |
| 7 | * Arnaldo Carvalho de Melo <acme@ghostprotocols.net> | 8 | * Arnaldo Carvalho de Melo <acme@ghostprotocols.net> |
| 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 | * as published by the Free Software Foundation; either version | ||
| 12 | * 2 of the License, or (at your option) any later version. | ||
| 13 | */ | 9 | */ |
| 14 | 10 | ||
| 15 | #include <linux/module.h> | 11 | #include <linux/module.h> |
diff --git a/net/dccp/minisocks.c b/net/dccp/minisocks.c index ba6fc3c1186b..25187528c308 100644 --- a/net/dccp/minisocks.c +++ b/net/dccp/minisocks.c | |||
| @@ -1,13 +1,9 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-or-later | ||
| 1 | /* | 2 | /* |
| 2 | * net/dccp/minisocks.c | 3 | * net/dccp/minisocks.c |
| 3 | * | 4 | * |
| 4 | * An implementation of the DCCP protocol | 5 | * An implementation of the DCCP protocol |
| 5 | * Arnaldo Carvalho de Melo <acme@conectiva.com.br> | 6 | * Arnaldo Carvalho de Melo <acme@conectiva.com.br> |
| 6 | * | ||
| 7 | * This program 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 | */ | 7 | */ |
| 12 | 8 | ||
| 13 | #include <linux/dccp.h> | 9 | #include <linux/dccp.h> |
diff --git a/net/dccp/options.c b/net/dccp/options.c index 4e40db017e19..3b42f5c6a63d 100644 --- a/net/dccp/options.c +++ b/net/dccp/options.c | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-or-later | ||
| 1 | /* | 2 | /* |
| 2 | * net/dccp/options.c | 3 | * net/dccp/options.c |
| 3 | * | 4 | * |
| @@ -5,11 +6,6 @@ | |||
| 5 | * Copyright (c) 2005 Aristeu Sergio Rozanski Filho <aris@cathedrallabs.org> | 6 | * Copyright (c) 2005 Aristeu Sergio Rozanski Filho <aris@cathedrallabs.org> |
| 6 | * Copyright (c) 2005 Arnaldo Carvalho de Melo <acme@ghostprotocols.net> | 7 | * Copyright (c) 2005 Arnaldo Carvalho de Melo <acme@ghostprotocols.net> |
| 7 | * Copyright (c) 2005 Ian McDonald <ian.mcdonald@jandi.co.nz> | 8 | * Copyright (c) 2005 Ian McDonald <ian.mcdonald@jandi.co.nz> |
| 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 | * as published by the Free Software Foundation; either version | ||
| 12 | * 2 of the License, or (at your option) any later version. | ||
| 13 | */ | 9 | */ |
| 14 | #include <linux/dccp.h> | 10 | #include <linux/dccp.h> |
| 15 | #include <linux/module.h> | 11 | #include <linux/module.h> |
diff --git a/net/dccp/output.c b/net/dccp/output.c index 91a15b3c4915..6433187a5cc4 100644 --- a/net/dccp/output.c +++ b/net/dccp/output.c | |||
| @@ -1,13 +1,9 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-or-later | ||
| 1 | /* | 2 | /* |
| 2 | * net/dccp/output.c | 3 | * net/dccp/output.c |
| 3 | * | 4 | * |
| 4 | * An implementation of the DCCP protocol | 5 | * An implementation of the DCCP protocol |
| 5 | * Arnaldo Carvalho de Melo <acme@conectiva.com.br> | 6 | * Arnaldo Carvalho de Melo <acme@conectiva.com.br> |
| 6 | * | ||
| 7 | * This program 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 | */ | 7 | */ |
| 12 | 8 | ||
| 13 | #include <linux/dccp.h> | 9 | #include <linux/dccp.h> |
diff --git a/net/dccp/qpolicy.c b/net/dccp/qpolicy.c index 63c30bfa4703..db2448c33a62 100644 --- a/net/dccp/qpolicy.c +++ b/net/dccp/qpolicy.c | |||
| @@ -1,13 +1,10 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-only | ||
| 1 | /* | 2 | /* |
| 2 | * net/dccp/qpolicy.c | 3 | * net/dccp/qpolicy.c |
| 3 | * | 4 | * |
| 4 | * Policy-based packet dequeueing interface for DCCP. | 5 | * Policy-based packet dequeueing interface for DCCP. |
| 5 | * | 6 | * |
| 6 | * Copyright (c) 2008 Tomasz Grobelny <tomasz@grobelny.oswiecenia.net> | 7 | * Copyright (c) 2008 Tomasz Grobelny <tomasz@grobelny.oswiecenia.net> |
| 7 | * | ||
| 8 | * This program is free software; you can redistribute it and/or | ||
| 9 | * modify it under the terms of the GNU General Public License v2 | ||
| 10 | * as published by the Free Software Foundation. | ||
| 11 | */ | 8 | */ |
| 12 | #include "dccp.h" | 9 | #include "dccp.h" |
| 13 | 10 | ||
diff --git a/net/dccp/sysctl.c b/net/dccp/sysctl.c index 53731e45403c..b59040f268a9 100644 --- a/net/dccp/sysctl.c +++ b/net/dccp/sysctl.c | |||
| @@ -1,12 +1,9 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-only | ||
| 1 | /* | 2 | /* |
| 2 | * net/dccp/sysctl.c | 3 | * net/dccp/sysctl.c |
| 3 | * | 4 | * |
| 4 | * An implementation of the DCCP protocol | 5 | * An implementation of the DCCP protocol |
| 5 | * Arnaldo Carvalho de Melo <acme@mandriva.com> | 6 | * Arnaldo Carvalho de Melo <acme@mandriva.com> |
| 6 | * | ||
| 7 | * This program is free software; you can redistribute it and/or | ||
| 8 | * modify it under the terms of the GNU General Public License v2 | ||
| 9 | * as published by the Free Software Foundation. | ||
| 10 | */ | 7 | */ |
| 11 | 8 | ||
| 12 | #include <linux/mm.h> | 9 | #include <linux/mm.h> |
diff --git a/net/dccp/timer.c b/net/dccp/timer.c index 74e138495d67..c0b3672637c4 100644 --- a/net/dccp/timer.c +++ b/net/dccp/timer.c | |||
| @@ -1,13 +1,9 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-or-later | ||
| 1 | /* | 2 | /* |
| 2 | * net/dccp/timer.c | 3 | * net/dccp/timer.c |
| 3 | * | 4 | * |
| 4 | * An implementation of the DCCP protocol | 5 | * An implementation of the DCCP protocol |
| 5 | * Arnaldo Carvalho de Melo <acme@conectiva.com.br> | 6 | * Arnaldo Carvalho de Melo <acme@conectiva.com.br> |
| 6 | * | ||
| 7 | * This program 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 | */ | 7 | */ |
| 12 | 8 | ||
| 13 | #include <linux/dccp.h> | 9 | #include <linux/dccp.h> |
diff --git a/net/dsa/dsa.c b/net/dsa/dsa.c index 1fc782fab393..43120a3fb06f 100644 --- a/net/dsa/dsa.c +++ b/net/dsa/dsa.c | |||
| @@ -1,12 +1,8 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-or-later | ||
| 1 | /* | 2 | /* |
| 2 | * net/dsa/dsa.c - Hardware switch handling | 3 | * net/dsa/dsa.c - Hardware switch handling |
| 3 | * Copyright (c) 2008-2009 Marvell Semiconductor | 4 | * Copyright (c) 2008-2009 Marvell Semiconductor |
| 4 | * Copyright (c) 2013 Florian Fainelli <florian@openwrt.org> | 5 | * Copyright (c) 2013 Florian Fainelli <florian@openwrt.org> |
| 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 | */ | 6 | */ |
| 11 | 7 | ||
| 12 | #include <linux/device.h> | 8 | #include <linux/device.h> |
diff --git a/net/dsa/dsa2.c b/net/dsa/dsa2.c index 3b5f434cad3f..820dd8da57fc 100644 --- a/net/dsa/dsa2.c +++ b/net/dsa/dsa2.c | |||
| @@ -1,13 +1,9 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-or-later | ||
| 1 | /* | 2 | /* |
| 2 | * net/dsa/dsa2.c - Hardware switch handling, binding version 2 | 3 | * net/dsa/dsa2.c - Hardware switch handling, binding version 2 |
| 3 | * Copyright (c) 2008-2009 Marvell Semiconductor | 4 | * Copyright (c) 2008-2009 Marvell Semiconductor |
| 4 | * Copyright (c) 2013 Florian Fainelli <florian@openwrt.org> | 5 | * Copyright (c) 2013 Florian Fainelli <florian@openwrt.org> |
| 5 | * Copyright (c) 2016 Andrew Lunn <andrew@lunn.ch> | 6 | * Copyright (c) 2016 Andrew Lunn <andrew@lunn.ch> |
| 6 | * | ||
| 7 | * This program is free software; you can redistribute it and/or modify | ||
| 8 | * it under the terms of the GNU General Public License as published by | ||
| 9 | * the Free Software Foundation; either version 2 of the License, or | ||
| 10 | * (at your option) any later version. | ||
| 11 | */ | 7 | */ |
| 12 | 8 | ||
| 13 | #include <linux/device.h> | 9 | #include <linux/device.h> |
diff --git a/net/dsa/dsa_priv.h b/net/dsa/dsa_priv.h index 8f1222324646..3986cedfafc0 100644 --- a/net/dsa/dsa_priv.h +++ b/net/dsa/dsa_priv.h | |||
| @@ -1,11 +1,7 @@ | |||
| 1 | /* SPDX-License-Identifier: GPL-2.0-or-later */ | ||
| 1 | /* | 2 | /* |
| 2 | * net/dsa/dsa_priv.h - Hardware switch handling | 3 | * net/dsa/dsa_priv.h - Hardware switch handling |
| 3 | * Copyright (c) 2008-2009 Marvell Semiconductor | 4 | * Copyright (c) 2008-2009 Marvell Semiconductor |
| 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 | */ | 5 | */ |
| 10 | 6 | ||
| 11 | #ifndef __DSA_PRIV_H | 7 | #ifndef __DSA_PRIV_H |
diff --git a/net/dsa/master.c b/net/dsa/master.c index c58f33931be1..4b52f8bac5e1 100644 --- a/net/dsa/master.c +++ b/net/dsa/master.c | |||
| @@ -1,13 +1,9 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-or-later | ||
| 1 | /* | 2 | /* |
| 2 | * Handling of a master device, switching frames via its switch fabric CPU port | 3 | * Handling of a master device, switching frames via its switch fabric CPU port |
| 3 | * | 4 | * |
| 4 | * Copyright (c) 2017 Savoir-faire Linux Inc. | 5 | * Copyright (c) 2017 Savoir-faire Linux Inc. |
| 5 | * Vivien Didelot <vivien.didelot@savoirfairelinux.com> | 6 | * Vivien Didelot <vivien.didelot@savoirfairelinux.com> |
| 6 | * | ||
| 7 | * This program is free software; you can redistribute it and/or modify | ||
| 8 | * it under the terms of the GNU General Public License as published by | ||
| 9 | * the Free Software Foundation; either version 2 of the License, or | ||
| 10 | * (at your option) any later version. | ||
| 11 | */ | 7 | */ |
| 12 | 8 | ||
| 13 | #include "dsa_priv.h" | 9 | #include "dsa_priv.h" |
diff --git a/net/dsa/port.c b/net/dsa/port.c index ed8ba9daa3ba..363eab6df51b 100644 --- a/net/dsa/port.c +++ b/net/dsa/port.c | |||
| @@ -1,13 +1,9 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-or-later | ||
| 1 | /* | 2 | /* |
| 2 | * Handling of a single switch port | 3 | * Handling of a single switch port |
| 3 | * | 4 | * |
| 4 | * Copyright (c) 2017 Savoir-faire Linux Inc. | 5 | * Copyright (c) 2017 Savoir-faire Linux Inc. |
| 5 | * Vivien Didelot <vivien.didelot@savoirfairelinux.com> | 6 | * Vivien Didelot <vivien.didelot@savoirfairelinux.com> |
| 6 | * | ||
| 7 | * This program is free software; you can redistribute it and/or modify | ||
| 8 | * it under the terms of the GNU General Public License as published by | ||
| 9 | * the Free Software Foundation; either version 2 of the License, or | ||
| 10 | * (at your option) any later version. | ||
| 11 | */ | 7 | */ |
| 12 | 8 | ||
| 13 | #include <linux/if_bridge.h> | 9 | #include <linux/if_bridge.h> |
diff --git a/net/dsa/slave.c b/net/dsa/slave.c index 9892ca1f6859..8157be7e162d 100644 --- a/net/dsa/slave.c +++ b/net/dsa/slave.c | |||
| @@ -1,11 +1,7 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-or-later | ||
| 1 | /* | 2 | /* |
| 2 | * net/dsa/slave.c - Slave device handling | 3 | * net/dsa/slave.c - Slave device handling |
| 3 | * Copyright (c) 2008-2009 Marvell Semiconductor | 4 | * Copyright (c) 2008-2009 Marvell Semiconductor |
| 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 | */ | 5 | */ |
| 10 | 6 | ||
| 11 | #include <linux/list.h> | 7 | #include <linux/list.h> |
diff --git a/net/dsa/switch.c b/net/dsa/switch.c index 7d8cd9bc0ecc..4ec5b7f85d51 100644 --- a/net/dsa/switch.c +++ b/net/dsa/switch.c | |||
| @@ -1,13 +1,9 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-or-later | ||
| 1 | /* | 2 | /* |
| 2 | * Handling of a single switch chip, part of a switch fabric | 3 | * Handling of a single switch chip, part of a switch fabric |
| 3 | * | 4 | * |
| 4 | * Copyright (c) 2017 Savoir-faire Linux Inc. | 5 | * Copyright (c) 2017 Savoir-faire Linux Inc. |
| 5 | * Vivien Didelot <vivien.didelot@savoirfairelinux.com> | 6 | * Vivien Didelot <vivien.didelot@savoirfairelinux.com> |
| 6 | * | ||
| 7 | * This program is free software; you can redistribute it and/or modify | ||
| 8 | * it under the terms of the GNU General Public License as published by | ||
| 9 | * the Free Software Foundation; either version 2 of the License, or | ||
| 10 | * (at your option) any later version. | ||
| 11 | */ | 7 | */ |
| 12 | 8 | ||
| 13 | #include <linux/if_bridge.h> | 9 | #include <linux/if_bridge.h> |
diff --git a/net/dsa/tag_8021q.c b/net/dsa/tag_8021q.c index 8ae48c7e1e76..65a35e976d7b 100644 --- a/net/dsa/tag_8021q.c +++ b/net/dsa/tag_8021q.c | |||
| @@ -11,20 +11,59 @@ | |||
| 11 | 11 | ||
| 12 | #include "dsa_priv.h" | 12 | #include "dsa_priv.h" |
| 13 | 13 | ||
| 14 | /* Allocating two VLAN tags per port - one for the RX VID and | 14 | /* Binary structure of the fake 12-bit VID field (when the TPID is |
| 15 | * the other for the TX VID - see below | 15 | * ETH_P_DSA_8021Q): |
| 16 | * | ||
| 17 | * | 11 | 10 | 9 | 8 | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 | | ||
| 18 | * +-----------+-----+-----------------+-----------+-----------------------+ | ||
| 19 | * | DIR | RSV | SWITCH_ID | RSV | PORT | | ||
| 20 | * +-----------+-----+-----------------+-----------+-----------------------+ | ||
| 21 | * | ||
| 22 | * DIR - VID[11:10]: | ||
| 23 | * Direction flags. | ||
| 24 | * * 1 (0b01) for RX VLAN, | ||
| 25 | * * 2 (0b10) for TX VLAN. | ||
| 26 | * These values make the special VIDs of 0, 1 and 4095 to be left | ||
| 27 | * unused by this coding scheme. | ||
| 28 | * | ||
| 29 | * RSV - VID[9]: | ||
| 30 | * To be used for further expansion of SWITCH_ID or for other purposes. | ||
| 31 | * | ||
| 32 | * SWITCH_ID - VID[8:6]: | ||
| 33 | * Index of switch within DSA tree. Must be between 0 and | ||
| 34 | * DSA_MAX_SWITCHES - 1. | ||
| 35 | * | ||
| 36 | * RSV - VID[5:4]: | ||
| 37 | * To be used for further expansion of PORT or for other purposes. | ||
| 38 | * | ||
| 39 | * PORT - VID[3:0]: | ||
| 40 | * Index of switch port. Must be between 0 and DSA_MAX_PORTS - 1. | ||
| 16 | */ | 41 | */ |
| 17 | #define DSA_8021Q_VID_RANGE (DSA_MAX_SWITCHES * DSA_MAX_PORTS) | 42 | |
| 18 | #define DSA_8021Q_VID_BASE (VLAN_N_VID - 2 * DSA_8021Q_VID_RANGE - 1) | 43 | #define DSA_8021Q_DIR_SHIFT 10 |
| 19 | #define DSA_8021Q_RX_VID_BASE (DSA_8021Q_VID_BASE) | 44 | #define DSA_8021Q_DIR_MASK GENMASK(11, 10) |
| 20 | #define DSA_8021Q_TX_VID_BASE (DSA_8021Q_VID_BASE + DSA_8021Q_VID_RANGE) | 45 | #define DSA_8021Q_DIR(x) (((x) << DSA_8021Q_DIR_SHIFT) & \ |
| 46 | DSA_8021Q_DIR_MASK) | ||
| 47 | #define DSA_8021Q_DIR_RX DSA_8021Q_DIR(1) | ||
| 48 | #define DSA_8021Q_DIR_TX DSA_8021Q_DIR(2) | ||
| 49 | |||
| 50 | #define DSA_8021Q_SWITCH_ID_SHIFT 6 | ||
| 51 | #define DSA_8021Q_SWITCH_ID_MASK GENMASK(8, 6) | ||
| 52 | #define DSA_8021Q_SWITCH_ID(x) (((x) << DSA_8021Q_SWITCH_ID_SHIFT) & \ | ||
| 53 | DSA_8021Q_SWITCH_ID_MASK) | ||
| 54 | |||
| 55 | #define DSA_8021Q_PORT_SHIFT 0 | ||
| 56 | #define DSA_8021Q_PORT_MASK GENMASK(3, 0) | ||
| 57 | #define DSA_8021Q_PORT(x) (((x) << DSA_8021Q_PORT_SHIFT) & \ | ||
| 58 | DSA_8021Q_PORT_MASK) | ||
| 21 | 59 | ||
| 22 | /* Returns the VID to be inserted into the frame from xmit for switch steering | 60 | /* Returns the VID to be inserted into the frame from xmit for switch steering |
| 23 | * instructions on egress. Encodes switch ID and port ID. | 61 | * instructions on egress. Encodes switch ID and port ID. |
| 24 | */ | 62 | */ |
| 25 | u16 dsa_8021q_tx_vid(struct dsa_switch *ds, int port) | 63 | u16 dsa_8021q_tx_vid(struct dsa_switch *ds, int port) |
| 26 | { | 64 | { |
| 27 | return DSA_8021Q_TX_VID_BASE + (DSA_MAX_PORTS * ds->index) + port; | 65 | return DSA_8021Q_DIR_TX | DSA_8021Q_SWITCH_ID(ds->index) | |
| 66 | DSA_8021Q_PORT(port); | ||
| 28 | } | 67 | } |
| 29 | EXPORT_SYMBOL_GPL(dsa_8021q_tx_vid); | 68 | EXPORT_SYMBOL_GPL(dsa_8021q_tx_vid); |
| 30 | 69 | ||
| @@ -33,21 +72,22 @@ EXPORT_SYMBOL_GPL(dsa_8021q_tx_vid); | |||
| 33 | */ | 72 | */ |
| 34 | u16 dsa_8021q_rx_vid(struct dsa_switch *ds, int port) | 73 | u16 dsa_8021q_rx_vid(struct dsa_switch *ds, int port) |
| 35 | { | 74 | { |
| 36 | return DSA_8021Q_RX_VID_BASE + (DSA_MAX_PORTS * ds->index) + port; | 75 | return DSA_8021Q_DIR_RX | DSA_8021Q_SWITCH_ID(ds->index) | |
| 76 | DSA_8021Q_PORT(port); | ||
| 37 | } | 77 | } |
| 38 | EXPORT_SYMBOL_GPL(dsa_8021q_rx_vid); | 78 | EXPORT_SYMBOL_GPL(dsa_8021q_rx_vid); |
| 39 | 79 | ||
| 40 | /* Returns the decoded switch ID from the RX VID. */ | 80 | /* Returns the decoded switch ID from the RX VID. */ |
| 41 | int dsa_8021q_rx_switch_id(u16 vid) | 81 | int dsa_8021q_rx_switch_id(u16 vid) |
| 42 | { | 82 | { |
| 43 | return ((vid - DSA_8021Q_RX_VID_BASE) / DSA_MAX_PORTS); | 83 | return (vid & DSA_8021Q_SWITCH_ID_MASK) >> DSA_8021Q_SWITCH_ID_SHIFT; |
| 44 | } | 84 | } |
| 45 | EXPORT_SYMBOL_GPL(dsa_8021q_rx_switch_id); | 85 | EXPORT_SYMBOL_GPL(dsa_8021q_rx_switch_id); |
| 46 | 86 | ||
| 47 | /* Returns the decoded port ID from the RX VID. */ | 87 | /* Returns the decoded port ID from the RX VID. */ |
| 48 | int dsa_8021q_rx_source_port(u16 vid) | 88 | int dsa_8021q_rx_source_port(u16 vid) |
| 49 | { | 89 | { |
| 50 | return ((vid - DSA_8021Q_RX_VID_BASE) % DSA_MAX_PORTS); | 90 | return (vid & DSA_8021Q_PORT_MASK) >> DSA_8021Q_PORT_SHIFT; |
| 51 | } | 91 | } |
| 52 | EXPORT_SYMBOL_GPL(dsa_8021q_rx_source_port); | 92 | EXPORT_SYMBOL_GPL(dsa_8021q_rx_source_port); |
| 53 | 93 | ||
| @@ -128,10 +168,7 @@ int dsa_port_setup_8021q_tagging(struct dsa_switch *ds, int port, bool enabled) | |||
| 128 | u16 flags; | 168 | u16 flags; |
| 129 | 169 | ||
| 130 | if (i == upstream) | 170 | if (i == upstream) |
| 131 | /* CPU port needs to see this port's RX VID | 171 | continue; |
| 132 | * as tagged egress. | ||
| 133 | */ | ||
| 134 | flags = 0; | ||
| 135 | else if (i == port) | 172 | else if (i == port) |
| 136 | /* The RX VID is pvid on this port */ | 173 | /* The RX VID is pvid on this port */ |
| 137 | flags = BRIDGE_VLAN_INFO_UNTAGGED | | 174 | flags = BRIDGE_VLAN_INFO_UNTAGGED | |
| @@ -150,6 +187,20 @@ int dsa_port_setup_8021q_tagging(struct dsa_switch *ds, int port, bool enabled) | |||
| 150 | return err; | 187 | return err; |
| 151 | } | 188 | } |
| 152 | } | 189 | } |
| 190 | |||
| 191 | /* CPU port needs to see this port's RX VID | ||
| 192 | * as tagged egress. | ||
| 193 | */ | ||
| 194 | if (enabled) | ||
| 195 | err = dsa_port_vid_add(upstream_dp, rx_vid, 0); | ||
| 196 | else | ||
| 197 | err = dsa_port_vid_del(upstream_dp, rx_vid); | ||
| 198 | if (err) { | ||
| 199 | dev_err(ds->dev, "Failed to apply RX VID %d to port %d: %d\n", | ||
| 200 | rx_vid, port, err); | ||
| 201 | return err; | ||
| 202 | } | ||
| 203 | |||
| 153 | /* Finally apply the TX VID on this port and on the CPU port */ | 204 | /* Finally apply the TX VID on this port and on the CPU port */ |
| 154 | if (enabled) | 205 | if (enabled) |
| 155 | err = dsa_port_vid_add(dp, tx_vid, BRIDGE_VLAN_INFO_UNTAGGED); | 206 | err = dsa_port_vid_add(dp, tx_vid, BRIDGE_VLAN_INFO_UNTAGGED); |
diff --git a/net/dsa/tag_sja1105.c b/net/dsa/tag_sja1105.c index 969402c7dbf1..d43737e6c3fb 100644 --- a/net/dsa/tag_sja1105.c +++ b/net/dsa/tag_sja1105.c | |||
| @@ -28,14 +28,10 @@ static inline bool sja1105_is_link_local(const struct sk_buff *skb) | |||
| 28 | */ | 28 | */ |
| 29 | static bool sja1105_filter(const struct sk_buff *skb, struct net_device *dev) | 29 | static bool sja1105_filter(const struct sk_buff *skb, struct net_device *dev) |
| 30 | { | 30 | { |
| 31 | if (sja1105_is_link_local(skb)) { | 31 | if (sja1105_is_link_local(skb)) |
| 32 | SJA1105_SKB_CB(skb)->type = SJA1105_FRAME_TYPE_LINK_LOCAL; | ||
| 33 | return true; | 32 | return true; |
| 34 | } | 33 | if (!dsa_port_is_vlan_filtering(dev->dsa_ptr)) |
| 35 | if (!dsa_port_is_vlan_filtering(dev->dsa_ptr)) { | ||
| 36 | SJA1105_SKB_CB(skb)->type = SJA1105_FRAME_TYPE_NORMAL; | ||
| 37 | return true; | 34 | return true; |
| 38 | } | ||
| 39 | return false; | 35 | return false; |
| 40 | } | 36 | } |
| 41 | 37 | ||
| @@ -84,7 +80,7 @@ static struct sk_buff *sja1105_rcv(struct sk_buff *skb, | |||
| 84 | 80 | ||
| 85 | skb->offload_fwd_mark = 1; | 81 | skb->offload_fwd_mark = 1; |
| 86 | 82 | ||
| 87 | if (SJA1105_SKB_CB(skb)->type == SJA1105_FRAME_TYPE_LINK_LOCAL) { | 83 | if (sja1105_is_link_local(skb)) { |
| 88 | /* Management traffic path. Switch embeds the switch ID and | 84 | /* Management traffic path. Switch embeds the switch ID and |
| 89 | * port ID into bytes of the destination MAC, courtesy of | 85 | * port ID into bytes of the destination MAC, courtesy of |
| 90 | * the incl_srcpt options. | 86 | * the incl_srcpt options. |
diff --git a/net/ethernet/eth.c b/net/ethernet/eth.c index 4b2b222377ac..20b0bcb7e9e3 100644 --- a/net/ethernet/eth.c +++ b/net/ethernet/eth.c | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-or-later | ||
| 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 |
| @@ -31,11 +32,6 @@ | |||
| 31 | * older network drivers and IFF_ALLMULTI. | 32 | * older network drivers and IFF_ALLMULTI. |
| 32 | * Christer Weinigel : Better rebuild header message. | 33 | * Christer Weinigel : Better rebuild header message. |
| 33 | * Andrew Morton : 26Feb01: kill ether_setup() - use netdev_boot_setup(). | 34 | * Andrew Morton : 26Feb01: kill ether_setup() - use netdev_boot_setup(). |
| 34 | * | ||
| 35 | * This program is free software; you can redistribute it and/or | ||
| 36 | * modify it under the terms of the GNU General Public License | ||
| 37 | * as published by the Free Software Foundation; either version | ||
| 38 | * 2 of the License, or (at your option) any later version. | ||
| 39 | */ | 35 | */ |
| 40 | #include <linux/module.h> | 36 | #include <linux/module.h> |
| 41 | #include <linux/types.h> | 37 | #include <linux/types.h> |
diff --git a/net/hsr/hsr_framereg.c b/net/hsr/hsr_framereg.c index 9fa9abd83018..2d7a19750436 100644 --- a/net/hsr/hsr_framereg.c +++ b/net/hsr/hsr_framereg.c | |||
| @@ -365,6 +365,14 @@ void hsr_prune_nodes(struct timer_list *t) | |||
| 365 | 365 | ||
| 366 | rcu_read_lock(); | 366 | rcu_read_lock(); |
| 367 | list_for_each_entry_rcu(node, &hsr->node_db, mac_list) { | 367 | list_for_each_entry_rcu(node, &hsr->node_db, mac_list) { |
| 368 | /* Don't prune own node. Neither time_in[HSR_PT_SLAVE_A] | ||
| 369 | * nor time_in[HSR_PT_SLAVE_B], will ever be updated for | ||
| 370 | * the master port. Thus the master node will be repeatedly | ||
| 371 | * pruned leading to packet loss. | ||
| 372 | */ | ||
| 373 | if (hsr_addr_is_self(hsr, node->macaddress_A)) | ||
| 374 | continue; | ||
| 375 | |||
| 368 | /* Shorthand */ | 376 | /* Shorthand */ |
| 369 | time_a = node->time_in[HSR_PT_SLAVE_A]; | 377 | time_a = node->time_in[HSR_PT_SLAVE_A]; |
| 370 | time_b = node->time_in[HSR_PT_SLAVE_B]; | 378 | time_b = node->time_in[HSR_PT_SLAVE_B]; |
diff --git a/net/ieee802154/6lowpan/reassembly.c b/net/ieee802154/6lowpan/reassembly.c index 4196bcd4105a..9133e3cede77 100644 --- a/net/ieee802154/6lowpan/reassembly.c +++ b/net/ieee802154/6lowpan/reassembly.c | |||
| @@ -1,15 +1,10 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-or-later | ||
| 1 | /* 6LoWPAN fragment reassembly | 2 | /* 6LoWPAN fragment reassembly |
| 2 | * | 3 | * |
| 3 | * | ||
| 4 | * Authors: | 4 | * Authors: |
| 5 | * Alexander Aring <aar@pengutronix.de> | 5 | * Alexander Aring <aar@pengutronix.de> |
| 6 | * | 6 | * |
| 7 | * Based on: net/ipv6/reassembly.c | 7 | * Based on: net/ipv6/reassembly.c |
| 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 | * as published by the Free Software Foundation; either version | ||
| 12 | * 2 of the License, or (at your option) any later version. | ||
| 13 | */ | 8 | */ |
| 14 | 9 | ||
| 15 | #define pr_fmt(fmt) "6LoWPAN: " fmt | 10 | #define pr_fmt(fmt) "6LoWPAN: " fmt |
diff --git a/net/ieee802154/6lowpan/rx.c b/net/ieee802154/6lowpan/rx.c index 649e7d45e88f..ee179380a766 100644 --- a/net/ieee802154/6lowpan/rx.c +++ b/net/ieee802154/6lowpan/rx.c | |||
| @@ -1,12 +1,4 @@ | |||
| 1 | /* This program is free software; you can redistribute it and/or modify | 1 | // SPDX-License-Identifier: GPL-2.0-only |
| 2 | * it under the terms of the GNU General Public License version 2 | ||
| 3 | * as published by the Free Software Foundation. | ||
| 4 | * | ||
| 5 | * This program is distributed in the hope that it will be useful, | ||
| 6 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
| 7 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
| 8 | * GNU General Public License for more details. | ||
| 9 | */ | ||
| 10 | 2 | ||
| 11 | #include <linux/if_arp.h> | 3 | #include <linux/if_arp.h> |
| 12 | 4 | ||
diff --git a/net/ieee802154/6lowpan/tx.c b/net/ieee802154/6lowpan/tx.c index 8bec827081cd..0c07662b44c0 100644 --- a/net/ieee802154/6lowpan/tx.c +++ b/net/ieee802154/6lowpan/tx.c | |||
| @@ -1,12 +1,4 @@ | |||
| 1 | /* This program is free software; you can redistribute it and/or modify | 1 | // SPDX-License-Identifier: GPL-2.0-only |
| 2 | * it under the terms of the GNU General Public License version 2 | ||
| 3 | * as published by the Free Software Foundation. | ||
| 4 | * | ||
| 5 | * This program is distributed in the hope that it will be useful, | ||
| 6 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
| 7 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
| 8 | * GNU General Public License for more details. | ||
| 9 | */ | ||
| 10 | 2 | ||
| 11 | #include <net/6lowpan.h> | 3 | #include <net/6lowpan.h> |
| 12 | #include <net/ndisc.h> | 4 | #include <net/ndisc.h> |
diff --git a/net/ieee802154/core.c b/net/ieee802154/core.c index fe225d9a1877..60b7ac56a1f5 100644 --- a/net/ieee802154/core.c +++ b/net/ieee802154/core.c | |||
| @@ -1,15 +1,6 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-only | ||
| 1 | /* | 2 | /* |
| 2 | * Copyright (C) 2007, 2008, 2009 Siemens AG | 3 | * Copyright (C) 2007, 2008, 2009 Siemens AG |
| 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 | ||
| 6 | * as published by the Free Software Foundation. | ||
| 7 | * | ||
| 8 | * This program is distributed in the hope that it will be useful, | ||
| 9 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
| 10 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
| 11 | * GNU General Public License for more details. | ||
| 12 | * | ||
| 13 | */ | 4 | */ |
| 14 | 5 | ||
| 15 | #include <linux/slab.h> | 6 | #include <linux/slab.h> |
diff --git a/net/ieee802154/header_ops.c b/net/ieee802154/header_ops.c index c7439f0fbbdf..af337cf62764 100644 --- a/net/ieee802154/header_ops.c +++ b/net/ieee802154/header_ops.c | |||
| @@ -1,15 +1,7 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-only | ||
| 1 | /* | 2 | /* |
| 2 | * Copyright (C) 2014 Fraunhofer ITWM | 3 | * Copyright (C) 2014 Fraunhofer ITWM |
| 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 | ||
| 6 | * as published by the Free Software Foundation. | ||
| 7 | * | ||
| 8 | * This program is distributed in the hope that it will be useful, | ||
| 9 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
| 10 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
| 11 | * GNU General Public License for more details. | ||
| 12 | * | ||
| 13 | * Written by: | 5 | * Written by: |
| 14 | * Phoebe Buckheister <phoebe.buckheister@itwm.fraunhofer.de> | 6 | * Phoebe Buckheister <phoebe.buckheister@itwm.fraunhofer.de> |
| 15 | */ | 7 | */ |
diff --git a/net/ieee802154/ieee802154.h b/net/ieee802154/ieee802154.h index bc147bc8e36a..c5d91f78301a 100644 --- a/net/ieee802154/ieee802154.h +++ b/net/ieee802154/ieee802154.h | |||
| @@ -1,15 +1,6 @@ | |||
| 1 | /* SPDX-License-Identifier: GPL-2.0-only */ | ||
| 1 | /* | 2 | /* |
| 2 | * Copyright (C) 2007, 2008, 2009 Siemens AG | 3 | * Copyright (C) 2007, 2008, 2009 Siemens AG |
| 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 | ||
| 6 | * as published by the Free Software Foundation. | ||
| 7 | * | ||
| 8 | * This program is distributed in the hope that it will be useful, | ||
| 9 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
| 10 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
| 11 | * GNU General Public License for more details. | ||
| 12 | * | ||
| 13 | */ | 4 | */ |
| 14 | #ifndef IEEE_802154_LOCAL_H | 5 | #ifndef IEEE_802154_LOCAL_H |
| 15 | #define IEEE_802154_LOCAL_H | 6 | #define IEEE_802154_LOCAL_H |
diff --git a/net/ieee802154/netlink.c b/net/ieee802154/netlink.c index 098d67439b6d..7fe3b6b6c495 100644 --- a/net/ieee802154/netlink.c +++ b/net/ieee802154/netlink.c | |||
| @@ -1,17 +1,9 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-only | ||
| 1 | /* | 2 | /* |
| 2 | * Netlink interface for IEEE 802.15.4 stack | 3 | * Netlink interface for IEEE 802.15.4 stack |
| 3 | * | 4 | * |
| 4 | * Copyright 2007, 2008 Siemens AG | 5 | * Copyright 2007, 2008 Siemens AG |
| 5 | * | 6 | * |
| 6 | * This program is free software; you can redistribute it and/or modify | ||
| 7 | * it under the terms of the GNU General Public License version 2 | ||
| 8 | * as published by the Free Software Foundation. | ||
| 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 | * Written by: | 7 | * Written by: |
| 16 | * Sergey Lapin <slapin@ossfans.org> | 8 | * Sergey Lapin <slapin@ossfans.org> |
| 17 | * Dmitry Eremin-Solenikov <dbaryshkov@gmail.com> | 9 | * Dmitry Eremin-Solenikov <dbaryshkov@gmail.com> |
diff --git a/net/ieee802154/nl-mac.c b/net/ieee802154/nl-mac.c index d3cbb3258718..6d091e419d3e 100644 --- a/net/ieee802154/nl-mac.c +++ b/net/ieee802154/nl-mac.c | |||
| @@ -1,17 +1,9 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-only | ||
| 1 | /* | 2 | /* |
| 2 | * Netlink interface for IEEE 802.15.4 stack | 3 | * Netlink interface for IEEE 802.15.4 stack |
| 3 | * | 4 | * |
| 4 | * Copyright 2007, 2008 Siemens AG | 5 | * Copyright 2007, 2008 Siemens AG |
| 5 | * | 6 | * |
| 6 | * This program is free software; you can redistribute it and/or modify | ||
| 7 | * it under the terms of the GNU General Public License version 2 | ||
| 8 | * as published by the Free Software Foundation. | ||
| 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 | * Written by: | 7 | * Written by: |
| 16 | * Sergey Lapin <slapin@ossfans.org> | 8 | * Sergey Lapin <slapin@ossfans.org> |
| 17 | * Dmitry Eremin-Solenikov <dbaryshkov@gmail.com> | 9 | * Dmitry Eremin-Solenikov <dbaryshkov@gmail.com> |
diff --git a/net/ieee802154/nl-phy.c b/net/ieee802154/nl-phy.c index 0c25c0bcc4da..2cdc7e63fe17 100644 --- a/net/ieee802154/nl-phy.c +++ b/net/ieee802154/nl-phy.c | |||
| @@ -1,17 +1,9 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-only | ||
| 1 | /* | 2 | /* |
| 2 | * Netlink interface for IEEE 802.15.4 stack | 3 | * Netlink interface for IEEE 802.15.4 stack |
| 3 | * | 4 | * |
| 4 | * Copyright 2007, 2008 Siemens AG | 5 | * Copyright 2007, 2008 Siemens AG |
| 5 | * | 6 | * |
| 6 | * This program is free software; you can redistribute it and/or modify | ||
| 7 | * it under the terms of the GNU General Public License version 2 | ||
| 8 | * as published by the Free Software Foundation. | ||
| 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 | * Written by: | 7 | * Written by: |
| 16 | * Sergey Lapin <slapin@ossfans.org> | 8 | * Sergey Lapin <slapin@ossfans.org> |
| 17 | * Dmitry Eremin-Solenikov <dbaryshkov@gmail.com> | 9 | * Dmitry Eremin-Solenikov <dbaryshkov@gmail.com> |
diff --git a/net/ieee802154/nl802154.c b/net/ieee802154/nl802154.c index e4c4174f9efb..ffcfcef76291 100644 --- a/net/ieee802154/nl802154.c +++ b/net/ieee802154/nl802154.c | |||
| @@ -1,11 +1,5 @@ | |||
| 1 | /* This program is free software; you can redistribute it and/or modify | 1 | // SPDX-License-Identifier: GPL-2.0-only |
| 2 | * it under the terms of the GNU General Public License version 2 | 2 | /* |
| 3 | * as published by the Free Software Foundation. | ||
| 4 | * | ||
| 5 | * This program is distributed in the hope that it will be useful, | ||
| 6 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
| 7 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
| 8 | * GNU General Public License for more details. | ||
| 9 | * | 3 | * |
| 10 | * Authors: | 4 | * Authors: |
| 11 | * Alexander Aring <aar@pengutronix.de> | 5 | * Alexander Aring <aar@pengutronix.de> |
diff --git a/net/ieee802154/nl_policy.c b/net/ieee802154/nl_policy.c index 78f6f1233194..2c7a38d76a3a 100644 --- a/net/ieee802154/nl_policy.c +++ b/net/ieee802154/nl_policy.c | |||
| @@ -1,17 +1,8 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-only | ||
| 1 | /* | 2 | /* |
| 2 | * nl802154.h | 3 | * nl802154.h |
| 3 | * | 4 | * |
| 4 | * Copyright (C) 2007, 2008 Siemens AG | 5 | * Copyright (C) 2007, 2008 Siemens AG |
| 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 version 2 | ||
| 8 | * as published by the Free Software Foundation. | ||
| 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 | */ | 6 | */ |
| 16 | 7 | ||
| 17 | #include <linux/kernel.h> | 8 | #include <linux/kernel.h> |
diff --git a/net/ieee802154/socket.c b/net/ieee802154/socket.c index ce2dfb997537..dacbd58e1799 100644 --- a/net/ieee802154/socket.c +++ b/net/ieee802154/socket.c | |||
| @@ -1,17 +1,9 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-only | ||
| 1 | /* | 2 | /* |
| 2 | * IEEE802154.4 socket interface | 3 | * IEEE802154.4 socket interface |
| 3 | * | 4 | * |
| 4 | * Copyright 2007, 2008 Siemens AG | 5 | * Copyright 2007, 2008 Siemens AG |
| 5 | * | 6 | * |
| 6 | * This program is free software; you can redistribute it and/or modify | ||
| 7 | * it under the terms of the GNU General Public License version 2 | ||
| 8 | * as published by the Free Software Foundation. | ||
| 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 | * Written by: | 7 | * Written by: |
| 16 | * Sergey Lapin <slapin@ossfans.org> | 8 | * Sergey Lapin <slapin@ossfans.org> |
| 17 | * Maxim Gorbachyov <maxim.gorbachev@siemens.com> | 9 | * Maxim Gorbachyov <maxim.gorbachev@siemens.com> |
diff --git a/net/ieee802154/sysfs.c b/net/ieee802154/sysfs.c index bd88525b041e..d2903933805c 100644 --- a/net/ieee802154/sysfs.c +++ b/net/ieee802154/sysfs.c | |||
| @@ -1,11 +1,5 @@ | |||
| 1 | /* This program is free software; you can redistribute it and/or modify | 1 | // SPDX-License-Identifier: GPL-2.0-only |
| 2 | * it under the terms of the GNU General Public License version 2 | 2 | /* |
| 3 | * as published by the Free Software Foundation. | ||
| 4 | * | ||
| 5 | * This program is distributed in the hope that it will be useful, | ||
| 6 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
| 7 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
| 8 | * GNU General Public License for more details. | ||
| 9 | * | 3 | * |
| 10 | * Authors: | 4 | * Authors: |
| 11 | * Alexander Aring <aar@pengutronix.de> | 5 | * Alexander Aring <aar@pengutronix.de> |
diff --git a/net/ipv4/af_inet.c b/net/ipv4/af_inet.c index 5183a2daba64..52bdb881a506 100644 --- a/net/ipv4/af_inet.c +++ b/net/ipv4/af_inet.c | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-or-later | ||
| 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 |
| @@ -58,11 +59,6 @@ | |||
| 58 | * Some other random speedups. | 59 | * Some other random speedups. |
| 59 | * Cyrus Durgin : Cleaned up file for kmod hacks. | 60 | * Cyrus Durgin : Cleaned up file for kmod hacks. |
| 60 | * Andi Kleen : Fix inet_stream_connect TCP race. | 61 | * Andi Kleen : Fix inet_stream_connect TCP race. |
| 61 | * | ||
| 62 | * This program is free software; you can redistribute it and/or | ||
| 63 | * modify it under the terms of the GNU General Public License | ||
| 64 | * as published by the Free Software Foundation; either version | ||
| 65 | * 2 of the License, or (at your option) any later version. | ||
| 66 | */ | 62 | */ |
| 67 | 63 | ||
| 68 | #define pr_fmt(fmt) "IPv4: " fmt | 64 | #define pr_fmt(fmt) "IPv4: " fmt |
| @@ -428,8 +424,8 @@ int inet_release(struct socket *sock) | |||
| 428 | if (sock_flag(sk, SOCK_LINGER) && | 424 | if (sock_flag(sk, SOCK_LINGER) && |
| 429 | !(current->flags & PF_EXITING)) | 425 | !(current->flags & PF_EXITING)) |
| 430 | timeout = sk->sk_lingertime; | 426 | timeout = sk->sk_lingertime; |
| 431 | sock->sk = NULL; | ||
| 432 | sk->sk_prot->close(sk, timeout); | 427 | sk->sk_prot->close(sk, timeout); |
| 428 | sock->sk = NULL; | ||
| 433 | } | 429 | } |
| 434 | return 0; | 430 | return 0; |
| 435 | } | 431 | } |
diff --git a/net/ipv4/arp.c b/net/ipv4/arp.c index 850a6f13a082..05eb42f347e8 100644 --- a/net/ipv4/arp.c +++ b/net/ipv4/arp.c | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-or-later | ||
| 1 | /* linux/net/ipv4/arp.c | 2 | /* linux/net/ipv4/arp.c |
| 2 | * | 3 | * |
| 3 | * Copyright (C) 1994 by Florian La Roche | 4 | * Copyright (C) 1994 by Florian La Roche |
| @@ -7,11 +8,6 @@ | |||
| 7 | * high-level addresses) into a low-level hardware address (like an Ethernet | 8 | * high-level addresses) into a low-level hardware address (like an Ethernet |
| 8 | * address). | 9 | * address). |
| 9 | * | 10 | * |
| 10 | * This program 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 | * Fixes: | 11 | * Fixes: |
| 16 | * Alan Cox : Removed the Ethernet assumptions in | 12 | * Alan Cox : Removed the Ethernet assumptions in |
| 17 | * Florian's code | 13 | * Florian's code |
diff --git a/net/ipv4/datagram.c b/net/ipv4/datagram.c index 300921417f89..7bd29e694603 100644 --- a/net/ipv4/datagram.c +++ b/net/ipv4/datagram.c | |||
| @@ -1,14 +1,10 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-or-later | ||
| 1 | /* | 2 | /* |
| 2 | * common UDP/RAW code | 3 | * common UDP/RAW code |
| 3 | * Linux INET implementation | 4 | * Linux INET implementation |
| 4 | * | 5 | * |
| 5 | * Authors: | 6 | * Authors: |
| 6 | * Hideaki YOSHIFUJI <yoshfuji@linux-ipv6.org> | 7 | * Hideaki YOSHIFUJI <yoshfuji@linux-ipv6.org> |
| 7 | * | ||
| 8 | * This program is free software; you can redistribute it and/or | ||
| 9 | * modify it under the terms of the GNU General Public License | ||
| 10 | * as published by the Free Software Foundation; either version | ||
| 11 | * 2 of the License, or (at your option) any later version. | ||
| 12 | */ | 8 | */ |
| 13 | 9 | ||
| 14 | #include <linux/types.h> | 10 | #include <linux/types.h> |
diff --git a/net/ipv4/devinet.c b/net/ipv4/devinet.c index 701c5d113a34..c6bd0f7a020a 100644 --- a/net/ipv4/devinet.c +++ b/net/ipv4/devinet.c | |||
| @@ -1,11 +1,7 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-or-later | ||
| 1 | /* | 2 | /* |
| 2 | * NET3 IP device support routines. | 3 | * NET3 IP device support routines. |
| 3 | * | 4 | * |
| 4 | * This program is free software; you can redistribute 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 | * Derived from the IP parts of dev.c 1.0.19 | 5 | * Derived from the IP parts of dev.c 1.0.19 |
| 10 | * Authors: Ross Biro | 6 | * Authors: Ross Biro |
| 11 | * Fred N. van Kempen, <waltje@uWalt.NL.Mugnet.ORG> | 7 | * Fred N. van Kempen, <waltje@uWalt.NL.Mugnet.ORG> |
diff --git a/net/ipv4/esp4_offload.c b/net/ipv4/esp4_offload.c index 8edcfa66d1e5..2e5e377f50a1 100644 --- a/net/ipv4/esp4_offload.c +++ b/net/ipv4/esp4_offload.c | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-only | ||
| 1 | /* | 2 | /* |
| 2 | * IPV4 GSO/GRO offload support | 3 | * IPV4 GSO/GRO offload support |
| 3 | * Linux INET implementation | 4 | * Linux INET implementation |
| @@ -5,10 +6,6 @@ | |||
| 5 | * Copyright (C) 2016 secunet Security Networks AG | 6 | * Copyright (C) 2016 secunet Security Networks AG |
| 6 | * Author: Steffen Klassert <steffen.klassert@secunet.com> | 7 | * Author: Steffen Klassert <steffen.klassert@secunet.com> |
| 7 | * | 8 | * |
| 8 | * This program is free software; you can redistribute it and/or modify it | ||
| 9 | * under the terms and conditions of the GNU General Public License, | ||
| 10 | * version 2, as published by the Free Software Foundation. | ||
| 11 | * | ||
| 12 | * ESP GRO support | 9 | * ESP GRO support |
| 13 | */ | 10 | */ |
| 14 | 11 | ||
diff --git a/net/ipv4/fib_frontend.c b/net/ipv4/fib_frontend.c index b298255f6fdb..e54c2bcbb465 100644 --- a/net/ipv4/fib_frontend.c +++ b/net/ipv4/fib_frontend.c | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-or-later | ||
| 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 |
| @@ -6,11 +7,6 @@ | |||
| 6 | * IPv4 Forwarding Information Base: FIB frontend. | 7 | * IPv4 Forwarding Information Base: FIB frontend. |
| 7 | * | 8 | * |
| 8 | * Authors: Alexey Kuznetsov, <kuznet@ms2.inr.ac.ru> | 9 | * Authors: Alexey Kuznetsov, <kuznet@ms2.inr.ac.ru> |
| 9 | * | ||
| 10 | * This program 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 | */ | 10 | */ |
| 15 | 11 | ||
| 16 | #include <linux/module.h> | 12 | #include <linux/module.h> |
diff --git a/net/ipv4/fib_rules.c b/net/ipv4/fib_rules.c index cfec3af54c8d..a38e86b98e4f 100644 --- a/net/ipv4/fib_rules.c +++ b/net/ipv4/fib_rules.c | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-or-later | ||
| 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 |
| @@ -8,11 +9,6 @@ | |||
| 8 | * Authors: Alexey Kuznetsov, <kuznet@ms2.inr.ac.ru> | 9 | * Authors: Alexey Kuznetsov, <kuznet@ms2.inr.ac.ru> |
| 9 | * Thomas Graf <tgraf@suug.ch> | 10 | * Thomas Graf <tgraf@suug.ch> |
| 10 | * | 11 | * |
| 11 | * This program 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 | * Fixes: | 12 | * Fixes: |
| 17 | * Rani Assaf : local_rule cannot be deleted | 13 | * Rani Assaf : local_rule cannot be deleted |
| 18 | * Marc Boucher : routing by fwmark | 14 | * Marc Boucher : routing by fwmark |
diff --git a/net/ipv4/fib_semantics.c b/net/ipv4/fib_semantics.c index d3da6a10f86f..b80410673915 100644 --- a/net/ipv4/fib_semantics.c +++ b/net/ipv4/fib_semantics.c | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-or-later | ||
| 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 |
| @@ -6,11 +7,6 @@ | |||
| 6 | * IPv4 Forwarding Information Base: semantics. | 7 | * IPv4 Forwarding Information Base: semantics. |
| 7 | * | 8 | * |
| 8 | * Authors: Alexey Kuznetsov, <kuznet@ms2.inr.ac.ru> | 9 | * Authors: Alexey Kuznetsov, <kuznet@ms2.inr.ac.ru> |
| 9 | * | ||
| 10 | * This program 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 | */ | 10 | */ |
| 15 | 11 | ||
| 16 | #include <linux/uaccess.h> | 12 | #include <linux/uaccess.h> |
diff --git a/net/ipv4/fib_trie.c b/net/ipv4/fib_trie.c index 334f723bdf80..868c74771fa9 100644 --- a/net/ipv4/fib_trie.c +++ b/net/ipv4/fib_trie.c | |||
| @@ -1,8 +1,5 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-or-later | ||
| 1 | /* | 2 | /* |
| 2 | * This program is free software; you can redistribute it and/or | ||
| 3 | * modify it under the terms of the GNU General Public License | ||
| 4 | * as published by the Free Software Foundation; either version | ||
| 5 | * 2 of the License, or (at your option) any later version. | ||
| 6 | * | 3 | * |
| 7 | * Robert Olsson <robert.olsson@its.uu.se> Uppsala Universitet | 4 | * Robert Olsson <robert.olsson@its.uu.se> Uppsala Universitet |
| 8 | * & Swedish University of Agricultural Sciences. | 5 | * & Swedish University of Agricultural Sciences. |
| @@ -18,28 +15,19 @@ | |||
| 18 | * Stefan Nilsson and Matti Tikkanen. Algorithmica, 33(1):19-33, 2002. | 15 | * Stefan Nilsson and Matti Tikkanen. Algorithmica, 33(1):19-33, 2002. |
| 19 | * http://www.csc.kth.se/~snilsson/software/dyntrie2/ | 16 | * http://www.csc.kth.se/~snilsson/software/dyntrie2/ |
| 20 | * | 17 | * |
| 21 | * | ||
| 22 | * IP-address lookup using LC-tries. Stefan Nilsson and Gunnar Karlsson | 18 | * IP-address lookup using LC-tries. Stefan Nilsson and Gunnar Karlsson |
| 23 | * IEEE Journal on Selected Areas in Communications, 17(6):1083-1092, June 1999 | 19 | * IEEE Journal on Selected Areas in Communications, 17(6):1083-1092, June 1999 |
| 24 | * | 20 | * |
| 25 | * | ||
| 26 | * Code from fib_hash has been reused which includes the following header: | 21 | * Code from fib_hash has been reused which includes the following header: |
| 27 | * | 22 | * |
| 28 | * | ||
| 29 | * INET An implementation of the TCP/IP protocol suite for the LINUX | 23 | * INET An implementation of the TCP/IP protocol suite for the LINUX |
| 30 | * operating system. INET is implemented using the BSD Socket | 24 | * operating system. INET is implemented using the BSD Socket |
| 31 | * interface as the means of communication with the user level. | 25 | * interface as the means of communication with the user level. |
| 32 | * | 26 | * |
| 33 | * IPv4 FIB: lookup engine and maintenance routines. | 27 | * IPv4 FIB: lookup engine and maintenance routines. |
| 34 | * | 28 | * |
| 35 | * | ||
| 36 | * Authors: Alexey Kuznetsov, <kuznet@ms2.inr.ac.ru> | 29 | * Authors: Alexey Kuznetsov, <kuznet@ms2.inr.ac.ru> |
| 37 | * | 30 | * |
| 38 | * This program is free software; you can redistribute it and/or | ||
| 39 | * modify it under the terms of the GNU General Public License | ||
| 40 | * as published by the Free Software Foundation; either version | ||
| 41 | * 2 of the License, or (at your option) any later version. | ||
| 42 | * | ||
| 43 | * Substantial contributions to this work comes from: | 31 | * Substantial contributions to this work comes from: |
| 44 | * | 32 | * |
| 45 | * David S. Miller, <davem@davemloft.net> | 33 | * David S. Miller, <davem@davemloft.net> |
diff --git a/net/ipv4/gre_demux.c b/net/ipv4/gre_demux.c index 7c4a41dc04bb..293acfb36376 100644 --- a/net/ipv4/gre_demux.c +++ b/net/ipv4/gre_demux.c | |||
| @@ -1,13 +1,8 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-or-later | ||
| 1 | /* | 2 | /* |
| 2 | * GRE over IPv4 demultiplexer driver | 3 | * GRE over IPv4 demultiplexer driver |
| 3 | * | 4 | * |
| 4 | * Authors: Dmitry Kozlov (xeb@mail.ru) | 5 | * Authors: Dmitry Kozlov (xeb@mail.ru) |
| 5 | * | ||
| 6 | * This program is free software; you can redistribute it and/or | ||
| 7 | * modify it under the terms of the GNU General Public License | ||
| 8 | * as published by the Free Software Foundation; either version | ||
| 9 | * 2 of the License, or (at your option) any later version. | ||
| 10 | * | ||
| 11 | */ | 6 | */ |
| 12 | 7 | ||
| 13 | #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt | 8 | #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt |
diff --git a/net/ipv4/gre_offload.c b/net/ipv4/gre_offload.c index 6c63524f598a..4de7e962d3da 100644 --- a/net/ipv4/gre_offload.c +++ b/net/ipv4/gre_offload.c | |||
| @@ -1,12 +1,8 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-or-later | ||
| 1 | /* | 2 | /* |
| 2 | * IPV4 GSO/GRO offload support | 3 | * IPV4 GSO/GRO offload support |
| 3 | * Linux INET implementation | 4 | * Linux INET implementation |
| 4 | * | 5 | * |
| 5 | * This program is free software; you can redistribute it and/or | ||
| 6 | * modify it under the terms of the GNU General Public License | ||
| 7 | * as published by the Free Software Foundation; either version | ||
| 8 | * 2 of the License, or (at your option) any later version. | ||
| 9 | * | ||
| 10 | * GRE GSO support | 6 | * GRE GSO support |
| 11 | */ | 7 | */ |
| 12 | 8 | ||
diff --git a/net/ipv4/icmp.c b/net/ipv4/icmp.c index f3a5893b1e86..7c857c72aad1 100644 --- a/net/ipv4/icmp.c +++ b/net/ipv4/icmp.c | |||
| @@ -1,13 +1,9 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-or-later | ||
| 1 | /* | 2 | /* |
| 2 | * NET3: Implementation of the ICMP protocol layer. | 3 | * NET3: Implementation of the ICMP protocol layer. |
| 3 | * | 4 | * |
| 4 | * Alan Cox, <alan@lxorguk.ukuu.org.uk> | 5 | * Alan Cox, <alan@lxorguk.ukuu.org.uk> |
| 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 License | ||
| 8 | * as published by the Free Software Foundation; either version | ||
| 9 | * 2 of the License, or (at your option) any later version. | ||
| 10 | * | ||
| 11 | * Some of the function names and the icmp unreach table for this | 7 | * Some of the function names and the icmp unreach table for this |
| 12 | * module were derived from [icmp.c 1.0.11 06/02/93] by | 8 | * module were derived from [icmp.c 1.0.11 06/02/93] by |
| 13 | * Ross Biro, Fred N. van Kempen, Mark Evans, Alan Cox, Gerhard Koerting. | 9 | * Ross Biro, Fred N. van Kempen, Mark Evans, Alan Cox, Gerhard Koerting. |
| @@ -59,7 +55,6 @@ | |||
| 59 | * | 55 | * |
| 60 | * - Should use skb_pull() instead of all the manual checking. | 56 | * - Should use skb_pull() instead of all the manual checking. |
| 61 | * This would also greatly simply some upper layer error handlers. --AK | 57 | * This would also greatly simply some upper layer error handlers. --AK |
| 62 | * | ||
| 63 | */ | 58 | */ |
| 64 | 59 | ||
| 65 | #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt | 60 | #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt |
diff --git a/net/ipv4/igmp.c b/net/ipv4/igmp.c index 6c2febc39dca..a57f0d69eadb 100644 --- a/net/ipv4/igmp.c +++ b/net/ipv4/igmp.c | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-or-later | ||
| 1 | /* | 2 | /* |
| 2 | * Linux NET3: Internet Group Management Protocol [IGMP] | 3 | * Linux NET3: Internet Group Management Protocol [IGMP] |
| 3 | * | 4 | * |
| @@ -11,11 +12,6 @@ | |||
| 11 | * Authors: | 12 | * Authors: |
| 12 | * Alan Cox <alan@lxorguk.ukuu.org.uk> | 13 | * Alan Cox <alan@lxorguk.ukuu.org.uk> |
| 13 | * | 14 | * |
| 14 | * This program is free software; you can redistribute it and/or | ||
| 15 | * modify it under the terms of the GNU General Public License | ||
| 16 | * as published by the Free Software Foundation; either version | ||
| 17 | * 2 of the License, or (at your option) any later version. | ||
| 18 | * | ||
| 19 | * Fixes: | 15 | * Fixes: |
| 20 | * | 16 | * |
| 21 | * Alan Cox : Added lots of __inline__ to optimise | 17 | * Alan Cox : Added lots of __inline__ to optimise |
| @@ -188,6 +184,17 @@ static void ip_ma_put(struct ip_mc_list *im) | |||
| 188 | pmc != NULL; \ | 184 | pmc != NULL; \ |
| 189 | pmc = rtnl_dereference(pmc->next_rcu)) | 185 | pmc = rtnl_dereference(pmc->next_rcu)) |
| 190 | 186 | ||
| 187 | static void ip_sf_list_clear_all(struct ip_sf_list *psf) | ||
| 188 | { | ||
| 189 | struct ip_sf_list *next; | ||
| 190 | |||
| 191 | while (psf) { | ||
| 192 | next = psf->sf_next; | ||
| 193 | kfree(psf); | ||
| 194 | psf = next; | ||
| 195 | } | ||
| 196 | } | ||
| 197 | |||
| 191 | #ifdef CONFIG_IP_MULTICAST | 198 | #ifdef CONFIG_IP_MULTICAST |
| 192 | 199 | ||
| 193 | /* | 200 | /* |
| @@ -633,6 +640,13 @@ static void igmpv3_clear_zeros(struct ip_sf_list **ppsf) | |||
| 633 | } | 640 | } |
| 634 | } | 641 | } |
| 635 | 642 | ||
| 643 | static void kfree_pmc(struct ip_mc_list *pmc) | ||
| 644 | { | ||
| 645 | ip_sf_list_clear_all(pmc->sources); | ||
| 646 | ip_sf_list_clear_all(pmc->tomb); | ||
| 647 | kfree(pmc); | ||
| 648 | } | ||
| 649 | |||
| 636 | static void igmpv3_send_cr(struct in_device *in_dev) | 650 | static void igmpv3_send_cr(struct in_device *in_dev) |
| 637 | { | 651 | { |
| 638 | struct ip_mc_list *pmc, *pmc_prev, *pmc_next; | 652 | struct ip_mc_list *pmc, *pmc_prev, *pmc_next; |
| @@ -669,7 +683,7 @@ static void igmpv3_send_cr(struct in_device *in_dev) | |||
| 669 | else | 683 | else |
| 670 | in_dev->mc_tomb = pmc_next; | 684 | in_dev->mc_tomb = pmc_next; |
| 671 | in_dev_put(pmc->interface); | 685 | in_dev_put(pmc->interface); |
| 672 | kfree(pmc); | 686 | kfree_pmc(pmc); |
| 673 | } else | 687 | } else |
| 674 | pmc_prev = pmc; | 688 | pmc_prev = pmc; |
| 675 | } | 689 | } |
| @@ -1215,14 +1229,18 @@ static void igmpv3_del_delrec(struct in_device *in_dev, struct ip_mc_list *im) | |||
| 1215 | im->interface = pmc->interface; | 1229 | im->interface = pmc->interface; |
| 1216 | if (im->sfmode == MCAST_INCLUDE) { | 1230 | if (im->sfmode == MCAST_INCLUDE) { |
| 1217 | im->tomb = pmc->tomb; | 1231 | im->tomb = pmc->tomb; |
| 1232 | pmc->tomb = NULL; | ||
| 1233 | |||
| 1218 | im->sources = pmc->sources; | 1234 | im->sources = pmc->sources; |
| 1235 | pmc->sources = NULL; | ||
| 1236 | |||
| 1219 | for (psf = im->sources; psf; psf = psf->sf_next) | 1237 | for (psf = im->sources; psf; psf = psf->sf_next) |
| 1220 | psf->sf_crcount = in_dev->mr_qrv ?: net->ipv4.sysctl_igmp_qrv; | 1238 | psf->sf_crcount = in_dev->mr_qrv ?: net->ipv4.sysctl_igmp_qrv; |
| 1221 | } else { | 1239 | } else { |
| 1222 | im->crcount = in_dev->mr_qrv ?: net->ipv4.sysctl_igmp_qrv; | 1240 | im->crcount = in_dev->mr_qrv ?: net->ipv4.sysctl_igmp_qrv; |
| 1223 | } | 1241 | } |
| 1224 | in_dev_put(pmc->interface); | 1242 | in_dev_put(pmc->interface); |
| 1225 | kfree(pmc); | 1243 | kfree_pmc(pmc); |
| 1226 | } | 1244 | } |
| 1227 | spin_unlock_bh(&im->lock); | 1245 | spin_unlock_bh(&im->lock); |
| 1228 | } | 1246 | } |
| @@ -1243,21 +1261,18 @@ static void igmpv3_clear_delrec(struct in_device *in_dev) | |||
| 1243 | nextpmc = pmc->next; | 1261 | nextpmc = pmc->next; |
| 1244 | ip_mc_clear_src(pmc); | 1262 | ip_mc_clear_src(pmc); |
| 1245 | in_dev_put(pmc->interface); | 1263 | in_dev_put(pmc->interface); |
| 1246 | kfree(pmc); | 1264 | kfree_pmc(pmc); |
| 1247 | } | 1265 | } |
| 1248 | /* clear dead sources, too */ | 1266 | /* clear dead sources, too */ |
| 1249 | rcu_read_lock(); | 1267 | rcu_read_lock(); |
| 1250 | for_each_pmc_rcu(in_dev, pmc) { | 1268 | for_each_pmc_rcu(in_dev, pmc) { |
| 1251 | struct ip_sf_list *psf, *psf_next; | 1269 | struct ip_sf_list *psf; |
| 1252 | 1270 | ||
| 1253 | spin_lock_bh(&pmc->lock); | 1271 | spin_lock_bh(&pmc->lock); |
| 1254 | psf = pmc->tomb; | 1272 | psf = pmc->tomb; |
| 1255 | pmc->tomb = NULL; | 1273 | pmc->tomb = NULL; |
| 1256 | spin_unlock_bh(&pmc->lock); | 1274 | spin_unlock_bh(&pmc->lock); |
| 1257 | for (; psf; psf = psf_next) { | 1275 | ip_sf_list_clear_all(psf); |
| 1258 | psf_next = psf->sf_next; | ||
| 1259 | kfree(psf); | ||
| 1260 | } | ||
| 1261 | } | 1276 | } |
| 1262 | rcu_read_unlock(); | 1277 | rcu_read_unlock(); |
| 1263 | } | 1278 | } |
| @@ -2123,7 +2138,7 @@ static int ip_mc_add_src(struct in_device *in_dev, __be32 *pmca, int sfmode, | |||
| 2123 | 2138 | ||
| 2124 | static void ip_mc_clear_src(struct ip_mc_list *pmc) | 2139 | static void ip_mc_clear_src(struct ip_mc_list *pmc) |
| 2125 | { | 2140 | { |
| 2126 | struct ip_sf_list *psf, *nextpsf, *tomb, *sources; | 2141 | struct ip_sf_list *tomb, *sources; |
| 2127 | 2142 | ||
| 2128 | spin_lock_bh(&pmc->lock); | 2143 | spin_lock_bh(&pmc->lock); |
| 2129 | tomb = pmc->tomb; | 2144 | tomb = pmc->tomb; |
| @@ -2135,14 +2150,8 @@ static void ip_mc_clear_src(struct ip_mc_list *pmc) | |||
| 2135 | pmc->sfcount[MCAST_EXCLUDE] = 1; | 2150 | pmc->sfcount[MCAST_EXCLUDE] = 1; |
| 2136 | spin_unlock_bh(&pmc->lock); | 2151 | spin_unlock_bh(&pmc->lock); |
| 2137 | 2152 | ||
| 2138 | for (psf = tomb; psf; psf = nextpsf) { | 2153 | ip_sf_list_clear_all(tomb); |
| 2139 | nextpsf = psf->sf_next; | 2154 | ip_sf_list_clear_all(sources); |
| 2140 | kfree(psf); | ||
| 2141 | } | ||
| 2142 | for (psf = sources; psf; psf = nextpsf) { | ||
| 2143 | nextpsf = psf->sf_next; | ||
| 2144 | kfree(psf); | ||
| 2145 | } | ||
| 2146 | } | 2155 | } |
| 2147 | 2156 | ||
| 2148 | /* Join a multicast group | 2157 | /* Join a multicast group |
diff --git a/net/ipv4/inet_connection_sock.c b/net/ipv4/inet_connection_sock.c index a175e3e7ae97..13ec7c3a9c49 100644 --- a/net/ipv4/inet_connection_sock.c +++ b/net/ipv4/inet_connection_sock.c | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-or-later | ||
| 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 |
| @@ -6,11 +7,6 @@ | |||
| 6 | * Support for INET connection oriented protocols. | 7 | * Support for INET connection oriented protocols. |
| 7 | * | 8 | * |
| 8 | * Authors: See the TCP sources | 9 | * Authors: See the TCP sources |
| 9 | * | ||
| 10 | * This program 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 | */ | 10 | */ |
| 15 | 11 | ||
| 16 | #include <linux/module.h> | 12 | #include <linux/module.h> |
diff --git a/net/ipv4/inet_diag.c b/net/ipv4/inet_diag.c index 5731670c560b..bbb005eb5218 100644 --- a/net/ipv4/inet_diag.c +++ b/net/ipv4/inet_diag.c | |||
| @@ -1,12 +1,8 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-or-later | ||
| 1 | /* | 2 | /* |
| 2 | * inet_diag.c Module for monitoring INET transport protocols sockets. | 3 | * inet_diag.c Module for monitoring INET transport protocols sockets. |
| 3 | * | 4 | * |
| 4 | * Authors: Alexey Kuznetsov, <kuznet@ms2.inr.ac.ru> | 5 | * Authors: Alexey Kuznetsov, <kuznet@ms2.inr.ac.ru> |
| 5 | * | ||
| 6 | * This program is free software; you can redistribute it and/or | ||
| 7 | * modify it under the terms of the GNU General Public License | ||
| 8 | * as published by the Free Software Foundation; either version | ||
| 9 | * 2 of the License, 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/ipv4/inet_fragment.c b/net/ipv4/inet_fragment.c index 737808e27f8b..5ce6969896f5 100644 --- a/net/ipv4/inet_fragment.c +++ b/net/ipv4/inet_fragment.c | |||
| @@ -1,11 +1,7 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-or-later | ||
| 1 | /* | 2 | /* |
| 2 | * inet fragments management | 3 | * inet fragments management |
| 3 | * | 4 | * |
| 4 | * This program is free software; you can redistribute 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 | * Authors: Pavel Emelyanov <xemul@openvz.org> | 5 | * Authors: Pavel Emelyanov <xemul@openvz.org> |
| 10 | * Started as consolidation of ipv4/ip_fragment.c, | 6 | * Started as consolidation of ipv4/ip_fragment.c, |
| 11 | * ipv6/reassembly. and ipv6 nf conntrack reassembly | 7 | * ipv6/reassembly. and ipv6 nf conntrack reassembly |
diff --git a/net/ipv4/inet_hashtables.c b/net/ipv4/inet_hashtables.c index 942265d65eb3..c4503073248b 100644 --- a/net/ipv4/inet_hashtables.c +++ b/net/ipv4/inet_hashtables.c | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-or-later | ||
| 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 |
| @@ -6,11 +7,6 @@ | |||
| 6 | * Generic INET transport hashtables | 7 | * Generic INET transport hashtables |
| 7 | * | 8 | * |
| 8 | * Authors: Lotsa people, from code originally in tcp | 9 | * Authors: Lotsa people, from code originally in tcp |
| 9 | * | ||
| 10 | * This program 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 | */ | 10 | */ |
| 15 | 11 | ||
| 16 | #include <linux/module.h> | 12 | #include <linux/module.h> |
diff --git a/net/ipv4/ip_gre.c b/net/ipv4/ip_gre.c index 4b0526441476..a53a543fe055 100644 --- a/net/ipv4/ip_gre.c +++ b/net/ipv4/ip_gre.c | |||
| @@ -1,13 +1,8 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-or-later | ||
| 1 | /* | 2 | /* |
| 2 | * Linux NET3: GRE over IP protocol decoder. | 3 | * Linux NET3: GRE over IP protocol decoder. |
| 3 | * | 4 | * |
| 4 | * Authors: Alexey Kuznetsov (kuznet@ms2.inr.ac.ru) | 5 | * Authors: Alexey Kuznetsov (kuznet@ms2.inr.ac.ru) |
| 5 | * | ||
| 6 | * This program is free software; you can redistribute it and/or | ||
| 7 | * modify it under the terms of the GNU General Public License | ||
| 8 | * as published by the Free Software Foundation; either version | ||
| 9 | * 2 of the License, or (at your option) any later version. | ||
| 10 | * | ||
| 11 | */ | 6 | */ |
| 12 | 7 | ||
| 13 | #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt | 8 | #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt |
diff --git a/net/ipv4/ip_input.c b/net/ipv4/ip_input.c index ed97724c5e33..1e2392b7c64e 100644 --- a/net/ipv4/ip_input.c +++ b/net/ipv4/ip_input.c | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-or-later | ||
| 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 |
| @@ -14,7 +15,6 @@ | |||
| 14 | * Jorge Cwik, <jorge@laser.satlink.net> | 15 | * Jorge Cwik, <jorge@laser.satlink.net> |
| 15 | * Arnt Gulbrandsen, <agulbra@nvg.unit.no> | 16 | * Arnt Gulbrandsen, <agulbra@nvg.unit.no> |
| 16 | * | 17 | * |
| 17 | * | ||
| 18 | * Fixes: | 18 | * Fixes: |
| 19 | * Alan Cox : Commented a couple of minor bits of surplus code | 19 | * Alan Cox : Commented a couple of minor bits of surplus code |
| 20 | * Alan Cox : Undefining IP_FORWARD doesn't include the code | 20 | * Alan Cox : Undefining IP_FORWARD doesn't include the code |
| @@ -96,8 +96,6 @@ | |||
| 96 | * Jos Vos : Do accounting *before* call_in_firewall | 96 | * Jos Vos : Do accounting *before* call_in_firewall |
| 97 | * Willy Konynenberg : Transparent proxying support | 97 | * Willy Konynenberg : Transparent proxying support |
| 98 | * | 98 | * |
| 99 | * | ||
| 100 | * | ||
| 101 | * To Fix: | 99 | * To Fix: |
| 102 | * IP fragmentation wants rewriting cleanly. The RFC815 algorithm is much more efficient | 100 | * IP fragmentation wants rewriting cleanly. The RFC815 algorithm is much more efficient |
| 103 | * and could be made very efficient with the addition of some virtual memory hacks to permit | 101 | * and could be made very efficient with the addition of some virtual memory hacks to permit |
| @@ -106,11 +104,6 @@ | |||
| 106 | * interleaved copy algorithm so that fragmenting has a one copy overhead. Actual packet | 104 | * interleaved copy algorithm so that fragmenting has a one copy overhead. Actual packet |
| 107 | * output should probably do its own fragmentation at the UDP/RAW layer. TCP shouldn't cause | 105 | * output should probably do its own fragmentation at the UDP/RAW layer. TCP shouldn't cause |
| 108 | * fragmentation anyway. | 106 | * fragmentation anyway. |
| 109 | * | ||
| 110 | * This program is free software; you can redistribute it and/or | ||
| 111 | * modify it under the terms of the GNU General Public License | ||
| 112 | * as published by the Free Software Foundation; either version | ||
| 113 | * 2 of the License, or (at your option) any later version. | ||
| 114 | */ | 107 | */ |
| 115 | 108 | ||
| 116 | #define pr_fmt(fmt) "IPv4: " fmt | 109 | #define pr_fmt(fmt) "IPv4: " fmt |
diff --git a/net/ipv4/ip_output.c b/net/ipv4/ip_output.c index bfd0ca554977..8c9189a41b13 100644 --- a/net/ipv4/ip_output.c +++ b/net/ipv4/ip_output.c | |||
| @@ -878,7 +878,7 @@ static int __ip_append_data(struct sock *sk, | |||
| 878 | int csummode = CHECKSUM_NONE; | 878 | int csummode = CHECKSUM_NONE; |
| 879 | struct rtable *rt = (struct rtable *)cork->dst; | 879 | struct rtable *rt = (struct rtable *)cork->dst; |
| 880 | unsigned int wmem_alloc_delta = 0; | 880 | unsigned int wmem_alloc_delta = 0; |
| 881 | bool paged, extra_uref; | 881 | bool paged, extra_uref = false; |
| 882 | u32 tskey = 0; | 882 | u32 tskey = 0; |
| 883 | 883 | ||
| 884 | skb = skb_peek_tail(queue); | 884 | skb = skb_peek_tail(queue); |
| @@ -918,7 +918,7 @@ static int __ip_append_data(struct sock *sk, | |||
| 918 | uarg = sock_zerocopy_realloc(sk, length, skb_zcopy(skb)); | 918 | uarg = sock_zerocopy_realloc(sk, length, skb_zcopy(skb)); |
| 919 | if (!uarg) | 919 | if (!uarg) |
| 920 | return -ENOBUFS; | 920 | return -ENOBUFS; |
| 921 | extra_uref = true; | 921 | extra_uref = !skb; /* only extra ref if !MSG_MORE */ |
| 922 | if (rt->dst.dev->features & NETIF_F_SG && | 922 | if (rt->dst.dev->features & NETIF_F_SG && |
| 923 | csummode == CHECKSUM_PARTIAL) { | 923 | csummode == CHECKSUM_PARTIAL) { |
| 924 | paged = true; | 924 | paged = true; |
diff --git a/net/ipv4/ip_sockglue.c b/net/ipv4/ip_sockglue.c index 82f341e84fae..aa3fd61818c4 100644 --- a/net/ipv4/ip_sockglue.c +++ b/net/ipv4/ip_sockglue.c | |||
| @@ -343,6 +343,8 @@ int ip_ra_control(struct sock *sk, unsigned char on, | |||
| 343 | return -EINVAL; | 343 | return -EINVAL; |
| 344 | 344 | ||
| 345 | new_ra = on ? kmalloc(sizeof(*new_ra), GFP_KERNEL) : NULL; | 345 | new_ra = on ? kmalloc(sizeof(*new_ra), GFP_KERNEL) : NULL; |
| 346 | if (on && !new_ra) | ||
| 347 | return -ENOMEM; | ||
| 346 | 348 | ||
| 347 | mutex_lock(&net->ipv4.ra_mutex); | 349 | mutex_lock(&net->ipv4.ra_mutex); |
| 348 | for (rap = &net->ipv4.ra_chain; | 350 | for (rap = &net->ipv4.ra_chain; |
diff --git a/net/ipv4/ip_tunnel.c b/net/ipv4/ip_tunnel.c index a5d8cad18ead..38c02bb62e2c 100644 --- a/net/ipv4/ip_tunnel.c +++ b/net/ipv4/ip_tunnel.c | |||
| @@ -1,19 +1,6 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-only | ||
| 1 | /* | 2 | /* |
| 2 | * Copyright (c) 2013 Nicira, Inc. | 3 | * Copyright (c) 2013 Nicira, Inc. |
| 3 | * | ||
| 4 | * This program is free software; you can redistribute it and/or | ||
| 5 | * modify it under the terms of version 2 of the GNU General Public | ||
| 6 | * License as published by the Free Software Foundation. | ||
| 7 | * | ||
| 8 | * This program is distributed in the hope that it will be useful, but | ||
| 9 | * WITHOUT ANY WARRANTY; without even the implied warranty of | ||
| 10 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | ||
| 11 | * General Public License for more details. | ||
| 12 | * | ||
| 13 | * You should have received a copy of the GNU General Public License | ||
| 14 | * along with this program; if not, write to the Free Software | ||
| 15 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA | ||
| 16 | * 02110-1301, USA | ||
| 17 | */ | 4 | */ |
| 18 | 5 | ||
| 19 | #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt | 6 | #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt |
diff --git a/net/ipv4/ip_tunnel_core.c b/net/ipv4/ip_tunnel_core.c index 30c1c264bdfc..9e3846388fb3 100644 --- a/net/ipv4/ip_tunnel_core.c +++ b/net/ipv4/ip_tunnel_core.c | |||
| @@ -1,19 +1,6 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-only | ||
| 1 | /* | 2 | /* |
| 2 | * Copyright (c) 2013 Nicira, Inc. | 3 | * Copyright (c) 2013 Nicira, Inc. |
| 3 | * | ||
| 4 | * This program is free software; you can redistribute it and/or | ||
| 5 | * modify it under the terms of version 2 of the GNU General Public | ||
| 6 | * License as published by the Free Software Foundation. | ||
| 7 | * | ||
| 8 | * This program is distributed in the hope that it will be useful, but | ||
| 9 | * WITHOUT ANY WARRANTY; without even the implied warranty of | ||
| 10 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | ||
| 11 | * General Public License for more details. | ||
| 12 | * | ||
| 13 | * You should have received a copy of the GNU General Public License | ||
| 14 | * along with this program; if not, write to the Free Software | ||
| 15 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA | ||
| 16 | * 02110-1301, USA | ||
| 17 | */ | 4 | */ |
| 18 | 5 | ||
| 19 | #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt | 6 | #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt |
diff --git a/net/ipv4/ip_vti.c b/net/ipv4/ip_vti.c index 254a42e83ff9..cfb025606793 100644 --- a/net/ipv4/ip_vti.c +++ b/net/ipv4/ip_vti.c | |||
| @@ -1,15 +1,10 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-or-later | ||
| 1 | /* | 2 | /* |
| 2 | * Linux NET3: IP/IP protocol decoder modified to support | 3 | * Linux NET3: IP/IP protocol decoder modified to support |
| 3 | * virtual tunnel interface | 4 | * virtual tunnel interface |
| 4 | * | 5 | * |
| 5 | * Authors: | 6 | * Authors: |
| 6 | * Saurabh Mohan (saurabh.mohan@vyatta.com) 05/07/2012 | 7 | * Saurabh Mohan (saurabh.mohan@vyatta.com) 05/07/2012 |
| 7 | * | ||
| 8 | * This program is free software; you can redistribute it and/or | ||
| 9 | * modify it under the terms of the GNU General Public License | ||
| 10 | * as published by the Free Software Foundation; either version | ||
| 11 | * 2 of the License, or (at your option) any later version. | ||
| 12 | * | ||
| 13 | */ | 8 | */ |
| 14 | 9 | ||
| 15 | /* | 10 | /* |
diff --git a/net/ipv4/ipcomp.c b/net/ipv4/ipcomp.c index 9119d012ba46..2f4cdcc13d53 100644 --- a/net/ipv4/ipcomp.c +++ b/net/ipv4/ipcomp.c | |||
| @@ -1,13 +1,9 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-or-later | ||
| 1 | /* | 2 | /* |
| 2 | * IP Payload Compression Protocol (IPComp) - RFC3173. | 3 | * IP Payload Compression Protocol (IPComp) - RFC3173. |
| 3 | * | 4 | * |
| 4 | * Copyright (c) 2003 James Morris <jmorris@intercode.com.au> | 5 | * Copyright (c) 2003 James Morris <jmorris@intercode.com.au> |
| 5 | * | 6 | * |
| 6 | * This program is free software; you can redistribute it and/or modify it | ||
| 7 | * under the terms of the GNU General Public License as published by the Free | ||
| 8 | * Software Foundation; either version 2 of the License, or (at your option) | ||
| 9 | * any later version. | ||
| 10 | * | ||
| 11 | * Todo: | 7 | * Todo: |
| 12 | * - Tunable compression parameters. | 8 | * - Tunable compression parameters. |
| 13 | * - Compression stats. | 9 | * - Compression stats. |
diff --git a/net/ipv4/ipip.c b/net/ipv4/ipip.c index fe10b9a2efc8..43adfc1641ba 100644 --- a/net/ipv4/ipip.c +++ b/net/ipv4/ipip.c | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-or-later | ||
| 1 | /* | 2 | /* |
| 2 | * Linux NET3: IP/IP protocol decoder. | 3 | * Linux NET3: IP/IP protocol decoder. |
| 3 | * | 4 | * |
| @@ -16,12 +17,6 @@ | |||
| 16 | * Carlos Picoto : GRE over IP support | 17 | * Carlos Picoto : GRE over IP support |
| 17 | * Alexey Kuznetsov: Reworked. Really, now it is truncated version of ipv4/ip_gre.c. | 18 | * Alexey Kuznetsov: Reworked. Really, now it is truncated version of ipv4/ip_gre.c. |
| 18 | * I do not want to merge them together. | 19 | * I do not want to merge them together. |
| 19 | * | ||
| 20 | * This program is free software; you can redistribute it and/or | ||
| 21 | * modify it under the terms of the GNU General Public License | ||
| 22 | * as published by the Free Software Foundation; either version | ||
| 23 | * 2 of the License, or (at your option) any later version. | ||
| 24 | * | ||
| 25 | */ | 20 | */ |
| 26 | 21 | ||
| 27 | /* tunnel.c: an IP tunnel driver | 22 | /* tunnel.c: an IP tunnel driver |
diff --git a/net/ipv4/ipmr.c b/net/ipv4/ipmr.c index 2c61e10a60e3..c07bc82cbbe9 100644 --- a/net/ipv4/ipmr.c +++ b/net/ipv4/ipmr.c | |||
| @@ -1,14 +1,10 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-or-later | ||
| 1 | /* | 2 | /* |
| 2 | * IP multicast routing support for mrouted 3.6/3.8 | 3 | * IP multicast routing support for mrouted 3.6/3.8 |
| 3 | * | 4 | * |
| 4 | * (c) 1995 Alan Cox, <alan@lxorguk.ukuu.org.uk> | 5 | * (c) 1995 Alan Cox, <alan@lxorguk.ukuu.org.uk> |
| 5 | * Linux Consultancy and Custom Driver Development | 6 | * Linux Consultancy and Custom Driver Development |
| 6 | * | 7 | * |
| 7 | * This program 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 | * Fixes: | 8 | * Fixes: |
| 13 | * Michael Chastain : Incorrect size of copying. | 9 | * Michael Chastain : Incorrect size of copying. |
| 14 | * Alan Cox : Added the cache manager code | 10 | * Alan Cox : Added the cache manager code |
| @@ -23,7 +19,6 @@ | |||
| 23 | * Carlos Picoto : PIMv1 Support | 19 | * Carlos Picoto : PIMv1 Support |
| 24 | * Pavlin Ivanov Radoslavov: PIMv2 Registers must checksum only PIM header | 20 | * Pavlin Ivanov Radoslavov: PIMv2 Registers must checksum only PIM header |
| 25 | * Relax this requirement to work with older peers. | 21 | * Relax this requirement to work with older peers. |
| 26 | * | ||
| 27 | */ | 22 | */ |
| 28 | 23 | ||
| 29 | #include <linux/uaccess.h> | 24 | #include <linux/uaccess.h> |
diff --git a/net/ipv4/netfilter/nft_fib_ipv4.c b/net/ipv4/netfilter/nft_fib_ipv4.c index 94eb25bc8d7e..c8888e52591f 100644 --- a/net/ipv4/netfilter/nft_fib_ipv4.c +++ b/net/ipv4/netfilter/nft_fib_ipv4.c | |||
| @@ -58,11 +58,6 @@ void nft_fib4_eval_type(const struct nft_expr *expr, struct nft_regs *regs, | |||
| 58 | } | 58 | } |
| 59 | EXPORT_SYMBOL_GPL(nft_fib4_eval_type); | 59 | EXPORT_SYMBOL_GPL(nft_fib4_eval_type); |
| 60 | 60 | ||
| 61 | static int get_ifindex(const struct net_device *dev) | ||
| 62 | { | ||
| 63 | return dev ? dev->ifindex : 0; | ||
| 64 | } | ||
| 65 | |||
| 66 | void nft_fib4_eval(const struct nft_expr *expr, struct nft_regs *regs, | 61 | void nft_fib4_eval(const struct nft_expr *expr, struct nft_regs *regs, |
| 67 | const struct nft_pktinfo *pkt) | 62 | const struct nft_pktinfo *pkt) |
| 68 | { | 63 | { |
| @@ -94,8 +89,7 @@ void nft_fib4_eval(const struct nft_expr *expr, struct nft_regs *regs, | |||
| 94 | 89 | ||
| 95 | if (nft_hook(pkt) == NF_INET_PRE_ROUTING && | 90 | if (nft_hook(pkt) == NF_INET_PRE_ROUTING && |
| 96 | nft_fib_is_loopback(pkt->skb, nft_in(pkt))) { | 91 | nft_fib_is_loopback(pkt->skb, nft_in(pkt))) { |
| 97 | nft_fib_store_result(dest, priv, pkt, | 92 | nft_fib_store_result(dest, priv, nft_in(pkt)); |
| 98 | nft_in(pkt)->ifindex); | ||
| 99 | return; | 93 | return; |
| 100 | } | 94 | } |
| 101 | 95 | ||
| @@ -108,8 +102,7 @@ void nft_fib4_eval(const struct nft_expr *expr, struct nft_regs *regs, | |||
| 108 | if (ipv4_is_zeronet(iph->saddr)) { | 102 | if (ipv4_is_zeronet(iph->saddr)) { |
| 109 | if (ipv4_is_lbcast(iph->daddr) || | 103 | if (ipv4_is_lbcast(iph->daddr) || |
| 110 | ipv4_is_local_multicast(iph->daddr)) { | 104 | ipv4_is_local_multicast(iph->daddr)) { |
| 111 | nft_fib_store_result(dest, priv, pkt, | 105 | nft_fib_store_result(dest, priv, pkt->skb->dev); |
| 112 | get_ifindex(pkt->skb->dev)); | ||
| 113 | return; | 106 | return; |
| 114 | } | 107 | } |
| 115 | } | 108 | } |
| @@ -150,17 +143,7 @@ void nft_fib4_eval(const struct nft_expr *expr, struct nft_regs *regs, | |||
| 150 | found = oif; | 143 | found = oif; |
| 151 | } | 144 | } |
| 152 | 145 | ||
| 153 | switch (priv->result) { | 146 | nft_fib_store_result(dest, priv, found); |
| 154 | case NFT_FIB_RESULT_OIF: | ||
| 155 | *dest = found->ifindex; | ||
| 156 | break; | ||
| 157 | case NFT_FIB_RESULT_OIFNAME: | ||
| 158 | strncpy((char *)dest, found->name, IFNAMSIZ); | ||
| 159 | break; | ||
| 160 | default: | ||
| 161 | WARN_ON_ONCE(1); | ||
| 162 | break; | ||
| 163 | } | ||
| 164 | } | 147 | } |
| 165 | EXPORT_SYMBOL_GPL(nft_fib4_eval); | 148 | EXPORT_SYMBOL_GPL(nft_fib4_eval); |
| 166 | 149 | ||
diff --git a/net/ipv4/ping.c b/net/ipv4/ping.c index 834be7daeb32..9d24ef5c5d8f 100644 --- a/net/ipv4/ping.c +++ b/net/ipv4/ping.c | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-or-later | ||
| 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 |
| @@ -5,11 +6,6 @@ | |||
| 5 | * | 6 | * |
| 6 | * "Ping" sockets | 7 | * "Ping" sockets |
| 7 | * | 8 | * |
| 8 | * This program is free software; you can redistribute it and/or | ||
| 9 | * modify it under the terms of the GNU General Public License | ||
| 10 | * as published by the Free Software Foundation; either version | ||
| 11 | * 2 of the License, or (at your option) any later version. | ||
| 12 | * | ||
| 13 | * Based on ipv4/udp.c code. | 9 | * Based on ipv4/udp.c code. |
| 14 | * | 10 | * |
| 15 | * Authors: Vasiliy Kulikov / Openwall (for Linux 2.6), | 11 | * Authors: Vasiliy Kulikov / Openwall (for Linux 2.6), |
| @@ -17,7 +13,6 @@ | |||
| 17 | * | 13 | * |
| 18 | * Pavel gave all rights to bugs to Vasiliy, | 14 | * Pavel gave all rights to bugs to Vasiliy, |
| 19 | * none of the bugs are Pavel's now. | 15 | * none of the bugs are Pavel's now. |
| 20 | * | ||
| 21 | */ | 16 | */ |
| 22 | 17 | ||
| 23 | #include <linux/uaccess.h> | 18 | #include <linux/uaccess.h> |
diff --git a/net/ipv4/proc.c b/net/ipv4/proc.c index c3610b37bb4c..4370f4246e86 100644 --- a/net/ipv4/proc.c +++ b/net/ipv4/proc.c | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-or-later | ||
| 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 |
| @@ -25,11 +26,6 @@ | |||
| 25 | * split functions for more readibility. | 26 | * split functions for more readibility. |
| 26 | * Andi Kleen : Add support for /proc/net/netstat | 27 | * Andi Kleen : Add support for /proc/net/netstat |
| 27 | * Arnaldo C. Melo : Convert to seq_file | 28 | * Arnaldo C. Melo : Convert to seq_file |
| 28 | * | ||
| 29 | * This program is free software; you can redistribute it and/or | ||
| 30 | * modify it under the terms of the GNU General Public License | ||
| 31 | * as published by the Free Software Foundation; either version | ||
| 32 | * 2 of the License, or (at your option) any later version. | ||
| 33 | */ | 29 | */ |
| 34 | #include <linux/types.h> | 30 | #include <linux/types.h> |
| 35 | #include <net/net_namespace.h> | 31 | #include <net/net_namespace.h> |
diff --git a/net/ipv4/protocol.c b/net/ipv4/protocol.c index 92d249e053be..9a8c0892622b 100644 --- a/net/ipv4/protocol.c +++ b/net/ipv4/protocol.c | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-or-later | ||
| 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 |
| @@ -16,11 +17,6 @@ | |||
| 16 | * Richard Colella : Hang on hash collision | 17 | * Richard Colella : Hang on hash collision |
| 17 | * Vince Laviano : Modified inet_del_protocol() to correctly | 18 | * Vince Laviano : Modified inet_del_protocol() to correctly |
| 18 | * maintain copy bit. | 19 | * maintain copy bit. |
| 19 | * | ||
| 20 | * This program is free software; you can redistribute it and/or | ||
| 21 | * modify it under the terms of the GNU General Public License | ||
| 22 | * as published by the Free Software Foundation; either version | ||
| 23 | * 2 of the License, or (at your option) any later version. | ||
| 24 | */ | 20 | */ |
| 25 | #include <linux/cache.h> | 21 | #include <linux/cache.h> |
| 26 | #include <linux/module.h> | 22 | #include <linux/module.h> |
diff --git a/net/ipv4/raw.c b/net/ipv4/raw.c index 0e482f07b37f..0b8e06ca75d6 100644 --- a/net/ipv4/raw.c +++ b/net/ipv4/raw.c | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-or-later | ||
| 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 |
| @@ -30,11 +31,6 @@ | |||
| 30 | * Alan Cox : Added IP_HDRINCL option. | 31 | * Alan Cox : Added IP_HDRINCL option. |
| 31 | * Alan Cox : Skip broadcast check if BSDism set. | 32 | * Alan Cox : Skip broadcast check if BSDism set. |
| 32 | * David S. Miller : New socket lookup architecture. | 33 | * David S. Miller : New socket lookup architecture. |
| 33 | * | ||
| 34 | * This program is free software; you can redistribute it and/or | ||
| 35 | * modify it under the terms of the GNU General Public License | ||
| 36 | * as published by the Free Software Foundation; either version | ||
| 37 | * 2 of the License, or (at your option) any later version. | ||
| 38 | */ | 34 | */ |
| 39 | 35 | ||
| 40 | #include <linux/types.h> | 36 | #include <linux/types.h> |
diff --git a/net/ipv4/route.c b/net/ipv4/route.c index 11ddc276776e..6cb7cff22db9 100644 --- a/net/ipv4/route.c +++ b/net/ipv4/route.c | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-or-later | ||
| 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 |
| @@ -55,11 +56,6 @@ | |||
| 55 | * Eric Dumazet : hashed spinlocks and rt_check_expire() fixes. | 56 | * Eric Dumazet : hashed spinlocks and rt_check_expire() fixes. |
| 56 | * Ilia Sotnikov : Ignore TOS on PMTUD and Redirect | 57 | * Ilia Sotnikov : Ignore TOS on PMTUD and Redirect |
| 57 | * Ilia Sotnikov : Removed TOS from hash calculations | 58 | * Ilia Sotnikov : Removed TOS from hash calculations |
| 58 | * | ||
| 59 | * This program is free software; you can redistribute it and/or | ||
| 60 | * modify it under the terms of the GNU General Public License | ||
| 61 | * as published by the Free Software Foundation; either version | ||
| 62 | * 2 of the License, or (at your option) any later version. | ||
| 63 | */ | 59 | */ |
| 64 | 60 | ||
| 65 | #define pr_fmt(fmt) "IPv4: " fmt | 61 | #define pr_fmt(fmt) "IPv4: " fmt |
| @@ -1985,7 +1981,7 @@ static int ip_route_input_slow(struct sk_buff *skb, __be32 daddr, __be32 saddr, | |||
| 1985 | u32 itag = 0; | 1981 | u32 itag = 0; |
| 1986 | struct rtable *rth; | 1982 | struct rtable *rth; |
| 1987 | struct flowi4 fl4; | 1983 | struct flowi4 fl4; |
| 1988 | bool do_cache; | 1984 | bool do_cache = true; |
| 1989 | 1985 | ||
| 1990 | /* IP on this device is disabled. */ | 1986 | /* IP on this device is disabled. */ |
| 1991 | 1987 | ||
| @@ -2062,6 +2058,9 @@ static int ip_route_input_slow(struct sk_buff *skb, __be32 daddr, __be32 saddr, | |||
| 2062 | if (res->type == RTN_BROADCAST) { | 2058 | if (res->type == RTN_BROADCAST) { |
| 2063 | if (IN_DEV_BFORWARD(in_dev)) | 2059 | if (IN_DEV_BFORWARD(in_dev)) |
| 2064 | goto make_route; | 2060 | goto make_route; |
| 2061 | /* not do cache if bc_forwarding is enabled */ | ||
| 2062 | if (IPV4_DEVCONF_ALL(net, BC_FORWARDING)) | ||
| 2063 | do_cache = false; | ||
| 2065 | goto brd_input; | 2064 | goto brd_input; |
| 2066 | } | 2065 | } |
| 2067 | 2066 | ||
| @@ -2099,18 +2098,15 @@ brd_input: | |||
| 2099 | RT_CACHE_STAT_INC(in_brd); | 2098 | RT_CACHE_STAT_INC(in_brd); |
| 2100 | 2099 | ||
| 2101 | local_input: | 2100 | local_input: |
| 2102 | do_cache = false; | 2101 | do_cache &= res->fi && !itag; |
| 2103 | if (res->fi) { | 2102 | if (do_cache) { |
| 2104 | if (!itag) { | 2103 | struct fib_nh_common *nhc = FIB_RES_NHC(*res); |
| 2105 | struct fib_nh_common *nhc = FIB_RES_NHC(*res); | ||
| 2106 | 2104 | ||
| 2107 | rth = rcu_dereference(nhc->nhc_rth_input); | 2105 | rth = rcu_dereference(nhc->nhc_rth_input); |
| 2108 | if (rt_cache_valid(rth)) { | 2106 | if (rt_cache_valid(rth)) { |
| 2109 | skb_dst_set_noref(skb, &rth->dst); | 2107 | skb_dst_set_noref(skb, &rth->dst); |
| 2110 | err = 0; | 2108 | err = 0; |
| 2111 | goto out; | 2109 | goto out; |
| 2112 | } | ||
| 2113 | do_cache = true; | ||
| 2114 | } | 2110 | } |
| 2115 | } | 2111 | } |
| 2116 | 2112 | ||
diff --git a/net/ipv4/syncookies.c b/net/ipv4/syncookies.c index 008545f63667..535b69326f66 100644 --- a/net/ipv4/syncookies.c +++ b/net/ipv4/syncookies.c | |||
| @@ -1,13 +1,9 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-or-later | ||
| 1 | /* | 2 | /* |
| 2 | * Syncookies implementation for the Linux kernel | 3 | * Syncookies implementation for the Linux kernel |
| 3 | * | 4 | * |
| 4 | * Copyright (C) 1997 Andi Kleen | 5 | * Copyright (C) 1997 Andi Kleen |
| 5 | * Based on ideas by D.J.Bernstein and Eric Schenk. | 6 | * Based on ideas by D.J.Bernstein and Eric Schenk. |
| 6 | * | ||
| 7 | * This program 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 | */ | 7 | */ |
| 12 | 8 | ||
| 13 | #include <linux/tcp.h> | 9 | #include <linux/tcp.h> |
diff --git a/net/ipv4/tcp.c b/net/ipv4/tcp.c index 53d61ca3ac4b..f12d500ec85c 100644 --- a/net/ipv4/tcp.c +++ b/net/ipv4/tcp.c | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-or-later | ||
| 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 |
| @@ -205,11 +206,6 @@ | |||
| 205 | * Hirokazu Takahashi : Use copy_from_user() instead of | 206 | * Hirokazu Takahashi : Use copy_from_user() instead of |
| 206 | * csum_and_copy_from_user() if possible. | 207 | * csum_and_copy_from_user() if possible. |
| 207 | * | 208 | * |
| 208 | * This program is free software; you can redistribute it and/or | ||
| 209 | * modify it under the terms of the GNU General Public License | ||
| 210 | * as published by the Free Software Foundation; either version | ||
| 211 | * 2 of the License, or(at your option) any later version. | ||
| 212 | * | ||
| 213 | * Description of States: | 209 | * Description of States: |
| 214 | * | 210 | * |
| 215 | * TCP_SYN_SENT sent a connection request, waiting for ack | 211 | * TCP_SYN_SENT sent a connection request, waiting for ack |
diff --git a/net/ipv4/tcp_dctcp.c b/net/ipv4/tcp_dctcp.c index 477cb4aa456c..79f705450c16 100644 --- a/net/ipv4/tcp_dctcp.c +++ b/net/ipv4/tcp_dctcp.c | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-or-later | ||
| 1 | /* DataCenter TCP (DCTCP) congestion control. | 2 | /* DataCenter TCP (DCTCP) congestion control. |
| 2 | * | 3 | * |
| 3 | * http://simula.stanford.edu/~alizade/Site/DCTCP.html | 4 | * http://simula.stanford.edu/~alizade/Site/DCTCP.html |
| @@ -33,11 +34,6 @@ | |||
| 33 | * Daniel Borkmann <dborkman@redhat.com> | 34 | * Daniel Borkmann <dborkman@redhat.com> |
| 34 | * Florian Westphal <fw@strlen.de> | 35 | * Florian Westphal <fw@strlen.de> |
| 35 | * Glenn Judd <glenn.judd@morganstanley.com> | 36 | * Glenn Judd <glenn.judd@morganstanley.com> |
| 36 | * | ||
| 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 (at | ||
| 40 | * your option) any later version. | ||
| 41 | */ | 37 | */ |
| 42 | 38 | ||
| 43 | #include <linux/module.h> | 39 | #include <linux/module.h> |
diff --git a/net/ipv4/tcp_diag.c b/net/ipv4/tcp_diag.c index 81148f7a2323..a3a386236d93 100644 --- a/net/ipv4/tcp_diag.c +++ b/net/ipv4/tcp_diag.c | |||
| @@ -1,12 +1,8 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-or-later | ||
| 1 | /* | 2 | /* |
| 2 | * tcp_diag.c Module for monitoring TCP transport protocols sockets. | 3 | * tcp_diag.c Module for monitoring TCP transport protocols sockets. |
| 3 | * | 4 | * |
| 4 | * Authors: Alexey Kuznetsov, <kuznet@ms2.inr.ac.ru> | 5 | * Authors: Alexey Kuznetsov, <kuznet@ms2.inr.ac.ru> |
| 5 | * | ||
| 6 | * This program is free software; you can redistribute it and/or | ||
| 7 | * modify it under the terms of the GNU General Public License | ||
| 8 | * as published by the Free Software Foundation; either version | ||
| 9 | * 2 of the License, or (at your option) any later version. | ||
| 10 | */ | 6 | */ |
| 11 | 7 | ||
| 12 | #include <linux/module.h> | 8 | #include <linux/module.h> |
diff --git a/net/ipv4/tcp_input.c b/net/ipv4/tcp_input.c index c61edd023b35..08a477e74cf3 100644 --- a/net/ipv4/tcp_input.c +++ b/net/ipv4/tcp_input.c | |||
| @@ -3791,6 +3791,8 @@ void tcp_parse_options(const struct net *net, | |||
| 3791 | length--; | 3791 | length--; |
| 3792 | continue; | 3792 | continue; |
| 3793 | default: | 3793 | default: |
| 3794 | if (length < 2) | ||
| 3795 | return; | ||
| 3794 | opsize = *ptr++; | 3796 | opsize = *ptr++; |
| 3795 | if (opsize < 2) /* "silly options" */ | 3797 | if (opsize < 2) /* "silly options" */ |
| 3796 | return; | 3798 | return; |
diff --git a/net/ipv4/tcp_ipv4.c b/net/ipv4/tcp_ipv4.c index af81e4a6a8d8..bc86f9735f45 100644 --- a/net/ipv4/tcp_ipv4.c +++ b/net/ipv4/tcp_ipv4.c | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-or-later | ||
| 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 |
| @@ -7,18 +8,12 @@ | |||
| 7 | * | 8 | * |
| 8 | * IPv4 specific functions | 9 | * IPv4 specific functions |
| 9 | * | 10 | * |
| 10 | * | ||
| 11 | * code split from: | 11 | * code split from: |
| 12 | * linux/ipv4/tcp.c | 12 | * linux/ipv4/tcp.c |
| 13 | * linux/ipv4/tcp_input.c | 13 | * linux/ipv4/tcp_input.c |
| 14 | * linux/ipv4/tcp_output.c | 14 | * linux/ipv4/tcp_output.c |
| 15 | * | 15 | * |
| 16 | * See tcp.c for author information | 16 | * See tcp.c for author information |
| 17 | * | ||
| 18 | * This program is free software; you can redistribute it and/or | ||
| 19 | * modify it under the terms of the GNU General Public License | ||
| 20 | * as published by the Free Software Foundation; either version | ||
| 21 | * 2 of the License, or (at your option) any later version. | ||
| 22 | */ | 17 | */ |
| 23 | 18 | ||
| 24 | /* | 19 | /* |
diff --git a/net/ipv4/tcp_offload.c b/net/ipv4/tcp_offload.c index 0fbf7d4df9da..e09147ac9a99 100644 --- a/net/ipv4/tcp_offload.c +++ b/net/ipv4/tcp_offload.c | |||
| @@ -1,12 +1,8 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-or-later | ||
| 1 | /* | 2 | /* |
| 2 | * IPV4 GSO/GRO offload support | 3 | * IPV4 GSO/GRO offload support |
| 3 | * Linux INET implementation | 4 | * Linux INET implementation |
| 4 | * | 5 | * |
| 5 | * This program is free software; you can redistribute it and/or | ||
| 6 | * modify it under the terms of the GNU General Public License | ||
| 7 | * as published by the Free Software Foundation; either version | ||
| 8 | * 2 of the License, or (at your option) any later version. | ||
| 9 | * | ||
| 10 | * TCPv4 GSO/GRO support | 6 | * TCPv4 GSO/GRO support |
| 11 | */ | 7 | */ |
| 12 | 8 | ||
diff --git a/net/ipv4/udp.c b/net/ipv4/udp.c index 8fb250ed53d4..7c6228fbf5dd 100644 --- a/net/ipv4/udp.c +++ b/net/ipv4/udp.c | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-or-later | ||
| 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 |
| @@ -69,12 +70,6 @@ | |||
| 69 | * a single port at the same time. | 70 | * a single port at the same time. |
| 70 | * Derek Atkins <derek@ihtfp.com>: Add Encapulation Support | 71 | * Derek Atkins <derek@ihtfp.com>: Add Encapulation Support |
| 71 | * James Chapman : Add L2TP encapsulation type. | 72 | * James Chapman : Add L2TP encapsulation type. |
| 72 | * | ||
| 73 | * | ||
| 74 | * This program is free software; you can redistribute it and/or | ||
| 75 | * modify it under the terms of the GNU General Public License | ||
| 76 | * as published by the Free Software Foundation; either version | ||
| 77 | * 2 of the License, or (at your option) any later version. | ||
| 78 | */ | 73 | */ |
| 79 | 74 | ||
| 80 | #define pr_fmt(fmt) "UDP: " fmt | 75 | #define pr_fmt(fmt) "UDP: " fmt |
| @@ -538,8 +533,7 @@ static inline bool __udp_is_mcast_sock(struct net *net, struct sock *sk, | |||
| 538 | (inet->inet_dport != rmt_port && inet->inet_dport) || | 533 | (inet->inet_dport != rmt_port && inet->inet_dport) || |
| 539 | (inet->inet_rcv_saddr && inet->inet_rcv_saddr != loc_addr) || | 534 | (inet->inet_rcv_saddr && inet->inet_rcv_saddr != loc_addr) || |
| 540 | ipv6_only_sock(sk) || | 535 | ipv6_only_sock(sk) || |
| 541 | (sk->sk_bound_dev_if && sk->sk_bound_dev_if != dif && | 536 | !udp_sk_bound_dev_eq(net, sk->sk_bound_dev_if, dif, sdif)) |
| 542 | sk->sk_bound_dev_if != sdif)) | ||
| 543 | return false; | 537 | return false; |
| 544 | if (!ip_mc_sf_allow(sk, loc_addr, rmt_addr, dif, sdif)) | 538 | if (!ip_mc_sf_allow(sk, loc_addr, rmt_addr, dif, sdif)) |
| 545 | return false; | 539 | return false; |
diff --git a/net/ipv4/udp_diag.c b/net/ipv4/udp_diag.c index 5cbb9be05295..910555a4d9fe 100644 --- a/net/ipv4/udp_diag.c +++ b/net/ipv4/udp_diag.c | |||
| @@ -1,12 +1,8 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-or-later | ||
| 1 | /* | 2 | /* |
| 2 | * udp_diag.c Module for monitoring UDP transport protocols sockets. | 3 | * udp_diag.c Module for monitoring UDP transport protocols sockets. |
| 3 | * | 4 | * |
| 4 | * Authors: Pavel Emelyanov, <xemul@parallels.com> | 5 | * Authors: Pavel Emelyanov, <xemul@parallels.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 License | ||
| 8 | * as published by the Free Software Foundation; either version | ||
| 9 | * 2 of the License, or (at your option) any later version. | ||
| 10 | */ | 6 | */ |
| 11 | 7 | ||
| 12 | 8 | ||
diff --git a/net/ipv4/udp_offload.c b/net/ipv4/udp_offload.c index 065334b41d57..06b3e2c1fcdc 100644 --- a/net/ipv4/udp_offload.c +++ b/net/ipv4/udp_offload.c | |||
| @@ -1,12 +1,8 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-or-later | ||
| 1 | /* | 2 | /* |
| 2 | * IPV4 GSO/GRO offload support | 3 | * IPV4 GSO/GRO offload support |
| 3 | * Linux INET implementation | 4 | * Linux INET implementation |
| 4 | * | 5 | * |
| 5 | * This program is free software; you can redistribute it and/or | ||
| 6 | * modify it under the terms of the GNU General Public License | ||
| 7 | * as published by the Free Software Foundation; either version | ||
| 8 | * 2 of the License, or (at your option) any later version. | ||
| 9 | * | ||
| 10 | * UDPv4 GSO support | 6 | * UDPv4 GSO support |
| 11 | */ | 7 | */ |
| 12 | 8 | ||
diff --git a/net/ipv4/udplite.c b/net/ipv4/udplite.c index 3c94b8f0ff27..5936d66d1ce2 100644 --- a/net/ipv4/udplite.c +++ b/net/ipv4/udplite.c | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-or-later | ||
| 1 | /* | 2 | /* |
| 2 | * UDPLITE An implementation of the UDP-Lite protocol (RFC 3828). | 3 | * UDPLITE An implementation of the UDP-Lite protocol (RFC 3828). |
| 3 | * | 4 | * |
| @@ -5,10 +6,6 @@ | |||
| 5 | * | 6 | * |
| 6 | * Changes: | 7 | * Changes: |
| 7 | * Fixes: | 8 | * Fixes: |
| 8 | * This program is free software; you can redistribute it and/or | ||
| 9 | * modify it under the terms of the GNU General Public License | ||
| 10 | * as published by the Free Software Foundation; either version | ||
| 11 | * 2 of the License, or (at your option) any later version. | ||
| 12 | */ | 9 | */ |
| 13 | 10 | ||
| 14 | #define pr_fmt(fmt) "UDPLite: " fmt | 11 | #define pr_fmt(fmt) "UDPLite: " fmt |
diff --git a/net/ipv4/xfrm4_output.c b/net/ipv4/xfrm4_output.c index 9bb8905088c7..ecff3fce9807 100644 --- a/net/ipv4/xfrm4_output.c +++ b/net/ipv4/xfrm4_output.c | |||
| @@ -1,11 +1,7 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-or-later | ||
| 1 | /* | 2 | /* |
| 2 | * xfrm4_output.c - Common IPsec encapsulation code for IPv4. | 3 | * xfrm4_output.c - Common IPsec encapsulation code for IPv4. |
| 3 | * Copyright (c) 2004 Herbert Xu <herbert@gondor.apana.org.au> | 4 | * Copyright (c) 2004 Herbert Xu <herbert@gondor.apana.org.au> |
| 4 | * | ||
| 5 | * This program is free software; you can redistribute it and/or | ||
| 6 | * modify it under the terms of the GNU General Public License | ||
| 7 | * as published by the Free Software Foundation; either version | ||
| 8 | * 2 of the License, or (at your option) any later version. | ||
| 9 | */ | 5 | */ |
| 10 | 6 | ||
| 11 | #include <linux/if_ether.h> | 7 | #include <linux/if_ether.h> |
diff --git a/net/ipv4/xfrm4_protocol.c b/net/ipv4/xfrm4_protocol.c index bcab48944c15..8a4285712808 100644 --- a/net/ipv4/xfrm4_protocol.c +++ b/net/ipv4/xfrm4_protocol.c | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-or-later | ||
| 1 | /* xfrm4_protocol.c - Generic xfrm protocol multiplexer. | 2 | /* xfrm4_protocol.c - Generic xfrm protocol multiplexer. |
| 2 | * | 3 | * |
| 3 | * Copyright (C) 2013 secunet Security Networks AG | 4 | * Copyright (C) 2013 secunet Security Networks AG |
| @@ -7,11 +8,6 @@ | |||
| 7 | * | 8 | * |
| 8 | * Based on: | 9 | * Based on: |
| 9 | * net/ipv4/tunnel4.c | 10 | * net/ipv4/tunnel4.c |
| 10 | * | ||
| 11 | * This program 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 | */ | 11 | */ |
| 16 | 12 | ||
| 17 | #include <linux/init.h> | 13 | #include <linux/init.h> |
diff --git a/net/ipv6/addrconf.c b/net/ipv6/addrconf.c index f96d1de79509..081bb517e40d 100644 --- a/net/ipv6/addrconf.c +++ b/net/ipv6/addrconf.c | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-or-later | ||
| 1 | /* | 2 | /* |
| 2 | * IPv6 Address [auto]configuration | 3 | * IPv6 Address [auto]configuration |
| 3 | * Linux INET6 implementation | 4 | * Linux INET6 implementation |
| @@ -5,11 +6,6 @@ | |||
| 5 | * Authors: | 6 | * Authors: |
| 6 | * Pedro Roque <roque@di.fc.ul.pt> | 7 | * Pedro Roque <roque@di.fc.ul.pt> |
| 7 | * Alexey Kuznetsov <kuznet@ms2.inr.ac.ru> | 8 | * Alexey Kuznetsov <kuznet@ms2.inr.ac.ru> |
| 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 | * as published by the Free Software Foundation; either version | ||
| 12 | * 2 of the License, or (at your option) any later version. | ||
| 13 | */ | 9 | */ |
| 14 | 10 | ||
| 15 | /* | 11 | /* |
| @@ -5661,18 +5657,6 @@ static const struct nla_policy inet6_af_policy[IFLA_INET6_MAX + 1] = { | |||
| 5661 | [IFLA_INET6_TOKEN] = { .len = sizeof(struct in6_addr) }, | 5657 | [IFLA_INET6_TOKEN] = { .len = sizeof(struct in6_addr) }, |
| 5662 | }; | 5658 | }; |
| 5663 | 5659 | ||
| 5664 | static int inet6_validate_link_af(const struct net_device *dev, | ||
| 5665 | const struct nlattr *nla) | ||
| 5666 | { | ||
| 5667 | struct nlattr *tb[IFLA_INET6_MAX + 1]; | ||
| 5668 | |||
| 5669 | if (dev && !__in6_dev_get(dev)) | ||
| 5670 | return -EAFNOSUPPORT; | ||
| 5671 | |||
| 5672 | return nla_parse_nested_deprecated(tb, IFLA_INET6_MAX, nla, | ||
| 5673 | inet6_af_policy, NULL); | ||
| 5674 | } | ||
| 5675 | |||
| 5676 | static int check_addr_gen_mode(int mode) | 5660 | static int check_addr_gen_mode(int mode) |
| 5677 | { | 5661 | { |
| 5678 | if (mode != IN6_ADDR_GEN_MODE_EUI64 && | 5662 | if (mode != IN6_ADDR_GEN_MODE_EUI64 && |
| @@ -5693,14 +5677,44 @@ static int check_stable_privacy(struct inet6_dev *idev, struct net *net, | |||
| 5693 | return 1; | 5677 | return 1; |
| 5694 | } | 5678 | } |
| 5695 | 5679 | ||
| 5680 | static int inet6_validate_link_af(const struct net_device *dev, | ||
| 5681 | const struct nlattr *nla) | ||
| 5682 | { | ||
| 5683 | struct nlattr *tb[IFLA_INET6_MAX + 1]; | ||
| 5684 | struct inet6_dev *idev = NULL; | ||
| 5685 | int err; | ||
| 5686 | |||
| 5687 | if (dev) { | ||
| 5688 | idev = __in6_dev_get(dev); | ||
| 5689 | if (!idev) | ||
| 5690 | return -EAFNOSUPPORT; | ||
| 5691 | } | ||
| 5692 | |||
| 5693 | err = nla_parse_nested_deprecated(tb, IFLA_INET6_MAX, nla, | ||
| 5694 | inet6_af_policy, NULL); | ||
| 5695 | if (err) | ||
| 5696 | return err; | ||
| 5697 | |||
| 5698 | if (!tb[IFLA_INET6_TOKEN] && !tb[IFLA_INET6_ADDR_GEN_MODE]) | ||
| 5699 | return -EINVAL; | ||
| 5700 | |||
| 5701 | if (tb[IFLA_INET6_ADDR_GEN_MODE]) { | ||
| 5702 | u8 mode = nla_get_u8(tb[IFLA_INET6_ADDR_GEN_MODE]); | ||
| 5703 | |||
| 5704 | if (check_addr_gen_mode(mode) < 0) | ||
| 5705 | return -EINVAL; | ||
| 5706 | if (dev && check_stable_privacy(idev, dev_net(dev), mode) < 0) | ||
| 5707 | return -EINVAL; | ||
| 5708 | } | ||
| 5709 | |||
| 5710 | return 0; | ||
| 5711 | } | ||
| 5712 | |||
| 5696 | static int inet6_set_link_af(struct net_device *dev, const struct nlattr *nla) | 5713 | static int inet6_set_link_af(struct net_device *dev, const struct nlattr *nla) |
| 5697 | { | 5714 | { |
| 5698 | int err = -EINVAL; | ||
| 5699 | struct inet6_dev *idev = __in6_dev_get(dev); | 5715 | struct inet6_dev *idev = __in6_dev_get(dev); |
| 5700 | struct nlattr *tb[IFLA_INET6_MAX + 1]; | 5716 | struct nlattr *tb[IFLA_INET6_MAX + 1]; |
| 5701 | 5717 | int err; | |
| 5702 | if (!idev) | ||
| 5703 | return -EAFNOSUPPORT; | ||
| 5704 | 5718 | ||
| 5705 | if (nla_parse_nested_deprecated(tb, IFLA_INET6_MAX, nla, NULL, NULL) < 0) | 5719 | if (nla_parse_nested_deprecated(tb, IFLA_INET6_MAX, nla, NULL, NULL) < 0) |
| 5706 | BUG(); | 5720 | BUG(); |
| @@ -5714,15 +5728,10 @@ static int inet6_set_link_af(struct net_device *dev, const struct nlattr *nla) | |||
| 5714 | if (tb[IFLA_INET6_ADDR_GEN_MODE]) { | 5728 | if (tb[IFLA_INET6_ADDR_GEN_MODE]) { |
| 5715 | u8 mode = nla_get_u8(tb[IFLA_INET6_ADDR_GEN_MODE]); | 5729 | u8 mode = nla_get_u8(tb[IFLA_INET6_ADDR_GEN_MODE]); |
| 5716 | 5730 | ||
| 5717 | if (check_addr_gen_mode(mode) < 0 || | ||
| 5718 | check_stable_privacy(idev, dev_net(dev), mode) < 0) | ||
| 5719 | return -EINVAL; | ||
| 5720 | |||
| 5721 | idev->cnf.addr_gen_mode = mode; | 5731 | idev->cnf.addr_gen_mode = mode; |
| 5722 | err = 0; | ||
| 5723 | } | 5732 | } |
| 5724 | 5733 | ||
| 5725 | return err; | 5734 | return 0; |
| 5726 | } | 5735 | } |
| 5727 | 5736 | ||
| 5728 | static int inet6_fill_ifinfo(struct sk_buff *skb, struct inet6_dev *idev, | 5737 | static int inet6_fill_ifinfo(struct sk_buff *skb, struct inet6_dev *idev, |
diff --git a/net/ipv6/af_inet6.c b/net/ipv6/af_inet6.c index c04ae282f4e4..5352708b7b2d 100644 --- a/net/ipv6/af_inet6.c +++ b/net/ipv6/af_inet6.c | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-or-later | ||
| 1 | /* | 2 | /* |
| 2 | * PF_INET6 socket protocol family | 3 | * PF_INET6 socket protocol family |
| 3 | * Linux INET6 implementation | 4 | * Linux INET6 implementation |
| @@ -11,11 +12,6 @@ | |||
| 11 | * piggy, Karl Knutson : Socket protocol table | 12 | * piggy, Karl Knutson : Socket protocol table |
| 12 | * Hideaki YOSHIFUJI : sin6_scope_id support | 13 | * Hideaki YOSHIFUJI : sin6_scope_id support |
| 13 | * Arnaldo Melo : check proc_net_create return, cleanups | 14 | * Arnaldo Melo : check proc_net_create return, cleanups |
| 14 | * | ||
| 15 | * This program is free software; you can redistribute it and/or | ||
| 16 | * modify it under the terms of the GNU General Public License | ||
| 17 | * as published by the Free Software Foundation; either version | ||
| 18 | * 2 of the License, or (at your option) any later version. | ||
| 19 | */ | 15 | */ |
| 20 | 16 | ||
| 21 | #define pr_fmt(fmt) "IPv6: " fmt | 17 | #define pr_fmt(fmt) "IPv6: " fmt |
diff --git a/net/ipv6/anycast.c b/net/ipv6/anycast.c index cca3b3603c42..fed91ab7ec46 100644 --- a/net/ipv6/anycast.c +++ b/net/ipv6/anycast.c | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-or-later | ||
| 1 | /* | 2 | /* |
| 2 | * Anycast support for IPv6 | 3 | * Anycast support for IPv6 |
| 3 | * Linux INET6 implementation | 4 | * Linux INET6 implementation |
| @@ -6,11 +7,6 @@ | |||
| 6 | * David L Stevens (dlstevens@us.ibm.com) | 7 | * David L Stevens (dlstevens@us.ibm.com) |
| 7 | * | 8 | * |
| 8 | * based heavily on net/ipv6/mcast.c | 9 | * based heavily on net/ipv6/mcast.c |
| 9 | * | ||
| 10 | * This program 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 | */ | 10 | */ |
| 15 | 11 | ||
| 16 | #include <linux/capability.h> | 12 | #include <linux/capability.h> |
diff --git a/net/ipv6/datagram.c b/net/ipv6/datagram.c index f07fb24f4ba1..9d78c907b918 100644 --- a/net/ipv6/datagram.c +++ b/net/ipv6/datagram.c | |||
| @@ -1,14 +1,10 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-or-later | ||
| 1 | /* | 2 | /* |
| 2 | * common UDP/RAW code | 3 | * common UDP/RAW code |
| 3 | * Linux INET6 implementation | 4 | * Linux INET6 implementation |
| 4 | * | 5 | * |
| 5 | * Authors: | 6 | * Authors: |
| 6 | * Pedro Roque <roque@di.fc.ul.pt> | 7 | * Pedro Roque <roque@di.fc.ul.pt> |
| 7 | * | ||
| 8 | * This program is free software; you can redistribute it and/or | ||
| 9 | * modify it under the terms of the GNU General Public License | ||
| 10 | * as published by the Free Software Foundation; either version | ||
| 11 | * 2 of the License, or (at your option) any later version. | ||
| 12 | */ | 8 | */ |
| 13 | 9 | ||
| 14 | #include <linux/capability.h> | 10 | #include <linux/capability.h> |
diff --git a/net/ipv6/esp6_offload.c b/net/ipv6/esp6_offload.c index d453cf417b03..d0d8528b294a 100644 --- a/net/ipv6/esp6_offload.c +++ b/net/ipv6/esp6_offload.c | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-only | ||
| 1 | /* | 2 | /* |
| 2 | * IPV6 GSO/GRO offload support | 3 | * IPV6 GSO/GRO offload support |
| 3 | * Linux INET implementation | 4 | * Linux INET implementation |
| @@ -5,10 +6,6 @@ | |||
| 5 | * Copyright (C) 2016 secunet Security Networks AG | 6 | * Copyright (C) 2016 secunet Security Networks AG |
| 6 | * Author: Steffen Klassert <steffen.klassert@secunet.com> | 7 | * Author: Steffen Klassert <steffen.klassert@secunet.com> |
| 7 | * | 8 | * |
| 8 | * This program is free software; you can redistribute it and/or modify it | ||
| 9 | * under the terms and conditions of the GNU General Public License, | ||
| 10 | * version 2, as published by the Free Software Foundation. | ||
| 11 | * | ||
| 12 | * ESP GRO support | 9 | * ESP GRO support |
| 13 | */ | 10 | */ |
| 14 | 11 | ||
diff --git a/net/ipv6/exthdrs.c b/net/ipv6/exthdrs.c index 20291c2036fc..ab5add0fe6b4 100644 --- a/net/ipv6/exthdrs.c +++ b/net/ipv6/exthdrs.c | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-or-later | ||
| 1 | /* | 2 | /* |
| 2 | * Extension Header handling for IPv6 | 3 | * Extension Header handling for IPv6 |
| 3 | * Linux INET6 implementation | 4 | * Linux INET6 implementation |
| @@ -6,11 +7,6 @@ | |||
| 6 | * Pedro Roque <roque@di.fc.ul.pt> | 7 | * Pedro Roque <roque@di.fc.ul.pt> |
| 7 | * Andi Kleen <ak@muc.de> | 8 | * Andi Kleen <ak@muc.de> |
| 8 | * Alexey Kuznetsov <kuznet@ms2.inr.ac.ru> | 9 | * Alexey Kuznetsov <kuznet@ms2.inr.ac.ru> |
| 9 | * | ||
| 10 | * This program 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 | */ | 10 | */ |
| 15 | 11 | ||
| 16 | /* Changes: | 12 | /* Changes: |
diff --git a/net/ipv6/exthdrs_offload.c b/net/ipv6/exthdrs_offload.c index f5e2ba1c18bf..06750d65d480 100644 --- a/net/ipv6/exthdrs_offload.c +++ b/net/ipv6/exthdrs_offload.c | |||
| @@ -1,12 +1,8 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-or-later | ||
| 1 | /* | 2 | /* |
| 2 | * IPV6 GSO/GRO offload support | 3 | * IPV6 GSO/GRO offload support |
| 3 | * Linux INET6 implementation | 4 | * Linux INET6 implementation |
| 4 | * | 5 | * |
| 5 | * This program is free software; you can redistribute it and/or | ||
| 6 | * modify it under the terms of the GNU General Public License | ||
| 7 | * as published by the Free Software Foundation; either version | ||
| 8 | * 2 of the License, or (at your option) any later version. | ||
| 9 | * | ||
| 10 | * IPV6 Extension Header GSO/GRO support | 6 | * IPV6 Extension Header GSO/GRO support |
| 11 | */ | 7 | */ |
| 12 | #include <net/protocol.h> | 8 | #include <net/protocol.h> |
diff --git a/net/ipv6/fib6_rules.c b/net/ipv6/fib6_rules.c index 06d1b7763600..bcfae13409b5 100644 --- a/net/ipv6/fib6_rules.c +++ b/net/ipv6/fib6_rules.c | |||
| @@ -1,13 +1,10 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-only | ||
| 1 | /* | 2 | /* |
| 2 | * net/ipv6/fib6_rules.c IPv6 Routing Policy Rules | 3 | * net/ipv6/fib6_rules.c IPv6 Routing Policy Rules |
| 3 | * | 4 | * |
| 4 | * Copyright (C)2003-2006 Helsinki University of Technology | 5 | * Copyright (C)2003-2006 Helsinki University of Technology |
| 5 | * Copyright (C)2003-2006 USAGI/WIDE Project | 6 | * Copyright (C)2003-2006 USAGI/WIDE Project |
| 6 | * | 7 | * |
| 7 | * This program is free software; you can redistribute it and/or | ||
| 8 | * modify it under the terms of the GNU General Public License as | ||
| 9 | * published by the Free Software Foundation, version 2. | ||
| 10 | * | ||
| 11 | * Authors | 8 | * Authors |
| 12 | * Thomas Graf <tgraf@suug.ch> | 9 | * Thomas Graf <tgraf@suug.ch> |
| 13 | * Ville Nuorvala <vnuorval@tcs.hut.fi> | 10 | * Ville Nuorvala <vnuorval@tcs.hut.fi> |
diff --git a/net/ipv6/icmp.c b/net/ipv6/icmp.c index afb915807cd0..bafdd04a768d 100644 --- a/net/ipv6/icmp.c +++ b/net/ipv6/icmp.c | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-or-later | ||
| 1 | /* | 2 | /* |
| 2 | * Internet Control Message Protocol (ICMPv6) | 3 | * Internet Control Message Protocol (ICMPv6) |
| 3 | * Linux INET6 implementation | 4 | * Linux INET6 implementation |
| @@ -8,11 +9,6 @@ | |||
| 8 | * Based on net/ipv4/icmp.c | 9 | * Based on net/ipv4/icmp.c |
| 9 | * | 10 | * |
| 10 | * RFC 1885 | 11 | * RFC 1885 |
| 11 | * | ||
| 12 | * This program is free software; you can redistribute it and/or | ||
| 13 | * modify it under the terms of the GNU General Public License | ||
| 14 | * as published by the Free Software Foundation; either version | ||
| 15 | * 2 of the License, or (at your option) any later version. | ||
| 16 | */ | 12 | */ |
| 17 | 13 | ||
| 18 | /* | 14 | /* |
diff --git a/net/ipv6/ila/ila.h b/net/ipv6/ila/ila.h index 1f747bcbec29..bb6fc0d54dae 100644 --- a/net/ipv6/ila/ila.h +++ b/net/ipv6/ila/ila.h | |||
| @@ -1,11 +1,6 @@ | |||
| 1 | /* SPDX-License-Identifier: GPL-2.0-or-later */ | ||
| 1 | /* | 2 | /* |
| 2 | * Copyright (c) 2015 Tom Herbert <tom@herbertland.com> | 3 | * Copyright (c) 2015 Tom Herbert <tom@herbertland.com> |
| 3 | * | ||
| 4 | * This program is free software; you can redistribute it and/or | ||
| 5 | * modify it under the terms of the GNU General Public License as | ||
| 6 | * published by the Free Software Foundation; either version 2 of | ||
| 7 | * the License, or (at your option) any later version. | ||
| 8 | * | ||
| 9 | */ | 4 | */ |
| 10 | 5 | ||
| 11 | #ifndef __ILA_H | 6 | #ifndef __ILA_H |
diff --git a/net/ipv6/inet6_connection_sock.c b/net/ipv6/inet6_connection_sock.c index 9a31d13bf180..4da24aa6c696 100644 --- a/net/ipv6/inet6_connection_sock.c +++ b/net/ipv6/inet6_connection_sock.c | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-or-later | ||
| 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 |
| @@ -6,11 +7,6 @@ | |||
| 6 | * Support for INET6 connection oriented protocols. | 7 | * Support for INET6 connection oriented protocols. |
| 7 | * | 8 | * |
| 8 | * Authors: See the TCPv6 sources | 9 | * Authors: See the TCPv6 sources |
| 9 | * | ||
| 10 | * This program 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 | */ | 10 | */ |
| 15 | 11 | ||
| 16 | #include <linux/module.h> | 12 | #include <linux/module.h> |
diff --git a/net/ipv6/inet6_hashtables.c b/net/ipv6/inet6_hashtables.c index f3515ebe9b3a..b2a55f300318 100644 --- a/net/ipv6/inet6_hashtables.c +++ b/net/ipv6/inet6_hashtables.c | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-or-later | ||
| 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 |
| @@ -7,11 +8,6 @@ | |||
| 7 | * | 8 | * |
| 8 | * Authors: Lotsa people, from code originally in tcp, generalised here | 9 | * Authors: Lotsa people, from code originally in tcp, generalised here |
| 9 | * by Arnaldo Carvalho de Melo <acme@mandriva.com> | 10 | * by Arnaldo Carvalho de Melo <acme@mandriva.com> |
| 10 | * | ||
| 11 | * This program 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 | */ | 11 | */ |
| 16 | 12 | ||
| 17 | #include <linux/module.h> | 13 | #include <linux/module.h> |
diff --git a/net/ipv6/ip6_fib.c b/net/ipv6/ip6_fib.c index 008421b550c6..9180c8b6f764 100644 --- a/net/ipv6/ip6_fib.c +++ b/net/ipv6/ip6_fib.c | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-or-later | ||
| 1 | /* | 2 | /* |
| 2 | * Linux INET6 implementation | 3 | * Linux INET6 implementation |
| 3 | * Forwarding Information Database | 4 | * Forwarding Information Database |
| @@ -5,11 +6,6 @@ | |||
| 5 | * Authors: | 6 | * Authors: |
| 6 | * Pedro Roque <roque@di.fc.ul.pt> | 7 | * Pedro Roque <roque@di.fc.ul.pt> |
| 7 | * | 8 | * |
| 8 | * This program is free software; you can redistribute it and/or | ||
| 9 | * modify it under the terms of the GNU General Public License | ||
| 10 | * as published by the Free Software Foundation; either version | ||
| 11 | * 2 of the License, or (at your option) any later version. | ||
| 12 | * | ||
| 13 | * Changes: | 9 | * Changes: |
| 14 | * Yuji SEKIYA @USAGI: Support default route on router node; | 10 | * Yuji SEKIYA @USAGI: Support default route on router node; |
| 15 | * remove ip6_null_entry from the top of | 11 | * remove ip6_null_entry from the top of |
diff --git a/net/ipv6/ip6_flowlabel.c b/net/ipv6/ip6_flowlabel.c index be5f3d7ceb96..2f3eb7dc45da 100644 --- a/net/ipv6/ip6_flowlabel.c +++ b/net/ipv6/ip6_flowlabel.c | |||
| @@ -1,11 +1,7 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-or-later | ||
| 1 | /* | 2 | /* |
| 2 | * ip6_flowlabel.c IPv6 flowlabel manager. | 3 | * ip6_flowlabel.c IPv6 flowlabel manager. |
| 3 | * | 4 | * |
| 4 | * This program is free software; you can redistribute 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 | * Authors: Alexey Kuznetsov, <kuznet@ms2.inr.ac.ru> | 5 | * Authors: Alexey Kuznetsov, <kuznet@ms2.inr.ac.ru> |
| 10 | */ | 6 | */ |
| 11 | 7 | ||
diff --git a/net/ipv6/ip6_gre.c b/net/ipv6/ip6_gre.c index 655e46b227f9..c2049c72f3e5 100644 --- a/net/ipv6/ip6_gre.c +++ b/net/ipv6/ip6_gre.c | |||
| @@ -1,13 +1,8 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-or-later | ||
| 1 | /* | 2 | /* |
| 2 | * GRE over IPv6 protocol decoder. | 3 | * GRE over IPv6 protocol decoder. |
| 3 | * | 4 | * |
| 4 | * Authors: Dmitry Kozlov (xeb@mail.ru) | 5 | * Authors: Dmitry Kozlov (xeb@mail.ru) |
| 5 | * | ||
| 6 | * This program is free software; you can redistribute it and/or | ||
| 7 | * modify it under the terms of the GNU General Public License | ||
| 8 | * as published by the Free Software Foundation; either version | ||
| 9 | * 2 of the License, or (at your option) any later version. | ||
| 10 | * | ||
| 11 | */ | 6 | */ |
| 12 | 7 | ||
| 13 | #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt | 8 | #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt |
diff --git a/net/ipv6/ip6_input.c b/net/ipv6/ip6_input.c index b50b1af1f530..fa014d5f1732 100644 --- a/net/ipv6/ip6_input.c +++ b/net/ipv6/ip6_input.c | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-or-later | ||
| 1 | /* | 2 | /* |
| 2 | * IPv6 input | 3 | * IPv6 input |
| 3 | * Linux INET6 implementation | 4 | * Linux INET6 implementation |
| @@ -7,11 +8,6 @@ | |||
| 7 | * Ian P. Morris <I.P.Morris@soton.ac.uk> | 8 | * Ian P. Morris <I.P.Morris@soton.ac.uk> |
| 8 | * | 9 | * |
| 9 | * Based in linux/net/ipv4/ip_input.c | 10 | * Based in linux/net/ipv4/ip_input.c |
| 10 | * | ||
| 11 | * This program 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 | */ | 11 | */ |
| 16 | /* Changes | 12 | /* Changes |
| 17 | * | 13 | * |
diff --git a/net/ipv6/ip6_offload.c b/net/ipv6/ip6_offload.c index 345882d9c061..7fbb44736a34 100644 --- a/net/ipv6/ip6_offload.c +++ b/net/ipv6/ip6_offload.c | |||
| @@ -1,11 +1,7 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-or-later | ||
| 1 | /* | 2 | /* |
| 2 | * IPV6 GSO/GRO offload support | 3 | * IPV6 GSO/GRO offload support |
| 3 | * Linux INET6 implementation | 4 | * Linux INET6 implementation |
| 4 | * | ||
| 5 | * This program is free software; you can redistribute it and/or | ||
| 6 | * modify it under the terms of the GNU General Public License | ||
| 7 | * as published by the Free Software Foundation; either version | ||
| 8 | * 2 of the License, or (at your option) any later version. | ||
| 9 | */ | 5 | */ |
| 10 | 6 | ||
| 11 | #include <linux/kernel.h> | 7 | #include <linux/kernel.h> |
diff --git a/net/ipv6/ip6_offload.h b/net/ipv6/ip6_offload.h index 96b40e41ac53..e768987604f1 100644 --- a/net/ipv6/ip6_offload.h +++ b/net/ipv6/ip6_offload.h | |||
| @@ -1,11 +1,7 @@ | |||
| 1 | /* SPDX-License-Identifier: GPL-2.0-or-later */ | ||
| 1 | /* | 2 | /* |
| 2 | * IPV6 GSO/GRO offload support | 3 | * IPV6 GSO/GRO offload support |
| 3 | * Linux INET6 implementation | 4 | * Linux INET6 implementation |
| 4 | * | ||
| 5 | * This program is free software; you can redistribute it and/or | ||
| 6 | * modify it under the terms of the GNU General Public License | ||
| 7 | * as published by the Free Software Foundation; either version | ||
| 8 | * 2 of the License, or (at your option) any later version. | ||
| 9 | */ | 5 | */ |
| 10 | 6 | ||
| 11 | #ifndef __ip6_offload_h | 7 | #ifndef __ip6_offload_h |
diff --git a/net/ipv6/ip6_output.c b/net/ipv6/ip6_output.c index adef2236abe2..934c88f128ab 100644 --- a/net/ipv6/ip6_output.c +++ b/net/ipv6/ip6_output.c | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-or-later | ||
| 1 | /* | 2 | /* |
| 2 | * IPv6 output functions | 3 | * IPv6 output functions |
| 3 | * Linux INET6 implementation | 4 | * Linux INET6 implementation |
| @@ -7,11 +8,6 @@ | |||
| 7 | * | 8 | * |
| 8 | * Based on linux/net/ipv4/ip_output.c | 9 | * Based on linux/net/ipv4/ip_output.c |
| 9 | * | 10 | * |
| 10 | * This program 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 | * Changes: | 11 | * Changes: |
| 16 | * A.N.Kuznetsov : airthmetics in fragmentation. | 12 | * A.N.Kuznetsov : airthmetics in fragmentation. |
| 17 | * extension headers are implemented. | 13 | * extension headers are implemented. |
| @@ -1275,7 +1271,7 @@ static int __ip6_append_data(struct sock *sk, | |||
| 1275 | int csummode = CHECKSUM_NONE; | 1271 | int csummode = CHECKSUM_NONE; |
| 1276 | unsigned int maxnonfragsize, headersize; | 1272 | unsigned int maxnonfragsize, headersize; |
| 1277 | unsigned int wmem_alloc_delta = 0; | 1273 | unsigned int wmem_alloc_delta = 0; |
| 1278 | bool paged, extra_uref; | 1274 | bool paged, extra_uref = false; |
| 1279 | 1275 | ||
| 1280 | skb = skb_peek_tail(queue); | 1276 | skb = skb_peek_tail(queue); |
| 1281 | if (!skb) { | 1277 | if (!skb) { |
| @@ -1344,7 +1340,7 @@ emsgsize: | |||
| 1344 | uarg = sock_zerocopy_realloc(sk, length, skb_zcopy(skb)); | 1340 | uarg = sock_zerocopy_realloc(sk, length, skb_zcopy(skb)); |
| 1345 | if (!uarg) | 1341 | if (!uarg) |
| 1346 | return -ENOBUFS; | 1342 | return -ENOBUFS; |
| 1347 | extra_uref = true; | 1343 | extra_uref = !skb; /* only extra ref if !MSG_MORE */ |
| 1348 | if (rt->dst.dev->features & NETIF_F_SG && | 1344 | if (rt->dst.dev->features & NETIF_F_SG && |
| 1349 | csummode == CHECKSUM_PARTIAL) { | 1345 | csummode == CHECKSUM_PARTIAL) { |
| 1350 | paged = true; | 1346 | paged = true; |
diff --git a/net/ipv6/ip6_tunnel.c b/net/ipv6/ip6_tunnel.c index ade1390c6348..b80fde1bc005 100644 --- a/net/ipv6/ip6_tunnel.c +++ b/net/ipv6/ip6_tunnel.c | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-or-later | ||
| 1 | /* | 2 | /* |
| 2 | * IPv6 tunneling device | 3 | * IPv6 tunneling device |
| 3 | * Linux INET6 implementation | 4 | * Linux INET6 implementation |
| @@ -10,12 +11,6 @@ | |||
| 10 | * linux/net/ipv6/sit.c and linux/net/ipv4/ipip.c | 11 | * linux/net/ipv6/sit.c and linux/net/ipv4/ipip.c |
| 11 | * | 12 | * |
| 12 | * RFC 2473 | 13 | * RFC 2473 |
| 13 | * | ||
| 14 | * This program is free software; you can redistribute it and/or | ||
| 15 | * modify it under the terms of the GNU General Public License | ||
| 16 | * as published by the Free Software Foundation; either version | ||
| 17 | * 2 of the License, or (at your option) any later version. | ||
| 18 | * | ||
| 19 | */ | 14 | */ |
| 20 | 15 | ||
| 21 | #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt | 16 | #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt |
diff --git a/net/ipv6/ip6_vti.c b/net/ipv6/ip6_vti.c index 218a0dedc8f4..024db17386d2 100644 --- a/net/ipv6/ip6_vti.c +++ b/net/ipv6/ip6_vti.c | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-or-later | ||
| 1 | /* | 2 | /* |
| 2 | * IPv6 virtual tunneling interface | 3 | * IPv6 virtual tunneling interface |
| 3 | * | 4 | * |
| @@ -8,11 +9,6 @@ | |||
| 8 | * | 9 | * |
| 9 | * Based on: | 10 | * Based on: |
| 10 | * net/ipv6/ip6_tunnel.c | 11 | * net/ipv6/ip6_tunnel.c |
| 11 | * | ||
| 12 | * This program is free software; you can redistribute it and/or | ||
| 13 | * modify it under the terms of the GNU General Public License | ||
| 14 | * as published by the Free Software Foundation; either version | ||
| 15 | * 2 of the License, or (at your option) any later version. | ||
| 16 | */ | 12 | */ |
| 17 | 13 | ||
| 18 | #include <linux/module.h> | 14 | #include <linux/module.h> |
diff --git a/net/ipv6/ip6mr.c b/net/ipv6/ip6mr.c index 4e69847ed5be..e80d36c5073d 100644 --- a/net/ipv6/ip6mr.c +++ b/net/ipv6/ip6mr.c | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-or-later | ||
| 1 | /* | 2 | /* |
| 2 | * Linux IPv6 multicast routing support for BSD pim6sd | 3 | * Linux IPv6 multicast routing support for BSD pim6sd |
| 3 | * Based on net/ipv4/ipmr.c. | 4 | * Based on net/ipv4/ipmr.c. |
| @@ -8,12 +9,6 @@ | |||
| 8 | * 6WIND, Paris, France | 9 | * 6WIND, Paris, France |
| 9 | * Copyright (C)2007,2008 USAGI/WIDE Project | 10 | * Copyright (C)2007,2008 USAGI/WIDE Project |
| 10 | * YOSHIFUJI Hideaki <yoshfuji@linux-ipv6.org> | 11 | * YOSHIFUJI Hideaki <yoshfuji@linux-ipv6.org> |
| 11 | * | ||
| 12 | * This program is free software; you can redistribute it and/or | ||
| 13 | * modify it under the terms of the GNU General Public License | ||
| 14 | * as published by the Free Software Foundation; either version | ||
| 15 | * 2 of the License, or (at your option) any later version. | ||
| 16 | * | ||
| 17 | */ | 12 | */ |
| 18 | 13 | ||
| 19 | #include <linux/uaccess.h> | 14 | #include <linux/uaccess.h> |
diff --git a/net/ipv6/ipv6_sockglue.c b/net/ipv6/ipv6_sockglue.c index 40f21fef25ff..264c292e7dcc 100644 --- a/net/ipv6/ipv6_sockglue.c +++ b/net/ipv6/ipv6_sockglue.c | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-or-later | ||
| 1 | /* | 2 | /* |
| 2 | * IPv6 BSD socket options interface | 3 | * IPv6 BSD socket options interface |
| 3 | * Linux INET6 implementation | 4 | * Linux INET6 implementation |
| @@ -7,11 +8,6 @@ | |||
| 7 | * | 8 | * |
| 8 | * Based on linux/net/ipv4/ip_sockglue.c | 9 | * Based on linux/net/ipv4/ip_sockglue.c |
| 9 | * | 10 | * |
| 10 | * This program 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 | * FIXME: Make the setsockopt code POSIX compliant: That is | 11 | * FIXME: Make the setsockopt code POSIX compliant: That is |
| 16 | * | 12 | * |
| 17 | * o Truncate getsockopt returns | 13 | * o Truncate getsockopt returns |
| @@ -68,6 +64,8 @@ int ip6_ra_control(struct sock *sk, int sel) | |||
| 68 | return -ENOPROTOOPT; | 64 | return -ENOPROTOOPT; |
| 69 | 65 | ||
| 70 | new_ra = (sel >= 0) ? kmalloc(sizeof(*new_ra), GFP_KERNEL) : NULL; | 66 | new_ra = (sel >= 0) ? kmalloc(sizeof(*new_ra), GFP_KERNEL) : NULL; |
| 67 | if (sel >= 0 && !new_ra) | ||
| 68 | return -ENOMEM; | ||
| 71 | 69 | ||
| 72 | write_lock_bh(&ip6_ra_lock); | 70 | write_lock_bh(&ip6_ra_lock); |
| 73 | for (rap = &ip6_ra_chain; (ra = *rap) != NULL; rap = &ra->next) { | 71 | for (rap = &ip6_ra_chain; (ra = *rap) != NULL; rap = &ra->next) { |
diff --git a/net/ipv6/mcast.c b/net/ipv6/mcast.c index 42f3f5cd349f..7f3f13c37916 100644 --- a/net/ipv6/mcast.c +++ b/net/ipv6/mcast.c | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-or-later | ||
| 1 | /* | 2 | /* |
| 2 | * Multicast support for IPv6 | 3 | * Multicast support for IPv6 |
| 3 | * Linux INET6 implementation | 4 | * Linux INET6 implementation |
| @@ -6,11 +7,6 @@ | |||
| 6 | * Pedro Roque <roque@di.fc.ul.pt> | 7 | * Pedro Roque <roque@di.fc.ul.pt> |
| 7 | * | 8 | * |
| 8 | * Based on linux/ipv4/igmp.c and linux/ipv4/ip_sockglue.c | 9 | * Based on linux/ipv4/igmp.c and linux/ipv4/ip_sockglue.c |
| 9 | * | ||
| 10 | * This program 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 | */ | 10 | */ |
| 15 | 11 | ||
| 16 | /* Changes: | 12 | /* Changes: |
diff --git a/net/ipv6/mcast_snoop.c b/net/ipv6/mcast_snoop.c index dddd75d1be0e..d3d6b6a66e5f 100644 --- a/net/ipv6/mcast_snoop.c +++ b/net/ipv6/mcast_snoop.c | |||
| @@ -1,19 +1,7 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-only | ||
| 1 | /* Copyright (C) 2010: YOSHIFUJI Hideaki <yoshfuji@linux-ipv6.org> | 2 | /* Copyright (C) 2010: YOSHIFUJI Hideaki <yoshfuji@linux-ipv6.org> |
| 2 | * Copyright (C) 2015: Linus Lüssing <linus.luessing@c0d3.blue> | 3 | * Copyright (C) 2015: Linus Lüssing <linus.luessing@c0d3.blue> |
| 3 | * | 4 | * |
| 4 | * This program is free software; you can redistribute it and/or | ||
| 5 | * modify it under the terms of version 2 of the GNU General Public | ||
| 6 | * License as published by the Free Software Foundation. | ||
| 7 | * | ||
| 8 | * This program is distributed in the hope that it will be useful, but | ||
| 9 | * WITHOUT ANY WARRANTY; without even the implied warranty of | ||
| 10 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | ||
| 11 | * General Public License for more details. | ||
| 12 | * | ||
| 13 | * You should have received a copy of the GNU General Public License | ||
| 14 | * along with this program; if not, see <http://www.gnu.org/licenses/>. | ||
| 15 | * | ||
| 16 | * | ||
| 17 | * Based on the MLD support added to br_multicast.c by YOSHIFUJI Hideaki. | 5 | * Based on the MLD support added to br_multicast.c by YOSHIFUJI Hideaki. |
| 18 | */ | 6 | */ |
| 19 | 7 | ||
diff --git a/net/ipv6/ndisc.c b/net/ipv6/ndisc.c index 4c8e2ea8bf19..09dd2edfb868 100644 --- a/net/ipv6/ndisc.c +++ b/net/ipv6/ndisc.c | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-or-later | ||
| 1 | /* | 2 | /* |
| 2 | * Neighbour Discovery for IPv6 | 3 | * Neighbour Discovery for IPv6 |
| 3 | * Linux INET6 implementation | 4 | * Linux INET6 implementation |
| @@ -5,11 +6,6 @@ | |||
| 5 | * Authors: | 6 | * Authors: |
| 6 | * Pedro Roque <roque@di.fc.ul.pt> | 7 | * Pedro Roque <roque@di.fc.ul.pt> |
| 7 | * Mike Shaver <shaver@ingenia.com> | 8 | * Mike Shaver <shaver@ingenia.com> |
| 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 | * as published by the Free Software Foundation; either version | ||
| 12 | * 2 of the License, or (at your option) any later version. | ||
| 13 | */ | 9 | */ |
| 14 | 10 | ||
| 15 | /* | 11 | /* |
diff --git a/net/ipv6/netfilter/ip6t_REJECT.c b/net/ipv6/netfilter/ip6t_REJECT.c index 38dea8ff680f..3ac5485049f0 100644 --- a/net/ipv6/netfilter/ip6t_REJECT.c +++ b/net/ipv6/netfilter/ip6t_REJECT.c | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-or-later | ||
| 1 | /* | 2 | /* |
| 2 | * IP6 tables REJECT target module | 3 | * IP6 tables REJECT target module |
| 3 | * Linux INET6 implementation | 4 | * Linux INET6 implementation |
| @@ -10,11 +11,6 @@ | |||
| 10 | * Copyright (c) 2005-2007 Patrick McHardy <kaber@trash.net> | 11 | * Copyright (c) 2005-2007 Patrick McHardy <kaber@trash.net> |
| 11 | * | 12 | * |
| 12 | * Based on net/ipv4/netfilter/ipt_REJECT.c | 13 | * Based on net/ipv4/netfilter/ipt_REJECT.c |
| 13 | * | ||
| 14 | * This program is free software; you can redistribute it and/or | ||
| 15 | * modify it under the terms of the GNU General Public License | ||
| 16 | * as published by the Free Software Foundation; either version | ||
| 17 | * 2 of the License, or (at your option) any later version. | ||
| 18 | */ | 14 | */ |
| 19 | #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt | 15 | #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt |
| 20 | 16 | ||
diff --git a/net/ipv6/netfilter/ip6t_srh.c b/net/ipv6/netfilter/ip6t_srh.c index 4cb83fb69844..db0fd64d8986 100644 --- a/net/ipv6/netfilter/ip6t_srh.c +++ b/net/ipv6/netfilter/ip6t_srh.c | |||
| @@ -1,12 +1,8 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-or-later | ||
| 1 | /* Kernel module to match Segment Routing Header (SRH) parameters. */ | 2 | /* Kernel module to match Segment Routing Header (SRH) parameters. */ |
| 2 | 3 | ||
| 3 | /* Author: | 4 | /* Author: |
| 4 | * Ahmed Abdelsalam <amsalam20@gmail.com> | 5 | * Ahmed Abdelsalam <amsalam20@gmail.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 License | ||
| 8 | * as published by the Free Software Foundation; either version 2 | ||
| 9 | * of the License, 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/ipv6/netfilter/nf_conntrack_reasm.c b/net/ipv6/netfilter/nf_conntrack_reasm.c index 3de0e9b0a482..6f3abbb9e093 100644 --- a/net/ipv6/netfilter/nf_conntrack_reasm.c +++ b/net/ipv6/netfilter/nf_conntrack_reasm.c | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-or-later | ||
| 1 | /* | 2 | /* |
| 2 | * IPv6 fragment reassembly for connection tracking | 3 | * IPv6 fragment reassembly for connection tracking |
| 3 | * | 4 | * |
| @@ -7,11 +8,6 @@ | |||
| 7 | * Yasuyuki Kozakai @USAGI <yasuyuki.kozakai@toshiba.co.jp> | 8 | * Yasuyuki Kozakai @USAGI <yasuyuki.kozakai@toshiba.co.jp> |
| 8 | * | 9 | * |
| 9 | * Based on: net/ipv6/reassembly.c | 10 | * Based on: net/ipv6/reassembly.c |
| 10 | * | ||
| 11 | * This program 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 | */ | 11 | */ |
| 16 | 12 | ||
| 17 | #define pr_fmt(fmt) "IPv6-nf: " fmt | 13 | #define pr_fmt(fmt) "IPv6-nf: " fmt |
diff --git a/net/ipv6/netfilter/nft_fib_ipv6.c b/net/ipv6/netfilter/nft_fib_ipv6.c index 73cdc0bc63f7..ec068b0cffca 100644 --- a/net/ipv6/netfilter/nft_fib_ipv6.c +++ b/net/ipv6/netfilter/nft_fib_ipv6.c | |||
| @@ -169,8 +169,7 @@ void nft_fib6_eval(const struct nft_expr *expr, struct nft_regs *regs, | |||
| 169 | 169 | ||
| 170 | if (nft_hook(pkt) == NF_INET_PRE_ROUTING && | 170 | if (nft_hook(pkt) == NF_INET_PRE_ROUTING && |
| 171 | nft_fib_is_loopback(pkt->skb, nft_in(pkt))) { | 171 | nft_fib_is_loopback(pkt->skb, nft_in(pkt))) { |
| 172 | nft_fib_store_result(dest, priv, pkt, | 172 | nft_fib_store_result(dest, priv, nft_in(pkt)); |
| 173 | nft_in(pkt)->ifindex); | ||
| 174 | return; | 173 | return; |
| 175 | } | 174 | } |
| 176 | 175 | ||
| @@ -187,18 +186,7 @@ void nft_fib6_eval(const struct nft_expr *expr, struct nft_regs *regs, | |||
| 187 | if (oif && oif != rt->rt6i_idev->dev) | 186 | if (oif && oif != rt->rt6i_idev->dev) |
| 188 | goto put_rt_err; | 187 | goto put_rt_err; |
| 189 | 188 | ||
| 190 | switch (priv->result) { | 189 | nft_fib_store_result(dest, priv, rt->rt6i_idev->dev); |
| 191 | case NFT_FIB_RESULT_OIF: | ||
| 192 | *dest = rt->rt6i_idev->dev->ifindex; | ||
| 193 | break; | ||
| 194 | case NFT_FIB_RESULT_OIFNAME: | ||
| 195 | strncpy((char *)dest, rt->rt6i_idev->dev->name, IFNAMSIZ); | ||
| 196 | break; | ||
| 197 | default: | ||
| 198 | WARN_ON_ONCE(1); | ||
| 199 | break; | ||
| 200 | } | ||
| 201 | |||
| 202 | put_rt_err: | 190 | put_rt_err: |
| 203 | ip6_rt_put(rt); | 191 | ip6_rt_put(rt); |
| 204 | } | 192 | } |
diff --git a/net/ipv6/ping.c b/net/ipv6/ping.c index 4c04bccc7417..87d2d8c1db7c 100644 --- a/net/ipv6/ping.c +++ b/net/ipv6/ping.c | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-or-later | ||
| 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 |
| @@ -5,17 +6,11 @@ | |||
| 5 | * | 6 | * |
| 6 | * "Ping" sockets | 7 | * "Ping" sockets |
| 7 | * | 8 | * |
| 8 | * This program is free software; you can redistribute it and/or | ||
| 9 | * modify it under the terms of the GNU General Public License | ||
| 10 | * as published by the Free Software Foundation; either version | ||
| 11 | * 2 of the License, or (at your option) any later version. | ||
| 12 | * | ||
| 13 | * Based on ipv4/ping.c code. | 9 | * Based on ipv4/ping.c code. |
| 14 | * | 10 | * |
| 15 | * Authors: Lorenzo Colitti (IPv6 support) | 11 | * Authors: Lorenzo Colitti (IPv6 support) |
| 16 | * Vasiliy Kulikov / Openwall (IPv4 implementation, for Linux 2.6), | 12 | * Vasiliy Kulikov / Openwall (IPv4 implementation, for Linux 2.6), |
| 17 | * Pavel Kankovsky (IPv4 implementation, for Linux 2.4.32) | 13 | * Pavel Kankovsky (IPv4 implementation, for Linux 2.4.32) |
| 18 | * | ||
| 19 | */ | 14 | */ |
| 20 | 15 | ||
| 21 | #include <net/addrconf.h> | 16 | #include <net/addrconf.h> |
diff --git a/net/ipv6/proc.c b/net/ipv6/proc.c index 2356b4af7309..4a8da679866e 100644 --- a/net/ipv6/proc.c +++ b/net/ipv6/proc.c | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-or-later | ||
| 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 |
| @@ -9,11 +10,6 @@ | |||
| 9 | * | 10 | * |
| 10 | * Authors: David S. Miller (davem@caip.rutgers.edu) | 11 | * Authors: David S. Miller (davem@caip.rutgers.edu) |
| 11 | * YOSHIFUJI Hideaki <yoshfuji@linux-ipv6.org> | 12 | * YOSHIFUJI Hideaki <yoshfuji@linux-ipv6.org> |
| 12 | * | ||
| 13 | * This program is free software; you can redistribute it and/or | ||
| 14 | * modify it under the terms of the GNU General Public License | ||
| 15 | * as published by the Free Software Foundation; either version | ||
| 16 | * 2 of the License, or (at your option) any later version. | ||
| 17 | */ | 13 | */ |
| 18 | #include <linux/socket.h> | 14 | #include <linux/socket.h> |
| 19 | #include <linux/net.h> | 15 | #include <linux/net.h> |
diff --git a/net/ipv6/protocol.c b/net/ipv6/protocol.c index b5d54d4f995c..d4b1806bab1b 100644 --- a/net/ipv6/protocol.c +++ b/net/ipv6/protocol.c | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-or-later | ||
| 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 |
| @@ -6,11 +7,6 @@ | |||
| 6 | * PF_INET6 protocol dispatch tables. | 7 | * PF_INET6 protocol dispatch tables. |
| 7 | * | 8 | * |
| 8 | * Authors: Pedro Roque <roque@di.fc.ul.pt> | 9 | * Authors: Pedro Roque <roque@di.fc.ul.pt> |
| 9 | * | ||
| 10 | * This program 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 | */ | 10 | */ |
| 15 | 11 | ||
| 16 | /* | 12 | /* |
diff --git a/net/ipv6/raw.c b/net/ipv6/raw.c index 96a3559f2a09..70693bc7ad9d 100644 --- a/net/ipv6/raw.c +++ b/net/ipv6/raw.c | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-or-later | ||
| 1 | /* | 2 | /* |
| 2 | * RAW sockets for IPv6 | 3 | * RAW sockets for IPv6 |
| 3 | * Linux INET6 implementation | 4 | * Linux INET6 implementation |
| @@ -11,11 +12,6 @@ | |||
| 11 | * Hideaki YOSHIFUJI : sin6_scope_id support | 12 | * Hideaki YOSHIFUJI : sin6_scope_id support |
| 12 | * YOSHIFUJI,H.@USAGI : raw checksum (RFC2292(bis) compliance) | 13 | * YOSHIFUJI,H.@USAGI : raw checksum (RFC2292(bis) compliance) |
| 13 | * Kazunori MIYAZAWA @USAGI: change process style to use ip6_append_data | 14 | * Kazunori MIYAZAWA @USAGI: change process style to use ip6_append_data |
| 14 | * | ||
| 15 | * This program is free software; you can redistribute it and/or | ||
| 16 | * modify it under the terms of the GNU General Public License | ||
| 17 | * as published by the Free Software Foundation; either version | ||
| 18 | * 2 of the License, or (at your option) any later version. | ||
| 19 | */ | 15 | */ |
| 20 | 16 | ||
| 21 | #include <linux/errno.h> | 17 | #include <linux/errno.h> |
| @@ -783,6 +779,7 @@ static int rawv6_sendmsg(struct sock *sk, struct msghdr *msg, size_t len) | |||
| 783 | struct flowi6 fl6; | 779 | struct flowi6 fl6; |
| 784 | struct ipcm6_cookie ipc6; | 780 | struct ipcm6_cookie ipc6; |
| 785 | int addr_len = msg->msg_namelen; | 781 | int addr_len = msg->msg_namelen; |
| 782 | int hdrincl; | ||
| 786 | u16 proto; | 783 | u16 proto; |
| 787 | int err; | 784 | int err; |
| 788 | 785 | ||
| @@ -796,6 +793,13 @@ static int rawv6_sendmsg(struct sock *sk, struct msghdr *msg, size_t len) | |||
| 796 | if (msg->msg_flags & MSG_OOB) | 793 | if (msg->msg_flags & MSG_OOB) |
| 797 | return -EOPNOTSUPP; | 794 | return -EOPNOTSUPP; |
| 798 | 795 | ||
| 796 | /* hdrincl should be READ_ONCE(inet->hdrincl) | ||
| 797 | * but READ_ONCE() doesn't work with bit fields. | ||
| 798 | * Doing this indirectly yields the same result. | ||
| 799 | */ | ||
| 800 | hdrincl = inet->hdrincl; | ||
| 801 | hdrincl = READ_ONCE(hdrincl); | ||
| 802 | |||
| 799 | /* | 803 | /* |
| 800 | * Get and verify the address. | 804 | * Get and verify the address. |
| 801 | */ | 805 | */ |
| @@ -887,11 +891,14 @@ static int rawv6_sendmsg(struct sock *sk, struct msghdr *msg, size_t len) | |||
| 887 | opt = ipv6_fixup_options(&opt_space, opt); | 891 | opt = ipv6_fixup_options(&opt_space, opt); |
| 888 | 892 | ||
| 889 | fl6.flowi6_proto = proto; | 893 | fl6.flowi6_proto = proto; |
| 890 | rfv.msg = msg; | 894 | |
| 891 | rfv.hlen = 0; | 895 | if (!hdrincl) { |
| 892 | err = rawv6_probe_proto_opt(&rfv, &fl6); | 896 | rfv.msg = msg; |
| 893 | if (err) | 897 | rfv.hlen = 0; |
| 894 | goto out; | 898 | err = rawv6_probe_proto_opt(&rfv, &fl6); |
| 899 | if (err) | ||
| 900 | goto out; | ||
| 901 | } | ||
| 895 | 902 | ||
| 896 | if (!ipv6_addr_any(daddr)) | 903 | if (!ipv6_addr_any(daddr)) |
| 897 | fl6.daddr = *daddr; | 904 | fl6.daddr = *daddr; |
| @@ -908,7 +915,7 @@ static int rawv6_sendmsg(struct sock *sk, struct msghdr *msg, size_t len) | |||
| 908 | fl6.flowi6_oif = np->ucast_oif; | 915 | fl6.flowi6_oif = np->ucast_oif; |
| 909 | security_sk_classify_flow(sk, flowi6_to_flowi(&fl6)); | 916 | security_sk_classify_flow(sk, flowi6_to_flowi(&fl6)); |
| 910 | 917 | ||
| 911 | if (inet->hdrincl) | 918 | if (hdrincl) |
| 912 | fl6.flowi6_flags |= FLOWI_FLAG_KNOWN_NH; | 919 | fl6.flowi6_flags |= FLOWI_FLAG_KNOWN_NH; |
| 913 | 920 | ||
| 914 | if (ipc6.tclass < 0) | 921 | if (ipc6.tclass < 0) |
| @@ -931,7 +938,7 @@ static int rawv6_sendmsg(struct sock *sk, struct msghdr *msg, size_t len) | |||
| 931 | goto do_confirm; | 938 | goto do_confirm; |
| 932 | 939 | ||
| 933 | back_from_confirm: | 940 | back_from_confirm: |
| 934 | if (inet->hdrincl) | 941 | if (hdrincl) |
| 935 | err = rawv6_send_hdrinc(sk, msg, len, &fl6, &dst, | 942 | err = rawv6_send_hdrinc(sk, msg, len, &fl6, &dst, |
| 936 | msg->msg_flags, &ipc6.sockc); | 943 | msg->msg_flags, &ipc6.sockc); |
| 937 | else { | 944 | else { |
diff --git a/net/ipv6/reassembly.c b/net/ipv6/reassembly.c index 1a832f5e190b..22369694b2fb 100644 --- a/net/ipv6/reassembly.c +++ b/net/ipv6/reassembly.c | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-or-later | ||
| 1 | /* | 2 | /* |
| 2 | * IPv6 fragment reassembly | 3 | * IPv6 fragment reassembly |
| 3 | * Linux INET6 implementation | 4 | * Linux INET6 implementation |
| @@ -6,11 +7,6 @@ | |||
| 6 | * Pedro Roque <roque@di.fc.ul.pt> | 7 | * Pedro Roque <roque@di.fc.ul.pt> |
| 7 | * | 8 | * |
| 8 | * Based on: net/ipv4/ip_fragment.c | 9 | * Based on: net/ipv4/ip_fragment.c |
| 9 | * | ||
| 10 | * This program 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 | */ | 10 | */ |
| 15 | 11 | ||
| 16 | /* | 12 | /* |
diff --git a/net/ipv6/route.c b/net/ipv6/route.c index 7a014ca877ed..0f60eb3a2873 100644 --- a/net/ipv6/route.c +++ b/net/ipv6/route.c | |||
| @@ -1,14 +1,10 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-or-later | ||
| 1 | /* | 2 | /* |
| 2 | * Linux INET6 implementation | 3 | * Linux INET6 implementation |
| 3 | * FIB front-end. | 4 | * FIB front-end. |
| 4 | * | 5 | * |
| 5 | * Authors: | 6 | * Authors: |
| 6 | * Pedro Roque <roque@di.fc.ul.pt> | 7 | * Pedro Roque <roque@di.fc.ul.pt> |
| 7 | * | ||
| 8 | * This program is free software; you can redistribute it and/or | ||
| 9 | * modify it under the terms of the GNU General Public License | ||
| 10 | * as published by the Free Software Foundation; either version | ||
| 11 | * 2 of the License, or (at your option) any later version. | ||
| 12 | */ | 8 | */ |
| 13 | 9 | ||
| 14 | /* Changes: | 10 | /* Changes: |
| @@ -2512,6 +2508,12 @@ static struct rt6_info *__ip6_route_redirect(struct net *net, | |||
| 2512 | struct fib6_info *rt; | 2508 | struct fib6_info *rt; |
| 2513 | struct fib6_node *fn; | 2509 | struct fib6_node *fn; |
| 2514 | 2510 | ||
| 2511 | /* l3mdev_update_flow overrides oif if the device is enslaved; in | ||
| 2512 | * this case we must match on the real ingress device, so reset it | ||
| 2513 | */ | ||
| 2514 | if (fl6->flowi6_flags & FLOWI_FLAG_SKIP_NH_OIF) | ||
| 2515 | fl6->flowi6_oif = skb->dev->ifindex; | ||
| 2516 | |||
| 2515 | /* Get the "current" route for this destination and | 2517 | /* Get the "current" route for this destination and |
| 2516 | * check if the redirect has come from appropriate router. | 2518 | * check if the redirect has come from appropriate router. |
| 2517 | * | 2519 | * |
diff --git a/net/ipv6/seg6.c b/net/ipv6/seg6.c index 0c5479ef9b38..75421a472d25 100644 --- a/net/ipv6/seg6.c +++ b/net/ipv6/seg6.c | |||
| @@ -1,14 +1,9 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-or-later | ||
| 1 | /* | 2 | /* |
| 2 | * SR-IPv6 implementation | 3 | * SR-IPv6 implementation |
| 3 | * | 4 | * |
| 4 | * Author: | 5 | * Author: |
| 5 | * David Lebrun <david.lebrun@uclouvain.be> | 6 | * David Lebrun <david.lebrun@uclouvain.be> |
| 6 | * | ||
| 7 | * | ||
| 8 | * This program is free software; you can redistribute it and/or | ||
| 9 | * modify it under the terms of the GNU General Public License | ||
| 10 | * as published by the Free Software Foundation; either version | ||
| 11 | * 2 of the License, or (at your option) any later version. | ||
| 12 | */ | 7 | */ |
| 13 | 8 | ||
| 14 | #include <linux/errno.h> | 9 | #include <linux/errno.h> |
diff --git a/net/ipv6/seg6_hmac.c b/net/ipv6/seg6_hmac.c index 8546f94f30d4..ffcfcd2b128f 100644 --- a/net/ipv6/seg6_hmac.c +++ b/net/ipv6/seg6_hmac.c | |||
| @@ -1,14 +1,9 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-or-later | ||
| 1 | /* | 2 | /* |
| 2 | * SR-IPv6 implementation -- HMAC functions | 3 | * SR-IPv6 implementation -- HMAC functions |
| 3 | * | 4 | * |
| 4 | * Author: | 5 | * Author: |
| 5 | * David Lebrun <david.lebrun@uclouvain.be> | 6 | * David Lebrun <david.lebrun@uclouvain.be> |
| 6 | * | ||
| 7 | * | ||
| 8 | * This program is free software; you can redistribute it and/or | ||
| 9 | * modify it under the terms of the GNU General Public License | ||
| 10 | * as published by the Free Software Foundation; either version | ||
| 11 | * 2 of the License, or (at your option) any later version. | ||
| 12 | */ | 7 | */ |
| 13 | 8 | ||
| 14 | #include <linux/errno.h> | 9 | #include <linux/errno.h> |
diff --git a/net/ipv6/seg6_iptunnel.c b/net/ipv6/seg6_iptunnel.c index 7a525fda8978..ab7f124ff5d7 100644 --- a/net/ipv6/seg6_iptunnel.c +++ b/net/ipv6/seg6_iptunnel.c | |||
| @@ -1,14 +1,9 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-or-later | ||
| 1 | /* | 2 | /* |
| 2 | * SR-IPv6 implementation | 3 | * SR-IPv6 implementation |
| 3 | * | 4 | * |
| 4 | * Author: | 5 | * Author: |
| 5 | * David Lebrun <david.lebrun@uclouvain.be> | 6 | * David Lebrun <david.lebrun@uclouvain.be> |
| 6 | * | ||
| 7 | * | ||
| 8 | * This program is free software; you can redistribute it and/or | ||
| 9 | * modify it under the terms of the GNU General Public License | ||
| 10 | * as published by the Free Software Foundation; either version | ||
| 11 | * 2 of the License, or (at your option) any later version. | ||
| 12 | */ | 7 | */ |
| 13 | 8 | ||
| 14 | #include <linux/types.h> | 9 | #include <linux/types.h> |
diff --git a/net/ipv6/seg6_local.c b/net/ipv6/seg6_local.c index 78155fdb8c36..9d4f75e0d33a 100644 --- a/net/ipv6/seg6_local.c +++ b/net/ipv6/seg6_local.c | |||
| @@ -1,15 +1,10 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-or-later | ||
| 1 | /* | 2 | /* |
| 2 | * SR-IPv6 implementation | 3 | * SR-IPv6 implementation |
| 3 | * | 4 | * |
| 4 | * Authors: | 5 | * Authors: |
| 5 | * David Lebrun <david.lebrun@uclouvain.be> | 6 | * David Lebrun <david.lebrun@uclouvain.be> |
| 6 | * eBPF support: Mathieu Xhonneux <m.xhonneux@gmail.com> | 7 | * eBPF support: Mathieu Xhonneux <m.xhonneux@gmail.com> |
| 7 | * | ||
| 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 | * as published by the Free Software Foundation; either version | ||
| 12 | * 2 of the License, or (at your option) any later version. | ||
| 13 | */ | 8 | */ |
| 14 | 9 | ||
| 15 | #include <linux/types.h> | 10 | #include <linux/types.h> |
diff --git a/net/ipv6/sit.c b/net/ipv6/sit.c index 971d60bf9640..80610899a323 100644 --- a/net/ipv6/sit.c +++ b/net/ipv6/sit.c | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-or-later | ||
| 1 | /* | 2 | /* |
| 2 | * IPv6 over IPv4 tunnel device - Simple Internet Transition (SIT) | 3 | * IPv6 over IPv4 tunnel device - Simple Internet Transition (SIT) |
| 3 | * Linux INET6 implementation | 4 | * Linux INET6 implementation |
| @@ -6,11 +7,6 @@ | |||
| 6 | * Pedro Roque <roque@di.fc.ul.pt> | 7 | * Pedro Roque <roque@di.fc.ul.pt> |
| 7 | * Alexey Kuznetsov <kuznet@ms2.inr.ac.ru> | 8 | * Alexey Kuznetsov <kuznet@ms2.inr.ac.ru> |
| 8 | * | 9 | * |
| 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 | * as published by the Free Software Foundation; either version | ||
| 12 | * 2 of the License, or (at your option) any later version. | ||
| 13 | * | ||
| 14 | * Changes: | 10 | * Changes: |
| 15 | * Roger Venning <r.venning@telstra.com>: 6to4 support | 11 | * Roger Venning <r.venning@telstra.com>: 6to4 support |
| 16 | * Nate Thompson <nate@thebog.net>: 6to4 support | 12 | * Nate Thompson <nate@thebog.net>: 6to4 support |
diff --git a/net/ipv6/syncookies.c b/net/ipv6/syncookies.c index e997141aed8c..16632e02e9b0 100644 --- a/net/ipv6/syncookies.c +++ b/net/ipv6/syncookies.c | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-or-later | ||
| 1 | /* | 2 | /* |
| 2 | * IPv6 Syncookies implementation for the Linux kernel | 3 | * IPv6 Syncookies implementation for the Linux kernel |
| 3 | * | 4 | * |
| @@ -6,12 +7,6 @@ | |||
| 6 | * | 7 | * |
| 7 | * Based on IPv4 implementation by Andi Kleen | 8 | * Based on IPv4 implementation by Andi Kleen |
| 8 | * linux/net/ipv4/syncookies.c | 9 | * linux/net/ipv4/syncookies.c |
| 9 | * | ||
| 10 | * This program 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 | */ | 10 | */ |
| 16 | 11 | ||
| 17 | #include <linux/tcp.h> | 12 | #include <linux/tcp.h> |
diff --git a/net/ipv6/tcp_ipv6.c b/net/ipv6/tcp_ipv6.c index beaf28456301..7a14ea37d2df 100644 --- a/net/ipv6/tcp_ipv6.c +++ b/net/ipv6/tcp_ipv6.c | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-or-later | ||
| 1 | /* | 2 | /* |
| 2 | * TCP over IPv6 | 3 | * TCP over IPv6 |
| 3 | * Linux INET6 implementation | 4 | * Linux INET6 implementation |
| @@ -16,11 +17,6 @@ | |||
| 16 | * Alexey Kuznetsov allow both IPv4 and IPv6 sockets to bind | 17 | * Alexey Kuznetsov allow both IPv4 and IPv6 sockets to bind |
| 17 | * a single port at the same time. | 18 | * a single port at the same time. |
| 18 | * YOSHIFUJI Hideaki @USAGI: convert /proc/net/tcp6 to seq_file. | 19 | * YOSHIFUJI Hideaki @USAGI: convert /proc/net/tcp6 to seq_file. |
| 19 | * | ||
| 20 | * This program is free software; you can redistribute it and/or | ||
| 21 | * modify it under the terms of the GNU General Public License | ||
| 22 | * as published by the Free Software Foundation; either version | ||
| 23 | * 2 of the License, or (at your option) any later version. | ||
| 24 | */ | 20 | */ |
| 25 | 21 | ||
| 26 | #include <linux/bottom_half.h> | 22 | #include <linux/bottom_half.h> |
diff --git a/net/ipv6/tcpv6_offload.c b/net/ipv6/tcpv6_offload.c index 3179c425d7ff..1796856bc24f 100644 --- a/net/ipv6/tcpv6_offload.c +++ b/net/ipv6/tcpv6_offload.c | |||
| @@ -1,12 +1,8 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-or-later | ||
| 1 | /* | 2 | /* |
| 2 | * IPV6 GSO/GRO offload support | 3 | * IPV6 GSO/GRO offload support |
| 3 | * Linux INET6 implementation | 4 | * Linux INET6 implementation |
| 4 | * | 5 | * |
| 5 | * This program is free software; you can redistribute it and/or | ||
| 6 | * modify it under the terms of the GNU General Public License | ||
| 7 | * as published by the Free Software Foundation; either version | ||
| 8 | * 2 of the License, or (at your option) any later version. | ||
| 9 | * | ||
| 10 | * TCPv6 GSO/GRO support | 6 | * TCPv6 GSO/GRO support |
| 11 | */ | 7 | */ |
| 12 | #include <linux/indirect_call_wrapper.h> | 8 | #include <linux/indirect_call_wrapper.h> |
diff --git a/net/ipv6/udp.c b/net/ipv6/udp.c index 07fa579dfb96..b3418a7c5c74 100644 --- a/net/ipv6/udp.c +++ b/net/ipv6/udp.c | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-or-later | ||
| 1 | /* | 2 | /* |
| 2 | * UDP over IPv6 | 3 | * UDP over IPv6 |
| 3 | * Linux INET6 implementation | 4 | * Linux INET6 implementation |
| @@ -14,11 +15,6 @@ | |||
| 14 | * a single port at the same time. | 15 | * a single port at the same time. |
| 15 | * Kazunori MIYAZAWA @USAGI: change process style to use ip6_append_data | 16 | * Kazunori MIYAZAWA @USAGI: change process style to use ip6_append_data |
| 16 | * YOSHIFUJI Hideaki @USAGI: convert /proc/net/udp6 to seq_file. | 17 | * YOSHIFUJI Hideaki @USAGI: convert /proc/net/udp6 to seq_file. |
| 17 | * | ||
| 18 | * This program is free software; you can redistribute it and/or | ||
| 19 | * modify it under the terms of the GNU General Public License | ||
| 20 | * as published by the Free Software Foundation; either version | ||
| 21 | * 2 of the License, or (at your option) any later version. | ||
| 22 | */ | 18 | */ |
| 23 | 19 | ||
| 24 | #include <linux/errno.h> | 20 | #include <linux/errno.h> |
diff --git a/net/ipv6/udp_offload.c b/net/ipv6/udp_offload.c index 83b11d0ac091..64b8f05d6735 100644 --- a/net/ipv6/udp_offload.c +++ b/net/ipv6/udp_offload.c | |||
| @@ -1,12 +1,8 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-or-later | ||
| 1 | /* | 2 | /* |
| 2 | * IPV6 GSO/GRO offload support | 3 | * IPV6 GSO/GRO offload support |
| 3 | * Linux INET6 implementation | 4 | * Linux INET6 implementation |
| 4 | * | 5 | * |
| 5 | * This program is free software; you can redistribute it and/or | ||
| 6 | * modify it under the terms of the GNU General Public License | ||
| 7 | * as published by the Free Software Foundation; either version | ||
| 8 | * 2 of the License, or (at your option) any later version. | ||
| 9 | * | ||
| 10 | * UDPv6 GSO support | 6 | * UDPv6 GSO support |
| 11 | */ | 7 | */ |
| 12 | #include <linux/skbuff.h> | 8 | #include <linux/skbuff.h> |
diff --git a/net/ipv6/udplite.c b/net/ipv6/udplite.c index f35907836444..bf7a7acd39b1 100644 --- a/net/ipv6/udplite.c +++ b/net/ipv6/udplite.c | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-or-later | ||
| 1 | /* | 2 | /* |
| 2 | * UDPLITEv6 An implementation of the UDP-Lite protocol over IPv6. | 3 | * UDPLITEv6 An implementation of the UDP-Lite protocol over IPv6. |
| 3 | * See also net/ipv4/udplite.c | 4 | * See also net/ipv4/udplite.c |
| @@ -6,10 +7,6 @@ | |||
| 6 | * | 7 | * |
| 7 | * Changes: | 8 | * Changes: |
| 8 | * Fixes: | 9 | * Fixes: |
| 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 | * as published by the Free Software Foundation; either version | ||
| 12 | * 2 of the License, or (at your option) any later version. | ||
| 13 | */ | 10 | */ |
| 14 | #include <linux/export.h> | 11 | #include <linux/export.h> |
| 15 | #include <linux/proc_fs.h> | 12 | #include <linux/proc_fs.h> |
diff --git a/net/ipv6/xfrm6_output.c b/net/ipv6/xfrm6_output.c index 8ad5e54eb8ca..eecac1b7148e 100644 --- a/net/ipv6/xfrm6_output.c +++ b/net/ipv6/xfrm6_output.c | |||
| @@ -1,12 +1,8 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-or-later | ||
| 1 | /* | 2 | /* |
| 2 | * xfrm6_output.c - Common IPsec encapsulation code for IPv6. | 3 | * xfrm6_output.c - Common IPsec encapsulation code for IPv6. |
| 3 | * Copyright (C) 2002 USAGI/WIDE Project | 4 | * Copyright (C) 2002 USAGI/WIDE Project |
| 4 | * Copyright (c) 2004 Herbert Xu <herbert@gondor.apana.org.au> | 5 | * Copyright (c) 2004 Herbert Xu <herbert@gondor.apana.org.au> |
| 5 | * | ||
| 6 | * This program is free software; you can redistribute it and/or | ||
| 7 | * modify it under the terms of the GNU General Public License | ||
| 8 | * as published by the Free Software Foundation; either version | ||
| 9 | * 2 of the License, or (at your option) any later version. | ||
| 10 | */ | 6 | */ |
| 11 | 7 | ||
| 12 | #include <linux/if_ether.h> | 8 | #include <linux/if_ether.h> |
diff --git a/net/ipv6/xfrm6_protocol.c b/net/ipv6/xfrm6_protocol.c index aaacac7fdbce..34cb65c7d5a7 100644 --- a/net/ipv6/xfrm6_protocol.c +++ b/net/ipv6/xfrm6_protocol.c | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-or-later | ||
| 1 | /* xfrm6_protocol.c - Generic xfrm protocol multiplexer for ipv6. | 2 | /* xfrm6_protocol.c - Generic xfrm protocol multiplexer for ipv6. |
| 2 | * | 3 | * |
| 3 | * Copyright (C) 2013 secunet Security Networks AG | 4 | * Copyright (C) 2013 secunet Security Networks AG |
| @@ -7,11 +8,6 @@ | |||
| 7 | * | 8 | * |
| 8 | * Based on: | 9 | * Based on: |
| 9 | * net/ipv4/xfrm4_protocol.c | 10 | * net/ipv4/xfrm4_protocol.c |
| 10 | * | ||
| 11 | * This program 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 | */ | 11 | */ |
| 16 | 12 | ||
| 17 | #include <linux/init.h> | 13 | #include <linux/init.h> |
diff --git a/net/iucv/iucv.c b/net/iucv/iucv.c index eb502c6290c2..9a2d023842fe 100644 --- a/net/iucv/iucv.c +++ b/net/iucv/iucv.c | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-or-later | ||
| 1 | /* | 2 | /* |
| 2 | * IUCV base infrastructure. | 3 | * IUCV base infrastructure. |
| 3 | * | 4 | * |
| @@ -17,20 +18,6 @@ | |||
| 17 | * Documentation used: | 18 | * Documentation used: |
| 18 | * The original source | 19 | * The original source |
| 19 | * CP Programming Service, IBM document # SC24-5760 | 20 | * CP Programming Service, IBM document # SC24-5760 |
| 20 | * | ||
| 21 | * This program is free software; you can redistribute it and/or modify | ||
| 22 | * it under the terms of the GNU General Public License as published by | ||
| 23 | * the Free Software Foundation; either version 2, or (at your option) | ||
| 24 | * any later version. | ||
| 25 | * | ||
| 26 | * This program is distributed in the hope that it will be useful, | ||
| 27 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
| 28 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
| 29 | * GNU General Public License for more details. | ||
| 30 | * | ||
| 31 | * You should have received a copy of the GNU General Public License | ||
| 32 | * along with this program; if not, write to the Free Software | ||
| 33 | * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. | ||
| 34 | */ | 21 | */ |
| 35 | 22 | ||
| 36 | #define KMSG_COMPONENT "iucv" | 23 | #define KMSG_COMPONENT "iucv" |
diff --git a/net/key/af_key.c b/net/key/af_key.c index 4af1e1d60b9f..a50dd6f34b91 100644 --- a/net/key/af_key.c +++ b/net/key/af_key.c | |||
| @@ -1,11 +1,7 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-or-later | ||
| 1 | /* | 2 | /* |
| 2 | * net/key/af_key.c An implementation of PF_KEYv2 sockets. | 3 | * net/key/af_key.c An implementation of PF_KEYv2 sockets. |
| 3 | * | 4 | * |
| 4 | * This program is free software; you can redistribute 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 | * Authors: Maxim Giryaev <gem@asplinux.ru> | 5 | * Authors: Maxim Giryaev <gem@asplinux.ru> |
| 10 | * David S. Miller <davem@redhat.com> | 6 | * David S. Miller <davem@redhat.com> |
| 11 | * Alexey Kuznetsov <kuznet@ms2.inr.ac.ru> | 7 | * Alexey Kuznetsov <kuznet@ms2.inr.ac.ru> |
diff --git a/net/l2tp/l2tp_debugfs.c b/net/l2tp/l2tp_debugfs.c index 9821a1458555..6e2b4b9267e1 100644 --- a/net/l2tp/l2tp_debugfs.c +++ b/net/l2tp/l2tp_debugfs.c | |||
| @@ -1,12 +1,8 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-or-later | ||
| 1 | /* | 2 | /* |
| 2 | * L2TP subsystem debugfs | 3 | * L2TP subsystem debugfs |
| 3 | * | 4 | * |
| 4 | * Copyright (c) 2010 Katalix Systems Ltd | 5 | * Copyright (c) 2010 Katalix Systems Ltd |
| 5 | * | ||
| 6 | * This program is free software; you can redistribute it and/or | ||
| 7 | * modify it under the terms of the GNU General Public License | ||
| 8 | * as published by the Free Software Foundation; either version | ||
| 9 | * 2 of the License, 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/l2tp/l2tp_eth.c b/net/l2tp/l2tp_eth.c index 8aadc4f3bb9e..bd3f39349d40 100644 --- a/net/l2tp/l2tp_eth.c +++ b/net/l2tp/l2tp_eth.c | |||
| @@ -1,12 +1,8 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-or-later | ||
| 1 | /* | 2 | /* |
| 2 | * L2TPv3 ethernet pseudowire driver | 3 | * L2TPv3 ethernet pseudowire driver |
| 3 | * | 4 | * |
| 4 | * Copyright (c) 2008,2009,2010 Katalix Systems Ltd | 5 | * Copyright (c) 2008,2009,2010 Katalix Systems Ltd |
| 5 | * | ||
| 6 | * This program is free software; you can redistribute it and/or | ||
| 7 | * modify it under the terms of the GNU General Public License | ||
| 8 | * as published by the Free Software Foundation; either version | ||
| 9 | * 2 of the License, 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/l2tp/l2tp_ip.c b/net/l2tp/l2tp_ip.c index 2cac910c1cd4..622833317dcb 100644 --- a/net/l2tp/l2tp_ip.c +++ b/net/l2tp/l2tp_ip.c | |||
| @@ -1,12 +1,8 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-or-later | ||
| 1 | /* | 2 | /* |
| 2 | * L2TPv3 IP encapsulation support | 3 | * L2TPv3 IP encapsulation support |
| 3 | * | 4 | * |
| 4 | * Copyright (c) 2008,2009,2010 Katalix Systems Ltd | 5 | * Copyright (c) 2008,2009,2010 Katalix Systems Ltd |
| 5 | * | ||
| 6 | * This program is free software; you can redistribute it and/or | ||
| 7 | * modify it under the terms of the GNU General Public License | ||
| 8 | * as published by the Free Software Foundation; either version | ||
| 9 | * 2 of the License, 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/l2tp/l2tp_ip6.c b/net/l2tp/l2tp_ip6.c index 4ec546cc1dd6..1a76a0a4e3ab 100644 --- a/net/l2tp/l2tp_ip6.c +++ b/net/l2tp/l2tp_ip6.c | |||
| @@ -1,12 +1,8 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-or-later | ||
| 1 | /* | 2 | /* |
| 2 | * L2TPv3 IP encapsulation support for IPv6 | 3 | * L2TPv3 IP encapsulation support for IPv6 |
| 3 | * | 4 | * |
| 4 | * Copyright (c) 2012 Katalix Systems Ltd | 5 | * Copyright (c) 2012 Katalix Systems Ltd |
| 5 | * | ||
| 6 | * This program is free software; you can redistribute it and/or | ||
| 7 | * modify it under the terms of the GNU General Public License | ||
| 8 | * as published by the Free Software Foundation; either version | ||
| 9 | * 2 of the License, 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/l2tp/l2tp_ppp.c b/net/l2tp/l2tp_ppp.c index f36cae785e82..1d0e5904dedf 100644 --- a/net/l2tp/l2tp_ppp.c +++ b/net/l2tp/l2tp_ppp.c | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-or-later | ||
| 1 | /***************************************************************************** | 2 | /***************************************************************************** |
| 2 | * Linux PPP over L2TP (PPPoX/PPPoL2TP) Sockets | 3 | * Linux PPP over L2TP (PPPoX/PPPoL2TP) Sockets |
| 3 | * | 4 | * |
| @@ -11,11 +12,6 @@ | |||
| 11 | * Based on original work by Martijn van Oosterhout <kleptog@svana.org> | 12 | * Based on original work by Martijn van Oosterhout <kleptog@svana.org> |
| 12 | * | 13 | * |
| 13 | * License: | 14 | * License: |
| 14 | * This program is free software; you can redistribute it and/or | ||
| 15 | * modify it under the terms of the GNU General Public License | ||
| 16 | * as published by the Free Software Foundation; either version | ||
| 17 | * 2 of the License, or (at your option) any later version. | ||
| 18 | * | ||
| 19 | */ | 15 | */ |
| 20 | 16 | ||
| 21 | /* This driver handles only L2TP data frames; control frames are handled by a | 17 | /* This driver handles only L2TP data frames; control frames are handled by a |
diff --git a/net/l3mdev/l3mdev.c b/net/l3mdev/l3mdev.c index 309dee76724e..cfc9fcb97465 100644 --- a/net/l3mdev/l3mdev.c +++ b/net/l3mdev/l3mdev.c | |||
| @@ -1,12 +1,8 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-or-later | ||
| 1 | /* | 2 | /* |
| 2 | * net/l3mdev/l3mdev.c - L3 master device implementation | 3 | * net/l3mdev/l3mdev.c - L3 master device implementation |
| 3 | * Copyright (c) 2015 Cumulus Networks | 4 | * Copyright (c) 2015 Cumulus Networks |
| 4 | * Copyright (c) 2015 David Ahern <dsa@cumulusnetworks.com> | 5 | * Copyright (c) 2015 David Ahern <dsa@cumulusnetworks.com> |
| 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 | */ | 6 | */ |
| 11 | 7 | ||
| 12 | #include <linux/netdevice.h> | 8 | #include <linux/netdevice.h> |
diff --git a/net/llc/llc_output.c b/net/llc/llc_output.c index 94425e421213..b9ad087bcbd7 100644 --- a/net/llc/llc_output.c +++ b/net/llc/llc_output.c | |||
| @@ -1,16 +1,9 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-only | ||
| 1 | /* | 2 | /* |
| 2 | * llc_output.c - LLC minimal output path | 3 | * llc_output.c - LLC minimal output path |
| 3 | * | 4 | * |
| 4 | * Copyright (c) 1997 by Procom Technology, Inc. | 5 | * Copyright (c) 1997 by Procom Technology, Inc. |
| 5 | * 2001-2003 by Arnaldo Carvalho de Melo <acme@conectiva.com.br> | 6 | * 2001-2003 by Arnaldo Carvalho de Melo <acme@conectiva.com.br> |
| 6 | * | ||
| 7 | * This program can be redistributed or modified under the terms of the | ||
| 8 | * GNU General Public License version 2 as published by the Free Software | ||
| 9 | * Foundation. | ||
| 10 | * This program is distributed without any warranty or implied warranty | ||
| 11 | * of merchantability or fitness for a particular purpose. | ||
| 12 | * | ||
| 13 | * See the GNU General Public License version 2 for more details. | ||
| 14 | */ | 7 | */ |
| 15 | 8 | ||
| 16 | #include <linux/if_arp.h> | 9 | #include <linux/if_arp.h> |
| @@ -72,6 +65,8 @@ int llc_build_and_send_ui_pkt(struct llc_sap *sap, struct sk_buff *skb, | |||
| 72 | rc = llc_mac_hdr_init(skb, skb->dev->dev_addr, dmac); | 65 | rc = llc_mac_hdr_init(skb, skb->dev->dev_addr, dmac); |
| 73 | if (likely(!rc)) | 66 | if (likely(!rc)) |
| 74 | rc = dev_queue_xmit(skb); | 67 | rc = dev_queue_xmit(skb); |
| 68 | else | ||
| 69 | kfree_skb(skb); | ||
| 75 | return rc; | 70 | return rc; |
| 76 | } | 71 | } |
| 77 | 72 | ||
diff --git a/net/mac80211/cfg.c b/net/mac80211/cfg.c index 52e6a091b7e4..a1973a26c7fc 100644 --- a/net/mac80211/cfg.c +++ b/net/mac80211/cfg.c | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-only | ||
| 1 | /* | 2 | /* |
| 2 | * mac80211 configuration hooks for cfg80211 | 3 | * mac80211 configuration hooks for cfg80211 |
| 3 | * | 4 | * |
| @@ -5,8 +6,6 @@ | |||
| 5 | * Copyright 2013-2015 Intel Mobile Communications GmbH | 6 | * Copyright 2013-2015 Intel Mobile Communications GmbH |
| 6 | * Copyright (C) 2015-2017 Intel Deutschland GmbH | 7 | * Copyright (C) 2015-2017 Intel Deutschland GmbH |
| 7 | * Copyright (C) 2018 Intel Corporation | 8 | * Copyright (C) 2018 Intel Corporation |
| 8 | * | ||
| 9 | * This file is GPLv2 as found in COPYING. | ||
| 10 | */ | 9 | */ |
| 11 | 10 | ||
| 12 | #include <linux/ieee80211.h> | 11 | #include <linux/ieee80211.h> |
diff --git a/net/mac80211/ethtool.c b/net/mac80211/ethtool.c index 5ac743816b59..99a2e30b3833 100644 --- a/net/mac80211/ethtool.c +++ b/net/mac80211/ethtool.c | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-only | ||
| 1 | /* | 2 | /* |
| 2 | * mac80211 ethtool hooks for cfg80211 | 3 | * mac80211 ethtool hooks for cfg80211 |
| 3 | * | 4 | * |
| @@ -5,8 +6,6 @@ | |||
| 5 | * Copyright 2006-2010 Johannes Berg <johannes@sipsolutions.net> | 6 | * Copyright 2006-2010 Johannes Berg <johannes@sipsolutions.net> |
| 6 | * Copyright 2014 Intel Corporation (Author: Johannes Berg) | 7 | * Copyright 2014 Intel Corporation (Author: Johannes Berg) |
| 7 | * Copyright (C) 2018 Intel Corporation | 8 | * Copyright (C) 2018 Intel Corporation |
| 8 | * | ||
| 9 | * This file is GPLv2 as found in COPYING. | ||
| 10 | */ | 9 | */ |
| 11 | #include <linux/types.h> | 10 | #include <linux/types.h> |
| 12 | #include <net/cfg80211.h> | 11 | #include <net/cfg80211.h> |
diff --git a/net/mac80211/tdls.c b/net/mac80211/tdls.c index 24c37f91ca46..ca97e1598c28 100644 --- a/net/mac80211/tdls.c +++ b/net/mac80211/tdls.c | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-only | ||
| 1 | /* | 2 | /* |
| 2 | * mac80211 TDLS handling code | 3 | * mac80211 TDLS handling code |
| 3 | * | 4 | * |
| @@ -6,8 +7,6 @@ | |||
| 6 | * Copyright 2014 Intel Mobile Communications GmbH | 7 | * Copyright 2014 Intel Mobile Communications GmbH |
| 7 | * Copyright 2015 - 2016 Intel Deutschland GmbH | 8 | * Copyright 2015 - 2016 Intel Deutschland GmbH |
| 8 | * Copyright (C) 2019 Intel Corporation | 9 | * Copyright (C) 2019 Intel Corporation |
| 9 | * | ||
| 10 | * This file is GPLv2 as found in COPYING. | ||
| 11 | */ | 10 | */ |
| 12 | 11 | ||
| 13 | #include <linux/ieee80211.h> | 12 | #include <linux/ieee80211.h> |
diff --git a/net/mac802154/cfg.c b/net/mac802154/cfg.c index 57b5e94471af..fbeebe3bc31d 100644 --- a/net/mac802154/cfg.c +++ b/net/mac802154/cfg.c | |||
| @@ -1,11 +1,5 @@ | |||
| 1 | /* This program is free software; you can redistribute it and/or modify | 1 | // SPDX-License-Identifier: GPL-2.0-only |
| 2 | * it under the terms of the GNU General Public License version 2 | 2 | /* |
| 3 | * as published by the Free Software Foundation. | ||
| 4 | * | ||
| 5 | * This program is distributed in the hope that it will be useful, | ||
| 6 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
| 7 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
| 8 | * GNU General Public License for more details. | ||
| 9 | * | 3 | * |
| 10 | * Authors: | 4 | * Authors: |
| 11 | * Alexander Aring <aar@pengutronix.de> | 5 | * Alexander Aring <aar@pengutronix.de> |
diff --git a/net/mac802154/ieee802154_i.h b/net/mac802154/ieee802154_i.h index 62141dcec2d6..702560acc8ce 100644 --- a/net/mac802154/ieee802154_i.h +++ b/net/mac802154/ieee802154_i.h | |||
| @@ -1,15 +1,7 @@ | |||
| 1 | /* SPDX-License-Identifier: GPL-2.0-only */ | ||
| 1 | /* | 2 | /* |
| 2 | * Copyright (C) 2007-2012 Siemens AG | 3 | * Copyright (C) 2007-2012 Siemens AG |
| 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 | ||
| 6 | * as published by the Free Software Foundation. | ||
| 7 | * | ||
| 8 | * This program is distributed in the hope that it will be useful, | ||
| 9 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
| 10 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
| 11 | * GNU General Public License for more details. | ||
| 12 | * | ||
| 13 | * Written by: | 5 | * Written by: |
| 14 | * Pavel Smolenskiy <pavel.smolenskiy@gmail.com> | 6 | * Pavel Smolenskiy <pavel.smolenskiy@gmail.com> |
| 15 | * Maxim Gorbachyov <maxim.gorbachev@siemens.com> | 7 | * Maxim Gorbachyov <maxim.gorbachev@siemens.com> |
diff --git a/net/mac802154/iface.c b/net/mac802154/iface.c index bd88a9b80773..1cf5ac09edcb 100644 --- a/net/mac802154/iface.c +++ b/net/mac802154/iface.c | |||
| @@ -1,15 +1,7 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-only | ||
| 1 | /* | 2 | /* |
| 2 | * Copyright 2007-2012 Siemens AG | 3 | * Copyright 2007-2012 Siemens AG |
| 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 | ||
| 6 | * as published by the Free Software Foundation. | ||
| 7 | * | ||
| 8 | * This program is distributed in the hope that it will be useful, | ||
| 9 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
| 10 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
| 11 | * GNU General Public License for more details. | ||
| 12 | * | ||
| 13 | * Written by: | 5 | * Written by: |
| 14 | * Dmitry Eremin-Solenikov <dbaryshkov@gmail.com> | 6 | * Dmitry Eremin-Solenikov <dbaryshkov@gmail.com> |
| 15 | * Sergey Lapin <slapin@ossfans.org> | 7 | * Sergey Lapin <slapin@ossfans.org> |
diff --git a/net/mac802154/llsec.c b/net/mac802154/llsec.c index 7e29f88dbf6a..c079ee69d3d0 100644 --- a/net/mac802154/llsec.c +++ b/net/mac802154/llsec.c | |||
| @@ -1,15 +1,7 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-only | ||
| 1 | /* | 2 | /* |
| 2 | * Copyright (C) 2014 Fraunhofer ITWM | 3 | * Copyright (C) 2014 Fraunhofer ITWM |
| 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 | ||
| 6 | * as published by the Free Software Foundation. | ||
| 7 | * | ||
| 8 | * This program is distributed in the hope that it will be useful, | ||
| 9 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
| 10 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
| 11 | * GNU General Public License for more details. | ||
| 12 | * | ||
| 13 | * Written by: | 5 | * Written by: |
| 14 | * Phoebe Buckheister <phoebe.buckheister@itwm.fraunhofer.de> | 6 | * Phoebe Buckheister <phoebe.buckheister@itwm.fraunhofer.de> |
| 15 | */ | 7 | */ |
diff --git a/net/mac802154/llsec.h b/net/mac802154/llsec.h index 8be46d74dc39..ddeb79228204 100644 --- a/net/mac802154/llsec.h +++ b/net/mac802154/llsec.h | |||
| @@ -1,15 +1,7 @@ | |||
| 1 | /* SPDX-License-Identifier: GPL-2.0-only */ | ||
| 1 | /* | 2 | /* |
| 2 | * Copyright (C) 2014 Fraunhofer ITWM | 3 | * Copyright (C) 2014 Fraunhofer ITWM |
| 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 | ||
| 6 | * as published by the Free Software Foundation. | ||
| 7 | * | ||
| 8 | * This program is distributed in the hope that it will be useful, | ||
| 9 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
| 10 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
| 11 | * GNU General Public License for more details. | ||
| 12 | * | ||
| 13 | * Written by: | 5 | * Written by: |
| 14 | * Phoebe Buckheister <phoebe.buckheister@itwm.fraunhofer.de> | 6 | * Phoebe Buckheister <phoebe.buckheister@itwm.fraunhofer.de> |
| 15 | */ | 7 | */ |
diff --git a/net/mac802154/mac_cmd.c b/net/mac802154/mac_cmd.c index 3db16346cab3..8ea5b6402f5d 100644 --- a/net/mac802154/mac_cmd.c +++ b/net/mac802154/mac_cmd.c | |||
| @@ -1,17 +1,9 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-only | ||
| 1 | /* | 2 | /* |
| 2 | * MAC commands interface | 3 | * MAC commands interface |
| 3 | * | 4 | * |
| 4 | * Copyright 2007-2012 Siemens AG | 5 | * Copyright 2007-2012 Siemens AG |
| 5 | * | 6 | * |
| 6 | * This program is free software; you can redistribute it and/or modify | ||
| 7 | * it under the terms of the GNU General Public License version 2 | ||
| 8 | * as published by the Free Software Foundation. | ||
| 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 | * Written by: | 7 | * Written by: |
| 16 | * Sergey Lapin <slapin@ossfans.org> | 8 | * Sergey Lapin <slapin@ossfans.org> |
| 17 | * Dmitry Eremin-Solenikov <dbaryshkov@gmail.com> | 9 | * Dmitry Eremin-Solenikov <dbaryshkov@gmail.com> |
diff --git a/net/mac802154/main.c b/net/mac802154/main.c index 87da85ae5a6b..06ea0f8bfd5c 100644 --- a/net/mac802154/main.c +++ b/net/mac802154/main.c | |||
| @@ -1,17 +1,9 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-only | ||
| 1 | /* | 2 | /* |
| 2 | * Copyright (C) 2007-2012 Siemens AG | 3 | * Copyright (C) 2007-2012 Siemens AG |
| 3 | * | 4 | * |
| 4 | * Written by: | 5 | * Written by: |
| 5 | * Alexander Smirnov <alex.bluesman.smirnov@gmail.com> | 6 | * Alexander Smirnov <alex.bluesman.smirnov@gmail.com> |
| 6 | * | ||
| 7 | * This program is free software; you can redistribute it and/or modify | ||
| 8 | * it under the terms of the GNU General Public License version 2 | ||
| 9 | * as published by the Free Software Foundation. | ||
| 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 | */ | 7 | */ |
| 16 | 8 | ||
| 17 | #include <linux/kernel.h> | 9 | #include <linux/kernel.h> |
diff --git a/net/mac802154/mib.c b/net/mac802154/mib.c index 73f94fbf8785..81666e1d779d 100644 --- a/net/mac802154/mib.c +++ b/net/mac802154/mib.c | |||
| @@ -1,15 +1,7 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-only | ||
| 1 | /* | 2 | /* |
| 2 | * Copyright 2007-2012 Siemens AG | 3 | * Copyright 2007-2012 Siemens AG |
| 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 | ||
| 6 | * as published by the Free Software Foundation. | ||
| 7 | * | ||
| 8 | * This program is distributed in the hope that it will be useful, | ||
| 9 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
| 10 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
| 11 | * GNU General Public License for more details. | ||
| 12 | * | ||
| 13 | * Written by: | 5 | * Written by: |
| 14 | * Dmitry Eremin-Solenikov <dbaryshkov@gmail.com> | 6 | * Dmitry Eremin-Solenikov <dbaryshkov@gmail.com> |
| 15 | * Sergey Lapin <slapin@ossfans.org> | 7 | * Sergey Lapin <slapin@ossfans.org> |
diff --git a/net/mac802154/rx.c b/net/mac802154/rx.c index 4dcf6e18563a..b8ce84618a55 100644 --- a/net/mac802154/rx.c +++ b/net/mac802154/rx.c | |||
| @@ -1,15 +1,7 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-only | ||
| 1 | /* | 2 | /* |
| 2 | * Copyright (C) 2007-2012 Siemens AG | 3 | * Copyright (C) 2007-2012 Siemens AG |
| 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 | ||
| 6 | * as published by the Free Software Foundation. | ||
| 7 | * | ||
| 8 | * This program is distributed in the hope that it will be useful, | ||
| 9 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
| 10 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
| 11 | * GNU General Public License for more details. | ||
| 12 | * | ||
| 13 | * Written by: | 5 | * Written by: |
| 14 | * Pavel Smolenskiy <pavel.smolenskiy@gmail.com> | 6 | * Pavel Smolenskiy <pavel.smolenskiy@gmail.com> |
| 15 | * Maxim Gorbachyov <maxim.gorbachev@siemens.com> | 7 | * Maxim Gorbachyov <maxim.gorbachev@siemens.com> |
diff --git a/net/mac802154/tx.c b/net/mac802154/tx.c index bcd1a5e6ebf4..ab52811523e9 100644 --- a/net/mac802154/tx.c +++ b/net/mac802154/tx.c | |||
| @@ -1,15 +1,7 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-only | ||
| 1 | /* | 2 | /* |
| 2 | * Copyright 2007-2012 Siemens AG | 3 | * Copyright 2007-2012 Siemens AG |
| 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 | ||
| 6 | * as published by the Free Software Foundation. | ||
| 7 | * | ||
| 8 | * This program is distributed in the hope that it will be useful, | ||
| 9 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
| 10 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
| 11 | * GNU General Public License for more details. | ||
| 12 | * | ||
| 13 | * Written by: | 5 | * Written by: |
| 14 | * Dmitry Eremin-Solenikov <dbaryshkov@gmail.com> | 6 | * Dmitry Eremin-Solenikov <dbaryshkov@gmail.com> |
| 15 | * Sergey Lapin <slapin@ossfans.org> | 7 | * Sergey Lapin <slapin@ossfans.org> |
diff --git a/net/mac802154/util.c b/net/mac802154/util.c index 7c03fb0ea34c..f2078238718b 100644 --- a/net/mac802154/util.c +++ b/net/mac802154/util.c | |||
| @@ -1,11 +1,5 @@ | |||
| 1 | /* This program is free software; you can redistribute it and/or modify | 1 | // SPDX-License-Identifier: GPL-2.0-only |
| 2 | * it under the terms of the GNU General Public License version 2 | 2 | /* |
| 3 | * as published by the Free Software Foundation. | ||
| 4 | * | ||
| 5 | * This program is distributed in the hope that it will be useful, | ||
| 6 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
| 7 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
| 8 | * GNU General Public License for more details. | ||
| 9 | * | 3 | * |
| 10 | * Authors: | 4 | * Authors: |
| 11 | * Alexander Aring <aar@pengutronix.de> | 5 | * Alexander Aring <aar@pengutronix.de> |
diff --git a/net/mpls/mpls_gso.c b/net/mpls/mpls_gso.c index b4da6d8e8632..b1690149b6fa 100644 --- a/net/mpls/mpls_gso.c +++ b/net/mpls/mpls_gso.c | |||
| @@ -1,13 +1,9 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-or-later | ||
| 1 | /* | 2 | /* |
| 2 | * MPLS GSO Support | 3 | * MPLS GSO Support |
| 3 | * | 4 | * |
| 4 | * Authors: Simon Horman (horms@verge.net.au) | 5 | * Authors: Simon Horman (horms@verge.net.au) |
| 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 License | ||
| 8 | * as published by the Free Software Foundation; either version | ||
| 9 | * 2 of the License, or (at your option) any later version. | ||
| 10 | * | ||
| 11 | * Based on: GSO portions of net/ipv4/gre.c | 7 | * Based on: GSO portions of net/ipv4/gre.c |
| 12 | */ | 8 | */ |
| 13 | 9 | ||
diff --git a/net/mpls/mpls_iptunnel.c b/net/mpls/mpls_iptunnel.c index 951b52d5835b..500596130760 100644 --- a/net/mpls/mpls_iptunnel.c +++ b/net/mpls/mpls_iptunnel.c | |||
| @@ -1,14 +1,9 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-or-later | ||
| 1 | /* | 2 | /* |
| 2 | * mpls tunnels An implementation mpls tunnels using the light weight tunnel | 3 | * mpls tunnels An implementation mpls tunnels using the light weight tunnel |
| 3 | * infrastructure | 4 | * infrastructure |
| 4 | * | 5 | * |
| 5 | * Authors: Roopa Prabhu, <roopa@cumulusnetworks.com> | 6 | * Authors: Roopa Prabhu, <roopa@cumulusnetworks.com> |
| 6 | * | ||
| 7 | * This program 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 | */ | 7 | */ |
| 13 | #include <linux/types.h> | 8 | #include <linux/types.h> |
| 14 | #include <linux/skbuff.h> | 9 | #include <linux/skbuff.h> |
diff --git a/net/ncsi/internal.h b/net/ncsi/internal.h index 87505600dbb2..0b3f0673e1a2 100644 --- a/net/ncsi/internal.h +++ b/net/ncsi/internal.h | |||
| @@ -1,10 +1,6 @@ | |||
| 1 | /* SPDX-License-Identifier: GPL-2.0-or-later */ | ||
| 1 | /* | 2 | /* |
| 2 | * Copyright Gavin Shan, IBM Corporation 2016. | 3 | * Copyright Gavin Shan, IBM Corporation 2016. |
| 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 | */ | 4 | */ |
| 9 | 5 | ||
| 10 | #ifndef __NCSI_INTERNAL_H__ | 6 | #ifndef __NCSI_INTERNAL_H__ |
diff --git a/net/ncsi/ncsi-aen.c b/net/ncsi/ncsi-aen.c index 26d67e27551f..b635c194f0a8 100644 --- a/net/ncsi/ncsi-aen.c +++ b/net/ncsi/ncsi-aen.c | |||
| @@ -1,10 +1,6 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-or-later | ||
| 1 | /* | 2 | /* |
| 2 | * Copyright Gavin Shan, IBM Corporation 2016. | 3 | * Copyright Gavin Shan, IBM Corporation 2016. |
| 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 | */ | 4 | */ |
| 9 | 5 | ||
| 10 | #include <linux/module.h> | 6 | #include <linux/module.h> |
diff --git a/net/ncsi/ncsi-cmd.c b/net/ncsi/ncsi-cmd.c index 356af474e43c..5c3fad8cba57 100644 --- a/net/ncsi/ncsi-cmd.c +++ b/net/ncsi/ncsi-cmd.c | |||
| @@ -1,10 +1,6 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-or-later | ||
| 1 | /* | 2 | /* |
| 2 | * Copyright Gavin Shan, IBM Corporation 2016. | 3 | * Copyright Gavin Shan, IBM Corporation 2016. |
| 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 | */ | 4 | */ |
| 9 | 5 | ||
| 10 | #include <linux/module.h> | 6 | #include <linux/module.h> |
diff --git a/net/ncsi/ncsi-manage.c b/net/ncsi/ncsi-manage.c index 31359d5e14ad..755aab66dcab 100644 --- a/net/ncsi/ncsi-manage.c +++ b/net/ncsi/ncsi-manage.c | |||
| @@ -1,10 +1,6 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-or-later | ||
| 1 | /* | 2 | /* |
| 2 | * Copyright Gavin Shan, IBM Corporation 2016. | 3 | * Copyright Gavin Shan, IBM Corporation 2016. |
| 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 | */ | 4 | */ |
| 9 | 5 | ||
| 10 | #include <linux/module.h> | 6 | #include <linux/module.h> |
diff --git a/net/ncsi/ncsi-netlink.c b/net/ncsi/ncsi-netlink.c index 7fc4feddafa3..8b386d766e7d 100644 --- a/net/ncsi/ncsi-netlink.c +++ b/net/ncsi/ncsi-netlink.c | |||
| @@ -1,10 +1,6 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-or-later | ||
| 1 | /* | 2 | /* |
| 2 | * Copyright Samuel Mendoza-Jonas, IBM Corporation 2018. | 3 | * Copyright Samuel Mendoza-Jonas, IBM Corporation 2018. |
| 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 | */ | 4 | */ |
| 9 | 5 | ||
| 10 | #include <linux/module.h> | 6 | #include <linux/module.h> |
diff --git a/net/ncsi/ncsi-netlink.h b/net/ncsi/ncsi-netlink.h index c4a46887a932..7502723fba83 100644 --- a/net/ncsi/ncsi-netlink.h +++ b/net/ncsi/ncsi-netlink.h | |||
| @@ -1,10 +1,6 @@ | |||
| 1 | /* SPDX-License-Identifier: GPL-2.0-or-later */ | ||
| 1 | /* | 2 | /* |
| 2 | * Copyright Samuel Mendoza-Jonas, IBM Corporation 2018. | 3 | * Copyright Samuel Mendoza-Jonas, IBM Corporation 2018. |
| 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 | */ | 4 | */ |
| 9 | 5 | ||
| 10 | #ifndef __NCSI_NETLINK_H__ | 6 | #ifndef __NCSI_NETLINK_H__ |
diff --git a/net/ncsi/ncsi-pkt.h b/net/ncsi/ncsi-pkt.h index 2a6d83a596c9..a8e9def593f2 100644 --- a/net/ncsi/ncsi-pkt.h +++ b/net/ncsi/ncsi-pkt.h | |||
| @@ -1,10 +1,6 @@ | |||
| 1 | /* SPDX-License-Identifier: GPL-2.0-or-later */ | ||
| 1 | /* | 2 | /* |
| 2 | * Copyright Gavin Shan, IBM Corporation 2016. | 3 | * Copyright Gavin Shan, IBM Corporation 2016. |
| 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 | */ | 4 | */ |
| 9 | 5 | ||
| 10 | #ifndef __NCSI_PKT_H__ | 6 | #ifndef __NCSI_PKT_H__ |
diff --git a/net/ncsi/ncsi-rsp.c b/net/ncsi/ncsi-rsp.c index 802db01e3075..7581bf919885 100644 --- a/net/ncsi/ncsi-rsp.c +++ b/net/ncsi/ncsi-rsp.c | |||
| @@ -1,10 +1,6 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-or-later | ||
| 1 | /* | 2 | /* |
| 2 | * Copyright Gavin Shan, IBM Corporation 2016. | 3 | * Copyright Gavin Shan, IBM Corporation 2016. |
| 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 | */ | 4 | */ |
| 9 | 5 | ||
| 10 | #include <linux/module.h> | 6 | #include <linux/module.h> |
diff --git a/net/netfilter/ipvs/ip_vs_app.c b/net/netfilter/ipvs/ip_vs_app.c index 7588aeaa605f..bfd4365a8d73 100644 --- a/net/netfilter/ipvs/ip_vs_app.c +++ b/net/netfilter/ipvs/ip_vs_app.c | |||
| @@ -1,13 +1,9 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-or-later | ||
| 1 | /* | 2 | /* |
| 2 | * ip_vs_app.c: Application module support for IPVS | 3 | * ip_vs_app.c: Application module support for IPVS |
| 3 | * | 4 | * |
| 4 | * Authors: Wensong Zhang <wensong@linuxvirtualserver.org> | 5 | * Authors: Wensong Zhang <wensong@linuxvirtualserver.org> |
| 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 License | ||
| 8 | * as published by the Free Software Foundation; either version | ||
| 9 | * 2 of the License, or (at your option) any later version. | ||
| 10 | * | ||
| 11 | * Most code here is taken from ip_masq_app.c in kernel 2.2. The difference | 7 | * Most code here is taken from ip_masq_app.c in kernel 2.2. The difference |
| 12 | * is that ip_vs_app module handles the reverse direction (incoming requests | 8 | * is that ip_vs_app module handles the reverse direction (incoming requests |
| 13 | * and outgoing responses). | 9 | * and outgoing responses). |
| @@ -15,7 +11,6 @@ | |||
| 15 | * IP_MASQ_APP application masquerading module | 11 | * IP_MASQ_APP application masquerading module |
| 16 | * | 12 | * |
| 17 | * Author: Juan Jose Ciarlante, <jjciarla@raiz.uncu.edu.ar> | 13 | * Author: Juan Jose Ciarlante, <jjciarla@raiz.uncu.edu.ar> |
| 18 | * | ||
| 19 | */ | 14 | */ |
| 20 | 15 | ||
| 21 | #define KMSG_COMPONENT "IPVS" | 16 | #define KMSG_COMPONENT "IPVS" |
diff --git a/net/netfilter/ipvs/ip_vs_conn.c b/net/netfilter/ipvs/ip_vs_conn.c index 5b2b17867cb1..02f2f636798d 100644 --- a/net/netfilter/ipvs/ip_vs_conn.c +++ b/net/netfilter/ipvs/ip_vs_conn.c | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-or-later | ||
| 1 | /* | 2 | /* |
| 2 | * IPVS An implementation of the IP virtual server support for the | 3 | * IPVS An implementation of the IP virtual server support for the |
| 3 | * LINUX operating system. IPVS is now implemented as a module | 4 | * LINUX operating system. IPVS is now implemented as a module |
| @@ -9,17 +10,11 @@ | |||
| 9 | * Peter Kese <peter.kese@ijs.si> | 10 | * Peter Kese <peter.kese@ijs.si> |
| 10 | * Julian Anastasov <ja@ssi.bg> | 11 | * Julian Anastasov <ja@ssi.bg> |
| 11 | * | 12 | * |
| 12 | * This program is free software; you can redistribute it and/or | ||
| 13 | * modify it under the terms of the GNU General Public License | ||
| 14 | * as published by the Free Software Foundation; either version | ||
| 15 | * 2 of the License, or (at your option) any later version. | ||
| 16 | * | ||
| 17 | * The IPVS code for kernel 2.2 was done by Wensong Zhang and Peter Kese, | 13 | * The IPVS code for kernel 2.2 was done by Wensong Zhang and Peter Kese, |
| 18 | * with changes/fixes from Julian Anastasov, Lars Marowsky-Bree, Horms | 14 | * with changes/fixes from Julian Anastasov, Lars Marowsky-Bree, Horms |
| 19 | * and others. Many code here is taken from IP MASQ code of kernel 2.2. | 15 | * and others. Many code here is taken from IP MASQ code of kernel 2.2. |
| 20 | * | 16 | * |
| 21 | * Changes: | 17 | * Changes: |
| 22 | * | ||
| 23 | */ | 18 | */ |
| 24 | 19 | ||
| 25 | #define KMSG_COMPONENT "IPVS" | 20 | #define KMSG_COMPONENT "IPVS" |
diff --git a/net/netfilter/ipvs/ip_vs_core.c b/net/netfilter/ipvs/ip_vs_core.c index 14457551bcb4..7138556b206b 100644 --- a/net/netfilter/ipvs/ip_vs_core.c +++ b/net/netfilter/ipvs/ip_vs_core.c | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-or-later | ||
| 1 | /* | 2 | /* |
| 2 | * IPVS An implementation of the IP virtual server support for the | 3 | * IPVS An implementation of the IP virtual server support for the |
| 3 | * LINUX operating system. IPVS is now implemented as a module | 4 | * LINUX operating system. IPVS is now implemented as a module |
| @@ -9,11 +10,6 @@ | |||
| 9 | * Peter Kese <peter.kese@ijs.si> | 10 | * Peter Kese <peter.kese@ijs.si> |
| 10 | * Julian Anastasov <ja@ssi.bg> | 11 | * Julian Anastasov <ja@ssi.bg> |
| 11 | * | 12 | * |
| 12 | * This program is free software; you can redistribute it and/or | ||
| 13 | * modify it under the terms of the GNU General Public License | ||
| 14 | * as published by the Free Software Foundation; either version | ||
| 15 | * 2 of the License, or (at your option) any later version. | ||
| 16 | * | ||
| 17 | * The IPVS code for kernel 2.2 was done by Wensong Zhang and Peter Kese, | 13 | * The IPVS code for kernel 2.2 was done by Wensong Zhang and Peter Kese, |
| 18 | * with changes/fixes from Julian Anastasov, Lars Marowsky-Bree, Horms | 14 | * with changes/fixes from Julian Anastasov, Lars Marowsky-Bree, Horms |
| 19 | * and others. | 15 | * and others. |
| @@ -21,7 +17,6 @@ | |||
| 21 | * Changes: | 17 | * Changes: |
| 22 | * Paul `Rusty' Russell properly handle non-linear skbs | 18 | * Paul `Rusty' Russell properly handle non-linear skbs |
| 23 | * Harald Welte don't use nfcache | 19 | * Harald Welte don't use nfcache |
| 24 | * | ||
| 25 | */ | 20 | */ |
| 26 | 21 | ||
| 27 | #define KMSG_COMPONENT "IPVS" | 22 | #define KMSG_COMPONENT "IPVS" |
| @@ -2312,7 +2307,6 @@ static void __net_exit __ip_vs_cleanup(struct net *net) | |||
| 2312 | { | 2307 | { |
| 2313 | struct netns_ipvs *ipvs = net_ipvs(net); | 2308 | struct netns_ipvs *ipvs = net_ipvs(net); |
| 2314 | 2309 | ||
| 2315 | nf_unregister_net_hooks(net, ip_vs_ops, ARRAY_SIZE(ip_vs_ops)); | ||
| 2316 | ip_vs_service_net_cleanup(ipvs); /* ip_vs_flush() with locks */ | 2310 | ip_vs_service_net_cleanup(ipvs); /* ip_vs_flush() with locks */ |
| 2317 | ip_vs_conn_net_cleanup(ipvs); | 2311 | ip_vs_conn_net_cleanup(ipvs); |
| 2318 | ip_vs_app_net_cleanup(ipvs); | 2312 | ip_vs_app_net_cleanup(ipvs); |
| @@ -2327,6 +2321,7 @@ static void __net_exit __ip_vs_dev_cleanup(struct net *net) | |||
| 2327 | { | 2321 | { |
| 2328 | struct netns_ipvs *ipvs = net_ipvs(net); | 2322 | struct netns_ipvs *ipvs = net_ipvs(net); |
| 2329 | EnterFunction(2); | 2323 | EnterFunction(2); |
| 2324 | nf_unregister_net_hooks(net, ip_vs_ops, ARRAY_SIZE(ip_vs_ops)); | ||
| 2330 | ipvs->enable = 0; /* Disable packet reception */ | 2325 | ipvs->enable = 0; /* Disable packet reception */ |
| 2331 | smp_wmb(); | 2326 | smp_wmb(); |
| 2332 | ip_vs_sync_net_cleanup(ipvs); | 2327 | ip_vs_sync_net_cleanup(ipvs); |
diff --git a/net/netfilter/ipvs/ip_vs_ctl.c b/net/netfilter/ipvs/ip_vs_ctl.c index 0e887159425c..776c87ed4813 100644 --- a/net/netfilter/ipvs/ip_vs_ctl.c +++ b/net/netfilter/ipvs/ip_vs_ctl.c | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-or-later | ||
| 1 | /* | 2 | /* |
| 2 | * IPVS An implementation of the IP virtual server support for the | 3 | * IPVS An implementation of the IP virtual server support for the |
| 3 | * LINUX operating system. IPVS is now implemented as a module | 4 | * LINUX operating system. IPVS is now implemented as a module |
| @@ -9,13 +10,7 @@ | |||
| 9 | * Peter Kese <peter.kese@ijs.si> | 10 | * Peter Kese <peter.kese@ijs.si> |
| 10 | * Julian Anastasov <ja@ssi.bg> | 11 | * Julian Anastasov <ja@ssi.bg> |
| 11 | * | 12 | * |
| 12 | * This program is free software; you can redistribute it and/or | ||
| 13 | * modify it under the terms of the GNU General Public License | ||
| 14 | * as published by the Free Software Foundation; either version | ||
| 15 | * 2 of the License, or (at your option) any later version. | ||
| 16 | * | ||
| 17 | * Changes: | 13 | * Changes: |
| 18 | * | ||
| 19 | */ | 14 | */ |
| 20 | 15 | ||
| 21 | #define KMSG_COMPONENT "IPVS" | 16 | #define KMSG_COMPONENT "IPVS" |
diff --git a/net/netfilter/ipvs/ip_vs_dh.c b/net/netfilter/ipvs/ip_vs_dh.c index 07459e71d907..5e6ec32aff2b 100644 --- a/net/netfilter/ipvs/ip_vs_dh.c +++ b/net/netfilter/ipvs/ip_vs_dh.c | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-or-later | ||
| 1 | /* | 2 | /* |
| 2 | * IPVS: Destination Hashing scheduling module | 3 | * IPVS: Destination Hashing scheduling module |
| 3 | * | 4 | * |
| @@ -6,13 +7,7 @@ | |||
| 6 | * Inspired by the consistent hashing scheduler patch from | 7 | * Inspired by the consistent hashing scheduler patch from |
| 7 | * Thomas Proell <proellt@gmx.de> | 8 | * Thomas Proell <proellt@gmx.de> |
| 8 | * | 9 | * |
| 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 | * as published by the Free Software Foundation; either version | ||
| 12 | * 2 of the License, or (at your option) any later version. | ||
| 13 | * | ||
| 14 | * Changes: | 10 | * Changes: |
| 15 | * | ||
| 16 | */ | 11 | */ |
| 17 | 12 | ||
| 18 | /* | 13 | /* |
diff --git a/net/netfilter/ipvs/ip_vs_est.c b/net/netfilter/ipvs/ip_vs_est.c index 489055091a9b..05b8112ffb37 100644 --- a/net/netfilter/ipvs/ip_vs_est.c +++ b/net/netfilter/ipvs/ip_vs_est.c | |||
| @@ -1,13 +1,9 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-or-later | ||
| 1 | /* | 2 | /* |
| 2 | * ip_vs_est.c: simple rate estimator for IPVS | 3 | * ip_vs_est.c: simple rate estimator for IPVS |
| 3 | * | 4 | * |
| 4 | * Authors: Wensong Zhang <wensong@linuxvirtualserver.org> | 5 | * Authors: Wensong Zhang <wensong@linuxvirtualserver.org> |
| 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 License | ||
| 8 | * as published by the Free Software Foundation; either version | ||
| 9 | * 2 of the License, or (at your option) any later version. | ||
| 10 | * | ||
| 11 | * Changes: Hans Schillstrom <hans.schillstrom@ericsson.com> | 7 | * Changes: Hans Schillstrom <hans.schillstrom@ericsson.com> |
| 12 | * Network name space (netns) aware. | 8 | * Network name space (netns) aware. |
| 13 | * Global data moved to netns i.e struct netns_ipvs | 9 | * Global data moved to netns i.e struct netns_ipvs |
diff --git a/net/netfilter/ipvs/ip_vs_fo.c b/net/netfilter/ipvs/ip_vs_fo.c index e09874d02938..b846cc385279 100644 --- a/net/netfilter/ipvs/ip_vs_fo.c +++ b/net/netfilter/ipvs/ip_vs_fo.c | |||
| @@ -1,16 +1,11 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-or-later | ||
| 1 | /* | 2 | /* |
| 2 | * IPVS: Weighted Fail Over module | 3 | * IPVS: Weighted Fail Over module |
| 3 | * | 4 | * |
| 4 | * Authors: Kenny Mathis <kmathis@chokepoint.net> | 5 | * Authors: Kenny Mathis <kmathis@chokepoint.net> |
| 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 License | ||
| 8 | * as published by the Free Software Foundation; either version | ||
| 9 | * 2 of the License, or (at your option) any later version. | ||
| 10 | * | ||
| 11 | * Changes: | 7 | * Changes: |
| 12 | * Kenny Mathis : added initial functionality based on weight | 8 | * Kenny Mathis : added initial functionality based on weight |
| 13 | * | ||
| 14 | */ | 9 | */ |
| 15 | 10 | ||
| 16 | #define KMSG_COMPONENT "IPVS" | 11 | #define KMSG_COMPONENT "IPVS" |
diff --git a/net/netfilter/ipvs/ip_vs_ftp.c b/net/netfilter/ipvs/ip_vs_ftp.c index fe69d46ff779..c244b2545e24 100644 --- a/net/netfilter/ipvs/ip_vs_ftp.c +++ b/net/netfilter/ipvs/ip_vs_ftp.c | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-or-later | ||
| 1 | /* | 2 | /* |
| 2 | * ip_vs_ftp.c: IPVS ftp application module | 3 | * ip_vs_ftp.c: IPVS ftp application module |
| 3 | * | 4 | * |
| @@ -5,12 +6,6 @@ | |||
| 5 | * | 6 | * |
| 6 | * Changes: | 7 | * Changes: |
| 7 | * | 8 | * |
| 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 | * as published by the Free Software Foundation; either version | ||
| 12 | * 2 of the License, or (at your option) any later version. | ||
| 13 | * | ||
| 14 | * Most code here is taken from ip_masq_ftp.c in kernel 2.2. The difference | 9 | * Most code here is taken from ip_masq_ftp.c in kernel 2.2. The difference |
| 15 | * is that ip_vs_ftp module handles the reverse direction to ip_masq_ftp. | 10 | * is that ip_vs_ftp module handles the reverse direction to ip_masq_ftp. |
| 16 | * | 11 | * |
| @@ -19,7 +14,6 @@ | |||
| 19 | * Version: @(#)ip_masq_ftp.c 0.04 02/05/96 | 14 | * Version: @(#)ip_masq_ftp.c 0.04 02/05/96 |
| 20 | * | 15 | * |
| 21 | * Author: Wouter Gadeyne | 16 | * Author: Wouter Gadeyne |
| 22 | * | ||
| 23 | */ | 17 | */ |
| 24 | 18 | ||
| 25 | #define KMSG_COMPONENT "IPVS" | 19 | #define KMSG_COMPONENT "IPVS" |
diff --git a/net/netfilter/ipvs/ip_vs_lblc.c b/net/netfilter/ipvs/ip_vs_lblc.c index b9f375e6dc93..7ac7473e3804 100644 --- a/net/netfilter/ipvs/ip_vs_lblc.c +++ b/net/netfilter/ipvs/ip_vs_lblc.c | |||
| @@ -1,13 +1,9 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-or-later | ||
| 1 | /* | 2 | /* |
| 2 | * IPVS: Locality-Based Least-Connection scheduling module | 3 | * IPVS: Locality-Based Least-Connection scheduling module |
| 3 | * | 4 | * |
| 4 | * Authors: Wensong Zhang <wensong@gnuchina.org> | 5 | * Authors: Wensong Zhang <wensong@gnuchina.org> |
| 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 License | ||
| 8 | * as published by the Free Software Foundation; either version | ||
| 9 | * 2 of the License, or (at your option) any later version. | ||
| 10 | * | ||
| 11 | * Changes: | 7 | * Changes: |
| 12 | * Martin Hamilton : fixed the terrible locking bugs | 8 | * Martin Hamilton : fixed the terrible locking bugs |
| 13 | * *lock(tbl->lock) ==> *lock(&tbl->lock) | 9 | * *lock(tbl->lock) ==> *lock(&tbl->lock) |
| @@ -18,7 +14,6 @@ | |||
| 18 | * Julian Anastasov : replaced del_timer call with del_timer_sync | 14 | * Julian Anastasov : replaced del_timer call with del_timer_sync |
| 19 | * to avoid the possible race between timer | 15 | * to avoid the possible race between timer |
| 20 | * handler and del_timer thread in SMP | 16 | * handler and del_timer thread in SMP |
| 21 | * | ||
| 22 | */ | 17 | */ |
| 23 | 18 | ||
| 24 | /* | 19 | /* |
diff --git a/net/netfilter/ipvs/ip_vs_lblcr.c b/net/netfilter/ipvs/ip_vs_lblcr.c index 542c4949937a..c8b5a504476c 100644 --- a/net/netfilter/ipvs/ip_vs_lblcr.c +++ b/net/netfilter/ipvs/ip_vs_lblcr.c | |||
| @@ -1,17 +1,12 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-or-later | ||
| 1 | /* | 2 | /* |
| 2 | * IPVS: Locality-Based Least-Connection with Replication scheduler | 3 | * IPVS: Locality-Based Least-Connection with Replication scheduler |
| 3 | * | 4 | * |
| 4 | * Authors: Wensong Zhang <wensong@gnuchina.org> | 5 | * Authors: Wensong Zhang <wensong@gnuchina.org> |
| 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 License | ||
| 8 | * as published by the Free Software Foundation; either version | ||
| 9 | * 2 of the License, or (at your option) any later version. | ||
| 10 | * | ||
| 11 | * Changes: | 7 | * Changes: |
| 12 | * Julian Anastasov : Added the missing (dest->weight>0) | 8 | * Julian Anastasov : Added the missing (dest->weight>0) |
| 13 | * condition in the ip_vs_dest_set_max. | 9 | * condition in the ip_vs_dest_set_max. |
| 14 | * | ||
| 15 | */ | 10 | */ |
| 16 | 11 | ||
| 17 | /* | 12 | /* |
diff --git a/net/netfilter/ipvs/ip_vs_lc.c b/net/netfilter/ipvs/ip_vs_lc.c index 19a0769a989a..9d34d81fc6f1 100644 --- a/net/netfilter/ipvs/ip_vs_lc.c +++ b/net/netfilter/ipvs/ip_vs_lc.c | |||
| @@ -1,17 +1,12 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-or-later | ||
| 1 | /* | 2 | /* |
| 2 | * IPVS: Least-Connection Scheduling module | 3 | * IPVS: Least-Connection Scheduling module |
| 3 | * | 4 | * |
| 4 | * Authors: Wensong Zhang <wensong@linuxvirtualserver.org> | 5 | * Authors: Wensong Zhang <wensong@linuxvirtualserver.org> |
| 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 License | ||
| 8 | * as published by the Free Software Foundation; either version | ||
| 9 | * 2 of the License, or (at your option) any later version. | ||
| 10 | * | ||
| 11 | * Changes: | 7 | * Changes: |
| 12 | * Wensong Zhang : added the ip_vs_lc_update_svc | 8 | * Wensong Zhang : added the ip_vs_lc_update_svc |
| 13 | * Wensong Zhang : added any dest with weight=0 is quiesced | 9 | * Wensong Zhang : added any dest with weight=0 is quiesced |
| 14 | * | ||
| 15 | */ | 10 | */ |
| 16 | 11 | ||
| 17 | #define KMSG_COMPONENT "IPVS" | 12 | #define KMSG_COMPONENT "IPVS" |
diff --git a/net/netfilter/ipvs/ip_vs_nq.c b/net/netfilter/ipvs/ip_vs_nq.c index 7d9d4ac596ca..f56862a87518 100644 --- a/net/netfilter/ipvs/ip_vs_nq.c +++ b/net/netfilter/ipvs/ip_vs_nq.c | |||
| @@ -1,15 +1,10 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-or-later | ||
| 1 | /* | 2 | /* |
| 2 | * IPVS: Never Queue scheduling module | 3 | * IPVS: Never Queue scheduling module |
| 3 | * | 4 | * |
| 4 | * Authors: Wensong Zhang <wensong@linuxvirtualserver.org> | 5 | * Authors: Wensong Zhang <wensong@linuxvirtualserver.org> |
| 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 License | ||
| 8 | * as published by the Free Software Foundation; either version | ||
| 9 | * 2 of the License, or (at your option) any later version. | ||
| 10 | * | ||
| 11 | * Changes: | 7 | * Changes: |
| 12 | * | ||
| 13 | */ | 8 | */ |
| 14 | 9 | ||
| 15 | /* | 10 | /* |
diff --git a/net/netfilter/ipvs/ip_vs_ovf.c b/net/netfilter/ipvs/ip_vs_ovf.c index f7d62c3b7329..78b074cd5464 100644 --- a/net/netfilter/ipvs/ip_vs_ovf.c +++ b/net/netfilter/ipvs/ip_vs_ovf.c | |||
| @@ -1,20 +1,15 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-or-later | ||
| 1 | /* | 2 | /* |
| 2 | * IPVS: Overflow-Connection Scheduling module | 3 | * IPVS: Overflow-Connection Scheduling module |
| 3 | * | 4 | * |
| 4 | * Authors: Raducu Deaconu <rhadoo_io@yahoo.com> | 5 | * Authors: Raducu Deaconu <rhadoo_io@yahoo.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 License | ||
| 8 | * as published by the Free Software Foundation; either version | ||
| 9 | * 2 of the License, or (at your option) any later version. | ||
| 10 | * | ||
| 11 | * Scheduler implements "overflow" loadbalancing according to number of active | 7 | * Scheduler implements "overflow" loadbalancing according to number of active |
| 12 | * connections , will keep all conections to the node with the highest weight | 8 | * connections , will keep all conections to the node with the highest weight |
| 13 | * and overflow to the next node if the number of connections exceeds the node's | 9 | * and overflow to the next node if the number of connections exceeds the node's |
| 14 | * weight. | 10 | * weight. |
| 15 | * Note that this scheduler might not be suitable for UDP because it only uses | 11 | * Note that this scheduler might not be suitable for UDP because it only uses |
| 16 | * active connections | 12 | * active connections |
| 17 | * | ||
| 18 | */ | 13 | */ |
| 19 | 14 | ||
| 20 | #define KMSG_COMPONENT "IPVS" | 15 | #define KMSG_COMPONENT "IPVS" |
diff --git a/net/netfilter/ipvs/ip_vs_proto.c b/net/netfilter/ipvs/ip_vs_proto.c index 54ee84adf0bd..f100da4ba3bc 100644 --- a/net/netfilter/ipvs/ip_vs_proto.c +++ b/net/netfilter/ipvs/ip_vs_proto.c | |||
| @@ -1,16 +1,11 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-or-later | ||
| 1 | /* | 2 | /* |
| 2 | * ip_vs_proto.c: transport protocol load balancing support for IPVS | 3 | * ip_vs_proto.c: transport protocol load balancing support for IPVS |
| 3 | * | 4 | * |
| 4 | * Authors: Wensong Zhang <wensong@linuxvirtualserver.org> | 5 | * Authors: Wensong Zhang <wensong@linuxvirtualserver.org> |
| 5 | * Julian Anastasov <ja@ssi.bg> | 6 | * Julian Anastasov <ja@ssi.bg> |
| 6 | * | 7 | * |
| 7 | * This program 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 | * Changes: | 8 | * Changes: |
| 13 | * | ||
| 14 | */ | 9 | */ |
| 15 | 10 | ||
| 16 | #define KMSG_COMPONENT "IPVS" | 11 | #define KMSG_COMPONENT "IPVS" |
diff --git a/net/netfilter/ipvs/ip_vs_proto_tcp.c b/net/netfilter/ipvs/ip_vs_proto_tcp.c index 00ce07dda980..915ac8206076 100644 --- a/net/netfilter/ipvs/ip_vs_proto_tcp.c +++ b/net/netfilter/ipvs/ip_vs_proto_tcp.c | |||
| @@ -1,14 +1,10 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-or-later | ||
| 1 | /* | 2 | /* |
| 2 | * ip_vs_proto_tcp.c: TCP load balancing support for IPVS | 3 | * ip_vs_proto_tcp.c: TCP load balancing support for IPVS |
| 3 | * | 4 | * |
| 4 | * Authors: Wensong Zhang <wensong@linuxvirtualserver.org> | 5 | * Authors: Wensong Zhang <wensong@linuxvirtualserver.org> |
| 5 | * Julian Anastasov <ja@ssi.bg> | 6 | * Julian Anastasov <ja@ssi.bg> |
| 6 | * | 7 | * |
| 7 | * This program 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 | * Changes: Hans Schillstrom <hans.schillstrom@ericsson.com> | 8 | * Changes: Hans Schillstrom <hans.schillstrom@ericsson.com> |
| 13 | * | 9 | * |
| 14 | * Network name space (netns) aware. | 10 | * Network name space (netns) aware. |
diff --git a/net/netfilter/ipvs/ip_vs_proto_udp.c b/net/netfilter/ipvs/ip_vs_proto_udp.c index 92c078abcb3e..379140075e95 100644 --- a/net/netfilter/ipvs/ip_vs_proto_udp.c +++ b/net/netfilter/ipvs/ip_vs_proto_udp.c | |||
| @@ -1,17 +1,12 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-or-later | ||
| 1 | /* | 2 | /* |
| 2 | * ip_vs_proto_udp.c: UDP load balancing support for IPVS | 3 | * ip_vs_proto_udp.c: UDP load balancing support for IPVS |
| 3 | * | 4 | * |
| 4 | * Authors: Wensong Zhang <wensong@linuxvirtualserver.org> | 5 | * Authors: Wensong Zhang <wensong@linuxvirtualserver.org> |
| 5 | * Julian Anastasov <ja@ssi.bg> | 6 | * Julian Anastasov <ja@ssi.bg> |
| 6 | * | 7 | * |
| 7 | * This program 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 | * Changes: Hans Schillstrom <hans.schillstrom@ericsson.com> | 8 | * Changes: Hans Schillstrom <hans.schillstrom@ericsson.com> |
| 13 | * Network name space (netns) aware. | 9 | * Network name space (netns) aware. |
| 14 | * | ||
| 15 | */ | 10 | */ |
| 16 | 11 | ||
| 17 | #define KMSG_COMPONENT "IPVS" | 12 | #define KMSG_COMPONENT "IPVS" |
diff --git a/net/netfilter/ipvs/ip_vs_rr.c b/net/netfilter/ipvs/ip_vs_rr.c index ee0530d14c5f..38495c6f6c7c 100644 --- a/net/netfilter/ipvs/ip_vs_rr.c +++ b/net/netfilter/ipvs/ip_vs_rr.c | |||
| @@ -1,14 +1,10 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-or-later | ||
| 1 | /* | 2 | /* |
| 2 | * IPVS: Round-Robin Scheduling module | 3 | * IPVS: Round-Robin Scheduling module |
| 3 | * | 4 | * |
| 4 | * Authors: Wensong Zhang <wensong@linuxvirtualserver.org> | 5 | * Authors: Wensong Zhang <wensong@linuxvirtualserver.org> |
| 5 | * Peter Kese <peter.kese@ijs.si> | 6 | * Peter Kese <peter.kese@ijs.si> |
| 6 | * | 7 | * |
| 7 | * This program 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 | * Fixes/Changes: | 8 | * Fixes/Changes: |
| 13 | * Wensong Zhang : changed the ip_vs_rr_schedule to return dest | 9 | * Wensong Zhang : changed the ip_vs_rr_schedule to return dest |
| 14 | * Julian Anastasov : fixed the NULL pointer access bug in debugging | 10 | * Julian Anastasov : fixed the NULL pointer access bug in debugging |
| @@ -16,7 +12,6 @@ | |||
| 16 | * Wensong Zhang : changed for the d-linked destination list | 12 | * Wensong Zhang : changed for the d-linked destination list |
| 17 | * Wensong Zhang : added the ip_vs_rr_update_svc | 13 | * Wensong Zhang : added the ip_vs_rr_update_svc |
| 18 | * Wensong Zhang : added any dest with weight=0 is quiesced | 14 | * Wensong Zhang : added any dest with weight=0 is quiesced |
| 19 | * | ||
| 20 | */ | 15 | */ |
| 21 | 16 | ||
| 22 | #define KMSG_COMPONENT "IPVS" | 17 | #define KMSG_COMPONENT "IPVS" |
diff --git a/net/netfilter/ipvs/ip_vs_sched.c b/net/netfilter/ipvs/ip_vs_sched.c index a2ff7d746ebf..2f9d5cd5daee 100644 --- a/net/netfilter/ipvs/ip_vs_sched.c +++ b/net/netfilter/ipvs/ip_vs_sched.c | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-or-later | ||
| 1 | /* | 2 | /* |
| 2 | * IPVS An implementation of the IP virtual server support for the | 3 | * IPVS An implementation of the IP virtual server support for the |
| 3 | * LINUX operating system. IPVS is now implemented as a module | 4 | * LINUX operating system. IPVS is now implemented as a module |
| @@ -8,13 +9,7 @@ | |||
| 8 | * Authors: Wensong Zhang <wensong@linuxvirtualserver.org> | 9 | * Authors: Wensong Zhang <wensong@linuxvirtualserver.org> |
| 9 | * Peter Kese <peter.kese@ijs.si> | 10 | * Peter Kese <peter.kese@ijs.si> |
| 10 | * | 11 | * |
| 11 | * This program 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 | * Changes: | 12 | * Changes: |
| 17 | * | ||
| 18 | */ | 13 | */ |
| 19 | 14 | ||
| 20 | #define KMSG_COMPONENT "IPVS" | 15 | #define KMSG_COMPONENT "IPVS" |
diff --git a/net/netfilter/ipvs/ip_vs_sed.c b/net/netfilter/ipvs/ip_vs_sed.c index ab23cf203437..7663288e5358 100644 --- a/net/netfilter/ipvs/ip_vs_sed.c +++ b/net/netfilter/ipvs/ip_vs_sed.c | |||
| @@ -1,15 +1,10 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-or-later | ||
| 1 | /* | 2 | /* |
| 2 | * IPVS: Shortest Expected Delay scheduling module | 3 | * IPVS: Shortest Expected Delay scheduling module |
| 3 | * | 4 | * |
| 4 | * Authors: Wensong Zhang <wensong@linuxvirtualserver.org> | 5 | * Authors: Wensong Zhang <wensong@linuxvirtualserver.org> |
| 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 License | ||
| 8 | * as published by the Free Software Foundation; either version | ||
| 9 | * 2 of the License, or (at your option) any later version. | ||
| 10 | * | ||
| 11 | * Changes: | 7 | * Changes: |
| 12 | * | ||
| 13 | */ | 8 | */ |
| 14 | 9 | ||
| 15 | /* | 10 | /* |
diff --git a/net/netfilter/ipvs/ip_vs_sh.c b/net/netfilter/ipvs/ip_vs_sh.c index 1e01c782583a..c2028e412092 100644 --- a/net/netfilter/ipvs/ip_vs_sh.c +++ b/net/netfilter/ipvs/ip_vs_sh.c | |||
| @@ -1,15 +1,10 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-or-later | ||
| 1 | /* | 2 | /* |
| 2 | * IPVS: Source Hashing scheduling module | 3 | * IPVS: Source Hashing scheduling module |
| 3 | * | 4 | * |
| 4 | * Authors: Wensong Zhang <wensong@gnuchina.org> | 5 | * Authors: Wensong Zhang <wensong@gnuchina.org> |
| 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 License | ||
| 8 | * as published by the Free Software Foundation; either version | ||
| 9 | * 2 of the License, or (at your option) any later version. | ||
| 10 | * | ||
| 11 | * Changes: | 7 | * Changes: |
| 12 | * | ||
| 13 | */ | 8 | */ |
| 14 | 9 | ||
| 15 | /* | 10 | /* |
diff --git a/net/netfilter/ipvs/ip_vs_wlc.c b/net/netfilter/ipvs/ip_vs_wlc.c index 6add39e0ec20..09f584b564a0 100644 --- a/net/netfilter/ipvs/ip_vs_wlc.c +++ b/net/netfilter/ipvs/ip_vs_wlc.c | |||
| @@ -1,14 +1,10 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-or-later | ||
| 1 | /* | 2 | /* |
| 2 | * IPVS: Weighted Least-Connection Scheduling module | 3 | * IPVS: Weighted Least-Connection Scheduling module |
| 3 | * | 4 | * |
| 4 | * Authors: Wensong Zhang <wensong@linuxvirtualserver.org> | 5 | * Authors: Wensong Zhang <wensong@linuxvirtualserver.org> |
| 5 | * Peter Kese <peter.kese@ijs.si> | 6 | * Peter Kese <peter.kese@ijs.si> |
| 6 | * | 7 | * |
| 7 | * This program 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 | * Changes: | 8 | * Changes: |
| 13 | * Wensong Zhang : changed the ip_vs_wlc_schedule to return dest | 9 | * Wensong Zhang : changed the ip_vs_wlc_schedule to return dest |
| 14 | * Wensong Zhang : changed to use the inactconns in scheduling | 10 | * Wensong Zhang : changed to use the inactconns in scheduling |
| @@ -16,7 +12,6 @@ | |||
| 16 | * Wensong Zhang : changed for the d-linked destination list | 12 | * Wensong Zhang : changed for the d-linked destination list |
| 17 | * Wensong Zhang : added the ip_vs_wlc_update_svc | 13 | * Wensong Zhang : added the ip_vs_wlc_update_svc |
| 18 | * Wensong Zhang : added any dest with weight=0 is quiesced | 14 | * Wensong Zhang : added any dest with weight=0 is quiesced |
| 19 | * | ||
| 20 | */ | 15 | */ |
| 21 | 16 | ||
| 22 | #define KMSG_COMPONENT "IPVS" | 17 | #define KMSG_COMPONENT "IPVS" |
diff --git a/net/netfilter/ipvs/ip_vs_wrr.c b/net/netfilter/ipvs/ip_vs_wrr.c index 62258dd457ac..1bc7a0789d85 100644 --- a/net/netfilter/ipvs/ip_vs_wrr.c +++ b/net/netfilter/ipvs/ip_vs_wrr.c | |||
| @@ -1,13 +1,9 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-or-later | ||
| 1 | /* | 2 | /* |
| 2 | * IPVS: Weighted Round-Robin Scheduling module | 3 | * IPVS: Weighted Round-Robin Scheduling module |
| 3 | * | 4 | * |
| 4 | * Authors: Wensong Zhang <wensong@linuxvirtualserver.org> | 5 | * Authors: Wensong Zhang <wensong@linuxvirtualserver.org> |
| 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 License | ||
| 8 | * as published by the Free Software Foundation; either version | ||
| 9 | * 2 of the License, or (at your option) any later version. | ||
| 10 | * | ||
| 11 | * Changes: | 7 | * Changes: |
| 12 | * Wensong Zhang : changed the ip_vs_wrr_schedule to return dest | 8 | * Wensong Zhang : changed the ip_vs_wrr_schedule to return dest |
| 13 | * Wensong Zhang : changed some comestics things for debugging | 9 | * Wensong Zhang : changed some comestics things for debugging |
| @@ -15,7 +11,6 @@ | |||
| 15 | * Wensong Zhang : added the ip_vs_wrr_update_svc | 11 | * Wensong Zhang : added the ip_vs_wrr_update_svc |
| 16 | * Julian Anastasov : fixed the bug of returning destination | 12 | * Julian Anastasov : fixed the bug of returning destination |
| 17 | * with weight 0 when all weights are zero | 13 | * with weight 0 when all weights are zero |
| 18 | * | ||
| 19 | */ | 14 | */ |
| 20 | 15 | ||
| 21 | #define KMSG_COMPONENT "IPVS" | 16 | #define KMSG_COMPONENT "IPVS" |
diff --git a/net/netfilter/ipvs/ip_vs_xmit.c b/net/netfilter/ipvs/ip_vs_xmit.c index 8d6f94b67772..e101eda05d55 100644 --- a/net/netfilter/ipvs/ip_vs_xmit.c +++ b/net/netfilter/ipvs/ip_vs_xmit.c | |||
| @@ -1,14 +1,10 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-or-later | ||
| 1 | /* | 2 | /* |
| 2 | * ip_vs_xmit.c: various packet transmitters for IPVS | 3 | * ip_vs_xmit.c: various packet transmitters for IPVS |
| 3 | * | 4 | * |
| 4 | * Authors: Wensong Zhang <wensong@linuxvirtualserver.org> | 5 | * Authors: Wensong Zhang <wensong@linuxvirtualserver.org> |
| 5 | * Julian Anastasov <ja@ssi.bg> | 6 | * Julian Anastasov <ja@ssi.bg> |
| 6 | * | 7 | * |
| 7 | * This program 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 | * Changes: | 8 | * Changes: |
| 13 | * | 9 | * |
| 14 | * Description of forwarding methods: | 10 | * Description of forwarding methods: |
diff --git a/net/netfilter/nf_conntrack_amanda.c b/net/netfilter/nf_conntrack_amanda.c index dbec6fca0d9e..42ee659d0d1e 100644 --- a/net/netfilter/nf_conntrack_amanda.c +++ b/net/netfilter/nf_conntrack_amanda.c | |||
| @@ -1,13 +1,9 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-or-later | ||
| 1 | /* Amanda extension for IP connection tracking | 2 | /* Amanda extension for IP connection tracking |
| 2 | * | 3 | * |
| 3 | * (C) 2002 by Brian J. Murrell <netfilter@interlinx.bc.ca> | 4 | * (C) 2002 by Brian J. Murrell <netfilter@interlinx.bc.ca> |
| 4 | * based on HW's ip_conntrack_irc.c as well as other modules | 5 | * based on HW's ip_conntrack_irc.c as well as other modules |
| 5 | * (C) 2006 Patrick McHardy <kaber@trash.net> | 6 | * (C) 2006 Patrick McHardy <kaber@trash.net> |
| 6 | * | ||
| 7 | * This program 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 | */ | 7 | */ |
| 12 | #include <linux/kernel.h> | 8 | #include <linux/kernel.h> |
| 13 | #include <linux/module.h> | 9 | #include <linux/module.h> |
diff --git a/net/netfilter/nf_conntrack_broadcast.c b/net/netfilter/nf_conntrack_broadcast.c index 5423b197d98a..e52fcb9c9a96 100644 --- a/net/netfilter/nf_conntrack_broadcast.c +++ b/net/netfilter/nf_conntrack_broadcast.c | |||
| @@ -1,12 +1,8 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-or-later | ||
| 1 | /* | 2 | /* |
| 2 | * broadcast connection tracking helper | 3 | * broadcast connection tracking helper |
| 3 | * | 4 | * |
| 4 | * (c) 2005 Patrick McHardy <kaber@trash.net> | 5 | * (c) 2005 Patrick McHardy <kaber@trash.net> |
| 5 | * | ||
| 6 | * This program is free software; you can redistribute it and/or | ||
| 7 | * modify it under the terms of the GNU General Public License | ||
| 8 | * as published by the Free Software Foundation; either version | ||
| 9 | * 2 of the License, or (at your option) any later version. | ||
| 10 | */ | 6 | */ |
| 11 | 7 | ||
| 12 | #include <linux/module.h> | 8 | #include <linux/module.h> |
diff --git a/net/netfilter/nf_conntrack_extend.c b/net/netfilter/nf_conntrack_extend.c index 277bbfe26478..d4ed1e197921 100644 --- a/net/netfilter/nf_conntrack_extend.c +++ b/net/netfilter/nf_conntrack_extend.c | |||
| @@ -1,12 +1,8 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-or-later | ||
| 1 | /* Structure dynamic extension infrastructure | 2 | /* Structure dynamic extension infrastructure |
| 2 | * Copyright (C) 2004 Rusty Russell IBM Corporation | 3 | * Copyright (C) 2004 Rusty Russell IBM Corporation |
| 3 | * Copyright (C) 2007 Netfilter Core Team <coreteam@netfilter.org> | 4 | * Copyright (C) 2007 Netfilter Core Team <coreteam@netfilter.org> |
| 4 | * Copyright (C) 2007 USAGI/WIDE Project <http://www.linux-ipv6.org> | 5 | * Copyright (C) 2007 USAGI/WIDE Project <http://www.linux-ipv6.org> |
| 5 | * | ||
| 6 | * This program is free software; you can redistribute it and/or | ||
| 7 | * modify it under the terms of the GNU General Public License | ||
| 8 | * as published by the Free Software Foundation; either version | ||
| 9 | * 2 of the License, or (at your option) any later version. | ||
| 10 | */ | 6 | */ |
| 11 | #include <linux/kernel.h> | 7 | #include <linux/kernel.h> |
| 12 | #include <linux/kmemleak.h> | 8 | #include <linux/kmemleak.h> |
diff --git a/net/netfilter/nf_conntrack_irc.c b/net/netfilter/nf_conntrack_irc.c index 79e5014b3b0d..7ac156f1f3bc 100644 --- a/net/netfilter/nf_conntrack_irc.c +++ b/net/netfilter/nf_conntrack_irc.c | |||
| @@ -1,12 +1,8 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-or-later | ||
| 1 | /* IRC extension for IP connection tracking, Version 1.21 | 2 | /* IRC extension for IP connection tracking, Version 1.21 |
| 2 | * (C) 2000-2002 by Harald Welte <laforge@gnumonks.org> | 3 | * (C) 2000-2002 by Harald Welte <laforge@gnumonks.org> |
| 3 | * based on RR's ip_conntrack_ftp.c | 4 | * based on RR's ip_conntrack_ftp.c |
| 4 | * (C) 2006-2012 Patrick McHardy <kaber@trash.net> | 5 | * (C) 2006-2012 Patrick McHardy <kaber@trash.net> |
| 5 | * | ||
| 6 | * This program is free software; you can redistribute it and/or | ||
| 7 | * modify it under the terms of the GNU General Public License | ||
| 8 | * as published by the Free Software Foundation; either version | ||
| 9 | * 2 of the License, 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/netfilter/nf_conntrack_netbios_ns.c b/net/netfilter/nf_conntrack_netbios_ns.c index bac5848f1c8e..7f19ee259609 100644 --- a/net/netfilter/nf_conntrack_netbios_ns.c +++ b/net/netfilter/nf_conntrack_netbios_ns.c | |||
| @@ -1,12 +1,8 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-or-later | ||
| 1 | /* | 2 | /* |
| 2 | * NetBIOS name service broadcast connection tracking helper | 3 | * NetBIOS name service broadcast connection tracking helper |
| 3 | * | 4 | * |
| 4 | * (c) 2005 Patrick McHardy <kaber@trash.net> | 5 | * (c) 2005 Patrick McHardy <kaber@trash.net> |
| 5 | * | ||
| 6 | * This program is free software; you can redistribute it and/or | ||
| 7 | * modify it under the terms of the GNU General Public License | ||
| 8 | * as published by the Free Software Foundation; either version | ||
| 9 | * 2 of the License, or (at your option) any later version. | ||
| 10 | */ | 6 | */ |
| 11 | /* | 7 | /* |
| 12 | * This helper tracks locally originating NetBIOS name service | 8 | * This helper tracks locally originating NetBIOS name service |
diff --git a/net/netfilter/nf_conntrack_snmp.c b/net/netfilter/nf_conntrack_snmp.c index b8e0a22ca1a9..daacf2023fa5 100644 --- a/net/netfilter/nf_conntrack_snmp.c +++ b/net/netfilter/nf_conntrack_snmp.c | |||
| @@ -1,12 +1,8 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-or-later | ||
| 1 | /* | 2 | /* |
| 2 | * SNMP service broadcast connection tracking helper | 3 | * SNMP service broadcast connection tracking helper |
| 3 | * | 4 | * |
| 4 | * (c) 2011 Jiri Olsa <jolsa@redhat.com> | 5 | * (c) 2011 Jiri Olsa <jolsa@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 License | ||
| 8 | * as published by the Free Software Foundation; either version | ||
| 9 | * 2 of the License, or (at your option) any later version. | ||
| 10 | */ | 6 | */ |
| 11 | #include <linux/kernel.h> | 7 | #include <linux/kernel.h> |
| 12 | #include <linux/module.h> | 8 | #include <linux/module.h> |
diff --git a/net/netfilter/nf_flow_table_ip.c b/net/netfilter/nf_flow_table_ip.c index 96825e20368f..241317473114 100644 --- a/net/netfilter/nf_flow_table_ip.c +++ b/net/netfilter/nf_flow_table_ip.c | |||
| @@ -244,8 +244,7 @@ nf_flow_offload_ip_hook(void *priv, struct sk_buff *skb, | |||
| 244 | rt = (struct rtable *)flow->tuplehash[dir].tuple.dst_cache; | 244 | rt = (struct rtable *)flow->tuplehash[dir].tuple.dst_cache; |
| 245 | outdev = rt->dst.dev; | 245 | outdev = rt->dst.dev; |
| 246 | 246 | ||
| 247 | if (unlikely(nf_flow_exceeds_mtu(skb, flow->tuplehash[dir].tuple.mtu)) && | 247 | if (unlikely(nf_flow_exceeds_mtu(skb, flow->tuplehash[dir].tuple.mtu))) |
| 248 | (ip_hdr(skb)->frag_off & htons(IP_DF)) != 0) | ||
| 249 | return NF_ACCEPT; | 248 | return NF_ACCEPT; |
| 250 | 249 | ||
| 251 | if (skb_try_make_writable(skb, sizeof(*iph))) | 250 | if (skb_try_make_writable(skb, sizeof(*iph))) |
diff --git a/net/netfilter/nf_nat_amanda.c b/net/netfilter/nf_nat_amanda.c index 4e59416ea709..a352604d6186 100644 --- a/net/netfilter/nf_nat_amanda.c +++ b/net/netfilter/nf_nat_amanda.c | |||
| @@ -1,12 +1,8 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-or-later | ||
| 1 | /* Amanda extension for TCP NAT alteration. | 2 | /* Amanda extension for TCP NAT alteration. |
| 2 | * (C) 2002 by Brian J. Murrell <netfilter@interlinx.bc.ca> | 3 | * (C) 2002 by Brian J. Murrell <netfilter@interlinx.bc.ca> |
| 3 | * based on a copy of HW's ip_nat_irc.c as well as other modules | 4 | * based on a copy of HW's ip_nat_irc.c as well as other modules |
| 4 | * (C) 2006-2012 Patrick McHardy <kaber@trash.net> | 5 | * (C) 2006-2012 Patrick McHardy <kaber@trash.net> |
| 5 | * | ||
| 6 | * This program is free software; you can redistribute it and/or | ||
| 7 | * modify it under the terms of the GNU General Public License | ||
| 8 | * as published by the Free Software Foundation; either version | ||
| 9 | * 2 of the License, 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/netfilter/nf_nat_helper.c b/net/netfilter/nf_nat_helper.c index ccc06f7539d7..53aeb12b70fb 100644 --- a/net/netfilter/nf_nat_helper.c +++ b/net/netfilter/nf_nat_helper.c | |||
| @@ -170,7 +170,7 @@ nf_nat_mangle_udp_packet(struct sk_buff *skb, | |||
| 170 | if (!udph->check && skb->ip_summed != CHECKSUM_PARTIAL) | 170 | if (!udph->check && skb->ip_summed != CHECKSUM_PARTIAL) |
| 171 | return true; | 171 | return true; |
| 172 | 172 | ||
| 173 | nf_nat_csum_recalc(skb, nf_ct_l3num(ct), IPPROTO_TCP, | 173 | nf_nat_csum_recalc(skb, nf_ct_l3num(ct), IPPROTO_UDP, |
| 174 | udph, &udph->check, datalen, oldlen); | 174 | udph, &udph->check, datalen, oldlen); |
| 175 | 175 | ||
| 176 | return true; | 176 | return true; |
diff --git a/net/netfilter/nf_nat_irc.c b/net/netfilter/nf_nat_irc.c index d87cbe5e03ec..dfb7ef8845bd 100644 --- a/net/netfilter/nf_nat_irc.c +++ b/net/netfilter/nf_nat_irc.c | |||
| @@ -1,13 +1,9 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-or-later | ||
| 1 | /* IRC extension for TCP NAT alteration. | 2 | /* IRC extension for TCP NAT alteration. |
| 2 | * | 3 | * |
| 3 | * (C) 2000-2001 by Harald Welte <laforge@gnumonks.org> | 4 | * (C) 2000-2001 by Harald Welte <laforge@gnumonks.org> |
| 4 | * (C) 2004 Rusty Russell <rusty@rustcorp.com.au> IBM Corporation | 5 | * (C) 2004 Rusty Russell <rusty@rustcorp.com.au> IBM Corporation |
| 5 | * based on a copy of RR's ip_nat_ftp.c | 6 | * based on a copy of RR's ip_nat_ftp.c |
| 6 | * | ||
| 7 | * This program 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 | */ | 7 | */ |
| 12 | 8 | ||
| 13 | #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt | 9 | #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt |
diff --git a/net/netfilter/nf_queue.c b/net/netfilter/nf_queue.c index 9dc1d6e04946..b5b2be55ca82 100644 --- a/net/netfilter/nf_queue.c +++ b/net/netfilter/nf_queue.c | |||
| @@ -255,6 +255,7 @@ static unsigned int nf_iterate(struct sk_buff *skb, | |||
| 255 | repeat: | 255 | repeat: |
| 256 | verdict = nf_hook_entry_hookfn(hook, skb, state); | 256 | verdict = nf_hook_entry_hookfn(hook, skb, state); |
| 257 | if (verdict != NF_ACCEPT) { | 257 | if (verdict != NF_ACCEPT) { |
| 258 | *index = i; | ||
| 258 | if (verdict != NF_REPEAT) | 259 | if (verdict != NF_REPEAT) |
| 259 | return verdict; | 260 | return verdict; |
| 260 | goto repeat; | 261 | goto repeat; |
diff --git a/net/netfilter/nf_tables_api.c b/net/netfilter/nf_tables_api.c index 28241e82fd15..4b5159936034 100644 --- a/net/netfilter/nf_tables_api.c +++ b/net/netfilter/nf_tables_api.c | |||
| @@ -2270,13 +2270,13 @@ static int nf_tables_fill_rule_info(struct sk_buff *skb, struct net *net, | |||
| 2270 | u32 flags, int family, | 2270 | u32 flags, int family, |
| 2271 | const struct nft_table *table, | 2271 | const struct nft_table *table, |
| 2272 | const struct nft_chain *chain, | 2272 | const struct nft_chain *chain, |
| 2273 | const struct nft_rule *rule) | 2273 | const struct nft_rule *rule, |
| 2274 | const struct nft_rule *prule) | ||
| 2274 | { | 2275 | { |
| 2275 | struct nlmsghdr *nlh; | 2276 | struct nlmsghdr *nlh; |
| 2276 | struct nfgenmsg *nfmsg; | 2277 | struct nfgenmsg *nfmsg; |
| 2277 | const struct nft_expr *expr, *next; | 2278 | const struct nft_expr *expr, *next; |
| 2278 | struct nlattr *list; | 2279 | struct nlattr *list; |
| 2279 | const struct nft_rule *prule; | ||
| 2280 | u16 type = nfnl_msg_type(NFNL_SUBSYS_NFTABLES, event); | 2280 | u16 type = nfnl_msg_type(NFNL_SUBSYS_NFTABLES, event); |
| 2281 | 2281 | ||
| 2282 | nlh = nlmsg_put(skb, portid, seq, type, sizeof(struct nfgenmsg), flags); | 2282 | nlh = nlmsg_put(skb, portid, seq, type, sizeof(struct nfgenmsg), flags); |
| @@ -2296,8 +2296,7 @@ static int nf_tables_fill_rule_info(struct sk_buff *skb, struct net *net, | |||
| 2296 | NFTA_RULE_PAD)) | 2296 | NFTA_RULE_PAD)) |
| 2297 | goto nla_put_failure; | 2297 | goto nla_put_failure; |
| 2298 | 2298 | ||
| 2299 | if ((event != NFT_MSG_DELRULE) && (rule->list.prev != &chain->rules)) { | 2299 | if (event != NFT_MSG_DELRULE && prule) { |
| 2300 | prule = list_prev_entry(rule, list); | ||
| 2301 | if (nla_put_be64(skb, NFTA_RULE_POSITION, | 2300 | if (nla_put_be64(skb, NFTA_RULE_POSITION, |
| 2302 | cpu_to_be64(prule->handle), | 2301 | cpu_to_be64(prule->handle), |
| 2303 | NFTA_RULE_PAD)) | 2302 | NFTA_RULE_PAD)) |
| @@ -2344,7 +2343,7 @@ static void nf_tables_rule_notify(const struct nft_ctx *ctx, | |||
| 2344 | 2343 | ||
| 2345 | err = nf_tables_fill_rule_info(skb, ctx->net, ctx->portid, ctx->seq, | 2344 | err = nf_tables_fill_rule_info(skb, ctx->net, ctx->portid, ctx->seq, |
| 2346 | event, 0, ctx->family, ctx->table, | 2345 | event, 0, ctx->family, ctx->table, |
| 2347 | ctx->chain, rule); | 2346 | ctx->chain, rule, NULL); |
| 2348 | if (err < 0) { | 2347 | if (err < 0) { |
| 2349 | kfree_skb(skb); | 2348 | kfree_skb(skb); |
| 2350 | goto err; | 2349 | goto err; |
| @@ -2369,12 +2368,13 @@ static int __nf_tables_dump_rules(struct sk_buff *skb, | |||
| 2369 | const struct nft_chain *chain) | 2368 | const struct nft_chain *chain) |
| 2370 | { | 2369 | { |
| 2371 | struct net *net = sock_net(skb->sk); | 2370 | struct net *net = sock_net(skb->sk); |
| 2371 | const struct nft_rule *rule, *prule; | ||
| 2372 | unsigned int s_idx = cb->args[0]; | 2372 | unsigned int s_idx = cb->args[0]; |
| 2373 | const struct nft_rule *rule; | ||
| 2374 | 2373 | ||
| 2374 | prule = NULL; | ||
| 2375 | list_for_each_entry_rcu(rule, &chain->rules, list) { | 2375 | list_for_each_entry_rcu(rule, &chain->rules, list) { |
| 2376 | if (!nft_is_active(net, rule)) | 2376 | if (!nft_is_active(net, rule)) |
| 2377 | goto cont; | 2377 | goto cont_skip; |
| 2378 | if (*idx < s_idx) | 2378 | if (*idx < s_idx) |
| 2379 | goto cont; | 2379 | goto cont; |
| 2380 | if (*idx > s_idx) { | 2380 | if (*idx > s_idx) { |
| @@ -2386,11 +2386,13 @@ static int __nf_tables_dump_rules(struct sk_buff *skb, | |||
| 2386 | NFT_MSG_NEWRULE, | 2386 | NFT_MSG_NEWRULE, |
| 2387 | NLM_F_MULTI | NLM_F_APPEND, | 2387 | NLM_F_MULTI | NLM_F_APPEND, |
| 2388 | table->family, | 2388 | table->family, |
| 2389 | table, chain, rule) < 0) | 2389 | table, chain, rule, prule) < 0) |
| 2390 | return 1; | 2390 | return 1; |
| 2391 | 2391 | ||
| 2392 | nl_dump_check_consistent(cb, nlmsg_hdr(skb)); | 2392 | nl_dump_check_consistent(cb, nlmsg_hdr(skb)); |
| 2393 | cont: | 2393 | cont: |
| 2394 | prule = rule; | ||
| 2395 | cont_skip: | ||
| 2394 | (*idx)++; | 2396 | (*idx)++; |
| 2395 | } | 2397 | } |
| 2396 | return 0; | 2398 | return 0; |
| @@ -2546,7 +2548,7 @@ static int nf_tables_getrule(struct net *net, struct sock *nlsk, | |||
| 2546 | 2548 | ||
| 2547 | err = nf_tables_fill_rule_info(skb2, net, NETLINK_CB(skb).portid, | 2549 | err = nf_tables_fill_rule_info(skb2, net, NETLINK_CB(skb).portid, |
| 2548 | nlh->nlmsg_seq, NFT_MSG_NEWRULE, 0, | 2550 | nlh->nlmsg_seq, NFT_MSG_NEWRULE, 0, |
| 2549 | family, table, chain, rule); | 2551 | family, table, chain, rule, NULL); |
| 2550 | if (err < 0) | 2552 | if (err < 0) |
| 2551 | goto err; | 2553 | goto err; |
| 2552 | 2554 | ||
diff --git a/net/netfilter/nft_fib.c b/net/netfilter/nft_fib.c index 21df8cccea65..77f00a99dfab 100644 --- a/net/netfilter/nft_fib.c +++ b/net/netfilter/nft_fib.c | |||
| @@ -135,17 +135,17 @@ int nft_fib_dump(struct sk_buff *skb, const struct nft_expr *expr) | |||
| 135 | EXPORT_SYMBOL_GPL(nft_fib_dump); | 135 | EXPORT_SYMBOL_GPL(nft_fib_dump); |
| 136 | 136 | ||
| 137 | void nft_fib_store_result(void *reg, const struct nft_fib *priv, | 137 | void nft_fib_store_result(void *reg, const struct nft_fib *priv, |
| 138 | const struct nft_pktinfo *pkt, int index) | 138 | const struct net_device *dev) |
| 139 | { | 139 | { |
| 140 | struct net_device *dev; | ||
| 141 | u32 *dreg = reg; | 140 | u32 *dreg = reg; |
| 141 | int index; | ||
| 142 | 142 | ||
| 143 | switch (priv->result) { | 143 | switch (priv->result) { |
| 144 | case NFT_FIB_RESULT_OIF: | 144 | case NFT_FIB_RESULT_OIF: |
| 145 | index = dev ? dev->ifindex : 0; | ||
| 145 | *dreg = (priv->flags & NFTA_FIB_F_PRESENT) ? !!index : index; | 146 | *dreg = (priv->flags & NFTA_FIB_F_PRESENT) ? !!index : index; |
| 146 | break; | 147 | break; |
| 147 | case NFT_FIB_RESULT_OIFNAME: | 148 | case NFT_FIB_RESULT_OIFNAME: |
| 148 | dev = dev_get_by_index_rcu(nft_net(pkt), index); | ||
| 149 | if (priv->flags & NFTA_FIB_F_PRESENT) | 149 | if (priv->flags & NFTA_FIB_F_PRESENT) |
| 150 | *dreg = !!dev; | 150 | *dreg = !!dev; |
| 151 | else | 151 | else |
diff --git a/net/netfilter/nft_flow_offload.c b/net/netfilter/nft_flow_offload.c index ffb25d5e8dbe..aa5f571d4361 100644 --- a/net/netfilter/nft_flow_offload.c +++ b/net/netfilter/nft_flow_offload.c | |||
| @@ -13,7 +13,6 @@ | |||
| 13 | #include <net/netfilter/nf_conntrack_core.h> | 13 | #include <net/netfilter/nf_conntrack_core.h> |
| 14 | #include <linux/netfilter/nf_conntrack_common.h> | 14 | #include <linux/netfilter/nf_conntrack_common.h> |
| 15 | #include <net/netfilter/nf_flow_table.h> | 15 | #include <net/netfilter/nf_flow_table.h> |
| 16 | #include <net/netfilter/nf_conntrack_helper.h> | ||
| 17 | 16 | ||
| 18 | struct nft_flow_offload { | 17 | struct nft_flow_offload { |
| 19 | struct nft_flowtable *flowtable; | 18 | struct nft_flowtable *flowtable; |
| @@ -50,15 +49,20 @@ static int nft_flow_route(const struct nft_pktinfo *pkt, | |||
| 50 | return 0; | 49 | return 0; |
| 51 | } | 50 | } |
| 52 | 51 | ||
| 53 | static bool nft_flow_offload_skip(struct sk_buff *skb) | 52 | static bool nft_flow_offload_skip(struct sk_buff *skb, int family) |
| 54 | { | 53 | { |
| 55 | struct ip_options *opt = &(IPCB(skb)->opt); | ||
| 56 | |||
| 57 | if (unlikely(opt->optlen)) | ||
| 58 | return true; | ||
| 59 | if (skb_sec_path(skb)) | 54 | if (skb_sec_path(skb)) |
| 60 | return true; | 55 | return true; |
| 61 | 56 | ||
| 57 | if (family == NFPROTO_IPV4) { | ||
| 58 | const struct ip_options *opt; | ||
| 59 | |||
| 60 | opt = &(IPCB(skb)->opt); | ||
| 61 | |||
| 62 | if (unlikely(opt->optlen)) | ||
| 63 | return true; | ||
| 64 | } | ||
| 65 | |||
| 62 | return false; | 66 | return false; |
| 63 | } | 67 | } |
| 64 | 68 | ||
| @@ -68,15 +72,15 @@ static void nft_flow_offload_eval(const struct nft_expr *expr, | |||
| 68 | { | 72 | { |
| 69 | struct nft_flow_offload *priv = nft_expr_priv(expr); | 73 | struct nft_flow_offload *priv = nft_expr_priv(expr); |
| 70 | struct nf_flowtable *flowtable = &priv->flowtable->data; | 74 | struct nf_flowtable *flowtable = &priv->flowtable->data; |
| 71 | const struct nf_conn_help *help; | ||
| 72 | enum ip_conntrack_info ctinfo; | 75 | enum ip_conntrack_info ctinfo; |
| 73 | struct nf_flow_route route; | 76 | struct nf_flow_route route; |
| 74 | struct flow_offload *flow; | 77 | struct flow_offload *flow; |
| 75 | enum ip_conntrack_dir dir; | 78 | enum ip_conntrack_dir dir; |
| 79 | bool is_tcp = false; | ||
| 76 | struct nf_conn *ct; | 80 | struct nf_conn *ct; |
| 77 | int ret; | 81 | int ret; |
| 78 | 82 | ||
| 79 | if (nft_flow_offload_skip(pkt->skb)) | 83 | if (nft_flow_offload_skip(pkt->skb, nft_pf(pkt))) |
| 80 | goto out; | 84 | goto out; |
| 81 | 85 | ||
| 82 | ct = nf_ct_get(pkt->skb, &ctinfo); | 86 | ct = nf_ct_get(pkt->skb, &ctinfo); |
| @@ -85,14 +89,16 @@ static void nft_flow_offload_eval(const struct nft_expr *expr, | |||
| 85 | 89 | ||
| 86 | switch (ct->tuplehash[IP_CT_DIR_ORIGINAL].tuple.dst.protonum) { | 90 | switch (ct->tuplehash[IP_CT_DIR_ORIGINAL].tuple.dst.protonum) { |
| 87 | case IPPROTO_TCP: | 91 | case IPPROTO_TCP: |
| 92 | is_tcp = true; | ||
| 93 | break; | ||
| 88 | case IPPROTO_UDP: | 94 | case IPPROTO_UDP: |
| 89 | break; | 95 | break; |
| 90 | default: | 96 | default: |
| 91 | goto out; | 97 | goto out; |
| 92 | } | 98 | } |
| 93 | 99 | ||
| 94 | help = nfct_help(ct); | 100 | if (nf_ct_ext_exist(ct, NF_CT_EXT_HELPER) || |
| 95 | if (help) | 101 | ct->status & IPS_SEQ_ADJUST) |
| 96 | goto out; | 102 | goto out; |
| 97 | 103 | ||
| 98 | if (!nf_ct_is_confirmed(ct)) | 104 | if (!nf_ct_is_confirmed(ct)) |
| @@ -109,6 +115,11 @@ static void nft_flow_offload_eval(const struct nft_expr *expr, | |||
| 109 | if (!flow) | 115 | if (!flow) |
| 110 | goto err_flow_alloc; | 116 | goto err_flow_alloc; |
| 111 | 117 | ||
| 118 | if (is_tcp) { | ||
| 119 | ct->proto.tcp.seen[0].flags |= IP_CT_TCP_FLAG_BE_LIBERAL; | ||
| 120 | ct->proto.tcp.seen[1].flags |= IP_CT_TCP_FLAG_BE_LIBERAL; | ||
| 121 | } | ||
| 122 | |||
| 112 | ret = flow_offload_add(flowtable, flow); | 123 | ret = flow_offload_add(flowtable, flow); |
| 113 | if (ret < 0) | 124 | if (ret < 0) |
| 114 | goto err_flow_add; | 125 | goto err_flow_add; |
diff --git a/net/netfilter/nft_nat.c b/net/netfilter/nft_nat.c index d90d421826aa..c3c93e95b46e 100644 --- a/net/netfilter/nft_nat.c +++ b/net/netfilter/nft_nat.c | |||
| @@ -1,12 +1,8 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-only | ||
| 1 | /* | 2 | /* |
| 2 | * Copyright (c) 2008-2009 Patrick McHardy <kaber@trash.net> | 3 | * Copyright (c) 2008-2009 Patrick McHardy <kaber@trash.net> |
| 3 | * Copyright (c) 2012 Pablo Neira Ayuso <pablo@netfilter.org> | 4 | * Copyright (c) 2012 Pablo Neira Ayuso <pablo@netfilter.org> |
| 4 | * Copyright (c) 2012 Intel Corporation | 5 | * Copyright (c) 2012 Intel Corporation |
| 5 | * | ||
| 6 | * This program is free software; you can redistribute it and/or modify it | ||
| 7 | * under the terms and conditions of the GNU General Public License, | ||
| 8 | * version 2, as published by the Free Software Foundation. | ||
| 9 | * | ||
| 10 | */ | 6 | */ |
| 11 | 7 | ||
| 12 | #include <linux/module.h> | 8 | #include <linux/module.h> |
diff --git a/net/netfilter/nft_objref.c b/net/netfilter/nft_objref.c index 8dfa798ea683..bfd18d2b65a2 100644 --- a/net/netfilter/nft_objref.c +++ b/net/netfilter/nft_objref.c | |||
| @@ -1,9 +1,6 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-only | ||
| 1 | /* | 2 | /* |
| 2 | * Copyright (c) 2012-2016 Pablo Neira Ayuso <pablo@netfilter.org> | 3 | * Copyright (c) 2012-2016 Pablo Neira Ayuso <pablo@netfilter.org> |
| 3 | * | ||
| 4 | * This program is free software; you can redistribute it and/or modify it | ||
| 5 | * under the terms and conditions of the GNU General Public License, | ||
| 6 | * version 2, as published by the Free Software Foundation. | ||
| 7 | */ | 4 | */ |
| 8 | 5 | ||
| 9 | #include <linux/init.h> | 6 | #include <linux/init.h> |
diff --git a/net/netfilter/xt_IDLETIMER.c b/net/netfilter/xt_IDLETIMER.c index 5f9b37e12801..9cec9eae556a 100644 --- a/net/netfilter/xt_IDLETIMER.c +++ b/net/netfilter/xt_IDLETIMER.c | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-only | ||
| 1 | /* | 2 | /* |
| 2 | * linux/net/netfilter/xt_IDLETIMER.c | 3 | * linux/net/netfilter/xt_IDLETIMER.c |
| 3 | * | 4 | * |
| @@ -11,20 +12,6 @@ | |||
| 11 | * by Luciano Coelho <luciano.coelho@nokia.com> | 12 | * by Luciano Coelho <luciano.coelho@nokia.com> |
| 12 | * | 13 | * |
| 13 | * Contact: Luciano Coelho <luciano.coelho@nokia.com> | 14 | * Contact: Luciano Coelho <luciano.coelho@nokia.com> |
| 14 | * | ||
| 15 | * This program is free software; you can redistribute it and/or | ||
| 16 | * modify it under the terms of the GNU General Public License | ||
| 17 | * version 2 as published by the Free Software Foundation. | ||
| 18 | * | ||
| 19 | * This program is distributed in the hope that it will be useful, but | ||
| 20 | * WITHOUT ANY WARRANTY; without even the implied warranty of | ||
| 21 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | ||
| 22 | * 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, write to the Free Software | ||
| 26 | * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA | ||
| 27 | * 02110-1301 USA | ||
| 28 | */ | 15 | */ |
| 29 | 16 | ||
| 30 | #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt | 17 | #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt |
diff --git a/net/netfilter/xt_LED.c b/net/netfilter/xt_LED.c index 19846445504d..0371c387b0d1 100644 --- a/net/netfilter/xt_LED.c +++ b/net/netfilter/xt_LED.c | |||
| @@ -1,22 +1,8 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-only | ||
| 1 | /* | 2 | /* |
| 2 | * xt_LED.c - netfilter target to make LEDs blink upon packet matches | 3 | * xt_LED.c - netfilter target to make LEDs blink upon packet matches |
| 3 | * | 4 | * |
| 4 | * Copyright (C) 2008 Adam Nielsen <a.nielsen@shikadi.net> | 5 | * Copyright (C) 2008 Adam Nielsen <a.nielsen@shikadi.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; version 2 of the License. | ||
| 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, write to the Free Software | ||
| 17 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA | ||
| 18 | * 02110-1301 USA. | ||
| 19 | * | ||
| 20 | */ | 6 | */ |
| 21 | #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt | 7 | #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt |
| 22 | #include <linux/module.h> | 8 | #include <linux/module.h> |
diff --git a/net/netfilter/xt_ipcomp.c b/net/netfilter/xt_ipcomp.c index 57f1df575701..472da639a32e 100644 --- a/net/netfilter/xt_ipcomp.c +++ b/net/netfilter/xt_ipcomp.c | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-or-later | ||
| 1 | /* Kernel module to match IPComp parameters for IPv4 and IPv6 | 2 | /* Kernel module to match IPComp parameters for IPv4 and IPv6 |
| 2 | * | 3 | * |
| 3 | * Copyright (C) 2013 WindRiver | 4 | * Copyright (C) 2013 WindRiver |
| @@ -7,11 +8,6 @@ | |||
| 7 | * | 8 | * |
| 8 | * Based on: | 9 | * Based on: |
| 9 | * net/netfilter/xt_esp.c | 10 | * net/netfilter/xt_esp.c |
| 10 | * | ||
| 11 | * This program 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 | */ | 11 | */ |
| 16 | 12 | ||
| 17 | #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt | 13 | #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt |
diff --git a/net/netlink/af_netlink.c b/net/netlink/af_netlink.c index 718a97d5f1fd..e9ddfd782d16 100644 --- a/net/netlink/af_netlink.c +++ b/net/netlink/af_netlink.c | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-or-later | ||
| 1 | /* | 2 | /* |
| 2 | * NETLINK Kernel-user communication protocol. | 3 | * NETLINK Kernel-user communication protocol. |
| 3 | * | 4 | * |
| @@ -5,11 +6,6 @@ | |||
| 5 | * Alexey Kuznetsov <kuznet@ms2.inr.ac.ru> | 6 | * Alexey Kuznetsov <kuznet@ms2.inr.ac.ru> |
| 6 | * Patrick McHardy <kaber@trash.net> | 7 | * Patrick McHardy <kaber@trash.net> |
| 7 | * | 8 | * |
| 8 | * This program is free software; you can redistribute it and/or | ||
| 9 | * modify it under the terms of the GNU General Public License | ||
| 10 | * as published by the Free Software Foundation; either version | ||
| 11 | * 2 of the License, or (at your option) any later version. | ||
| 12 | * | ||
| 13 | * Tue Jun 26 14:36:48 MEST 2001 Herbert "herp" Rosmanith | 9 | * Tue Jun 26 14:36:48 MEST 2001 Herbert "herp" Rosmanith |
| 14 | * added netlink_proto_exit | 10 | * added netlink_proto_exit |
| 15 | * Tue Jan 22 18:32:44 BRST 2002 Arnaldo C. de Melo <acme@conectiva.com.br> | 11 | * Tue Jan 22 18:32:44 BRST 2002 Arnaldo C. de Melo <acme@conectiva.com.br> |
diff --git a/net/netrom/af_netrom.c b/net/netrom/af_netrom.c index 167c09e1ea90..86b87925ef34 100644 --- a/net/netrom/af_netrom.c +++ b/net/netrom/af_netrom.c | |||
| @@ -1,8 +1,5 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-or-later | ||
| 1 | /* | 2 | /* |
| 2 | * This program is free software; you can redistribute it and/or modify | ||
| 3 | * it under the terms of the GNU General Public License as published by | ||
| 4 | * the Free Software Foundation; either version 2 of the License, or | ||
| 5 | * (at your option) any later version. | ||
| 6 | * | 3 | * |
| 7 | * Copyright Jonathan Naylor G4KLX (g4klx@g4klx.demon.co.uk) | 4 | * Copyright Jonathan Naylor G4KLX (g4klx@g4klx.demon.co.uk) |
| 8 | * Copyright Alan Cox GW4PTS (alan@lxorguk.ukuu.org.uk) | 5 | * Copyright Alan Cox GW4PTS (alan@lxorguk.ukuu.org.uk) |
diff --git a/net/netrom/nr_dev.c b/net/netrom/nr_dev.c index 988f542481a8..29e418c8c6c3 100644 --- a/net/netrom/nr_dev.c +++ b/net/netrom/nr_dev.c | |||
| @@ -1,8 +1,5 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-or-later | ||
| 1 | /* | 2 | /* |
| 2 | * This program is free software; you can redistribute it and/or modify | ||
| 3 | * it under the terms of the GNU General Public License as published by | ||
| 4 | * the Free Software Foundation; either version 2 of the License, or | ||
| 5 | * (at your option) any later version. | ||
| 6 | * | 3 | * |
| 7 | * Copyright Jonathan Naylor G4KLX (g4klx@g4klx.demon.co.uk) | 4 | * Copyright Jonathan Naylor G4KLX (g4klx@g4klx.demon.co.uk) |
| 8 | */ | 5 | */ |
diff --git a/net/netrom/nr_in.c b/net/netrom/nr_in.c index fbfdae452ff9..2bef3779f893 100644 --- a/net/netrom/nr_in.c +++ b/net/netrom/nr_in.c | |||
| @@ -1,8 +1,5 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-or-later | ||
| 1 | /* | 2 | /* |
| 2 | * This program is free software; you can redistribute it and/or modify | ||
| 3 | * it under the terms of the GNU General Public License as published by | ||
| 4 | * the Free Software Foundation; either version 2 of the License, or | ||
| 5 | * (at your option) any later version. | ||
| 6 | * | 3 | * |
| 7 | * Copyright Jonathan Naylor G4KLX (g4klx@g4klx.demon.co.uk) | 4 | * Copyright Jonathan Naylor G4KLX (g4klx@g4klx.demon.co.uk) |
| 8 | * Copyright Darryl Miles G7LED (dlm@g7led.demon.co.uk) | 5 | * Copyright Darryl Miles G7LED (dlm@g7led.demon.co.uk) |
diff --git a/net/netrom/nr_loopback.c b/net/netrom/nr_loopback.c index 93d13f019981..a880dd33e901 100644 --- a/net/netrom/nr_loopback.c +++ b/net/netrom/nr_loopback.c | |||
| @@ -1,8 +1,5 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-or-later | ||
| 1 | /* | 2 | /* |
| 2 | * This program is free software; you can redistribute it and/or modify | ||
| 3 | * it under the terms of the GNU General Public License as published by | ||
| 4 | * the Free Software Foundation; either version 2 of the License, or | ||
| 5 | * (at your option) any later version. | ||
| 6 | * | 3 | * |
| 7 | * Copyright Tomi Manninen OH2BNS (oh2bns@sral.fi) | 4 | * Copyright Tomi Manninen OH2BNS (oh2bns@sral.fi) |
| 8 | */ | 5 | */ |
diff --git a/net/netrom/nr_out.c b/net/netrom/nr_out.c index 00fbf1419ec6..44929657f5b7 100644 --- a/net/netrom/nr_out.c +++ b/net/netrom/nr_out.c | |||
| @@ -1,8 +1,5 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-or-later | ||
| 1 | /* | 2 | /* |
| 2 | * This program is free software; you can redistribute it and/or modify | ||
| 3 | * it under the terms of the GNU General Public License as published by | ||
| 4 | * the Free Software Foundation; either version 2 of the License, or | ||
| 5 | * (at your option) any later version. | ||
| 6 | * | 3 | * |
| 7 | * Copyright Jonathan Naylor G4KLX (g4klx@g4klx.demon.co.uk) | 4 | * Copyright Jonathan Naylor G4KLX (g4klx@g4klx.demon.co.uk) |
| 8 | * Copyright Darryl Miles G7LED (dlm@g7led.demon.co.uk) | 5 | * Copyright Darryl Miles G7LED (dlm@g7led.demon.co.uk) |
diff --git a/net/netrom/nr_route.c b/net/netrom/nr_route.c index b76aa668a94b..d41335bad1f8 100644 --- a/net/netrom/nr_route.c +++ b/net/netrom/nr_route.c | |||
| @@ -1,8 +1,5 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-or-later | ||
| 1 | /* | 2 | /* |
| 2 | * This program is free software; you can redistribute it and/or modify | ||
| 3 | * it under the terms of the GNU General Public License as published by | ||
| 4 | * the Free Software Foundation; either version 2 of the License, or | ||
| 5 | * (at your option) any later version. | ||
| 6 | * | 3 | * |
| 7 | * Copyright Jonathan Naylor G4KLX (g4klx@g4klx.demon.co.uk) | 4 | * Copyright Jonathan Naylor G4KLX (g4klx@g4klx.demon.co.uk) |
| 8 | * Copyright Alan Cox GW4PTS (alan@lxorguk.ukuu.org.uk) | 5 | * Copyright Alan Cox GW4PTS (alan@lxorguk.ukuu.org.uk) |
diff --git a/net/netrom/nr_subr.c b/net/netrom/nr_subr.c index 029c8bb90f4c..3f99b432ea70 100644 --- a/net/netrom/nr_subr.c +++ b/net/netrom/nr_subr.c | |||
| @@ -1,8 +1,5 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-or-later | ||
| 1 | /* | 2 | /* |
| 2 | * This program is free software; you can redistribute it and/or modify | ||
| 3 | * it under the terms of the GNU General Public License as published by | ||
| 4 | * the Free Software Foundation; either version 2 of the License, or | ||
| 5 | * (at your option) any later version. | ||
| 6 | * | 3 | * |
| 7 | * Copyright Jonathan Naylor G4KLX (g4klx@g4klx.demon.co.uk) | 4 | * Copyright Jonathan Naylor G4KLX (g4klx@g4klx.demon.co.uk) |
| 8 | */ | 5 | */ |
diff --git a/net/netrom/nr_timer.c b/net/netrom/nr_timer.c index 908e53ab47a4..9115f8a7dd45 100644 --- a/net/netrom/nr_timer.c +++ b/net/netrom/nr_timer.c | |||
| @@ -1,8 +1,5 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-or-later | ||
| 1 | /* | 2 | /* |
| 2 | * This program is free software; you can redistribute it and/or modify | ||
| 3 | * it under the terms of the GNU General Public License as published by | ||
| 4 | * the Free Software Foundation; either version 2 of the License, or | ||
| 5 | * (at your option) any later version. | ||
| 6 | * | 3 | * |
| 7 | * Copyright (C) Jonathan Naylor G4KLX (g4klx@g4klx.demon.co.uk) | 4 | * Copyright (C) Jonathan Naylor G4KLX (g4klx@g4klx.demon.co.uk) |
| 8 | * Copyright (C) 2002 Ralf Baechle DO1GRB (ralf@gnu.org) | 5 | * Copyright (C) 2002 Ralf Baechle DO1GRB (ralf@gnu.org) |
diff --git a/net/netrom/sysctl_net_netrom.c b/net/netrom/sysctl_net_netrom.c index 771011b84270..79fb2d3f477b 100644 --- a/net/netrom/sysctl_net_netrom.c +++ b/net/netrom/sysctl_net_netrom.c | |||
| @@ -1,8 +1,5 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-or-later | ||
| 1 | /* | 2 | /* |
| 2 | * This program is free software; you can redistribute it and/or modify | ||
| 3 | * it under the terms of the GNU General Public License as published by | ||
| 4 | * the Free Software Foundation; either version 2 of the License, or | ||
| 5 | * (at your option) any later version. | ||
| 6 | * | 3 | * |
| 7 | * Copyright (C) 1996 Mike Shaver (shaver@zeroknowledge.com) | 4 | * Copyright (C) 1996 Mike Shaver (shaver@zeroknowledge.com) |
| 8 | */ | 5 | */ |
diff --git a/net/nfc/digital.h b/net/nfc/digital.h index 3c39c72eb038..c33b2f7e1072 100644 --- a/net/nfc/digital.h +++ b/net/nfc/digital.h | |||
| @@ -1,16 +1,7 @@ | |||
| 1 | /* SPDX-License-Identifier: GPL-2.0-only */ | ||
| 1 | /* | 2 | /* |
| 2 | * NFC Digital Protocol stack | 3 | * NFC Digital Protocol stack |
| 3 | * Copyright (c) 2013, Intel Corporation. | 4 | * Copyright (c) 2013, Intel Corporation. |
| 4 | * | ||
| 5 | * This program is free software; you can redistribute it and/or modify it | ||
| 6 | * under the terms and conditions of the GNU General Public License, | ||
| 7 | * version 2, as published by the Free Software Foundation. | ||
| 8 | * | ||
| 9 | * This program is distributed in the hope 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 | */ | 5 | */ |
| 15 | 6 | ||
| 16 | #ifndef __DIGITAL_H | 7 | #ifndef __DIGITAL_H |
diff --git a/net/nfc/digital_core.c b/net/nfc/digital_core.c index ec0a8998e52d..e3599ed4a7a8 100644 --- a/net/nfc/digital_core.c +++ b/net/nfc/digital_core.c | |||
| @@ -1,16 +1,7 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-only | ||
| 1 | /* | 2 | /* |
| 2 | * NFC Digital Protocol stack | 3 | * NFC Digital Protocol stack |
| 3 | * Copyright (c) 2013, Intel Corporation. | 4 | * Copyright (c) 2013, Intel Corporation. |
| 4 | * | ||
| 5 | * This program is free software; you can redistribute it and/or modify it | ||
| 6 | * under the terms and conditions of the GNU General Public License, | ||
| 7 | * version 2, as published by the Free Software Foundation. | ||
| 8 | * | ||
| 9 | * This program is distributed in the hope 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 | */ | 5 | */ |
| 15 | 6 | ||
| 16 | #define pr_fmt(fmt) "digital: %s: " fmt, __func__ | 7 | #define pr_fmt(fmt) "digital: %s: " fmt, __func__ |
diff --git a/net/nfc/digital_dep.c b/net/nfc/digital_dep.c index 4f9a973988b2..65aaa9d7c813 100644 --- a/net/nfc/digital_dep.c +++ b/net/nfc/digital_dep.c | |||
| @@ -1,16 +1,7 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-only | ||
| 1 | /* | 2 | /* |
| 2 | * NFC Digital Protocol stack | 3 | * NFC Digital Protocol stack |
| 3 | * Copyright (c) 2013, Intel Corporation. | 4 | * Copyright (c) 2013, Intel Corporation. |
| 4 | * | ||
| 5 | * This program is free software; you can redistribute it and/or modify it | ||
| 6 | * under the terms and conditions of the GNU General Public License, | ||
| 7 | * version 2, as published by the Free Software Foundation. | ||
| 8 | * | ||
| 9 | * This program is distributed in the hope 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 | */ | 5 | */ |
| 15 | 6 | ||
| 16 | #define pr_fmt(fmt) "digital: %s: " fmt, __func__ | 7 | #define pr_fmt(fmt) "digital: %s: " fmt, __func__ |
diff --git a/net/nfc/digital_technology.c b/net/nfc/digital_technology.c index 2021d1d58a75..84d2345c75a3 100644 --- a/net/nfc/digital_technology.c +++ b/net/nfc/digital_technology.c | |||
| @@ -1,16 +1,7 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-only | ||
| 1 | /* | 2 | /* |
| 2 | * NFC Digital Protocol stack | 3 | * NFC Digital Protocol stack |
| 3 | * Copyright (c) 2013, Intel Corporation. | 4 | * Copyright (c) 2013, Intel Corporation. |
| 4 | * | ||
| 5 | * This program is free software; you can redistribute it and/or modify it | ||
| 6 | * under the terms and conditions of the GNU General Public License, | ||
| 7 | * version 2, as published by the Free Software Foundation. | ||
| 8 | * | ||
| 9 | * This program is distributed in the hope 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 | */ | 5 | */ |
| 15 | 6 | ||
| 16 | #define pr_fmt(fmt) "digital: %s: " fmt, __func__ | 7 | #define pr_fmt(fmt) "digital: %s: " fmt, __func__ |
diff --git a/net/nfc/hci/llc.c b/net/nfc/hci/llc.c index 3d699cbc7435..6ab40ea17662 100644 --- a/net/nfc/hci/llc.c +++ b/net/nfc/hci/llc.c | |||
| @@ -1,19 +1,8 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-only | ||
| 1 | /* | 2 | /* |
| 2 | * Link Layer Control manager | 3 | * Link Layer Control manager |
| 3 | * | 4 | * |
| 4 | * Copyright (C) 2012 Intel Corporation. All rights reserved. | 5 | * Copyright (C) 2012 Intel Corporation. All rights reserved. |
| 5 | * | ||
| 6 | * This program is free software; you can redistribute it and/or modify it | ||
| 7 | * under the terms and conditions of the GNU General Public License, | ||
| 8 | * version 2, as published by the Free Software Foundation. | ||
| 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 | */ | 6 | */ |
| 18 | 7 | ||
| 19 | #include <net/nfc/llc.h> | 8 | #include <net/nfc/llc.h> |
diff --git a/net/nfc/hci/llc.h b/net/nfc/hci/llc.h index 5dad4c57ffb3..823ddb621e5d 100644 --- a/net/nfc/hci/llc.h +++ b/net/nfc/hci/llc.h | |||
| @@ -1,19 +1,8 @@ | |||
| 1 | /* SPDX-License-Identifier: GPL-2.0-only */ | ||
| 1 | /* | 2 | /* |
| 2 | * Link Layer Control manager | 3 | * Link Layer Control manager |
| 3 | * | 4 | * |
| 4 | * Copyright (C) 2012 Intel Corporation. All rights reserved. | 5 | * Copyright (C) 2012 Intel Corporation. All rights reserved. |
| 5 | * | ||
| 6 | * This program is free software; you can redistribute it and/or modify it | ||
| 7 | * under the terms and conditions of the GNU General Public License, | ||
| 8 | * version 2, as published by the Free Software Foundation. | ||
| 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 | */ | 6 | */ |
| 18 | 7 | ||
| 19 | #ifndef __LOCAL_LLC_H_ | 8 | #ifndef __LOCAL_LLC_H_ |
diff --git a/net/nfc/hci/llc_nop.c b/net/nfc/hci/llc_nop.c index d0435d5a197b..a42852f36f2e 100644 --- a/net/nfc/hci/llc_nop.c +++ b/net/nfc/hci/llc_nop.c | |||
| @@ -1,19 +1,8 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-only | ||
| 1 | /* | 2 | /* |
| 2 | * nop (passthrough) Link Layer Control | 3 | * nop (passthrough) Link Layer Control |
| 3 | * | 4 | * |
| 4 | * Copyright (C) 2012 Intel Corporation. All rights reserved. | 5 | * Copyright (C) 2012 Intel Corporation. All rights reserved. |
| 5 | * | ||
| 6 | * This program is free software; you can redistribute it and/or modify it | ||
| 7 | * under the terms and conditions of the GNU General Public License, | ||
| 8 | * version 2, as published by the Free Software Foundation. | ||
| 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 | */ | 6 | */ |
| 18 | 7 | ||
| 19 | #include <linux/types.h> | 8 | #include <linux/types.h> |
diff --git a/net/nfc/hci/llc_shdlc.c b/net/nfc/hci/llc_shdlc.c index fe988936ad92..0eb4ddc056e7 100644 --- a/net/nfc/hci/llc_shdlc.c +++ b/net/nfc/hci/llc_shdlc.c | |||
| @@ -1,19 +1,8 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-only | ||
| 1 | /* | 2 | /* |
| 2 | * shdlc Link Layer Control | 3 | * shdlc Link Layer Control |
| 3 | * | 4 | * |
| 4 | * Copyright (C) 2012 Intel Corporation. All rights reserved. | 5 | * Copyright (C) 2012 Intel Corporation. All rights reserved. |
| 5 | * | ||
| 6 | * This program is free software; you can redistribute it and/or modify it | ||
| 7 | * under the terms and conditions of the GNU General Public License, | ||
| 8 | * version 2, as published by the Free Software Foundation. | ||
| 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 | */ | 6 | */ |
| 18 | 7 | ||
| 19 | #define pr_fmt(fmt) "shdlc: %s: " fmt, __func__ | 8 | #define pr_fmt(fmt) "shdlc: %s: " fmt, __func__ |
diff --git a/net/nfc/nci/spi.c b/net/nfc/nci/spi.c index 452f4c16b7a9..9dd8a1096916 100644 --- a/net/nfc/nci/spi.c +++ b/net/nfc/nci/spi.c | |||
| @@ -1,19 +1,6 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-only | ||
| 1 | /* | 2 | /* |
| 2 | * Copyright (C) 2013 Intel Corporation. All rights reserved. | 3 | * Copyright (C) 2013 Intel Corporation. All rights reserved. |
| 3 | * | ||
| 4 | * This program is free software; you can redistribute it and/or modify it | ||
| 5 | * under the terms and conditions of the GNU General Public License, | ||
| 6 | * version 2, as published by the Free Software Foundation. | ||
| 7 | * | ||
| 8 | * This program is distributed in the hope it will be useful, but WITHOUT | ||
| 9 | * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or | ||
| 10 | * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for | ||
| 11 | * more details. | ||
| 12 | * | ||
| 13 | * You should have received a copy of the GNU General Public License along with | ||
| 14 | * this program; if not, write to the Free Software Foundation, Inc., | ||
| 15 | * 51 Franklin St - Fifth Floor, Boston, MA 02110-1301 USA. | ||
| 16 | * | ||
| 17 | */ | 4 | */ |
| 18 | 5 | ||
| 19 | #define pr_fmt(fmt) "nci_spi: %s: " fmt, __func__ | 6 | #define pr_fmt(fmt) "nci_spi: %s: " fmt, __func__ |
diff --git a/net/openvswitch/actions.c b/net/openvswitch/actions.c index 2c151bb322c1..151518dbabad 100644 --- a/net/openvswitch/actions.c +++ b/net/openvswitch/actions.c | |||
| @@ -1,19 +1,6 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-only | ||
| 1 | /* | 2 | /* |
| 2 | * Copyright (c) 2007-2017 Nicira, Inc. | 3 | * Copyright (c) 2007-2017 Nicira, Inc. |
| 3 | * | ||
| 4 | * This program is free software; you can redistribute it and/or | ||
| 5 | * modify it under the terms of version 2 of the GNU General Public | ||
| 6 | * License as published by the Free Software Foundation. | ||
| 7 | * | ||
| 8 | * This program is distributed in the hope that it will be useful, but | ||
| 9 | * WITHOUT ANY WARRANTY; without even the implied warranty of | ||
| 10 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | ||
| 11 | * General Public License for more details. | ||
| 12 | * | ||
| 13 | * You should have received a copy of the GNU General Public License | ||
| 14 | * along with this program; if not, write to the Free Software | ||
| 15 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA | ||
| 16 | * 02110-1301, USA | ||
| 17 | */ | 4 | */ |
| 18 | 5 | ||
| 19 | #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt | 6 | #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt |
diff --git a/net/openvswitch/conntrack.c b/net/openvswitch/conntrack.c index 4c597a0bb168..848c6eb55064 100644 --- a/net/openvswitch/conntrack.c +++ b/net/openvswitch/conntrack.c | |||
| @@ -1,14 +1,6 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-only | ||
| 1 | /* | 2 | /* |
| 2 | * Copyright (c) 2015 Nicira, Inc. | 3 | * Copyright (c) 2015 Nicira, Inc. |
| 3 | * | ||
| 4 | * This program is free software; you can redistribute it and/or | ||
| 5 | * modify it under the terms of version 2 of the GNU General Public | ||
| 6 | * License as published by the Free Software Foundation. | ||
| 7 | * | ||
| 8 | * This program is distributed in the hope that it will be useful, but | ||
| 9 | * WITHOUT ANY WARRANTY; without even the implied warranty of | ||
| 10 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | ||
| 11 | * General Public License for more details. | ||
| 12 | */ | 4 | */ |
| 13 | 5 | ||
| 14 | #include <linux/module.h> | 6 | #include <linux/module.h> |
diff --git a/net/openvswitch/conntrack.h b/net/openvswitch/conntrack.h index 900dadd70974..59dc32761b91 100644 --- a/net/openvswitch/conntrack.h +++ b/net/openvswitch/conntrack.h | |||
| @@ -1,14 +1,6 @@ | |||
| 1 | /* SPDX-License-Identifier: GPL-2.0-only */ | ||
| 1 | /* | 2 | /* |
| 2 | * Copyright (c) 2015 Nicira, Inc. | 3 | * Copyright (c) 2015 Nicira, Inc. |
| 3 | * | ||
| 4 | * This program is free software; you can redistribute it and/or | ||
| 5 | * modify it under the terms of version 2 of the GNU General Public | ||
| 6 | * License as published by the Free Software Foundation. | ||
| 7 | * | ||
| 8 | * This program is distributed in the hope that it will be useful, but | ||
| 9 | * WITHOUT ANY WARRANTY; without even the implied warranty of | ||
| 10 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | ||
| 11 | * General Public License for more details. | ||
| 12 | */ | 4 | */ |
| 13 | 5 | ||
| 14 | #ifndef OVS_CONNTRACK_H | 6 | #ifndef OVS_CONNTRACK_H |
diff --git a/net/openvswitch/datapath.c b/net/openvswitch/datapath.c index dc9ff9367221..6747bc57b6fa 100644 --- a/net/openvswitch/datapath.c +++ b/net/openvswitch/datapath.c | |||
| @@ -1,19 +1,6 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-only | ||
| 1 | /* | 2 | /* |
| 2 | * Copyright (c) 2007-2014 Nicira, Inc. | 3 | * Copyright (c) 2007-2014 Nicira, Inc. |
| 3 | * | ||
| 4 | * This program is free software; you can redistribute it and/or | ||
| 5 | * modify it under the terms of version 2 of the GNU General Public | ||
| 6 | * License as published by the Free Software Foundation. | ||
| 7 | * | ||
| 8 | * This program is distributed in the hope that it will be useful, but | ||
| 9 | * WITHOUT ANY WARRANTY; without even the implied warranty of | ||
| 10 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | ||
| 11 | * General Public License for more details. | ||
| 12 | * | ||
| 13 | * You should have received a copy of the GNU General Public License | ||
| 14 | * along with this program; if not, write to the Free Software | ||
| 15 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA | ||
| 16 | * 02110-1301, USA | ||
| 17 | */ | 4 | */ |
| 18 | 5 | ||
| 19 | #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt | 6 | #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt |
diff --git a/net/openvswitch/datapath.h b/net/openvswitch/datapath.h index c9eb267c6f7e..751d34accdf9 100644 --- a/net/openvswitch/datapath.h +++ b/net/openvswitch/datapath.h | |||
| @@ -1,19 +1,6 @@ | |||
| 1 | /* SPDX-License-Identifier: GPL-2.0-only */ | ||
| 1 | /* | 2 | /* |
| 2 | * Copyright (c) 2007-2014 Nicira, Inc. | 3 | * Copyright (c) 2007-2014 Nicira, Inc. |
| 3 | * | ||
| 4 | * This program is free software; you can redistribute it and/or | ||
| 5 | * modify it under the terms of version 2 of the GNU General Public | ||
| 6 | * License as published by the Free Software Foundation. | ||
| 7 | * | ||
| 8 | * This program is distributed in the hope that it will be useful, but | ||
| 9 | * WITHOUT ANY WARRANTY; without even the implied warranty of | ||
| 10 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | ||
| 11 | * General Public License for more details. | ||
| 12 | * | ||
| 13 | * You should have received a copy of the GNU General Public License | ||
| 14 | * along with this program; if not, write to the Free Software | ||
| 15 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA | ||
| 16 | * 02110-1301, USA | ||
| 17 | */ | 4 | */ |
| 18 | 5 | ||
| 19 | #ifndef DATAPATH_H | 6 | #ifndef DATAPATH_H |
diff --git a/net/openvswitch/dp_notify.c b/net/openvswitch/dp_notify.c index f3ee2f2825c0..53cf07d141b4 100644 --- a/net/openvswitch/dp_notify.c +++ b/net/openvswitch/dp_notify.c | |||
| @@ -1,19 +1,6 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-only | ||
| 1 | /* | 2 | /* |
| 2 | * Copyright (c) 2007-2012 Nicira, Inc. | 3 | * Copyright (c) 2007-2012 Nicira, Inc. |
| 3 | * | ||
| 4 | * This program is free software; you can redistribute it and/or | ||
| 5 | * modify it under the terms of version 2 of the GNU General Public | ||
| 6 | * License as published by the Free Software Foundation. | ||
| 7 | * | ||
| 8 | * This program is distributed in the hope that it will be useful, but | ||
| 9 | * WITHOUT ANY WARRANTY; without even the implied warranty of | ||
| 10 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | ||
| 11 | * General Public License for more details. | ||
| 12 | * | ||
| 13 | * You should have received a copy of the GNU General Public License | ||
| 14 | * along with this program; if not, write to the Free Software | ||
| 15 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA | ||
| 16 | * 02110-1301, USA | ||
| 17 | */ | 4 | */ |
| 18 | 5 | ||
| 19 | #include <linux/netdevice.h> | 6 | #include <linux/netdevice.h> |
diff --git a/net/openvswitch/flow.c b/net/openvswitch/flow.c index f54cf17ef7a8..dca3b1e2acf0 100644 --- a/net/openvswitch/flow.c +++ b/net/openvswitch/flow.c | |||
| @@ -1,19 +1,6 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-only | ||
| 1 | /* | 2 | /* |
| 2 | * Copyright (c) 2007-2014 Nicira, Inc. | 3 | * Copyright (c) 2007-2014 Nicira, Inc. |
| 3 | * | ||
| 4 | * This program is free software; you can redistribute it and/or | ||
| 5 | * modify it under the terms of version 2 of the GNU General Public | ||
| 6 | * License as published by the Free Software Foundation. | ||
| 7 | * | ||
| 8 | * This program is distributed in the hope that it will be useful, but | ||
| 9 | * WITHOUT ANY WARRANTY; without even the implied warranty of | ||
| 10 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | ||
| 11 | * General Public License for more details. | ||
| 12 | * | ||
| 13 | * You should have received a copy of the GNU General Public License | ||
| 14 | * along with this program; if not, write to the Free Software | ||
| 15 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA | ||
| 16 | * 02110-1301, USA | ||
| 17 | */ | 4 | */ |
| 18 | 5 | ||
| 19 | #include <linux/uaccess.h> | 6 | #include <linux/uaccess.h> |
diff --git a/net/openvswitch/flow.h b/net/openvswitch/flow.h index 5b8e5bd7457b..3e2cc2202d66 100644 --- a/net/openvswitch/flow.h +++ b/net/openvswitch/flow.h | |||
| @@ -1,19 +1,6 @@ | |||
| 1 | /* SPDX-License-Identifier: GPL-2.0-only */ | ||
| 1 | /* | 2 | /* |
| 2 | * Copyright (c) 2007-2017 Nicira, Inc. | 3 | * Copyright (c) 2007-2017 Nicira, Inc. |
| 3 | * | ||
| 4 | * This program is free software; you can redistribute it and/or | ||
| 5 | * modify it under the terms of version 2 of the GNU General Public | ||
| 6 | * License as published by the Free Software Foundation. | ||
| 7 | * | ||
| 8 | * This program is distributed in the hope that it will be useful, but | ||
| 9 | * WITHOUT ANY WARRANTY; without even the implied warranty of | ||
| 10 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | ||
| 11 | * General Public License for more details. | ||
| 12 | * | ||
| 13 | * You should have received a copy of the GNU General Public License | ||
| 14 | * along with this program; if not, write to the Free Software | ||
| 15 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA | ||
| 16 | * 02110-1301, USA | ||
| 17 | */ | 4 | */ |
| 18 | 5 | ||
| 19 | #ifndef FLOW_H | 6 | #ifndef FLOW_H |
diff --git a/net/openvswitch/flow_netlink.c b/net/openvswitch/flow_netlink.c index 54eb80dd2dc6..d7559c64795d 100644 --- a/net/openvswitch/flow_netlink.c +++ b/net/openvswitch/flow_netlink.c | |||
| @@ -1,19 +1,6 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-only | ||
| 1 | /* | 2 | /* |
| 2 | * Copyright (c) 2007-2017 Nicira, Inc. | 3 | * Copyright (c) 2007-2017 Nicira, Inc. |
| 3 | * | ||
| 4 | * This program is free software; you can redistribute it and/or | ||
| 5 | * modify it under the terms of version 2 of the GNU General Public | ||
| 6 | * License as published by the Free Software Foundation. | ||
| 7 | * | ||
| 8 | * This program is distributed in the hope that it will be useful, but | ||
| 9 | * WITHOUT ANY WARRANTY; without even the implied warranty of | ||
| 10 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | ||
| 11 | * General Public License for more details. | ||
| 12 | * | ||
| 13 | * You should have received a copy of the GNU General Public License | ||
| 14 | * along with this program; if not, write to the Free Software | ||
| 15 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA | ||
| 16 | * 02110-1301, USA | ||
| 17 | */ | 4 | */ |
| 18 | 5 | ||
| 19 | #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt | 6 | #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt |
diff --git a/net/openvswitch/flow_netlink.h b/net/openvswitch/flow_netlink.h index 66f9553758a5..fe7f77fc5f18 100644 --- a/net/openvswitch/flow_netlink.h +++ b/net/openvswitch/flow_netlink.h | |||
| @@ -1,19 +1,6 @@ | |||
| 1 | /* SPDX-License-Identifier: GPL-2.0-only */ | ||
| 1 | /* | 2 | /* |
| 2 | * Copyright (c) 2007-2013 Nicira, Inc. | 3 | * Copyright (c) 2007-2013 Nicira, Inc. |
| 3 | * | ||
| 4 | * This program is free software; you can redistribute it and/or | ||
| 5 | * modify it under the terms of version 2 of the GNU General Public | ||
| 6 | * License as published by the Free Software Foundation. | ||
| 7 | * | ||
| 8 | * This program is distributed in the hope that it will be useful, but | ||
| 9 | * WITHOUT ANY WARRANTY; without even the implied warranty of | ||
| 10 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | ||
| 11 | * General Public License for more details. | ||
| 12 | * | ||
| 13 | * You should have received a copy of the GNU General Public License | ||
| 14 | * along with this program; if not, write to the Free Software | ||
| 15 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA | ||
| 16 | * 02110-1301, USA | ||
| 17 | */ | 4 | */ |
| 18 | 5 | ||
| 19 | 6 | ||
diff --git a/net/openvswitch/flow_table.c b/net/openvswitch/flow_table.c index cfb0098c9a01..988fd8a94e43 100644 --- a/net/openvswitch/flow_table.c +++ b/net/openvswitch/flow_table.c | |||
| @@ -1,19 +1,6 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-only | ||
| 1 | /* | 2 | /* |
| 2 | * Copyright (c) 2007-2014 Nicira, Inc. | 3 | * Copyright (c) 2007-2014 Nicira, Inc. |
| 3 | * | ||
| 4 | * This program is free software; you can redistribute it and/or | ||
| 5 | * modify it under the terms of version 2 of the GNU General Public | ||
| 6 | * License as published by the Free Software Foundation. | ||
| 7 | * | ||
| 8 | * This program is distributed in the hope that it will be useful, but | ||
| 9 | * WITHOUT ANY WARRANTY; without even the implied warranty of | ||
| 10 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | ||
| 11 | * General Public License for more details. | ||
| 12 | * | ||
| 13 | * You should have received a copy of the GNU General Public License | ||
| 14 | * along with this program; if not, write to the Free Software | ||
| 15 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA | ||
| 16 | * 02110-1301, USA | ||
| 17 | */ | 4 | */ |
| 18 | 5 | ||
| 19 | #include "flow.h" | 6 | #include "flow.h" |
diff --git a/net/openvswitch/flow_table.h b/net/openvswitch/flow_table.h index de5ec6cf5174..bc52045b63ff 100644 --- a/net/openvswitch/flow_table.h +++ b/net/openvswitch/flow_table.h | |||
| @@ -1,19 +1,6 @@ | |||
| 1 | /* SPDX-License-Identifier: GPL-2.0-only */ | ||
| 1 | /* | 2 | /* |
| 2 | * Copyright (c) 2007-2013 Nicira, Inc. | 3 | * Copyright (c) 2007-2013 Nicira, Inc. |
| 3 | * | ||
| 4 | * This program is free software; you can redistribute it and/or | ||
| 5 | * modify it under the terms of version 2 of the GNU General Public | ||
| 6 | * License as published by the Free Software Foundation. | ||
| 7 | * | ||
| 8 | * This program is distributed in the hope that it will be useful, but | ||
| 9 | * WITHOUT ANY WARRANTY; without even the implied warranty of | ||
| 10 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | ||
| 11 | * General Public License for more details. | ||
| 12 | * | ||
| 13 | * You should have received a copy of the GNU General Public License | ||
| 14 | * along with this program; if not, write to the Free Software | ||
| 15 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA | ||
| 16 | * 02110-1301, USA | ||
| 17 | */ | 4 | */ |
| 18 | 5 | ||
| 19 | #ifndef FLOW_TABLE_H | 6 | #ifndef FLOW_TABLE_H |
diff --git a/net/openvswitch/meter.c b/net/openvswitch/meter.c index bb67238f0340..3323b79ff548 100644 --- a/net/openvswitch/meter.c +++ b/net/openvswitch/meter.c | |||
| @@ -1,9 +1,6 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-only | ||
| 1 | /* | 2 | /* |
| 2 | * Copyright (c) 2017 Nicira, Inc. | 3 | * Copyright (c) 2017 Nicira, Inc. |
| 3 | * | ||
| 4 | * This program is free software; you can redistribute it and/or | ||
| 5 | * modify it under the terms of version 2 of the GNU General Public | ||
| 6 | * License as published by the Free Software Foundation. | ||
| 7 | */ | 4 | */ |
| 8 | 5 | ||
| 9 | #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt | 6 | #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt |
diff --git a/net/openvswitch/meter.h b/net/openvswitch/meter.h index 964ace2650f8..f645913870bd 100644 --- a/net/openvswitch/meter.h +++ b/net/openvswitch/meter.h | |||
| @@ -1,9 +1,6 @@ | |||
| 1 | /* SPDX-License-Identifier: GPL-2.0-only */ | ||
| 1 | /* | 2 | /* |
| 2 | * Copyright (c) 2017 Nicira, Inc. | 3 | * Copyright (c) 2017 Nicira, Inc. |
| 3 | * | ||
| 4 | * This program is free software; you can redistribute it and/or | ||
| 5 | * modify it under the terms of version 2 of the GNU General Public | ||
| 6 | * License as published by the Free Software Foundation. | ||
| 7 | */ | 4 | */ |
| 8 | 5 | ||
| 9 | #ifndef METER_H | 6 | #ifndef METER_H |
diff --git a/net/openvswitch/vport-geneve.c b/net/openvswitch/vport-geneve.c index acb6077b7478..89a8e1501809 100644 --- a/net/openvswitch/vport-geneve.c +++ b/net/openvswitch/vport-geneve.c | |||
| @@ -1,10 +1,6 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-or-later | ||
| 1 | /* | 2 | /* |
| 2 | * Copyright (c) 2014 Nicira, Inc. | 3 | * Copyright (c) 2014 Nicira, Inc. |
| 3 | * | ||
| 4 | * This program is free software; you can redistribute 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 | */ | 4 | */ |
| 9 | 5 | ||
| 10 | #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt | 6 | #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt |
diff --git a/net/openvswitch/vport-gre.c b/net/openvswitch/vport-gre.c index c38a62464b85..e6b5e76a962a 100644 --- a/net/openvswitch/vport-gre.c +++ b/net/openvswitch/vport-gre.c | |||
| @@ -1,19 +1,6 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-only | ||
| 1 | /* | 2 | /* |
| 2 | * Copyright (c) 2007-2014 Nicira, Inc. | 3 | * Copyright (c) 2007-2014 Nicira, Inc. |
| 3 | * | ||
| 4 | * This program is free software; you can redistribute it and/or | ||
| 5 | * modify it under the terms of version 2 of the GNU General Public | ||
| 6 | * License as published by the Free Software Foundation. | ||
| 7 | * | ||
| 8 | * This program is distributed in the hope that it will be useful, but | ||
| 9 | * WITHOUT ANY WARRANTY; without even the implied warranty of | ||
| 10 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | ||
| 11 | * General Public License for more details. | ||
| 12 | * | ||
| 13 | * You should have received a copy of the GNU General Public License | ||
| 14 | * along with this program; if not, write to the Free Software | ||
| 15 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA | ||
| 16 | * 02110-1301, USA | ||
| 17 | */ | 4 | */ |
| 18 | 5 | ||
| 19 | #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt | 6 | #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt |
diff --git a/net/openvswitch/vport-internal_dev.c b/net/openvswitch/vport-internal_dev.c index 26f71cbf7527..758bb1da31df 100644 --- a/net/openvswitch/vport-internal_dev.c +++ b/net/openvswitch/vport-internal_dev.c | |||
| @@ -1,19 +1,6 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-only | ||
| 1 | /* | 2 | /* |
| 2 | * Copyright (c) 2007-2012 Nicira, Inc. | 3 | * Copyright (c) 2007-2012 Nicira, Inc. |
| 3 | * | ||
| 4 | * This program is free software; you can redistribute it and/or | ||
| 5 | * modify it under the terms of version 2 of the GNU General Public | ||
| 6 | * License as published by the Free Software Foundation. | ||
| 7 | * | ||
| 8 | * This program is distributed in the hope that it will be useful, but | ||
| 9 | * WITHOUT ANY WARRANTY; without even the implied warranty of | ||
| 10 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | ||
| 11 | * General Public License for more details. | ||
| 12 | * | ||
| 13 | * You should have received a copy of the GNU General Public License | ||
| 14 | * along with this program; if not, write to the Free Software | ||
| 15 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA | ||
| 16 | * 02110-1301, USA | ||
| 17 | */ | 4 | */ |
| 18 | 5 | ||
| 19 | #include <linux/if_vlan.h> | 6 | #include <linux/if_vlan.h> |
diff --git a/net/openvswitch/vport-internal_dev.h b/net/openvswitch/vport-internal_dev.h index 1b179a190cff..0112d1b09d4b 100644 --- a/net/openvswitch/vport-internal_dev.h +++ b/net/openvswitch/vport-internal_dev.h | |||
| @@ -1,19 +1,6 @@ | |||
| 1 | /* SPDX-License-Identifier: GPL-2.0-only */ | ||
| 1 | /* | 2 | /* |
| 2 | * Copyright (c) 2007-2011 Nicira, Inc. | 3 | * Copyright (c) 2007-2011 Nicira, Inc. |
| 3 | * | ||
| 4 | * This program is free software; you can redistribute it and/or | ||
| 5 | * modify it under the terms of version 2 of the GNU General Public | ||
| 6 | * License as published by the Free Software Foundation. | ||
| 7 | * | ||
| 8 | * This program is distributed in the hope that it will be useful, but | ||
| 9 | * WITHOUT ANY WARRANTY; without even the implied warranty of | ||
| 10 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | ||
| 11 | * General Public License for more details. | ||
| 12 | * | ||
| 13 | * You should have received a copy of the GNU General Public License | ||
| 14 | * along with this program; if not, write to the Free Software | ||
| 15 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA | ||
| 16 | * 02110-1301, USA | ||
| 17 | */ | 4 | */ |
| 18 | 5 | ||
| 19 | #ifndef VPORT_INTERNAL_DEV_H | 6 | #ifndef VPORT_INTERNAL_DEV_H |
diff --git a/net/openvswitch/vport-netdev.c b/net/openvswitch/vport-netdev.c index 9bec22e3e9e8..52a1ed9633ec 100644 --- a/net/openvswitch/vport-netdev.c +++ b/net/openvswitch/vport-netdev.c | |||
| @@ -1,19 +1,6 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-only | ||
| 1 | /* | 2 | /* |
| 2 | * Copyright (c) 2007-2012 Nicira, Inc. | 3 | * Copyright (c) 2007-2012 Nicira, Inc. |
| 3 | * | ||
| 4 | * This program is free software; you can redistribute it and/or | ||
| 5 | * modify it under the terms of version 2 of the GNU General Public | ||
| 6 | * License as published by the Free Software Foundation. | ||
| 7 | * | ||
| 8 | * This program is distributed in the hope that it will be useful, but | ||
| 9 | * WITHOUT ANY WARRANTY; without even the implied warranty of | ||
| 10 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | ||
| 11 | * General Public License for more details. | ||
| 12 | * | ||
| 13 | * You should have received a copy of the GNU General Public License | ||
| 14 | * along with this program; if not, write to the Free Software | ||
| 15 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA | ||
| 16 | * 02110-1301, USA | ||
| 17 | */ | 4 | */ |
| 18 | 5 | ||
| 19 | #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt | 6 | #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt |
diff --git a/net/openvswitch/vport-netdev.h b/net/openvswitch/vport-netdev.h index 19e29c12adcc..c5d83a43bfc4 100644 --- a/net/openvswitch/vport-netdev.h +++ b/net/openvswitch/vport-netdev.h | |||
| @@ -1,19 +1,6 @@ | |||
| 1 | /* SPDX-License-Identifier: GPL-2.0-only */ | ||
| 1 | /* | 2 | /* |
| 2 | * Copyright (c) 2007-2011 Nicira, Inc. | 3 | * Copyright (c) 2007-2011 Nicira, Inc. |
| 3 | * | ||
| 4 | * This program is free software; you can redistribute it and/or | ||
| 5 | * modify it under the terms of version 2 of the GNU General Public | ||
| 6 | * License as published by the Free Software Foundation. | ||
| 7 | * | ||
| 8 | * This program is distributed in the hope that it will be useful, but | ||
| 9 | * WITHOUT ANY WARRANTY; without even the implied warranty of | ||
| 10 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | ||
| 11 | * General Public License for more details. | ||
| 12 | * | ||
| 13 | * You should have received a copy of the GNU General Public License | ||
| 14 | * along with this program; if not, write to the Free Software | ||
| 15 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA | ||
| 16 | * 02110-1301, USA | ||
| 17 | */ | 4 | */ |
| 18 | 5 | ||
| 19 | #ifndef VPORT_NETDEV_H | 6 | #ifndef VPORT_NETDEV_H |
diff --git a/net/openvswitch/vport-vxlan.c b/net/openvswitch/vport-vxlan.c index f3c54871f9e1..188e9c1360a1 100644 --- a/net/openvswitch/vport-vxlan.c +++ b/net/openvswitch/vport-vxlan.c | |||
| @@ -1,20 +1,7 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-only | ||
| 1 | /* | 2 | /* |
| 2 | * Copyright (c) 2014 Nicira, Inc. | 3 | * Copyright (c) 2014 Nicira, Inc. |
| 3 | * Copyright (c) 2013 Cisco Systems, Inc. | 4 | * Copyright (c) 2013 Cisco Systems, Inc. |
| 4 | * | ||
| 5 | * This program is free software; you can redistribute it and/or | ||
| 6 | * modify it under the terms of version 2 of the GNU General Public | ||
| 7 | * License as published by the Free Software Foundation. | ||
| 8 | * | ||
| 9 | * This program is distributed in the hope that it will be useful, but | ||
| 10 | * WITHOUT ANY WARRANTY; without even the implied warranty of | ||
| 11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | ||
| 12 | * 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., 51 Franklin Street, Fifth Floor, Boston, MA | ||
| 17 | * 02110-1301, USA | ||
| 18 | */ | 5 | */ |
| 19 | 6 | ||
| 20 | #include <linux/kernel.h> | 7 | #include <linux/kernel.h> |
diff --git a/net/openvswitch/vport.c b/net/openvswitch/vport.c index 258ce3b7b452..f927de9bda0a 100644 --- a/net/openvswitch/vport.c +++ b/net/openvswitch/vport.c | |||
| @@ -1,19 +1,6 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-only | ||
| 1 | /* | 2 | /* |
| 2 | * Copyright (c) 2007-2014 Nicira, Inc. | 3 | * Copyright (c) 2007-2014 Nicira, Inc. |
| 3 | * | ||
| 4 | * This program is free software; you can redistribute it and/or | ||
| 5 | * modify it under the terms of version 2 of the GNU General Public | ||
| 6 | * License as published by the Free Software Foundation. | ||
| 7 | * | ||
| 8 | * This program is distributed in the hope that it will be useful, but | ||
| 9 | * WITHOUT ANY WARRANTY; without even the implied warranty of | ||
| 10 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | ||
| 11 | * General Public License for more details. | ||
| 12 | * | ||
| 13 | * You should have received a copy of the GNU General Public License | ||
| 14 | * along with this program; if not, write to the Free Software | ||
| 15 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA | ||
| 16 | * 02110-1301, USA | ||
| 17 | */ | 4 | */ |
| 18 | 5 | ||
| 19 | #include <linux/etherdevice.h> | 6 | #include <linux/etherdevice.h> |
diff --git a/net/openvswitch/vport.h b/net/openvswitch/vport.h index cda66c26ad08..1eb7495ac5b4 100644 --- a/net/openvswitch/vport.h +++ b/net/openvswitch/vport.h | |||
| @@ -1,19 +1,6 @@ | |||
| 1 | /* SPDX-License-Identifier: GPL-2.0-only */ | ||
| 1 | /* | 2 | /* |
| 2 | * Copyright (c) 2007-2012 Nicira, Inc. | 3 | * Copyright (c) 2007-2012 Nicira, Inc. |
| 3 | * | ||
| 4 | * This program is free software; you can redistribute it and/or | ||
| 5 | * modify it under the terms of version 2 of the GNU General Public | ||
| 6 | * License as published by the Free Software Foundation. | ||
| 7 | * | ||
| 8 | * This program is distributed in the hope that it will be useful, but | ||
| 9 | * WITHOUT ANY WARRANTY; without even the implied warranty of | ||
| 10 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | ||
| 11 | * General Public License for more details. | ||
| 12 | * | ||
| 13 | * You should have received a copy of the GNU General Public License | ||
| 14 | * along with this program; if not, write to the Free Software | ||
| 15 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA | ||
| 16 | * 02110-1301, USA | ||
| 17 | */ | 4 | */ |
| 18 | 5 | ||
| 19 | #ifndef VPORT_H | 6 | #ifndef VPORT_H |
diff --git a/net/packet/af_packet.c b/net/packet/af_packet.c index fbc775fbf712..a29d66da7394 100644 --- a/net/packet/af_packet.c +++ b/net/packet/af_packet.c | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-or-later | ||
| 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 |
| @@ -43,13 +44,6 @@ | |||
| 43 | * Chetan Loke : Implemented TPACKET_V3 block abstraction | 44 | * Chetan Loke : Implemented TPACKET_V3 block abstraction |
| 44 | * layer. | 45 | * layer. |
| 45 | * Copyright (C) 2011, <lokec@ccs.neu.edu> | 46 | * Copyright (C) 2011, <lokec@ccs.neu.edu> |
| 46 | * | ||
| 47 | * | ||
| 48 | * This program is free software; you can redistribute it and/or | ||
| 49 | * modify it under the terms of the GNU General Public License | ||
| 50 | * as published by the Free Software Foundation; either version | ||
| 51 | * 2 of the License, or (at your option) any later version. | ||
| 52 | * | ||
| 53 | */ | 47 | */ |
| 54 | 48 | ||
| 55 | #include <linux/types.h> | 49 | #include <linux/types.h> |
| @@ -3014,8 +3008,8 @@ static int packet_release(struct socket *sock) | |||
| 3014 | 3008 | ||
| 3015 | synchronize_net(); | 3009 | synchronize_net(); |
| 3016 | 3010 | ||
| 3011 | kfree(po->rollover); | ||
| 3017 | if (f) { | 3012 | if (f) { |
| 3018 | kfree(po->rollover); | ||
| 3019 | fanout_release_data(f); | 3013 | fanout_release_data(f); |
| 3020 | kfree(f); | 3014 | kfree(f); |
| 3021 | } | 3015 | } |
diff --git a/net/phonet/af_phonet.c b/net/phonet/af_phonet.c index 3b0ef691f5b1..ca6ae4c59433 100644 --- a/net/phonet/af_phonet.c +++ b/net/phonet/af_phonet.c | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-only | ||
| 1 | /* | 2 | /* |
| 2 | * File: af_phonet.c | 3 | * File: af_phonet.c |
| 3 | * | 4 | * |
| @@ -7,20 +8,6 @@ | |||
| 7 | * | 8 | * |
| 8 | * Authors: Sakari Ailus <sakari.ailus@nokia.com> | 9 | * Authors: Sakari Ailus <sakari.ailus@nokia.com> |
| 9 | * Rémi Denis-Courmont | 10 | * Rémi Denis-Courmont |
| 10 | * | ||
| 11 | * This program is free software; you can redistribute it and/or | ||
| 12 | * modify it under the terms of the GNU General Public License | ||
| 13 | * version 2 as published by the Free Software Foundation. | ||
| 14 | * | ||
| 15 | * This program is distributed in the hope that it will be useful, but | ||
| 16 | * WITHOUT ANY WARRANTY; without even the implied warranty of | ||
| 17 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | ||
| 18 | * General Public License for more details. | ||
| 19 | * | ||
| 20 | * You should have received a copy of the GNU General Public License | ||
| 21 | * along with this program; if not, write to the Free Software | ||
| 22 | * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA | ||
| 23 | * 02110-1301 USA | ||
| 24 | */ | 11 | */ |
| 25 | 12 | ||
| 26 | #include <linux/kernel.h> | 13 | #include <linux/kernel.h> |
diff --git a/net/phonet/datagram.c b/net/phonet/datagram.c index b44fb9018fb8..393e6aa7a592 100644 --- a/net/phonet/datagram.c +++ b/net/phonet/datagram.c | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-only | ||
| 1 | /* | 2 | /* |
| 2 | * File: datagram.c | 3 | * File: datagram.c |
| 3 | * | 4 | * |
| @@ -7,20 +8,6 @@ | |||
| 7 | * | 8 | * |
| 8 | * Authors: Sakari Ailus <sakari.ailus@nokia.com> | 9 | * Authors: Sakari Ailus <sakari.ailus@nokia.com> |
| 9 | * Rémi Denis-Courmont | 10 | * Rémi Denis-Courmont |
| 10 | * | ||
| 11 | * This program is free software; you can redistribute it and/or | ||
| 12 | * modify it under the terms of the GNU General Public License | ||
| 13 | * version 2 as published by the Free Software Foundation. | ||
| 14 | * | ||
| 15 | * This program is distributed in the hope that it will be useful, but | ||
| 16 | * WITHOUT ANY WARRANTY; without even the implied warranty of | ||
| 17 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | ||
| 18 | * General Public License for more details. | ||
| 19 | * | ||
| 20 | * You should have received a copy of the GNU General Public License | ||
| 21 | * along with this program; if not, write to the Free Software | ||
| 22 | * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA | ||
| 23 | * 02110-1301 USA | ||
| 24 | */ | 11 | */ |
| 25 | 12 | ||
| 26 | #include <linux/kernel.h> | 13 | #include <linux/kernel.h> |
diff --git a/net/phonet/pep-gprs.c b/net/phonet/pep-gprs.c index 2c9337946e30..1f5df0432d37 100644 --- a/net/phonet/pep-gprs.c +++ b/net/phonet/pep-gprs.c | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-only | ||
| 1 | /* | 2 | /* |
| 2 | * File: pep-gprs.c | 3 | * File: pep-gprs.c |
| 3 | * | 4 | * |
| @@ -6,20 +7,6 @@ | |||
| 6 | * Copyright (C) 2008 Nokia Corporation. | 7 | * Copyright (C) 2008 Nokia Corporation. |
| 7 | * | 8 | * |
| 8 | * Author: Rémi Denis-Courmont | 9 | * Author: Rémi Denis-Courmont |
| 9 | * | ||
| 10 | * This program is free software; you can redistribute it and/or | ||
| 11 | * modify it under the terms of the GNU General Public License | ||
| 12 | * version 2 as published by the Free Software Foundation. | ||
| 13 | * | ||
| 14 | * This program is distributed in the hope that it will be useful, but | ||
| 15 | * WITHOUT ANY WARRANTY; without even the implied warranty of | ||
| 16 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | ||
| 17 | * 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, write to the Free Software | ||
| 21 | * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA | ||
| 22 | * 02110-1301 USA | ||
| 23 | */ | 10 | */ |
| 24 | 11 | ||
| 25 | #include <linux/kernel.h> | 12 | #include <linux/kernel.h> |
diff --git a/net/phonet/pep.c b/net/phonet/pep.c index db3473540303..4577e43cb777 100644 --- a/net/phonet/pep.c +++ b/net/phonet/pep.c | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-only | ||
| 1 | /* | 2 | /* |
| 2 | * File: pep.c | 3 | * File: pep.c |
| 3 | * | 4 | * |
| @@ -6,20 +7,6 @@ | |||
| 6 | * Copyright (C) 2008 Nokia Corporation. | 7 | * Copyright (C) 2008 Nokia Corporation. |
| 7 | * | 8 | * |
| 8 | * Author: Rémi Denis-Courmont | 9 | * Author: Rémi Denis-Courmont |
| 9 | * | ||
| 10 | * This program is free software; you can redistribute it and/or | ||
| 11 | * modify it under the terms of the GNU General Public License | ||
| 12 | * version 2 as published by the Free Software Foundation. | ||
| 13 | * | ||
| 14 | * This program is distributed in the hope that it will be useful, but | ||
| 15 | * WITHOUT ANY WARRANTY; without even the implied warranty of | ||
| 16 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | ||
| 17 | * 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, write to the Free Software | ||
| 21 | * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA | ||
| 22 | * 02110-1301 USA | ||
| 23 | */ | 10 | */ |
| 24 | 11 | ||
| 25 | #include <linux/kernel.h> | 12 | #include <linux/kernel.h> |
diff --git a/net/phonet/pn_dev.c b/net/phonet/pn_dev.c index 6cb4f602ab71..49bd76a87461 100644 --- a/net/phonet/pn_dev.c +++ b/net/phonet/pn_dev.c | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-only | ||
| 1 | /* | 2 | /* |
| 2 | * File: pn_dev.c | 3 | * File: pn_dev.c |
| 3 | * | 4 | * |
| @@ -7,20 +8,6 @@ | |||
| 7 | * | 8 | * |
| 8 | * Authors: Sakari Ailus <sakari.ailus@nokia.com> | 9 | * Authors: Sakari Ailus <sakari.ailus@nokia.com> |
| 9 | * Rémi Denis-Courmont | 10 | * Rémi Denis-Courmont |
| 10 | * | ||
| 11 | * This program is free software; you can redistribute it and/or | ||
| 12 | * modify it under the terms of the GNU General Public License | ||
| 13 | * version 2 as published by the Free Software Foundation. | ||
| 14 | * | ||
| 15 | * This program is distributed in the hope that it will be useful, but | ||
| 16 | * WITHOUT ANY WARRANTY; without even the implied warranty of | ||
| 17 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | ||
| 18 | * General Public License for more details. | ||
| 19 | * | ||
| 20 | * You should have received a copy of the GNU General Public License | ||
| 21 | * along with this program; if not, write to the Free Software | ||
| 22 | * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA | ||
| 23 | * 02110-1301 USA | ||
| 24 | */ | 11 | */ |
| 25 | 12 | ||
| 26 | #include <linux/kernel.h> | 13 | #include <linux/kernel.h> |
diff --git a/net/phonet/pn_netlink.c b/net/phonet/pn_netlink.c index be92d936b5d5..59aebe296890 100644 --- a/net/phonet/pn_netlink.c +++ b/net/phonet/pn_netlink.c | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-only | ||
| 1 | /* | 2 | /* |
| 2 | * File: pn_netlink.c | 3 | * File: pn_netlink.c |
| 3 | * | 4 | * |
| @@ -7,20 +8,6 @@ | |||
| 7 | * | 8 | * |
| 8 | * Authors: Sakari Ailus <sakari.ailus@nokia.com> | 9 | * Authors: Sakari Ailus <sakari.ailus@nokia.com> |
| 9 | * Remi Denis-Courmont | 10 | * Remi Denis-Courmont |
| 10 | * | ||
| 11 | * This program is free software; you can redistribute it and/or | ||
| 12 | * modify it under the terms of the GNU General Public License | ||
| 13 | * version 2 as published by the Free Software Foundation. | ||
| 14 | * | ||
| 15 | * This program is distributed in the hope that it will be useful, but | ||
| 16 | * WITHOUT ANY WARRANTY; without even the implied warranty of | ||
| 17 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | ||
| 18 | * General Public License for more details. | ||
| 19 | * | ||
| 20 | * You should have received a copy of the GNU General Public License | ||
| 21 | * along with this program; if not, write to the Free Software | ||
| 22 | * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA | ||
| 23 | * 02110-1301 USA | ||
| 24 | */ | 11 | */ |
| 25 | 12 | ||
| 26 | #include <linux/kernel.h> | 13 | #include <linux/kernel.h> |
diff --git a/net/phonet/socket.c b/net/phonet/socket.c index 2567af2fbd6f..96ea9f254ae9 100644 --- a/net/phonet/socket.c +++ b/net/phonet/socket.c | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-only | ||
| 1 | /* | 2 | /* |
| 2 | * File: socket.c | 3 | * File: socket.c |
| 3 | * | 4 | * |
| @@ -7,20 +8,6 @@ | |||
| 7 | * | 8 | * |
| 8 | * Authors: Sakari Ailus <sakari.ailus@nokia.com> | 9 | * Authors: Sakari Ailus <sakari.ailus@nokia.com> |
| 9 | * Rémi Denis-Courmont | 10 | * Rémi Denis-Courmont |
| 10 | * | ||
| 11 | * This program is free software; you can redistribute it and/or | ||
| 12 | * modify it under the terms of the GNU General Public License | ||
| 13 | * version 2 as published by the Free Software Foundation. | ||
| 14 | * | ||
| 15 | * This program is distributed in the hope that it will be useful, but | ||
| 16 | * WITHOUT ANY WARRANTY; without even the implied warranty of | ||
| 17 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | ||
| 18 | * General Public License for more details. | ||
| 19 | * | ||
| 20 | * You should have received a copy of the GNU General Public License | ||
| 21 | * along with this program; if not, write to the Free Software | ||
| 22 | * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA | ||
| 23 | * 02110-1301 USA | ||
| 24 | */ | 11 | */ |
| 25 | 12 | ||
| 26 | #include <linux/gfp.h> | 13 | #include <linux/gfp.h> |
diff --git a/net/phonet/sysctl.c b/net/phonet/sysctl.c index c02a8c4bc11f..251e750fd9aa 100644 --- a/net/phonet/sysctl.c +++ b/net/phonet/sysctl.c | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-only | ||
| 1 | /* | 2 | /* |
| 2 | * File: sysctl.c | 3 | * File: sysctl.c |
| 3 | * | 4 | * |
| @@ -6,20 +7,6 @@ | |||
| 6 | * Copyright (C) 2008 Nokia Corporation. | 7 | * Copyright (C) 2008 Nokia Corporation. |
| 7 | * | 8 | * |
| 8 | * Author: Rémi Denis-Courmont | 9 | * Author: Rémi Denis-Courmont |
| 9 | * | ||
| 10 | * This program is free software; you can redistribute it and/or | ||
| 11 | * modify it under the terms of the GNU General Public License | ||
| 12 | * version 2 as published by the Free Software Foundation. | ||
| 13 | * | ||
| 14 | * This program is distributed in the hope that it will be useful, but | ||
| 15 | * WITHOUT ANY WARRANTY; without even the implied warranty of | ||
| 16 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | ||
| 17 | * 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, write to the Free Software | ||
| 21 | * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA | ||
| 22 | * 02110-1301 USA | ||
| 23 | */ | 10 | */ |
| 24 | 11 | ||
| 25 | #include <linux/seqlock.h> | 12 | #include <linux/seqlock.h> |
diff --git a/net/qrtr/qrtr.c b/net/qrtr/qrtr.c index 05fa058bee59..6c8b0f6d28f9 100644 --- a/net/qrtr/qrtr.c +++ b/net/qrtr/qrtr.c | |||
| @@ -1,15 +1,7 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-only | ||
| 1 | /* | 2 | /* |
| 2 | * Copyright (c) 2015, Sony Mobile Communications Inc. | 3 | * Copyright (c) 2015, Sony Mobile Communications Inc. |
| 3 | * Copyright (c) 2013, The Linux Foundation. All rights reserved. | 4 | * Copyright (c) 2013, The Linux Foundation. All rights reserved. |
| 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 and | ||
| 7 | * only version 2 as published by the Free Software Foundation. | ||
| 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 | */ | 5 | */ |
| 14 | #include <linux/module.h> | 6 | #include <linux/module.h> |
| 15 | #include <linux/netlink.h> | 7 | #include <linux/netlink.h> |
diff --git a/net/qrtr/smd.c b/net/qrtr/smd.c index 9cf089b9754e..c91bf030fbc7 100644 --- a/net/qrtr/smd.c +++ b/net/qrtr/smd.c | |||
| @@ -1,15 +1,7 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-only | ||
| 1 | /* | 2 | /* |
| 2 | * Copyright (c) 2015, Sony Mobile Communications Inc. | 3 | * Copyright (c) 2015, Sony Mobile Communications Inc. |
| 3 | * Copyright (c) 2013, The Linux Foundation. All rights reserved. | 4 | * Copyright (c) 2013, The Linux Foundation. All rights reserved. |
| 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 and | ||
| 7 | * only version 2 as published by the Free Software Foundation. | ||
| 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 | */ | 5 | */ |
| 14 | 6 | ||
| 15 | #include <linux/module.h> | 7 | #include <linux/module.h> |
diff --git a/net/rds/ib.c b/net/rds/ib.c index 2da9b75bad16..b8d581b779b2 100644 --- a/net/rds/ib.c +++ b/net/rds/ib.c | |||
| @@ -87,7 +87,7 @@ static void rds_ib_dev_shutdown(struct rds_ib_device *rds_ibdev) | |||
| 87 | 87 | ||
| 88 | spin_lock_irqsave(&rds_ibdev->spinlock, flags); | 88 | spin_lock_irqsave(&rds_ibdev->spinlock, flags); |
| 89 | list_for_each_entry(ic, &rds_ibdev->conn_list, ib_node) | 89 | list_for_each_entry(ic, &rds_ibdev->conn_list, ib_node) |
| 90 | rds_conn_drop(ic->conn); | 90 | rds_conn_path_drop(&ic->conn->c_path[0], true); |
| 91 | spin_unlock_irqrestore(&rds_ibdev->spinlock, flags); | 91 | spin_unlock_irqrestore(&rds_ibdev->spinlock, flags); |
| 92 | } | 92 | } |
| 93 | 93 | ||
diff --git a/net/rds/ib_rdma.c b/net/rds/ib_rdma.c index d664e9ade74d..0b347f46b2f4 100644 --- a/net/rds/ib_rdma.c +++ b/net/rds/ib_rdma.c | |||
| @@ -428,12 +428,14 @@ int rds_ib_flush_mr_pool(struct rds_ib_mr_pool *pool, | |||
| 428 | wait_clean_list_grace(); | 428 | wait_clean_list_grace(); |
| 429 | 429 | ||
| 430 | list_to_llist_nodes(pool, &unmap_list, &clean_nodes, &clean_tail); | 430 | list_to_llist_nodes(pool, &unmap_list, &clean_nodes, &clean_tail); |
| 431 | if (ibmr_ret) | 431 | if (ibmr_ret) { |
| 432 | *ibmr_ret = llist_entry(clean_nodes, struct rds_ib_mr, llnode); | 432 | *ibmr_ret = llist_entry(clean_nodes, struct rds_ib_mr, llnode); |
| 433 | 433 | clean_nodes = clean_nodes->next; | |
| 434 | } | ||
| 434 | /* more than one entry in llist nodes */ | 435 | /* more than one entry in llist nodes */ |
| 435 | if (clean_nodes->next) | 436 | if (clean_nodes) |
| 436 | llist_add_batch(clean_nodes->next, clean_tail, &pool->clean_list); | 437 | llist_add_batch(clean_nodes, clean_tail, |
| 438 | &pool->clean_list); | ||
| 437 | 439 | ||
| 438 | } | 440 | } |
| 439 | 441 | ||
diff --git a/net/rds/ib_recv.c b/net/rds/ib_recv.c index 8946c89d7392..3cae88cbdaa0 100644 --- a/net/rds/ib_recv.c +++ b/net/rds/ib_recv.c | |||
| @@ -168,6 +168,7 @@ void rds_ib_recv_free_caches(struct rds_ib_connection *ic) | |||
| 168 | list_del(&inc->ii_cache_entry); | 168 | list_del(&inc->ii_cache_entry); |
| 169 | WARN_ON(!list_empty(&inc->ii_frags)); | 169 | WARN_ON(!list_empty(&inc->ii_frags)); |
| 170 | kmem_cache_free(rds_ib_incoming_slab, inc); | 170 | kmem_cache_free(rds_ib_incoming_slab, inc); |
| 171 | atomic_dec(&rds_ib_allocation); | ||
| 171 | } | 172 | } |
| 172 | 173 | ||
| 173 | rds_ib_cache_xfer_to_ready(&ic->i_cache_frags); | 174 | rds_ib_cache_xfer_to_ready(&ic->i_cache_frags); |
| @@ -1057,6 +1058,8 @@ out: | |||
| 1057 | 1058 | ||
| 1058 | void rds_ib_recv_exit(void) | 1059 | void rds_ib_recv_exit(void) |
| 1059 | { | 1060 | { |
| 1061 | WARN_ON(atomic_read(&rds_ib_allocation)); | ||
| 1062 | |||
| 1060 | kmem_cache_destroy(rds_ib_incoming_slab); | 1063 | kmem_cache_destroy(rds_ib_incoming_slab); |
| 1061 | kmem_cache_destroy(rds_ib_frag_slab); | 1064 | kmem_cache_destroy(rds_ib_frag_slab); |
| 1062 | } | 1065 | } |
diff --git a/net/rose/af_rose.c b/net/rose/af_rose.c index e274bc6e1458..f0e9ccf472a9 100644 --- a/net/rose/af_rose.c +++ b/net/rose/af_rose.c | |||
| @@ -1,8 +1,5 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-or-later | ||
| 1 | /* | 2 | /* |
| 2 | * This program is free software; you can redistribute it and/or modify | ||
| 3 | * it under the terms of the GNU General Public License as published by | ||
| 4 | * the Free Software Foundation; either version 2 of the License, or | ||
| 5 | * (at your option) any later version. | ||
| 6 | * | 3 | * |
| 7 | * Copyright (C) Jonathan Naylor G4KLX (g4klx@g4klx.demon.co.uk) | 4 | * Copyright (C) Jonathan Naylor G4KLX (g4klx@g4klx.demon.co.uk) |
| 8 | * Copyright (C) Alan Cox GW4PTS (alan@lxorguk.ukuu.org.uk) | 5 | * Copyright (C) Alan Cox GW4PTS (alan@lxorguk.ukuu.org.uk) |
diff --git a/net/rose/rose_dev.c b/net/rose/rose_dev.c index 369ca81a8c5d..051804fbee17 100644 --- a/net/rose/rose_dev.c +++ b/net/rose/rose_dev.c | |||
| @@ -1,8 +1,5 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-or-later | ||
| 1 | /* | 2 | /* |
| 2 | * This program is free software; you can redistribute it and/or modify | ||
| 3 | * it under the terms of the GNU General Public License as published by | ||
| 4 | * the Free Software Foundation; either version 2 of the License, or | ||
| 5 | * (at your option) any later version. | ||
| 6 | * | 3 | * |
| 7 | * Copyright (C) Jonathan Naylor G4KLX (g4klx@g4klx.demon.co.uk) | 4 | * Copyright (C) Jonathan Naylor G4KLX (g4klx@g4klx.demon.co.uk) |
| 8 | */ | 5 | */ |
diff --git a/net/rose/rose_in.c b/net/rose/rose_in.c index 9bbbfe325c5a..0d4fab2be82b 100644 --- a/net/rose/rose_in.c +++ b/net/rose/rose_in.c | |||
| @@ -1,8 +1,5 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-or-later | ||
| 1 | /* | 2 | /* |
| 2 | * This program is free software; you can redistribute it and/or modify | ||
| 3 | * it under the terms of the GNU General Public License as published by | ||
| 4 | * the Free Software Foundation; either version 2 of the License, or | ||
| 5 | * (at your option) any later version. | ||
| 6 | * | 3 | * |
| 7 | * Copyright (C) Jonathan Naylor G4KLX (g4klx@g4klx.demon.co.uk) | 4 | * Copyright (C) Jonathan Naylor G4KLX (g4klx@g4klx.demon.co.uk) |
| 8 | * | 5 | * |
diff --git a/net/rose/rose_link.c b/net/rose/rose_link.c index 62055d3069d2..f6102e6f5161 100644 --- a/net/rose/rose_link.c +++ b/net/rose/rose_link.c | |||
| @@ -1,8 +1,5 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-or-later | ||
| 1 | /* | 2 | /* |
| 2 | * This program is free software; you can redistribute it and/or modify | ||
| 3 | * it under the terms of the GNU General Public License as published by | ||
| 4 | * the Free Software Foundation; either version 2 of the License, or | ||
| 5 | * (at your option) any later version. | ||
| 6 | * | 3 | * |
| 7 | * Copyright (C) Jonathan Naylor G4KLX (g4klx@g4klx.demon.co.uk) | 4 | * Copyright (C) Jonathan Naylor G4KLX (g4klx@g4klx.demon.co.uk) |
| 8 | */ | 5 | */ |
diff --git a/net/rose/rose_loopback.c b/net/rose/rose_loopback.c index 094a6621f8e8..7b094275ea8b 100644 --- a/net/rose/rose_loopback.c +++ b/net/rose/rose_loopback.c | |||
| @@ -1,8 +1,5 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-or-later | ||
| 1 | /* | 2 | /* |
| 2 | * This program is free software; you can redistribute it and/or modify | ||
| 3 | * it under the terms of the GNU General Public License as published by | ||
| 4 | * the Free Software Foundation; either version 2 of the License, or | ||
| 5 | * (at your option) any later version. | ||
| 6 | * | 3 | * |
| 7 | * Copyright (C) Jonathan Naylor G4KLX (g4klx@g4klx.demon.co.uk) | 4 | * Copyright (C) Jonathan Naylor G4KLX (g4klx@g4klx.demon.co.uk) |
| 8 | */ | 5 | */ |
diff --git a/net/rose/rose_out.c b/net/rose/rose_out.c index 9ad98b524646..9050e33c9604 100644 --- a/net/rose/rose_out.c +++ b/net/rose/rose_out.c | |||
| @@ -1,8 +1,5 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-or-later | ||
| 1 | /* | 2 | /* |
| 2 | * This program is free software; you can redistribute it and/or modify | ||
| 3 | * it under the terms of the GNU General Public License as published by | ||
| 4 | * the Free Software Foundation; either version 2 of the License, or | ||
| 5 | * (at your option) any later version. | ||
| 6 | * | 3 | * |
| 7 | * Copyright (C) Jonathan Naylor G4KLX (g4klx@g4klx.demon.co.uk) | 4 | * Copyright (C) Jonathan Naylor G4KLX (g4klx@g4klx.demon.co.uk) |
| 8 | */ | 5 | */ |
diff --git a/net/rose/rose_route.c b/net/rose/rose_route.c index f2ff21d7df08..c53307623236 100644 --- a/net/rose/rose_route.c +++ b/net/rose/rose_route.c | |||
| @@ -1,8 +1,5 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-or-later | ||
| 1 | /* | 2 | /* |
| 2 | * This program is free software; you can redistribute it and/or modify | ||
| 3 | * it under the terms of the GNU General Public License as published by | ||
| 4 | * the Free Software Foundation; either version 2 of the License, or | ||
| 5 | * (at your option) any later version. | ||
| 6 | * | 3 | * |
| 7 | * Copyright (C) Jonathan Naylor G4KLX (g4klx@g4klx.demon.co.uk) | 4 | * Copyright (C) Jonathan Naylor G4KLX (g4klx@g4klx.demon.co.uk) |
| 8 | * Copyright (C) Terry Dawson VK2KTJ (terry@animats.net) | 5 | * Copyright (C) Terry Dawson VK2KTJ (terry@animats.net) |
diff --git a/net/rose/rose_subr.c b/net/rose/rose_subr.c index 7849f286bb93..4dbc437a9e22 100644 --- a/net/rose/rose_subr.c +++ b/net/rose/rose_subr.c | |||
| @@ -1,8 +1,5 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-or-later | ||
| 1 | /* | 2 | /* |
| 2 | * This program is free software; you can redistribute it and/or modify | ||
| 3 | * it under the terms of the GNU General Public License as published by | ||
| 4 | * the Free Software Foundation; either version 2 of the License, or | ||
| 5 | * (at your option) any later version. | ||
| 6 | * | 3 | * |
| 7 | * Copyright (C) Jonathan Naylor G4KLX (g4klx@g4klx.demon.co.uk) | 4 | * Copyright (C) Jonathan Naylor G4KLX (g4klx@g4klx.demon.co.uk) |
| 8 | */ | 5 | */ |
diff --git a/net/rose/rose_timer.c b/net/rose/rose_timer.c index 74555fb95615..b3138fc2e552 100644 --- a/net/rose/rose_timer.c +++ b/net/rose/rose_timer.c | |||
| @@ -1,8 +1,5 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-or-later | ||
| 1 | /* | 2 | /* |
| 2 | * This program is free software; you can redistribute it and/or modify | ||
| 3 | * it under the terms of the GNU General Public License as published by | ||
| 4 | * the Free Software Foundation; either version 2 of the License, or | ||
| 5 | * (at your option) any later version. | ||
| 6 | * | 3 | * |
| 7 | * Copyright (C) Jonathan Naylor G4KLX (g4klx@g4klx.demon.co.uk) | 4 | * Copyright (C) Jonathan Naylor G4KLX (g4klx@g4klx.demon.co.uk) |
| 8 | * Copyright (C) 2002 Ralf Baechle DO1GRB (ralf@gnu.org) | 5 | * Copyright (C) 2002 Ralf Baechle DO1GRB (ralf@gnu.org) |
diff --git a/net/rose/sysctl_net_rose.c b/net/rose/sysctl_net_rose.c index 89a9278795a9..d391d7758f52 100644 --- a/net/rose/sysctl_net_rose.c +++ b/net/rose/sysctl_net_rose.c | |||
| @@ -1,8 +1,5 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-or-later | ||
| 1 | /* | 2 | /* |
| 2 | * This program is free software; you can redistribute it and/or modify | ||
| 3 | * it under the terms of the GNU General Public License as published by | ||
| 4 | * the Free Software Foundation; either version 2 of the License, or | ||
| 5 | * (at your option) any later version. | ||
| 6 | * | 3 | * |
| 7 | * Copyright (C) 1996 Mike Shaver (shaver@zeroknowledge.com) | 4 | * Copyright (C) 1996 Mike Shaver (shaver@zeroknowledge.com) |
| 8 | */ | 5 | */ |
diff --git a/net/rxrpc/af_rxrpc.c b/net/rxrpc/af_rxrpc.c index ffde5b187f5d..f9f4721cdfa7 100644 --- a/net/rxrpc/af_rxrpc.c +++ b/net/rxrpc/af_rxrpc.c | |||
| @@ -1,12 +1,8 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-or-later | ||
| 1 | /* AF_RXRPC implementation | 2 | /* AF_RXRPC implementation |
| 2 | * | 3 | * |
| 3 | * Copyright (C) 2007 Red Hat, Inc. All Rights Reserved. | 4 | * Copyright (C) 2007 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 License | ||
| 8 | * as published by the Free Software Foundation; either version | ||
| 9 | * 2 of the License, 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/ar-internal.h b/net/rxrpc/ar-internal.h index 07fc1dfa4878..80335b4ee4fd 100644 --- a/net/rxrpc/ar-internal.h +++ b/net/rxrpc/ar-internal.h | |||
| @@ -1,12 +1,8 @@ | |||
| 1 | /* SPDX-License-Identifier: GPL-2.0-or-later */ | ||
| 1 | /* AF_RXRPC internal definitions | 2 | /* AF_RXRPC internal definitions |
| 2 | * | 3 | * |
| 3 | * Copyright (C) 2007 Red Hat, Inc. All Rights Reserved. | 4 | * Copyright (C) 2007 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 License | ||
| 8 | * as published by the Free Software Foundation; either version | ||
| 9 | * 2 of the License, or (at your option) any later version. | ||
| 10 | */ | 6 | */ |
| 11 | 7 | ||
| 12 | #include <linux/atomic.h> | 8 | #include <linux/atomic.h> |
diff --git a/net/rxrpc/call_accept.c b/net/rxrpc/call_accept.c index 44860505246d..00c095d74145 100644 --- a/net/rxrpc/call_accept.c +++ b/net/rxrpc/call_accept.c | |||
| @@ -1,12 +1,8 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-or-later | ||
| 1 | /* incoming call handling | 2 | /* incoming call handling |
| 2 | * | 3 | * |
| 3 | * Copyright (C) 2007 Red Hat, Inc. All Rights Reserved. | 4 | * Copyright (C) 2007 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 License | ||
| 8 | * as published by the Free Software Foundation; either version | ||
| 9 | * 2 of the License, 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/call_event.c b/net/rxrpc/call_event.c index 468efc3660c0..bc2adeb3acb9 100644 --- a/net/rxrpc/call_event.c +++ b/net/rxrpc/call_event.c | |||
| @@ -1,12 +1,8 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-or-later | ||
| 1 | /* Management of Tx window, Tx resend, ACKs and out-of-sequence reception | 2 | /* Management of Tx window, Tx resend, ACKs and out-of-sequence reception |
| 2 | * | 3 | * |
| 3 | * Copyright (C) 2007 Red Hat, Inc. All Rights Reserved. | 4 | * Copyright (C) 2007 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 License | ||
| 8 | * as published by the Free Software Foundation; either version | ||
| 9 | * 2 of the License, 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/call_object.c b/net/rxrpc/call_object.c index d0ca98d7aef5..217b12be9e08 100644 --- a/net/rxrpc/call_object.c +++ b/net/rxrpc/call_object.c | |||
| @@ -1,12 +1,8 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-or-later | ||
| 1 | /* RxRPC individual remote procedure call handling | 2 | /* RxRPC individual remote procedure call handling |
| 2 | * | 3 | * |
| 3 | * Copyright (C) 2007 Red Hat, Inc. All Rights Reserved. | 4 | * Copyright (C) 2007 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 License | ||
| 8 | * as published by the Free Software Foundation; either version | ||
| 9 | * 2 of the License, 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/conn_event.c b/net/rxrpc/conn_event.c index 8d31fb4c51e1..df6624c140be 100644 --- a/net/rxrpc/conn_event.c +++ b/net/rxrpc/conn_event.c | |||
| @@ -1,12 +1,8 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-or-later | ||
| 1 | /* connection-level event handling | 2 | /* connection-level event handling |
| 2 | * | 3 | * |
| 3 | * Copyright (C) 2007 Red Hat, Inc. All Rights Reserved. | 4 | * Copyright (C) 2007 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 License | ||
| 8 | * as published by the Free Software Foundation; either version | ||
| 9 | * 2 of the License, 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/conn_object.c b/net/rxrpc/conn_object.c index c332722820c2..434ef392212b 100644 --- a/net/rxrpc/conn_object.c +++ b/net/rxrpc/conn_object.c | |||
| @@ -1,12 +1,8 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-or-later | ||
| 1 | /* RxRPC virtual connection handler, common bits. | 2 | /* RxRPC virtual connection handler, common bits. |
| 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 License | ||
| 8 | * as published by the Free Software Foundation; either version | ||
| 9 | * 2 of the License, 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/input.c b/net/rxrpc/input.c index c2c35cf4e308..5bd6f1546e5c 100644 --- a/net/rxrpc/input.c +++ b/net/rxrpc/input.c | |||
| @@ -1,12 +1,8 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-or-later | ||
| 1 | /* RxRPC packet reception | 2 | /* RxRPC packet reception |
| 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 License | ||
| 8 | * as published by the Free Software Foundation; either version | ||
| 9 | * 2 of the License, 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/key.c b/net/rxrpc/key.c index e7f6b8823eb6..83e3357a65a6 100644 --- a/net/rxrpc/key.c +++ b/net/rxrpc/key.c | |||
| @@ -1,13 +1,9 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-or-later | ||
| 1 | /* RxRPC key management | 2 | /* RxRPC key management |
| 2 | * | 3 | * |
| 3 | * Copyright (C) 2007 Red Hat, Inc. All Rights Reserved. | 4 | * Copyright (C) 2007 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 License | ||
| 8 | * as published by the Free Software Foundation; either version | ||
| 9 | * 2 of the License, or (at your option) any later version. | ||
| 10 | * | ||
| 11 | * RxRPC keys should have a description of describing their purpose: | 7 | * RxRPC keys should have a description of describing their purpose: |
| 12 | * "afs@CAMBRIDGE.REDHAT.COM> | 8 | * "afs@CAMBRIDGE.REDHAT.COM> |
| 13 | */ | 9 | */ |
diff --git a/net/rxrpc/local_event.c b/net/rxrpc/local_event.c index 927ead43df42..e93a78f7c05e 100644 --- a/net/rxrpc/local_event.c +++ b/net/rxrpc/local_event.c | |||
| @@ -1,12 +1,8 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-or-later | ||
| 1 | /* AF_RXRPC local endpoint management | 2 | /* AF_RXRPC local endpoint management |
| 2 | * | 3 | * |
| 3 | * Copyright (C) 2007 Red Hat, Inc. All Rights Reserved. | 4 | * Copyright (C) 2007 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 License | ||
| 8 | * as published by the Free Software Foundation; either version | ||
| 9 | * 2 of the License, 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/output.c b/net/rxrpc/output.c index 004c762c2e8d..a0b6abfbd277 100644 --- a/net/rxrpc/output.c +++ b/net/rxrpc/output.c | |||
| @@ -1,12 +1,8 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-or-later | ||
| 1 | /* RxRPC packet transmission | 2 | /* RxRPC packet transmission |
| 2 | * | 3 | * |
| 3 | * Copyright (C) 2007 Red Hat, Inc. All Rights Reserved. | 4 | * Copyright (C) 2007 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 License | ||
| 8 | * as published by the Free Software Foundation; either version | ||
| 9 | * 2 of the License, 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/peer_event.c b/net/rxrpc/peer_event.c index 6e84d878053c..9f2f45c09e58 100644 --- a/net/rxrpc/peer_event.c +++ b/net/rxrpc/peer_event.c | |||
| @@ -1,12 +1,8 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-or-later | ||
| 1 | /* Peer event handling, typically ICMP messages. | 2 | /* Peer event handling, typically ICMP messages. |
| 2 | * | 3 | * |
| 3 | * Copyright (C) 2007 Red Hat, Inc. All Rights Reserved. | 4 | * Copyright (C) 2007 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 License | ||
| 8 | * as published by the Free Software Foundation; either version | ||
| 9 | * 2 of the License, or (at your option) any later version. | ||
| 10 | */ | 6 | */ |
| 11 | 7 | ||
| 12 | #include <linux/module.h> | 8 | #include <linux/module.h> |
diff --git a/net/rxrpc/peer_object.c b/net/rxrpc/peer_object.c index 5691b7d266ca..9d3ce81cf8ae 100644 --- a/net/rxrpc/peer_object.c +++ b/net/rxrpc/peer_object.c | |||
| @@ -1,12 +1,8 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-or-later | ||
| 1 | /* RxRPC remote transport endpoint record management | 2 | /* RxRPC remote transport endpoint record management |
| 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 License | ||
| 8 | * as published by the Free Software Foundation; either version | ||
| 9 | * 2 of the License, 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/proc.c b/net/rxrpc/proc.c index c7d976859d40..b9d053e42821 100644 --- a/net/rxrpc/proc.c +++ b/net/rxrpc/proc.c | |||
| @@ -1,12 +1,8 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-or-later | ||
| 1 | /* /proc/net/ support for AF_RXRPC | 2 | /* /proc/net/ support for AF_RXRPC |
| 2 | * | 3 | * |
| 3 | * Copyright (C) 2007 Red Hat, Inc. All Rights Reserved. | 4 | * Copyright (C) 2007 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 License | ||
| 8 | * as published by the Free Software Foundation; either version | ||
| 9 | * 2 of the License, or (at your option) any later version. | ||
| 10 | */ | 6 | */ |
| 11 | 7 | ||
| 12 | #include <linux/module.h> | 8 | #include <linux/module.h> |
diff --git a/net/rxrpc/protocol.h b/net/rxrpc/protocol.h index f9cb83c938f3..99ce322d7caa 100644 --- a/net/rxrpc/protocol.h +++ b/net/rxrpc/protocol.h | |||
| @@ -1,12 +1,8 @@ | |||
| 1 | /* SPDX-License-Identifier: GPL-2.0-or-later */ | ||
| 1 | /* packet.h: Rx packet layout and definitions | 2 | /* packet.h: Rx packet layout and definitions |
| 2 | * | 3 | * |
| 3 | * Copyright (C) 2002, 2007 Red Hat, Inc. All Rights Reserved. | 4 | * Copyright (C) 2002, 2007 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 License | ||
| 8 | * as published by the Free Software Foundation; either version | ||
| 9 | * 2 of the License, or (at your option) any later version. | ||
| 10 | */ | 6 | */ |
| 11 | 7 | ||
| 12 | #ifndef _LINUX_RXRPC_PACKET_H | 8 | #ifndef _LINUX_RXRPC_PACKET_H |
diff --git a/net/rxrpc/recvmsg.c b/net/rxrpc/recvmsg.c index 3f7bb11f3290..5abf46cf9e6c 100644 --- a/net/rxrpc/recvmsg.c +++ b/net/rxrpc/recvmsg.c | |||
| @@ -1,12 +1,8 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-or-later | ||
| 1 | /* RxRPC recvmsg() implementation | 2 | /* RxRPC recvmsg() implementation |
| 2 | * | 3 | * |
| 3 | * Copyright (C) 2007 Red Hat, Inc. All Rights Reserved. | 4 | * Copyright (C) 2007 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 License | ||
| 8 | * as published by the Free Software Foundation; either version | ||
| 9 | * 2 of the License, 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/rxkad.c b/net/rxrpc/rxkad.c index cbef9ea43dec..ae8cd8926456 100644 --- a/net/rxrpc/rxkad.c +++ b/net/rxrpc/rxkad.c | |||
| @@ -1,12 +1,8 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-or-later | ||
| 1 | /* Kerberos-based RxRPC security | 2 | /* Kerberos-based RxRPC security |
| 2 | * | 3 | * |
| 3 | * Copyright (C) 2007 Red Hat, Inc. All Rights Reserved. | 4 | * Copyright (C) 2007 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 License | ||
| 8 | * as published by the Free Software Foundation; either version | ||
| 9 | * 2 of the License, 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/security.c b/net/rxrpc/security.c index c4479afe8ae7..2e78f0cc7ef1 100644 --- a/net/rxrpc/security.c +++ b/net/rxrpc/security.c | |||
| @@ -1,12 +1,8 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-or-later | ||
| 1 | /* RxRPC security handling | 2 | /* RxRPC security handling |
| 2 | * | 3 | * |
| 3 | * Copyright (C) 2007 Red Hat, Inc. All Rights Reserved. | 4 | * Copyright (C) 2007 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 License | ||
| 8 | * as published by the Free Software Foundation; either version | ||
| 9 | * 2 of the License, or (at your option) any later version. | ||
| 10 | */ | 6 | */ |
| 11 | 7 | ||
| 12 | #include <linux/module.h> | 8 | #include <linux/module.h> |
diff --git a/net/rxrpc/skbuff.c b/net/rxrpc/skbuff.c index 913dca65cc65..9ad5045b7c2f 100644 --- a/net/rxrpc/skbuff.c +++ b/net/rxrpc/skbuff.c | |||
| @@ -1,12 +1,8 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-or-later | ||
| 1 | /* ar-skbuff.c: socket buffer destruction handling | 2 | /* ar-skbuff.c: socket buffer destruction handling |
| 2 | * | 3 | * |
| 3 | * Copyright (C) 2007 Red Hat, Inc. All Rights Reserved. | 4 | * Copyright (C) 2007 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 License | ||
| 8 | * as published by the Free Software Foundation; either version | ||
| 9 | * 2 of the License, 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/sched/act_api.c b/net/sched/act_api.c index 683fcc00da49..4e5d2e9ace5d 100644 --- a/net/sched/act_api.c +++ b/net/sched/act_api.c | |||
| @@ -1,14 +1,8 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-or-later | ||
| 1 | /* | 2 | /* |
| 2 | * net/sched/act_api.c Packet action API. | 3 | * net/sched/act_api.c Packet action API. |
| 3 | * | 4 | * |
| 4 | * This program is free software; you can redistribute 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 | * Author: Jamal Hadi Salim | 5 | * Author: Jamal Hadi Salim |
| 10 | * | ||
| 11 | * | ||
| 12 | */ | 6 | */ |
| 13 | 7 | ||
| 14 | #include <linux/types.h> | 8 | #include <linux/types.h> |
| @@ -800,7 +794,7 @@ int tcf_action_dump(struct sk_buff *skb, struct tc_action *actions[], | |||
| 800 | 794 | ||
| 801 | for (i = 0; i < TCA_ACT_MAX_PRIO && actions[i]; i++) { | 795 | for (i = 0; i < TCA_ACT_MAX_PRIO && actions[i]; i++) { |
| 802 | a = actions[i]; | 796 | a = actions[i]; |
| 803 | nest = nla_nest_start_noflag(skb, a->order); | 797 | nest = nla_nest_start_noflag(skb, i + 1); |
| 804 | if (nest == NULL) | 798 | if (nest == NULL) |
| 805 | goto nla_put_failure; | 799 | goto nla_put_failure; |
| 806 | err = tcf_action_dump_1(skb, a, bind, ref); | 800 | err = tcf_action_dump_1(skb, a, bind, ref); |
| @@ -1303,7 +1297,6 @@ tca_action_gd(struct net *net, struct nlattr *nla, struct nlmsghdr *n, | |||
| 1303 | ret = PTR_ERR(act); | 1297 | ret = PTR_ERR(act); |
| 1304 | goto err; | 1298 | goto err; |
| 1305 | } | 1299 | } |
| 1306 | act->order = i; | ||
| 1307 | attr_size += tcf_action_fill_size(act); | 1300 | attr_size += tcf_action_fill_size(act); |
| 1308 | actions[i - 1] = act; | 1301 | actions[i - 1] = act; |
| 1309 | } | 1302 | } |
diff --git a/net/sched/act_bpf.c b/net/sched/act_bpf.c index a0c77faca04b..8126b26f125e 100644 --- a/net/sched/act_bpf.c +++ b/net/sched/act_bpf.c | |||
| @@ -1,10 +1,6 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-or-later | ||
| 1 | /* | 2 | /* |
| 2 | * Copyright (c) 2015 Jiri Pirko <jiri@resnulli.us> | 3 | * Copyright (c) 2015 Jiri Pirko <jiri@resnulli.us> |
| 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 | */ | 4 | */ |
| 9 | 5 | ||
| 10 | #include <linux/module.h> | 6 | #include <linux/module.h> |
diff --git a/net/sched/act_connmark.c b/net/sched/act_connmark.c index 8838575cd536..ce36b0f7e1dc 100644 --- a/net/sched/act_connmark.c +++ b/net/sched/act_connmark.c | |||
| @@ -1,13 +1,9 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-or-later | ||
| 1 | /* | 2 | /* |
| 2 | * net/sched/act_connmark.c netfilter connmark retriever action | 3 | * net/sched/act_connmark.c netfilter connmark retriever action |
| 3 | * skb mark is over-written | 4 | * skb mark is over-written |
| 4 | * | 5 | * |
| 5 | * Copyright (c) 2011 Felix Fietkau <nbd@openwrt.org> | 6 | * Copyright (c) 2011 Felix Fietkau <nbd@openwrt.org> |
| 6 | * | ||
| 7 | * This program is free software; you can redistribute it and/or modify | ||
| 8 | * it under the terms of the GNU General Public License as published by | ||
| 9 | * the Free Software Foundation; either version 2 of the License, or | ||
| 10 | * (at your option) any later version. | ||
| 11 | */ | 7 | */ |
| 12 | 8 | ||
| 13 | #include <linux/module.h> | 9 | #include <linux/module.h> |
diff --git a/net/sched/act_csum.c b/net/sched/act_csum.c index 14bb525e355e..621fb22ce2a9 100644 --- a/net/sched/act_csum.c +++ b/net/sched/act_csum.c | |||
| @@ -1,13 +1,8 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-or-later | ||
| 1 | /* | 2 | /* |
| 2 | * Checksum updating actions | 3 | * Checksum updating actions |
| 3 | * | 4 | * |
| 4 | * Copyright (c) 2010 Gregoire Baron <baronchon@n7mm.org> | 5 | * Copyright (c) 2010 Gregoire Baron <baronchon@n7mm.org> |
| 5 | * | ||
| 6 | * This program is free software; you can redistribute it and/or modify it | ||
| 7 | * under the terms of the GNU General Public License as published by the Free | ||
| 8 | * Software Foundation; either version 2 of the License, or (at your option) | ||
| 9 | * any later version. | ||
| 10 | * | ||
| 11 | */ | 6 | */ |
| 12 | 7 | ||
| 13 | #include <linux/types.h> | 8 | #include <linux/types.h> |
diff --git a/net/sched/act_gact.c b/net/sched/act_gact.c index 75492b07f324..b2380c5284e6 100644 --- a/net/sched/act_gact.c +++ b/net/sched/act_gact.c | |||
| @@ -1,13 +1,8 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-or-later | ||
| 1 | /* | 2 | /* |
| 2 | * net/sched/act_gact.c Generic actions | 3 | * net/sched/act_gact.c Generic actions |
| 3 | * | 4 | * |
| 4 | * This program is free software; you can redistribute 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 | * copyright Jamal Hadi Salim (2002-4) | 5 | * copyright Jamal Hadi Salim (2002-4) |
| 10 | * | ||
| 11 | */ | 6 | */ |
| 12 | 7 | ||
| 13 | #include <linux/types.h> | 8 | #include <linux/types.h> |
diff --git a/net/sched/act_ife.c b/net/sched/act_ife.c index 12489f60a979..41d5398dd2f2 100644 --- a/net/sched/act_ife.c +++ b/net/sched/act_ife.c | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-or-later | ||
| 1 | /* | 2 | /* |
| 2 | * net/sched/ife.c Inter-FE action based on ForCES WG InterFE LFB | 3 | * net/sched/ife.c Inter-FE action based on ForCES WG InterFE LFB |
| 3 | * | 4 | * |
| @@ -9,13 +10,7 @@ | |||
| 9 | * Subsystem" | 10 | * Subsystem" |
| 10 | * Authors: Jamal Hadi Salim and Damascene M. Joachimpillai | 11 | * Authors: Jamal Hadi Salim and Damascene M. Joachimpillai |
| 11 | * | 12 | * |
| 12 | * This program is free software; you can redistribute it and/or | ||
| 13 | * modify it under the terms of the GNU General Public License | ||
| 14 | * as published by the Free Software Foundation; either version | ||
| 15 | * 2 of the License, or (at your option) any later version. | ||
| 16 | * | ||
| 17 | * copyright Jamal Hadi Salim (2015) | 13 | * copyright Jamal Hadi Salim (2015) |
| 18 | * | ||
| 19 | */ | 14 | */ |
| 20 | 15 | ||
| 21 | #include <linux/types.h> | 16 | #include <linux/types.h> |
diff --git a/net/sched/act_ipt.c b/net/sched/act_ipt.c index ae6e28ab1cd7..ce2c30a591d2 100644 --- a/net/sched/act_ipt.c +++ b/net/sched/act_ipt.c | |||
| @@ -1,13 +1,9 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-or-later | ||
| 1 | /* | 2 | /* |
| 2 | * net/sched/act_ipt.c iptables target interface | 3 | * net/sched/act_ipt.c iptables target interface |
| 3 | * | 4 | * |
| 4 | *TODO: Add other tables. For now we only support the ipv4 table targets | 5 | *TODO: Add other tables. For now we only support the ipv4 table targets |
| 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 License | ||
| 8 | * as published by the Free Software Foundation; either version | ||
| 9 | * 2 of the License, or (at your option) any later version. | ||
| 10 | * | ||
| 11 | * Copyright: Jamal Hadi Salim (2002-13) | 7 | * Copyright: Jamal Hadi Salim (2002-13) |
| 12 | */ | 8 | */ |
| 13 | 9 | ||
diff --git a/net/sched/act_meta_mark.c b/net/sched/act_meta_mark.c index 6445184b2759..ea0573cb8b2d 100644 --- a/net/sched/act_meta_mark.c +++ b/net/sched/act_meta_mark.c | |||
| @@ -1,13 +1,8 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-or-later | ||
| 1 | /* | 2 | /* |
| 2 | * net/sched/act_meta_mark.c IFE skb->mark metadata module | 3 | * net/sched/act_meta_mark.c IFE skb->mark metadata module |
| 3 | * | 4 | * |
| 4 | * This program is free software; you can redistribute 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 | * copyright Jamal Hadi Salim (2015) | 5 | * copyright Jamal Hadi Salim (2015) |
| 10 | * | ||
| 11 | */ | 6 | */ |
| 12 | 7 | ||
| 13 | #include <linux/types.h> | 8 | #include <linux/types.h> |
diff --git a/net/sched/act_meta_skbprio.c b/net/sched/act_meta_skbprio.c index 4033f9fc4d4a..2df3133ce5ad 100644 --- a/net/sched/act_meta_skbprio.c +++ b/net/sched/act_meta_skbprio.c | |||
| @@ -1,13 +1,8 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-or-later | ||
| 1 | /* | 2 | /* |
| 2 | * net/sched/act_meta_prio.c IFE skb->priority metadata module | 3 | * net/sched/act_meta_prio.c IFE skb->priority metadata module |
| 3 | * | 4 | * |
| 4 | * This program is free software; you can redistribute 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 | * copyright Jamal Hadi Salim (2015) | 5 | * copyright Jamal Hadi Salim (2015) |
| 10 | * | ||
| 11 | */ | 6 | */ |
| 12 | 7 | ||
| 13 | #include <linux/types.h> | 8 | #include <linux/types.h> |
diff --git a/net/sched/act_meta_skbtcindex.c b/net/sched/act_meta_skbtcindex.c index 7221437ca3a6..44547caead46 100644 --- a/net/sched/act_meta_skbtcindex.c +++ b/net/sched/act_meta_skbtcindex.c | |||
| @@ -1,13 +1,8 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-or-later | ||
| 1 | /* | 2 | /* |
| 2 | * net/sched/act_meta_tc_index.c IFE skb->tc_index metadata module | 3 | * net/sched/act_meta_tc_index.c IFE skb->tc_index metadata module |
| 3 | * | 4 | * |
| 4 | * This program is free software; you can redistribute 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 | * copyright Jamal Hadi Salim (2016) | 5 | * copyright Jamal Hadi Salim (2016) |
| 10 | * | ||
| 11 | */ | 6 | */ |
| 12 | 7 | ||
| 13 | #include <linux/types.h> | 8 | #include <linux/types.h> |
diff --git a/net/sched/act_mirred.c b/net/sched/act_mirred.c index c329390342f4..58e7573dded4 100644 --- a/net/sched/act_mirred.c +++ b/net/sched/act_mirred.c | |||
| @@ -1,15 +1,10 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-or-later | ||
| 1 | /* | 2 | /* |
| 2 | * net/sched/act_mirred.c packet mirroring and redirect actions | 3 | * net/sched/act_mirred.c packet mirroring and redirect actions |
| 3 | * | 4 | * |
| 4 | * This program is free software; you can redistribute 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 | * Authors: Jamal Hadi Salim (2002-4) | 5 | * Authors: Jamal Hadi Salim (2002-4) |
| 10 | * | 6 | * |
| 11 | * TODO: Add ingress support (and socket redirect support) | 7 | * TODO: Add ingress support (and socket redirect support) |
| 12 | * | ||
| 13 | */ | 8 | */ |
| 14 | 9 | ||
| 15 | #include <linux/types.h> | 10 | #include <linux/types.h> |
diff --git a/net/sched/act_nat.c b/net/sched/act_nat.c index 51bd1ba02380..45923ebb7a4f 100644 --- a/net/sched/act_nat.c +++ b/net/sched/act_nat.c | |||
| @@ -1,12 +1,8 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-or-later | ||
| 1 | /* | 2 | /* |
| 2 | * Stateless NAT actions | 3 | * Stateless NAT actions |
| 3 | * | 4 | * |
| 4 | * Copyright (c) 2007 Herbert Xu <herbert@gondor.apana.org.au> | 5 | * Copyright (c) 2007 Herbert Xu <herbert@gondor.apana.org.au> |
| 5 | * | ||
| 6 | * This program is free software; you can redistribute it and/or modify it | ||
| 7 | * under the terms of the GNU General Public License as published by the Free | ||
| 8 | * Software Foundation; either version 2 of the License, or (at your option) | ||
| 9 | * any later version. | ||
| 10 | */ | 6 | */ |
| 11 | 7 | ||
| 12 | #include <linux/errno.h> | 8 | #include <linux/errno.h> |
diff --git a/net/sched/act_pedit.c b/net/sched/act_pedit.c index d790c02b9c6c..45e9d6bfddb3 100644 --- a/net/sched/act_pedit.c +++ b/net/sched/act_pedit.c | |||
| @@ -1,11 +1,7 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-or-later | ||
| 1 | /* | 2 | /* |
| 2 | * net/sched/act_pedit.c Generic packet editor | 3 | * net/sched/act_pedit.c Generic packet editor |
| 3 | * | 4 | * |
| 4 | * This program is free software; you can redistribute 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 | * Authors: Jamal Hadi Salim (2002-4) | 5 | * Authors: Jamal Hadi Salim (2002-4) |
| 10 | */ | 6 | */ |
| 11 | 7 | ||
diff --git a/net/sched/act_police.c b/net/sched/act_police.c index 61731944742a..a065f62fa79c 100644 --- a/net/sched/act_police.c +++ b/net/sched/act_police.c | |||
| @@ -1,11 +1,7 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-or-later | ||
| 1 | /* | 2 | /* |
| 2 | * net/sched/act_police.c Input police filter | 3 | * net/sched/act_police.c Input police filter |
| 3 | * | 4 | * |
| 4 | * This program is free software; you can redistribute 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 | * Authors: Alexey Kuznetsov, <kuznet@ms2.inr.ac.ru> | 5 | * Authors: Alexey Kuznetsov, <kuznet@ms2.inr.ac.ru> |
| 10 | * J Hadi Salim (action changes) | 6 | * J Hadi Salim (action changes) |
| 11 | */ | 7 | */ |
diff --git a/net/sched/act_simple.c b/net/sched/act_simple.c index ead480e6014c..f28ddbabff76 100644 --- a/net/sched/act_simple.c +++ b/net/sched/act_simple.c | |||
| @@ -1,13 +1,8 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-or-later | ||
| 1 | /* | 2 | /* |
| 2 | * net/sched/act_simple.c Simple example of an action | 3 | * net/sched/act_simple.c Simple example of an action |
| 3 | * | 4 | * |
| 4 | * This program is free software; you can redistribute 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 | * Authors: Jamal Hadi Salim (2005-8) | 5 | * Authors: Jamal Hadi Salim (2005-8) |
| 10 | * | ||
| 11 | */ | 6 | */ |
| 12 | 7 | ||
| 13 | #include <linux/module.h> | 8 | #include <linux/module.h> |
diff --git a/net/sched/act_skbedit.c b/net/sched/act_skbedit.c index 7ec159b95364..215a06705cef 100644 --- a/net/sched/act_skbedit.c +++ b/net/sched/act_skbedit.c | |||
| @@ -1,18 +1,7 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-only | ||
| 1 | /* | 2 | /* |
| 2 | * Copyright (c) 2008, Intel Corporation. | 3 | * Copyright (c) 2008, Intel Corporation. |
| 3 | * | 4 | * |
| 4 | * This program is free software; you can redistribute it and/or modify it | ||
| 5 | * under the terms and conditions of the GNU General Public License, | ||
| 6 | * version 2, as published by the Free Software Foundation. | ||
| 7 | * | ||
| 8 | * This program is distributed in the hope it will be useful, but WITHOUT | ||
| 9 | * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or | ||
| 10 | * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for | ||
| 11 | * more details. | ||
| 12 | * | ||
| 13 | * You should have received a copy of the GNU General Public License along with | ||
| 14 | * this program; if not, see <http://www.gnu.org/licenses/>. | ||
| 15 | * | ||
| 16 | * Author: Alexander Duyck <alexander.h.duyck@intel.com> | 5 | * Author: Alexander Duyck <alexander.h.duyck@intel.com> |
| 17 | */ | 6 | */ |
| 18 | 7 | ||
diff --git a/net/sched/act_skbmod.c b/net/sched/act_skbmod.c index 186ef98c828f..4f07706eff07 100644 --- a/net/sched/act_skbmod.c +++ b/net/sched/act_skbmod.c | |||
| @@ -1,12 +1,8 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-or-later | ||
| 1 | /* | 2 | /* |
| 2 | * net/sched/act_skbmod.c skb data modifier | 3 | * net/sched/act_skbmod.c skb data modifier |
| 3 | * | 4 | * |
| 4 | * Copyright (c) 2016 Jamal Hadi Salim <jhs@mojatatu.com> | 5 | * Copyright (c) 2016 Jamal Hadi Salim <jhs@mojatatu.com> |
| 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 | */ | 6 | */ |
| 11 | 7 | ||
| 12 | #include <linux/module.h> | 8 | #include <linux/module.h> |
diff --git a/net/sched/act_tunnel_key.c b/net/sched/act_tunnel_key.c index 6a9070511ee8..10dffda1d5cc 100644 --- a/net/sched/act_tunnel_key.c +++ b/net/sched/act_tunnel_key.c | |||
| @@ -1,11 +1,7 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-or-later | ||
| 1 | /* | 2 | /* |
| 2 | * Copyright (c) 2016, Amir Vadai <amir@vadai.me> | 3 | * Copyright (c) 2016, Amir Vadai <amir@vadai.me> |
| 3 | * Copyright (c) 2016, Mellanox Technologies. All rights reserved. | 4 | * Copyright (c) 2016, Mellanox Technologies. All rights reserved. |
| 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 | */ | 5 | */ |
| 10 | 6 | ||
| 11 | #include <linux/module.h> | 7 | #include <linux/module.h> |
diff --git a/net/sched/act_vlan.c b/net/sched/act_vlan.c index 39bd9fa3e455..9269d350fb8a 100644 --- a/net/sched/act_vlan.c +++ b/net/sched/act_vlan.c | |||
| @@ -1,10 +1,6 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-or-later | ||
| 1 | /* | 2 | /* |
| 2 | * Copyright (c) 2014 Jiri Pirko <jiri@resnulli.us> | 3 | * Copyright (c) 2014 Jiri Pirko <jiri@resnulli.us> |
| 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 | */ | 4 | */ |
| 9 | 5 | ||
| 10 | #include <linux/module.h> | 6 | #include <linux/module.h> |
diff --git a/net/sched/cls_api.c b/net/sched/cls_api.c index d4699156974a..ad36bbcc583e 100644 --- a/net/sched/cls_api.c +++ b/net/sched/cls_api.c | |||
| @@ -1,17 +1,12 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-or-later | ||
| 1 | /* | 2 | /* |
| 2 | * net/sched/cls_api.c Packet classifier API. | 3 | * net/sched/cls_api.c Packet classifier API. |
| 3 | * | 4 | * |
| 4 | * This program is free software; you can redistribute 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 | * Authors: Alexey Kuznetsov, <kuznet@ms2.inr.ac.ru> | 5 | * Authors: Alexey Kuznetsov, <kuznet@ms2.inr.ac.ru> |
| 10 | * | 6 | * |
| 11 | * Changes: | 7 | * Changes: |
| 12 | * | 8 | * |
| 13 | * Eduardo J. Blanco <ejbs@netlabs.com.uy> :990222: kmod support | 9 | * Eduardo J. Blanco <ejbs@netlabs.com.uy> :990222: kmod support |
| 14 | * | ||
| 15 | */ | 10 | */ |
| 16 | 11 | ||
| 17 | #include <linux/module.h> | 12 | #include <linux/module.h> |
diff --git a/net/sched/cls_basic.c b/net/sched/cls_basic.c index 923863f3b0d8..4aafbe3d435c 100644 --- a/net/sched/cls_basic.c +++ b/net/sched/cls_basic.c | |||
| @@ -1,11 +1,7 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-or-later | ||
| 1 | /* | 2 | /* |
| 2 | * net/sched/cls_basic.c Basic Packet Classifier. | 3 | * net/sched/cls_basic.c Basic Packet Classifier. |
| 3 | * | 4 | * |
| 4 | * This program is free software; you can redistribute 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 | * Authors: Thomas Graf <tgraf@suug.ch> | 5 | * Authors: Thomas Graf <tgraf@suug.ch> |
| 10 | */ | 6 | */ |
| 11 | 7 | ||
diff --git a/net/sched/cls_cgroup.c b/net/sched/cls_cgroup.c index 35659127e5a3..fb881144fa01 100644 --- a/net/sched/cls_cgroup.c +++ b/net/sched/cls_cgroup.c | |||
| @@ -1,11 +1,7 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-or-later | ||
| 1 | /* | 2 | /* |
| 2 | * net/sched/cls_cgroup.c Control Group Classifier | 3 | * net/sched/cls_cgroup.c Control Group Classifier |
| 3 | * | 4 | * |
| 4 | * This program is free software; you can redistribute 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 | * Authors: Thomas Graf <tgraf@suug.ch> | 5 | * Authors: Thomas Graf <tgraf@suug.ch> |
| 10 | */ | 6 | */ |
| 11 | 7 | ||
diff --git a/net/sched/cls_flow.c b/net/sched/cls_flow.c index 7bb79ec5b176..80ae7b9fa90a 100644 --- a/net/sched/cls_flow.c +++ b/net/sched/cls_flow.c | |||
| @@ -1,12 +1,8 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-or-later | ||
| 1 | /* | 2 | /* |
| 2 | * net/sched/cls_flow.c Generic flow classifier | 3 | * net/sched/cls_flow.c Generic flow classifier |
| 3 | * | 4 | * |
| 4 | * Copyright (c) 2007, 2008 Patrick McHardy <kaber@trash.net> | 5 | * Copyright (c) 2007, 2008 Patrick McHardy <kaber@trash.net> |
| 5 | * | ||
| 6 | * This program is free software; you can redistribute it and/or | ||
| 7 | * modify it under the terms of the GNU General Public License | ||
| 8 | * as published by the Free Software Foundation; either version 2 | ||
| 9 | * of the License, 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/sched/cls_flower.c b/net/sched/cls_flower.c index f6685fc53119..c388372df0e2 100644 --- a/net/sched/cls_flower.c +++ b/net/sched/cls_flower.c | |||
| @@ -1,12 +1,8 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-or-later | ||
| 1 | /* | 2 | /* |
| 2 | * net/sched/cls_flower.c Flower classifier | 3 | * net/sched/cls_flower.c Flower classifier |
| 3 | * | 4 | * |
| 4 | * Copyright (c) 2015 Jiri Pirko <jiri@resnulli.us> | 5 | * Copyright (c) 2015 Jiri Pirko <jiri@resnulli.us> |
| 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 | */ | 6 | */ |
| 11 | 7 | ||
| 12 | #include <linux/kernel.h> | 8 | #include <linux/kernel.h> |
diff --git a/net/sched/cls_fw.c b/net/sched/cls_fw.c index 1d0b39c3932f..4dab833f66cb 100644 --- a/net/sched/cls_fw.c +++ b/net/sched/cls_fw.c | |||
| @@ -1,11 +1,7 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-or-later | ||
| 1 | /* | 2 | /* |
| 2 | * net/sched/cls_fw.c Classifier mapping ipchains' fwmark to traffic class. | 3 | * net/sched/cls_fw.c Classifier mapping ipchains' fwmark to traffic class. |
| 3 | * | 4 | * |
| 4 | * This program is free software; you can redistribute 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 | * Authors: Alexey Kuznetsov, <kuznet@ms2.inr.ac.ru> | 5 | * Authors: Alexey Kuznetsov, <kuznet@ms2.inr.ac.ru> |
| 10 | * | 6 | * |
| 11 | * Changes: | 7 | * Changes: |
| @@ -15,7 +11,6 @@ | |||
| 15 | * | 11 | * |
| 16 | * JHS: We should remove the CONFIG_NET_CLS_IND from here | 12 | * JHS: We should remove the CONFIG_NET_CLS_IND from here |
| 17 | * eventually when the meta match extension is made available | 13 | * eventually when the meta match extension is made available |
| 18 | * | ||
| 19 | */ | 14 | */ |
| 20 | 15 | ||
| 21 | #include <linux/module.h> | 16 | #include <linux/module.h> |
diff --git a/net/sched/cls_matchall.c b/net/sched/cls_matchall.c index db42d97a2006..38c0a9f0f296 100644 --- a/net/sched/cls_matchall.c +++ b/net/sched/cls_matchall.c | |||
| @@ -1,12 +1,8 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-or-later | ||
| 1 | /* | 2 | /* |
| 2 | * net/sched/cls_matchll.c Match-all classifier | 3 | * net/sched/cls_matchll.c Match-all classifier |
| 3 | * | 4 | * |
| 4 | * Copyright (c) 2016 Jiri Pirko <jiri@mellanox.com> | 5 | * Copyright (c) 2016 Jiri Pirko <jiri@mellanox.com> |
| 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 | */ | 6 | */ |
| 11 | 7 | ||
| 12 | #include <linux/kernel.h> | 8 | #include <linux/kernel.h> |
diff --git a/net/sched/cls_route.c b/net/sched/cls_route.c index eeff5bbfb912..2d9e0b4484ea 100644 --- a/net/sched/cls_route.c +++ b/net/sched/cls_route.c | |||
| @@ -1,11 +1,7 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-or-later | ||
| 1 | /* | 2 | /* |
| 2 | * net/sched/cls_route.c ROUTE4 classifier. | 3 | * net/sched/cls_route.c ROUTE4 classifier. |
| 3 | * | 4 | * |
| 4 | * This program is free software; you can redistribute 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 | * Authors: Alexey Kuznetsov, <kuznet@ms2.inr.ac.ru> | 5 | * Authors: Alexey Kuznetsov, <kuznet@ms2.inr.ac.ru> |
| 10 | */ | 6 | */ |
| 11 | 7 | ||
diff --git a/net/sched/cls_rsvp.c b/net/sched/cls_rsvp.c index cbb5e0d600f3..de1c1d4da597 100644 --- a/net/sched/cls_rsvp.c +++ b/net/sched/cls_rsvp.c | |||
| @@ -1,11 +1,7 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-or-later | ||
| 1 | /* | 2 | /* |
| 2 | * net/sched/cls_rsvp.c Special RSVP packet classifier for IPv4. | 3 | * net/sched/cls_rsvp.c Special RSVP packet classifier for IPv4. |
| 3 | * | 4 | * |
| 4 | * This program is free software; you can redistribute 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 | * Authors: Alexey Kuznetsov, <kuznet@ms2.inr.ac.ru> | 5 | * Authors: Alexey Kuznetsov, <kuznet@ms2.inr.ac.ru> |
| 10 | */ | 6 | */ |
| 11 | 7 | ||
diff --git a/net/sched/cls_rsvp.h b/net/sched/cls_rsvp.h index a4688bb92f43..2f3c03b25d5d 100644 --- a/net/sched/cls_rsvp.h +++ b/net/sched/cls_rsvp.h | |||
| @@ -1,11 +1,7 @@ | |||
| 1 | /* SPDX-License-Identifier: GPL-2.0-or-later */ | ||
| 1 | /* | 2 | /* |
| 2 | * net/sched/cls_rsvp.h Template file for RSVPv[46] classifiers. | 3 | * net/sched/cls_rsvp.h Template file for RSVPv[46] classifiers. |
| 3 | * | 4 | * |
| 4 | * This program is free software; you can redistribute 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 | * Authors: Alexey Kuznetsov, <kuznet@ms2.inr.ac.ru> | 5 | * Authors: Alexey Kuznetsov, <kuznet@ms2.inr.ac.ru> |
| 10 | */ | 6 | */ |
| 11 | 7 | ||
diff --git a/net/sched/cls_rsvp6.c b/net/sched/cls_rsvp6.c index dd08aea2aee5..64078846000e 100644 --- a/net/sched/cls_rsvp6.c +++ b/net/sched/cls_rsvp6.c | |||
| @@ -1,11 +1,7 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-or-later | ||
| 1 | /* | 2 | /* |
| 2 | * net/sched/cls_rsvp6.c Special RSVP packet classifier for IPv6. | 3 | * net/sched/cls_rsvp6.c Special RSVP packet classifier for IPv6. |
| 3 | * | 4 | * |
| 4 | * This program is free software; you can redistribute 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 | * Authors: Alexey Kuznetsov, <kuznet@ms2.inr.ac.ru> | 5 | * Authors: Alexey Kuznetsov, <kuznet@ms2.inr.ac.ru> |
| 10 | */ | 6 | */ |
| 11 | 7 | ||
diff --git a/net/sched/cls_u32.c b/net/sched/cls_u32.c index 4b8710a266cc..c7727de5e073 100644 --- a/net/sched/cls_u32.c +++ b/net/sched/cls_u32.c | |||
| @@ -1,11 +1,7 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-or-later | ||
| 1 | /* | 2 | /* |
| 2 | * net/sched/cls_u32.c Ugly (or Universal) 32bit key Packet Classifier. | 3 | * net/sched/cls_u32.c Ugly (or Universal) 32bit key Packet Classifier. |
| 3 | * | 4 | * |
| 4 | * This program is free software; you can redistribute 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 | * Authors: Alexey Kuznetsov, <kuznet@ms2.inr.ac.ru> | 5 | * Authors: Alexey Kuznetsov, <kuznet@ms2.inr.ac.ru> |
| 10 | * | 6 | * |
| 11 | * The filters are packed to hash tables of key nodes | 7 | * The filters are packed to hash tables of key nodes |
diff --git a/net/sched/em_cmp.c b/net/sched/em_cmp.c index 1c8360a2752a..a4d09b1fb66a 100644 --- a/net/sched/em_cmp.c +++ b/net/sched/em_cmp.c | |||
| @@ -1,11 +1,7 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-or-later | ||
| 1 | /* | 2 | /* |
| 2 | * net/sched/em_cmp.c Simple packet data comparison ematch | 3 | * net/sched/em_cmp.c Simple packet data comparison ematch |
| 3 | * | 4 | * |
| 4 | * This program is free software; you can redistribute 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 | * Authors: Thomas Graf <tgraf@suug.ch> | 5 | * Authors: Thomas Graf <tgraf@suug.ch> |
| 10 | */ | 6 | */ |
| 11 | 7 | ||
diff --git a/net/sched/em_ipt.c b/net/sched/em_ipt.c index 60c26b8294b5..243fd22f2248 100644 --- a/net/sched/em_ipt.c +++ b/net/sched/em_ipt.c | |||
| @@ -1,12 +1,8 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-or-later | ||
| 1 | /* | 2 | /* |
| 2 | * net/sched/em_ipt.c IPtables matches Ematch | 3 | * net/sched/em_ipt.c IPtables matches Ematch |
| 3 | * | 4 | * |
| 4 | * (c) 2018 Eyal Birger <eyal.birger@gmail.com> | 5 | * (c) 2018 Eyal Birger <eyal.birger@gmail.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 License | ||
| 8 | * as published by the Free Software Foundation; either version | ||
| 9 | * 2 of the License, or (at your option) any later version. | ||
| 10 | */ | 6 | */ |
| 11 | 7 | ||
| 12 | #include <linux/gfp.h> | 8 | #include <linux/gfp.h> |
diff --git a/net/sched/em_meta.c b/net/sched/em_meta.c index 28dfa8f2a4ea..82bd14e7ac93 100644 --- a/net/sched/em_meta.c +++ b/net/sched/em_meta.c | |||
| @@ -1,11 +1,7 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-or-later | ||
| 1 | /* | 2 | /* |
| 2 | * net/sched/em_meta.c Metadata ematch | 3 | * net/sched/em_meta.c Metadata ematch |
| 3 | * | 4 | * |
| 4 | * This program is free software; you can redistribute 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 | * Authors: Thomas Graf <tgraf@suug.ch> | 5 | * Authors: Thomas Graf <tgraf@suug.ch> |
| 10 | * | 6 | * |
| 11 | * ========================================================================== | 7 | * ========================================================================== |
diff --git a/net/sched/em_nbyte.c b/net/sched/em_nbyte.c index 07c10bac06a0..88c7ce42df7e 100644 --- a/net/sched/em_nbyte.c +++ b/net/sched/em_nbyte.c | |||
| @@ -1,11 +1,7 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-or-later | ||
| 1 | /* | 2 | /* |
| 2 | * net/sched/em_nbyte.c N-Byte ematch | 3 | * net/sched/em_nbyte.c N-Byte ematch |
| 3 | * | 4 | * |
| 4 | * This program is free software; you can redistribute 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 | * Authors: Thomas Graf <tgraf@suug.ch> | 5 | * Authors: Thomas Graf <tgraf@suug.ch> |
| 10 | */ | 6 | */ |
| 11 | 7 | ||
diff --git a/net/sched/em_text.c b/net/sched/em_text.c index 73e2ed576ceb..6f3c1fb2fb44 100644 --- a/net/sched/em_text.c +++ b/net/sched/em_text.c | |||
| @@ -1,11 +1,7 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-or-later | ||
| 1 | /* | 2 | /* |
| 2 | * net/sched/em_text.c Textsearch ematch | 3 | * net/sched/em_text.c Textsearch ematch |
| 3 | * | 4 | * |
| 4 | * This program is free software; you can redistribute 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 | * Authors: Thomas Graf <tgraf@suug.ch> | 5 | * Authors: Thomas Graf <tgraf@suug.ch> |
| 10 | */ | 6 | */ |
| 11 | 7 | ||
diff --git a/net/sched/em_u32.c b/net/sched/em_u32.c index 797bdb88c010..71b070da0437 100644 --- a/net/sched/em_u32.c +++ b/net/sched/em_u32.c | |||
| @@ -1,11 +1,7 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-or-later | ||
| 1 | /* | 2 | /* |
| 2 | * net/sched/em_u32.c U32 Ematch | 3 | * net/sched/em_u32.c U32 Ematch |
| 3 | * | 4 | * |
| 4 | * This program is free software; you can redistribute 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 | * Authors: Thomas Graf <tgraf@suug.ch> | 5 | * Authors: Thomas Graf <tgraf@suug.ch> |
| 10 | * Alexey Kuznetsov, <kuznet@ms2.inr.ac.ru> | 6 | * Alexey Kuznetsov, <kuznet@ms2.inr.ac.ru> |
| 11 | * | 7 | * |
diff --git a/net/sched/ematch.c b/net/sched/ematch.c index 7b86c2a44746..8f2ad706784d 100644 --- a/net/sched/ematch.c +++ b/net/sched/ematch.c | |||
| @@ -1,11 +1,7 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-or-later | ||
| 1 | /* | 2 | /* |
| 2 | * net/sched/ematch.c Extended Match API | 3 | * net/sched/ematch.c Extended Match API |
| 3 | * | 4 | * |
| 4 | * This program is free software; you can redistribute 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 | * Authors: Thomas Graf <tgraf@suug.ch> | 5 | * Authors: Thomas Graf <tgraf@suug.ch> |
| 10 | * | 6 | * |
| 11 | * ========================================================================== | 7 | * ========================================================================== |
diff --git a/net/sched/sch_api.c b/net/sched/sch_api.c index 607e84d67c33..04faee7ccbce 100644 --- a/net/sched/sch_api.c +++ b/net/sched/sch_api.c | |||
| @@ -1,11 +1,7 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-or-later | ||
| 1 | /* | 2 | /* |
| 2 | * net/sched/sch_api.c Packet scheduler API. | 3 | * net/sched/sch_api.c Packet scheduler API. |
| 3 | * | 4 | * |
| 4 | * This program is free software; you can redistribute 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 | * Authors: Alexey Kuznetsov, <kuznet@ms2.inr.ac.ru> | 5 | * Authors: Alexey Kuznetsov, <kuznet@ms2.inr.ac.ru> |
| 10 | * | 6 | * |
| 11 | * Fixes: | 7 | * Fixes: |
diff --git a/net/sched/sch_blackhole.c b/net/sched/sch_blackhole.c index 9c4c2bb547d7..a7f7667ae984 100644 --- a/net/sched/sch_blackhole.c +++ b/net/sched/sch_blackhole.c | |||
| @@ -1,11 +1,7 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-or-later | ||
| 1 | /* | 2 | /* |
| 2 | * net/sched/sch_blackhole.c Black hole queue | 3 | * net/sched/sch_blackhole.c Black hole queue |
| 3 | * | 4 | * |
| 4 | * This program is free software; you can redistribute 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 | * Authors: Thomas Graf <tgraf@suug.ch> | 5 | * Authors: Thomas Graf <tgraf@suug.ch> |
| 10 | * | 6 | * |
| 11 | * Note: Quantum tunneling is not supported. | 7 | * Note: Quantum tunneling is not supported. |
diff --git a/net/sched/sch_cbq.c b/net/sched/sch_cbq.c index ba4b33b74dd8..06c7a2da21bc 100644 --- a/net/sched/sch_cbq.c +++ b/net/sched/sch_cbq.c | |||
| @@ -1,13 +1,8 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-or-later | ||
| 1 | /* | 2 | /* |
| 2 | * net/sched/sch_cbq.c Class-Based Queueing discipline. | 3 | * net/sched/sch_cbq.c Class-Based Queueing discipline. |
| 3 | * | 4 | * |
| 4 | * This program is free software; you can redistribute 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 | * Authors: Alexey Kuznetsov, <kuznet@ms2.inr.ac.ru> | 5 | * Authors: Alexey Kuznetsov, <kuznet@ms2.inr.ac.ru> |
| 10 | * | ||
| 11 | */ | 6 | */ |
| 12 | 7 | ||
| 13 | #include <linux/module.h> | 8 | #include <linux/module.h> |
diff --git a/net/sched/sch_cbs.c b/net/sched/sch_cbs.c index 8077c846f5bf..e16a3d37d2bc 100644 --- a/net/sched/sch_cbs.c +++ b/net/sched/sch_cbs.c | |||
| @@ -1,13 +1,8 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-or-later | ||
| 1 | /* | 2 | /* |
| 2 | * net/sched/sch_cbs.c Credit Based Shaper | 3 | * net/sched/sch_cbs.c Credit Based Shaper |
| 3 | * | 4 | * |
| 4 | * This program is free software; you can redistribute 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 | * Authors: Vinicius Costa Gomes <vinicius.gomes@intel.com> | 5 | * Authors: Vinicius Costa Gomes <vinicius.gomes@intel.com> |
| 10 | * | ||
| 11 | */ | 6 | */ |
| 12 | 7 | ||
| 13 | /* Credit Based Shaper (CBS) | 8 | /* Credit Based Shaper (CBS) |
diff --git a/net/sched/sch_fifo.c b/net/sched/sch_fifo.c index 3809c9bf8896..37c8aa75d70c 100644 --- a/net/sched/sch_fifo.c +++ b/net/sched/sch_fifo.c | |||
| @@ -1,11 +1,7 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-or-later | ||
| 1 | /* | 2 | /* |
| 2 | * net/sched/sch_fifo.c The simplest FIFO queue. | 3 | * net/sched/sch_fifo.c The simplest FIFO queue. |
| 3 | * | 4 | * |
| 4 | * This program is free software; you can redistribute 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 | * Authors: Alexey Kuznetsov, <kuznet@ms2.inr.ac.ru> | 5 | * Authors: Alexey Kuznetsov, <kuznet@ms2.inr.ac.ru> |
| 10 | */ | 6 | */ |
| 11 | 7 | ||
diff --git a/net/sched/sch_fq.c b/net/sched/sch_fq.c index 26a94e5cd5df..98dd87ce1510 100644 --- a/net/sched/sch_fq.c +++ b/net/sched/sch_fq.c | |||
| @@ -1,13 +1,9 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-or-later | ||
| 1 | /* | 2 | /* |
| 2 | * net/sched/sch_fq.c Fair Queue Packet Scheduler (per flow pacing) | 3 | * net/sched/sch_fq.c Fair Queue Packet Scheduler (per flow pacing) |
| 3 | * | 4 | * |
| 4 | * Copyright (C) 2013-2015 Eric Dumazet <edumazet@google.com> | 5 | * Copyright (C) 2013-2015 Eric Dumazet <edumazet@google.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 License | ||
| 8 | * as published by the Free Software Foundation; either version | ||
| 9 | * 2 of the License, or (at your option) any later version. | ||
| 10 | * | ||
| 11 | * Meant to be mostly used for locally generated traffic : | 7 | * Meant to be mostly used for locally generated traffic : |
| 12 | * Fast classification depends on skb->sk being set before reaching us. | 8 | * Fast classification depends on skb->sk being set before reaching us. |
| 13 | * If not, (router workload), we use rxhash as fallback, with 32 bits wide hash. | 9 | * If not, (router workload), we use rxhash as fallback, with 32 bits wide hash. |
diff --git a/net/sched/sch_fq_codel.c b/net/sched/sch_fq_codel.c index 08d85370b97c..e2faf33d282b 100644 --- a/net/sched/sch_fq_codel.c +++ b/net/sched/sch_fq_codel.c | |||
| @@ -1,11 +1,7 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-or-later | ||
| 1 | /* | 2 | /* |
| 2 | * Fair Queue CoDel discipline | 3 | * Fair Queue CoDel discipline |
| 3 | * | 4 | * |
| 4 | * This program is free software; you can redistribute 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 | * Copyright (C) 2012,2015 Eric Dumazet <edumazet@google.com> | 5 | * Copyright (C) 2012,2015 Eric Dumazet <edumazet@google.com> |
| 10 | */ | 6 | */ |
| 11 | 7 | ||
diff --git a/net/sched/sch_generic.c b/net/sched/sch_generic.c index cce1e9ee85af..11c03cf4aa74 100644 --- a/net/sched/sch_generic.c +++ b/net/sched/sch_generic.c | |||
| @@ -1,11 +1,7 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-or-later | ||
| 1 | /* | 2 | /* |
| 2 | * net/sched/sch_generic.c Generic packet scheduler routines. | 3 | * net/sched/sch_generic.c Generic packet scheduler routines. |
| 3 | * | 4 | * |
| 4 | * This program is free software; you can redistribute 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 | * Authors: Alexey Kuznetsov, <kuznet@ms2.inr.ac.ru> | 5 | * Authors: Alexey Kuznetsov, <kuznet@ms2.inr.ac.ru> |
| 10 | * Jamal Hadi Salim, <hadi@cyberus.ca> 990601 | 6 | * Jamal Hadi Salim, <hadi@cyberus.ca> 990601 |
| 11 | * - Ingress support | 7 | * - Ingress support |
diff --git a/net/sched/sch_gred.c b/net/sched/sch_gred.c index dfa657da100f..8599c6f31b05 100644 --- a/net/sched/sch_gred.c +++ b/net/sched/sch_gred.c | |||
| @@ -1,12 +1,7 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-or-later | ||
| 1 | /* | 2 | /* |
| 2 | * net/sched/sch_gred.c Generic Random Early Detection queue. | 3 | * net/sched/sch_gred.c Generic Random Early Detection queue. |
| 3 | * | 4 | * |
| 4 | * | ||
| 5 | * This program is free software; you can redistribute it and/or | ||
| 6 | * modify it under the terms of the GNU General Public License | ||
| 7 | * as published by the Free Software Foundation; either version | ||
| 8 | * 2 of the License, or (at your option) any later version. | ||
| 9 | * | ||
| 10 | * Authors: J Hadi Salim (hadi@cyberus.ca) 1998-2002 | 5 | * Authors: J Hadi Salim (hadi@cyberus.ca) 1998-2002 |
| 11 | * | 6 | * |
| 12 | * 991129: - Bug fix with grio mode | 7 | * 991129: - Bug fix with grio mode |
diff --git a/net/sched/sch_htb.c b/net/sched/sch_htb.c index 909370049fca..7bcf20ef9145 100644 --- a/net/sched/sch_htb.c +++ b/net/sched/sch_htb.c | |||
| @@ -1,11 +1,7 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-or-later | ||
| 1 | /* | 2 | /* |
| 2 | * net/sched/sch_htb.c Hierarchical token bucket, feed tree version | 3 | * net/sched/sch_htb.c Hierarchical token bucket, feed tree version |
| 3 | * | 4 | * |
| 4 | * This program is free software; you can redistribute 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 | * Authors: Martin Devera, <devik@cdi.cz> | 5 | * Authors: Martin Devera, <devik@cdi.cz> |
| 10 | * | 6 | * |
| 11 | * Credits (in time order) for older HTB versions: | 7 | * Credits (in time order) for older HTB versions: |
diff --git a/net/sched/sch_ingress.c b/net/sched/sch_ingress.c index 0bac926b46c7..0f65f617756b 100644 --- a/net/sched/sch_ingress.c +++ b/net/sched/sch_ingress.c | |||
| @@ -1,10 +1,6 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-or-later | ||
| 1 | /* net/sched/sch_ingress.c - Ingress and clsact qdisc | 2 | /* net/sched/sch_ingress.c - Ingress and clsact qdisc |
| 2 | * | 3 | * |
| 3 | * This program 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 | * Authors: Jamal Hadi Salim 1999 | 4 | * Authors: Jamal Hadi Salim 1999 |
| 9 | */ | 5 | */ |
| 10 | 6 | ||
diff --git a/net/sched/sch_multiq.c b/net/sched/sch_multiq.c index 35b03ae08e0f..e1087746f6a2 100644 --- a/net/sched/sch_multiq.c +++ b/net/sched/sch_multiq.c | |||
| @@ -1,18 +1,7 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-only | ||
| 1 | /* | 2 | /* |
| 2 | * Copyright (c) 2008, Intel Corporation. | 3 | * Copyright (c) 2008, Intel Corporation. |
| 3 | * | 4 | * |
| 4 | * This program is free software; you can redistribute it and/or modify it | ||
| 5 | * under the terms and conditions of the GNU General Public License, | ||
| 6 | * version 2, as published by the Free Software Foundation. | ||
| 7 | * | ||
| 8 | * This program is distributed in the hope it will be useful, but WITHOUT | ||
| 9 | * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or | ||
| 10 | * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for | ||
| 11 | * more details. | ||
| 12 | * | ||
| 13 | * You should have received a copy of the GNU General Public License along with | ||
| 14 | * this program; if not, see <http://www.gnu.org/licenses/>. | ||
| 15 | * | ||
| 16 | * Author: Alexander Duyck <alexander.h.duyck@intel.com> | 5 | * Author: Alexander Duyck <alexander.h.duyck@intel.com> |
| 17 | */ | 6 | */ |
| 18 | 7 | ||
diff --git a/net/sched/sch_netem.c b/net/sched/sch_netem.c index 78aa76b0da2e..956ff3da81f4 100644 --- a/net/sched/sch_netem.c +++ b/net/sched/sch_netem.c | |||
| @@ -1,11 +1,7 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-only | ||
| 1 | /* | 2 | /* |
| 2 | * net/sched/sch_netem.c Network emulator | 3 | * net/sched/sch_netem.c Network emulator |
| 3 | * | 4 | * |
| 4 | * This program is free software; you can redistribute 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. | ||
| 8 | * | ||
| 9 | * Many of the algorithms and ideas for this came from | 5 | * Many of the algorithms and ideas for this came from |
| 10 | * NIST Net which is not copyrighted. | 6 | * NIST Net which is not copyrighted. |
| 11 | * | 7 | * |
diff --git a/net/sched/sch_plug.c b/net/sched/sch_plug.c index 5619d2eb17b6..cbc2ebca4548 100644 --- a/net/sched/sch_plug.c +++ b/net/sched/sch_plug.c | |||
| @@ -1,11 +1,7 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-or-later | ||
| 1 | /* | 2 | /* |
| 2 | * sch_plug.c Queue traffic until an explicit release command | 3 | * sch_plug.c Queue traffic until an explicit release command |
| 3 | * | 4 | * |
| 4 | * This program is free software; you can redistribute 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 | * There are two ways to use this qdisc: | 5 | * There are two ways to use this qdisc: |
| 10 | * 1. A simple "instantaneous" plug/unplug operation, by issuing an alternating | 6 | * 1. A simple "instantaneous" plug/unplug operation, by issuing an alternating |
| 11 | * sequence of TCQ_PLUG_BUFFER & TCQ_PLUG_RELEASE_INDEFINITE commands. | 7 | * sequence of TCQ_PLUG_BUFFER & TCQ_PLUG_RELEASE_INDEFINITE commands. |
diff --git a/net/sched/sch_prio.c b/net/sched/sch_prio.c index d519b21535b3..0f8fedb8809a 100644 --- a/net/sched/sch_prio.c +++ b/net/sched/sch_prio.c | |||
| @@ -1,11 +1,7 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-or-later | ||
| 1 | /* | 2 | /* |
| 2 | * net/sched/sch_prio.c Simple 3-band priority "scheduler". | 3 | * net/sched/sch_prio.c Simple 3-band priority "scheduler". |
| 3 | * | 4 | * |
| 4 | * This program is free software; you can redistribute 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 | * Authors: Alexey Kuznetsov, <kuznet@ms2.inr.ac.ru> | 5 | * Authors: Alexey Kuznetsov, <kuznet@ms2.inr.ac.ru> |
| 10 | * Fixes: 19990609: J Hadi Salim <hadi@nortelnetworks.com>: | 6 | * Fixes: 19990609: J Hadi Salim <hadi@nortelnetworks.com>: |
| 11 | * Init -- EINVAL when opt undefined | 7 | * Init -- EINVAL when opt undefined |
diff --git a/net/sched/sch_red.c b/net/sched/sch_red.c index 1e68a13bb66b..1695421333e3 100644 --- a/net/sched/sch_red.c +++ b/net/sched/sch_red.c | |||
| @@ -1,11 +1,7 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-or-later | ||
| 1 | /* | 2 | /* |
| 2 | * net/sched/sch_red.c Random Early Detection queue. | 3 | * net/sched/sch_red.c Random Early Detection queue. |
| 3 | * | 4 | * |
| 4 | * This program is free software; you can redistribute 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 | * Authors: Alexey Kuznetsov, <kuznet@ms2.inr.ac.ru> | 5 | * Authors: Alexey Kuznetsov, <kuznet@ms2.inr.ac.ru> |
| 10 | * | 6 | * |
| 11 | * Changes: | 7 | * Changes: |
diff --git a/net/sched/sch_sfq.c b/net/sched/sch_sfq.c index 2f2678197760..420bd8411677 100644 --- a/net/sched/sch_sfq.c +++ b/net/sched/sch_sfq.c | |||
| @@ -1,11 +1,7 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-or-later | ||
| 1 | /* | 2 | /* |
| 2 | * net/sched/sch_sfq.c Stochastic Fairness Queueing discipline. | 3 | * net/sched/sch_sfq.c Stochastic Fairness Queueing discipline. |
| 3 | * | 4 | * |
| 4 | * This program is free software; you can redistribute 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 | * Authors: Alexey Kuznetsov, <kuznet@ms2.inr.ac.ru> | 5 | * Authors: Alexey Kuznetsov, <kuznet@ms2.inr.ac.ru> |
| 10 | */ | 6 | */ |
| 11 | 7 | ||
diff --git a/net/sched/sch_skbprio.c b/net/sched/sch_skbprio.c index 52c0b6d8f1d7..0fb10abf7579 100644 --- a/net/sched/sch_skbprio.c +++ b/net/sched/sch_skbprio.c | |||
| @@ -1,11 +1,7 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-or-later | ||
| 1 | /* | 2 | /* |
| 2 | * net/sched/sch_skbprio.c SKB Priority Queue. | 3 | * net/sched/sch_skbprio.c SKB Priority Queue. |
| 3 | * | 4 | * |
| 4 | * This program is free software; you can redistribute 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 | * Authors: Nishanth Devarajan, <ndev2021@gmail.com> | 5 | * Authors: Nishanth Devarajan, <ndev2021@gmail.com> |
| 10 | * Cody Doucette, <doucette@bu.edu> | 6 | * Cody Doucette, <doucette@bu.edu> |
| 11 | * original idea by Michel Machado, Cody Doucette, and Qiaobin Fu | 7 | * original idea by Michel Machado, Cody Doucette, and Qiaobin Fu |
diff --git a/net/sched/sch_tbf.c b/net/sched/sch_tbf.c index c09c0d855846..5f72f3f916a5 100644 --- a/net/sched/sch_tbf.c +++ b/net/sched/sch_tbf.c | |||
| @@ -1,15 +1,10 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-or-later | ||
| 1 | /* | 2 | /* |
| 2 | * net/sched/sch_tbf.c Token Bucket Filter queue. | 3 | * net/sched/sch_tbf.c Token Bucket Filter queue. |
| 3 | * | 4 | * |
| 4 | * This program is free software; you can redistribute 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 | * Authors: Alexey Kuznetsov, <kuznet@ms2.inr.ac.ru> | 5 | * Authors: Alexey Kuznetsov, <kuznet@ms2.inr.ac.ru> |
| 10 | * Dmitry Torokhov <dtor@mail.ru> - allow attaching inner qdiscs - | 6 | * Dmitry Torokhov <dtor@mail.ru> - allow attaching inner qdiscs - |
| 11 | * original idea by Martin Devera | 7 | * original idea by Martin Devera |
| 12 | * | ||
| 13 | */ | 8 | */ |
| 14 | 9 | ||
| 15 | #include <linux/module.h> | 10 | #include <linux/module.h> |
diff --git a/net/sched/sch_teql.c b/net/sched/sch_teql.c index 93f04cf5cac1..689ef6f3ded8 100644 --- a/net/sched/sch_teql.c +++ b/net/sched/sch_teql.c | |||
| @@ -1,10 +1,6 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-or-later | ||
| 1 | /* net/sched/sch_teql.c "True" (or "trivial") link equalizer. | 2 | /* net/sched/sch_teql.c "True" (or "trivial") link equalizer. |
| 2 | * | 3 | * |
| 3 | * This program 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 | * Authors: Alexey Kuznetsov, <kuznet@ms2.inr.ac.ru> | 4 | * Authors: Alexey Kuznetsov, <kuznet@ms2.inr.ac.ru> |
| 9 | */ | 5 | */ |
| 10 | 6 | ||
diff --git a/net/sctp/offload.c b/net/sctp/offload.c index edfcf16e704c..2cae7440349c 100644 --- a/net/sctp/offload.c +++ b/net/sctp/offload.c | |||
| @@ -1,17 +1,8 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-or-later | ||
| 1 | /* | 2 | /* |
| 2 | * sctp_offload - GRO/GSO Offloading for SCTP | 3 | * sctp_offload - GRO/GSO Offloading for SCTP |
| 3 | * | 4 | * |
| 4 | * Copyright (C) 2015, Marcelo Ricardo Leitner <marcelo.leitner@gmail.com> | 5 | * Copyright (C) 2015, Marcelo Ricardo Leitner <marcelo.leitner@gmail.com> |
| 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 | */ | 6 | */ |
| 16 | 7 | ||
| 17 | #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt | 8 | #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt |
diff --git a/net/sctp/sm_make_chunk.c b/net/sctp/sm_make_chunk.c index 92331e1195c1..f17908f5c4f3 100644 --- a/net/sctp/sm_make_chunk.c +++ b/net/sctp/sm_make_chunk.c | |||
| @@ -2312,7 +2312,6 @@ int sctp_process_init(struct sctp_association *asoc, struct sctp_chunk *chunk, | |||
| 2312 | union sctp_addr addr; | 2312 | union sctp_addr addr; |
| 2313 | struct sctp_af *af; | 2313 | struct sctp_af *af; |
| 2314 | int src_match = 0; | 2314 | int src_match = 0; |
| 2315 | char *cookie; | ||
| 2316 | 2315 | ||
| 2317 | /* We must include the address that the INIT packet came from. | 2316 | /* We must include the address that the INIT packet came from. |
| 2318 | * This is the only address that matters for an INIT packet. | 2317 | * This is the only address that matters for an INIT packet. |
| @@ -2416,14 +2415,6 @@ int sctp_process_init(struct sctp_association *asoc, struct sctp_chunk *chunk, | |||
| 2416 | /* Peer Rwnd : Current calculated value of the peer's rwnd. */ | 2415 | /* Peer Rwnd : Current calculated value of the peer's rwnd. */ |
| 2417 | asoc->peer.rwnd = asoc->peer.i.a_rwnd; | 2416 | asoc->peer.rwnd = asoc->peer.i.a_rwnd; |
| 2418 | 2417 | ||
| 2419 | /* Copy cookie in case we need to resend COOKIE-ECHO. */ | ||
| 2420 | cookie = asoc->peer.cookie; | ||
| 2421 | if (cookie) { | ||
| 2422 | asoc->peer.cookie = kmemdup(cookie, asoc->peer.cookie_len, gfp); | ||
| 2423 | if (!asoc->peer.cookie) | ||
| 2424 | goto clean_up; | ||
| 2425 | } | ||
| 2426 | |||
| 2427 | /* RFC 2960 7.2.1 The initial value of ssthresh MAY be arbitrarily | 2418 | /* RFC 2960 7.2.1 The initial value of ssthresh MAY be arbitrarily |
| 2428 | * high (for example, implementations MAY use the size of the receiver | 2419 | * high (for example, implementations MAY use the size of the receiver |
| 2429 | * advertised window). | 2420 | * advertised window). |
| @@ -2592,7 +2583,9 @@ do_addr_param: | |||
| 2592 | case SCTP_PARAM_STATE_COOKIE: | 2583 | case SCTP_PARAM_STATE_COOKIE: |
| 2593 | asoc->peer.cookie_len = | 2584 | asoc->peer.cookie_len = |
| 2594 | ntohs(param.p->length) - sizeof(struct sctp_paramhdr); | 2585 | ntohs(param.p->length) - sizeof(struct sctp_paramhdr); |
| 2595 | asoc->peer.cookie = param.cookie->body; | 2586 | asoc->peer.cookie = kmemdup(param.cookie->body, asoc->peer.cookie_len, gfp); |
| 2587 | if (!asoc->peer.cookie) | ||
| 2588 | retval = 0; | ||
| 2596 | break; | 2589 | break; |
| 2597 | 2590 | ||
| 2598 | case SCTP_PARAM_HEARTBEAT_INFO: | 2591 | case SCTP_PARAM_HEARTBEAT_INFO: |
diff --git a/net/sctp/sm_sideeffect.c b/net/sctp/sm_sideeffect.c index 9b50da548db2..a554d6d15d1b 100644 --- a/net/sctp/sm_sideeffect.c +++ b/net/sctp/sm_sideeffect.c | |||
| @@ -883,6 +883,11 @@ static void sctp_cmd_new_state(struct sctp_cmd_seq *cmds, | |||
| 883 | asoc->rto_initial; | 883 | asoc->rto_initial; |
| 884 | } | 884 | } |
| 885 | 885 | ||
| 886 | if (sctp_state(asoc, ESTABLISHED)) { | ||
| 887 | kfree(asoc->peer.cookie); | ||
| 888 | asoc->peer.cookie = NULL; | ||
| 889 | } | ||
| 890 | |||
| 886 | if (sctp_state(asoc, ESTABLISHED) || | 891 | if (sctp_state(asoc, ESTABLISHED) || |
| 887 | sctp_state(asoc, CLOSED) || | 892 | sctp_state(asoc, CLOSED) || |
| 888 | sctp_state(asoc, SHUTDOWN_RECEIVED)) { | 893 | sctp_state(asoc, SHUTDOWN_RECEIVED)) { |
diff --git a/net/socket.c b/net/socket.c index 72372dc5dd70..38eec1583f6d 100644 --- a/net/socket.c +++ b/net/socket.c | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-or-later | ||
| 1 | /* | 2 | /* |
| 2 | * NET An implementation of the SOCKET network access protocol. | 3 | * NET An implementation of the SOCKET network access protocol. |
| 3 | * | 4 | * |
| @@ -45,13 +46,6 @@ | |||
| 45 | * Tigran Aivazian : Made listen(2) backlog sanity checks | 46 | * Tigran Aivazian : Made listen(2) backlog sanity checks |
| 46 | * protocol-independent | 47 | * protocol-independent |
| 47 | * | 48 | * |
| 48 | * | ||
| 49 | * This program is free software; you can redistribute it and/or | ||
| 50 | * modify it under the terms of the GNU General Public License | ||
| 51 | * as published by the Free Software Foundation; either version | ||
| 52 | * 2 of the License, or (at your option) any later version. | ||
| 53 | * | ||
| 54 | * | ||
| 55 | * This module is effectively the top level interface to the BSD socket | 49 | * This module is effectively the top level interface to the BSD socket |
| 56 | * paradigm. | 50 | * paradigm. |
| 57 | * | 51 | * |
diff --git a/net/sunrpc/cache.c b/net/sunrpc/cache.c index d22328984853..66fbb9d2fba7 100644 --- a/net/sunrpc/cache.c +++ b/net/sunrpc/cache.c | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-only | ||
| 1 | /* | 2 | /* |
| 2 | * net/sunrpc/cache.c | 3 | * net/sunrpc/cache.c |
| 3 | * | 4 | * |
| @@ -5,9 +6,6 @@ | |||
| 5 | * used by sunrpc clients and servers. | 6 | * used by sunrpc clients and servers. |
| 6 | * | 7 | * |
| 7 | * Copyright (C) 2002 Neil Brown <neilb@cse.unsw.edu.au> | 8 | * Copyright (C) 2002 Neil Brown <neilb@cse.unsw.edu.au> |
| 8 | * | ||
| 9 | * Released under terms in GPL version 2. See COPYING. | ||
| 10 | * | ||
| 11 | */ | 9 | */ |
| 12 | 10 | ||
| 13 | #include <linux/types.h> | 11 | #include <linux/types.h> |
diff --git a/net/sunrpc/clnt.c b/net/sunrpc/clnt.c index d6e57da56c94..627a87a71f8b 100644 --- a/net/sunrpc/clnt.c +++ b/net/sunrpc/clnt.c | |||
| @@ -2288,13 +2288,13 @@ call_status(struct rpc_task *task) | |||
| 2288 | case -ECONNREFUSED: | 2288 | case -ECONNREFUSED: |
| 2289 | case -ECONNRESET: | 2289 | case -ECONNRESET: |
| 2290 | case -ECONNABORTED: | 2290 | case -ECONNABORTED: |
| 2291 | case -ENOTCONN: | ||
| 2291 | rpc_force_rebind(clnt); | 2292 | rpc_force_rebind(clnt); |
| 2292 | /* fall through */ | 2293 | /* fall through */ |
| 2293 | case -EADDRINUSE: | 2294 | case -EADDRINUSE: |
| 2294 | rpc_delay(task, 3*HZ); | 2295 | rpc_delay(task, 3*HZ); |
| 2295 | /* fall through */ | 2296 | /* fall through */ |
| 2296 | case -EPIPE: | 2297 | case -EPIPE: |
| 2297 | case -ENOTCONN: | ||
| 2298 | case -EAGAIN: | 2298 | case -EAGAIN: |
| 2299 | break; | 2299 | break; |
| 2300 | case -EIO: | 2300 | case -EIO: |
| @@ -2426,17 +2426,21 @@ call_decode(struct rpc_task *task) | |||
| 2426 | return; | 2426 | return; |
| 2427 | case -EAGAIN: | 2427 | case -EAGAIN: |
| 2428 | task->tk_status = 0; | 2428 | task->tk_status = 0; |
| 2429 | /* Note: rpc_decode_header() may have freed the RPC slot */ | 2429 | xdr_free_bvec(&req->rq_rcv_buf); |
| 2430 | if (task->tk_rqstp == req) { | 2430 | req->rq_reply_bytes_recvd = 0; |
| 2431 | xdr_free_bvec(&req->rq_rcv_buf); | 2431 | req->rq_rcv_buf.len = 0; |
| 2432 | req->rq_reply_bytes_recvd = 0; | 2432 | if (task->tk_client->cl_discrtry) |
| 2433 | req->rq_rcv_buf.len = 0; | 2433 | xprt_conditional_disconnect(req->rq_xprt, |
| 2434 | if (task->tk_client->cl_discrtry) | 2434 | req->rq_connect_cookie); |
| 2435 | xprt_conditional_disconnect(req->rq_xprt, | ||
| 2436 | req->rq_connect_cookie); | ||
| 2437 | } | ||
| 2438 | task->tk_action = call_encode; | 2435 | task->tk_action = call_encode; |
| 2439 | rpc_check_timeout(task); | 2436 | rpc_check_timeout(task); |
| 2437 | break; | ||
| 2438 | case -EKEYREJECTED: | ||
| 2439 | task->tk_action = call_reserve; | ||
| 2440 | rpc_check_timeout(task); | ||
| 2441 | rpcauth_invalcred(task); | ||
| 2442 | /* Ensure we obtain a new XID if we retry! */ | ||
| 2443 | xprt_release(task); | ||
| 2440 | } | 2444 | } |
| 2441 | } | 2445 | } |
| 2442 | 2446 | ||
| @@ -2572,11 +2576,7 @@ out_msg_denied: | |||
| 2572 | break; | 2576 | break; |
| 2573 | task->tk_cred_retry--; | 2577 | task->tk_cred_retry--; |
| 2574 | trace_rpc__stale_creds(task); | 2578 | trace_rpc__stale_creds(task); |
| 2575 | rpcauth_invalcred(task); | 2579 | return -EKEYREJECTED; |
| 2576 | /* Ensure we obtain a new XID! */ | ||
| 2577 | xprt_release(task); | ||
| 2578 | task->tk_action = call_reserve; | ||
| 2579 | return -EAGAIN; | ||
| 2580 | case rpc_autherr_badcred: | 2580 | case rpc_autherr_badcred: |
| 2581 | case rpc_autherr_badverf: | 2581 | case rpc_autherr_badverf: |
| 2582 | /* possibly garbled cred/verf? */ | 2582 | /* possibly garbled cred/verf? */ |
diff --git a/net/sunrpc/xprtrdma/verbs.c b/net/sunrpc/xprtrdma/verbs.c index bef5eac8ab38..84bb37924540 100644 --- a/net/sunrpc/xprtrdma/verbs.c +++ b/net/sunrpc/xprtrdma/verbs.c | |||
| @@ -810,8 +810,7 @@ static struct rpcrdma_sendctx *rpcrdma_sendctx_create(struct rpcrdma_ia *ia) | |||
| 810 | { | 810 | { |
| 811 | struct rpcrdma_sendctx *sc; | 811 | struct rpcrdma_sendctx *sc; |
| 812 | 812 | ||
| 813 | sc = kzalloc(sizeof(*sc) + | 813 | sc = kzalloc(struct_size(sc, sc_sges, ia->ri_max_send_sges), |
| 814 | ia->ri_max_send_sges * sizeof(struct ib_sge), | ||
| 815 | GFP_KERNEL); | 814 | GFP_KERNEL); |
| 816 | if (!sc) | 815 | if (!sc) |
| 817 | return NULL; | 816 | return NULL; |
diff --git a/net/switchdev/switchdev.c b/net/switchdev/switchdev.c index 90ba4a1f0a6d..3a1d428c1336 100644 --- a/net/switchdev/switchdev.c +++ b/net/switchdev/switchdev.c | |||
| @@ -1,12 +1,8 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-or-later | ||
| 1 | /* | 2 | /* |
| 2 | * net/switchdev/switchdev.c - Switch device API | 3 | * net/switchdev/switchdev.c - Switch device API |
| 3 | * Copyright (c) 2014-2015 Jiri Pirko <jiri@resnulli.us> | 4 | * Copyright (c) 2014-2015 Jiri Pirko <jiri@resnulli.us> |
| 4 | * Copyright (c) 2014-2015 Scott Feldman <sfeldma@gmail.com> | 5 | * Copyright (c) 2014-2015 Scott Feldman <sfeldma@gmail.com> |
| 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 | */ | 6 | */ |
| 11 | 7 | ||
| 12 | #include <linux/kernel.h> | 8 | #include <linux/kernel.h> |
diff --git a/net/tls/tls_device.c b/net/tls/tls_device.c index ca54a7c7ec81..1f9cf57d9754 100644 --- a/net/tls/tls_device.c +++ b/net/tls/tls_device.c | |||
| @@ -550,10 +550,22 @@ void tls_device_write_space(struct sock *sk, struct tls_context *ctx) | |||
| 550 | } | 550 | } |
| 551 | } | 551 | } |
| 552 | 552 | ||
| 553 | static void tls_device_resync_rx(struct tls_context *tls_ctx, | ||
| 554 | struct sock *sk, u32 seq, u64 rcd_sn) | ||
| 555 | { | ||
| 556 | struct net_device *netdev; | ||
| 557 | |||
| 558 | if (WARN_ON(test_and_set_bit(TLS_RX_SYNC_RUNNING, &tls_ctx->flags))) | ||
| 559 | return; | ||
| 560 | netdev = READ_ONCE(tls_ctx->netdev); | ||
| 561 | if (netdev) | ||
| 562 | netdev->tlsdev_ops->tls_dev_resync_rx(netdev, sk, seq, rcd_sn); | ||
| 563 | clear_bit_unlock(TLS_RX_SYNC_RUNNING, &tls_ctx->flags); | ||
| 564 | } | ||
| 565 | |||
| 553 | void handle_device_resync(struct sock *sk, u32 seq, u64 rcd_sn) | 566 | void handle_device_resync(struct sock *sk, u32 seq, u64 rcd_sn) |
| 554 | { | 567 | { |
| 555 | struct tls_context *tls_ctx = tls_get_ctx(sk); | 568 | struct tls_context *tls_ctx = tls_get_ctx(sk); |
| 556 | struct net_device *netdev = tls_ctx->netdev; | ||
| 557 | struct tls_offload_context_rx *rx_ctx; | 569 | struct tls_offload_context_rx *rx_ctx; |
| 558 | u32 is_req_pending; | 570 | u32 is_req_pending; |
| 559 | s64 resync_req; | 571 | s64 resync_req; |
| @@ -568,10 +580,10 @@ void handle_device_resync(struct sock *sk, u32 seq, u64 rcd_sn) | |||
| 568 | is_req_pending = resync_req; | 580 | is_req_pending = resync_req; |
| 569 | 581 | ||
| 570 | if (unlikely(is_req_pending) && req_seq == seq && | 582 | if (unlikely(is_req_pending) && req_seq == seq && |
| 571 | atomic64_try_cmpxchg(&rx_ctx->resync_req, &resync_req, 0)) | 583 | atomic64_try_cmpxchg(&rx_ctx->resync_req, &resync_req, 0)) { |
| 572 | netdev->tlsdev_ops->tls_dev_resync_rx(netdev, sk, | 584 | seq += TLS_HEADER_SIZE - 1; |
| 573 | seq + TLS_HEADER_SIZE - 1, | 585 | tls_device_resync_rx(tls_ctx, sk, seq, rcd_sn); |
| 574 | rcd_sn); | 586 | } |
| 575 | } | 587 | } |
| 576 | 588 | ||
| 577 | static int tls_device_reencrypt(struct sock *sk, struct sk_buff *skb) | 589 | static int tls_device_reencrypt(struct sock *sk, struct sk_buff *skb) |
| @@ -934,12 +946,6 @@ void tls_device_offload_cleanup_rx(struct sock *sk) | |||
| 934 | if (!netdev) | 946 | if (!netdev) |
| 935 | goto out; | 947 | goto out; |
| 936 | 948 | ||
| 937 | if (!(netdev->features & NETIF_F_HW_TLS_RX)) { | ||
| 938 | pr_err_ratelimited("%s: device is missing NETIF_F_HW_TLS_RX cap\n", | ||
| 939 | __func__); | ||
| 940 | goto out; | ||
| 941 | } | ||
| 942 | |||
| 943 | netdev->tlsdev_ops->tls_dev_del(netdev, tls_ctx, | 949 | netdev->tlsdev_ops->tls_dev_del(netdev, tls_ctx, |
| 944 | TLS_OFFLOAD_CTX_DIR_RX); | 950 | TLS_OFFLOAD_CTX_DIR_RX); |
| 945 | 951 | ||
| @@ -978,7 +984,10 @@ static int tls_device_down(struct net_device *netdev) | |||
| 978 | if (ctx->rx_conf == TLS_HW) | 984 | if (ctx->rx_conf == TLS_HW) |
| 979 | netdev->tlsdev_ops->tls_dev_del(netdev, ctx, | 985 | netdev->tlsdev_ops->tls_dev_del(netdev, ctx, |
| 980 | TLS_OFFLOAD_CTX_DIR_RX); | 986 | TLS_OFFLOAD_CTX_DIR_RX); |
| 981 | ctx->netdev = NULL; | 987 | WRITE_ONCE(ctx->netdev, NULL); |
| 988 | smp_mb__before_atomic(); /* pairs with test_and_set_bit() */ | ||
| 989 | while (test_bit(TLS_RX_SYNC_RUNNING, &ctx->flags)) | ||
| 990 | usleep_range(10, 200); | ||
| 982 | dev_put(netdev); | 991 | dev_put(netdev); |
| 983 | list_del_init(&ctx->list); | 992 | list_del_init(&ctx->list); |
| 984 | 993 | ||
| @@ -998,7 +1007,8 @@ static int tls_dev_event(struct notifier_block *this, unsigned long event, | |||
| 998 | { | 1007 | { |
| 999 | struct net_device *dev = netdev_notifier_info_to_dev(ptr); | 1008 | struct net_device *dev = netdev_notifier_info_to_dev(ptr); |
| 1000 | 1009 | ||
| 1001 | if (!(dev->features & (NETIF_F_HW_TLS_RX | NETIF_F_HW_TLS_TX))) | 1010 | if (!dev->tlsdev_ops && |
| 1011 | !(dev->features & (NETIF_F_HW_TLS_RX | NETIF_F_HW_TLS_TX))) | ||
| 1002 | return NOTIFY_DONE; | 1012 | return NOTIFY_DONE; |
| 1003 | 1013 | ||
| 1004 | switch (event) { | 1014 | switch (event) { |
diff --git a/net/tls/tls_sw.c b/net/tls/tls_sw.c index d93f83f77864..960494f437ac 100644 --- a/net/tls/tls_sw.c +++ b/net/tls/tls_sw.c | |||
| @@ -1712,15 +1712,14 @@ int tls_sw_recvmsg(struct sock *sk, | |||
| 1712 | copied = err; | 1712 | copied = err; |
| 1713 | } | 1713 | } |
| 1714 | 1714 | ||
| 1715 | len = len - copied; | 1715 | if (len <= copied) |
| 1716 | if (len) { | ||
| 1717 | target = sock_rcvlowat(sk, flags & MSG_WAITALL, len); | ||
| 1718 | timeo = sock_rcvtimeo(sk, flags & MSG_DONTWAIT); | ||
| 1719 | } else { | ||
| 1720 | goto recv_end; | 1716 | goto recv_end; |
| 1721 | } | ||
| 1722 | 1717 | ||
| 1723 | do { | 1718 | target = sock_rcvlowat(sk, flags & MSG_WAITALL, len); |
| 1719 | len = len - copied; | ||
| 1720 | timeo = sock_rcvtimeo(sk, flags & MSG_DONTWAIT); | ||
| 1721 | |||
| 1722 | while (len && (decrypted + copied < target || ctx->recv_pkt)) { | ||
| 1724 | bool retain_skb = false; | 1723 | bool retain_skb = false; |
| 1725 | bool zc = false; | 1724 | bool zc = false; |
| 1726 | int to_decrypt; | 1725 | int to_decrypt; |
| @@ -1851,11 +1850,7 @@ pick_next_record: | |||
| 1851 | } else { | 1850 | } else { |
| 1852 | break; | 1851 | break; |
| 1853 | } | 1852 | } |
| 1854 | 1853 | } | |
| 1855 | /* If we have a new message from strparser, continue now. */ | ||
| 1856 | if (decrypted >= target && !ctx->recv_pkt) | ||
| 1857 | break; | ||
| 1858 | } while (len); | ||
| 1859 | 1854 | ||
| 1860 | recv_end: | 1855 | recv_end: |
| 1861 | if (num_async) { | 1856 | if (num_async) { |
diff --git a/net/unix/af_unix.c b/net/unix/af_unix.c index e68d7454f2e3..67e87db5877f 100644 --- a/net/unix/af_unix.c +++ b/net/unix/af_unix.c | |||
| @@ -1,13 +1,9 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-or-later | ||
| 1 | /* | 2 | /* |
| 2 | * NET4: Implementation of BSD Unix domain sockets. | 3 | * NET4: Implementation of BSD Unix domain sockets. |
| 3 | * | 4 | * |
| 4 | * Authors: Alan Cox, <alan@lxorguk.ukuu.org.uk> | 5 | * Authors: Alan Cox, <alan@lxorguk.ukuu.org.uk> |
| 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 License | ||
| 8 | * as published by the Free Software Foundation; either version | ||
| 9 | * 2 of the License, or (at your option) any later version. | ||
| 10 | * | ||
| 11 | * Fixes: | 7 | * Fixes: |
| 12 | * Linus Torvalds : Assorted bug cures. | 8 | * Linus Torvalds : Assorted bug cures. |
| 13 | * Niibe Yutaka : async I/O support. | 9 | * Niibe Yutaka : async I/O support. |
| @@ -49,7 +45,6 @@ | |||
| 49 | * the core infrastructure is doing that | 45 | * the core infrastructure is doing that |
| 50 | * for all net proto families now (2.5.69+) | 46 | * for all net proto families now (2.5.69+) |
| 51 | * | 47 | * |
| 52 | * | ||
| 53 | * Known differences from reference BSD that was tested: | 48 | * Known differences from reference BSD that was tested: |
| 54 | * | 49 | * |
| 55 | * [TO FIX] | 50 | * [TO FIX] |
diff --git a/net/unix/sysctl_net_unix.c b/net/unix/sysctl_net_unix.c index b3d515021b74..c09bea89151b 100644 --- a/net/unix/sysctl_net_unix.c +++ b/net/unix/sysctl_net_unix.c | |||
| @@ -1,12 +1,8 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-or-later | ||
| 1 | /* | 2 | /* |
| 2 | * NET4: Sysctl interface to net af_unix subsystem. | 3 | * NET4: Sysctl interface to net af_unix subsystem. |
| 3 | * | 4 | * |
| 4 | * Authors: Mike Shaver. | 5 | * Authors: Mike Shaver. |
| 5 | * | ||
| 6 | * This program is free software; you can redistribute it and/or | ||
| 7 | * modify it under the terms of the GNU General Public License | ||
| 8 | * as published by the Free Software Foundation; either version | ||
| 9 | * 2 of the License, or (at your option) any later version. | ||
| 10 | */ | 6 | */ |
| 11 | 7 | ||
| 12 | #include <linux/mm.h> | 8 | #include <linux/mm.h> |
diff --git a/net/vmw_vsock/af_vsock.c b/net/vmw_vsock/af_vsock.c index d892000770cf..169112f8aa1e 100644 --- a/net/vmw_vsock/af_vsock.c +++ b/net/vmw_vsock/af_vsock.c | |||
| @@ -1,16 +1,8 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-only | ||
| 1 | /* | 2 | /* |
| 2 | * VMware vSockets Driver | 3 | * VMware vSockets Driver |
| 3 | * | 4 | * |
| 4 | * Copyright (C) 2007-2013 VMware, Inc. All rights reserved. | 5 | * Copyright (C) 2007-2013 VMware, Inc. All rights reserved. |
| 5 | * | ||
| 6 | * This program is free software; you can redistribute it and/or modify it | ||
| 7 | * under the terms of the GNU General Public License as published by the Free | ||
| 8 | * Software Foundation version 2 and no later version. | ||
| 9 | * | ||
| 10 | * This program is distributed in the hope that it will be useful, but WITHOUT | ||
| 11 | * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or | ||
| 12 | * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for | ||
| 13 | * more details. | ||
| 14 | */ | 6 | */ |
| 15 | 7 | ||
| 16 | /* Implementation notes: | 8 | /* Implementation notes: |
diff --git a/net/vmw_vsock/af_vsock_tap.c b/net/vmw_vsock/af_vsock_tap.c index 98f09b539366..30ee7e4fe251 100644 --- a/net/vmw_vsock/af_vsock_tap.c +++ b/net/vmw_vsock/af_vsock_tap.c | |||
| @@ -1,12 +1,8 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-or-later | ||
| 1 | /* | 2 | /* |
| 2 | * Tap functions for AF_VSOCK sockets. | 3 | * Tap functions for AF_VSOCK sockets. |
| 3 | * | 4 | * |
| 4 | * Code based on net/netlink/af_netlink.c tap functions. | 5 | * Code based on net/netlink/af_netlink.c tap functions. |
| 5 | * | ||
| 6 | * This program is free software; you can redistribute it and/or | ||
| 7 | * modify it under the terms of the GNU General Public License | ||
| 8 | * as published by the Free Software Foundation; either version | ||
| 9 | * 2 of the License, or (at your option) any later version. | ||
| 10 | */ | 6 | */ |
| 11 | 7 | ||
| 12 | #include <linux/module.h> | 8 | #include <linux/module.h> |
diff --git a/net/vmw_vsock/diag.c b/net/vmw_vsock/diag.c index 31b567652250..a2823b1c5e28 100644 --- a/net/vmw_vsock/diag.c +++ b/net/vmw_vsock/diag.c | |||
| @@ -1,17 +1,9 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-only | ||
| 1 | /* | 2 | /* |
| 2 | * vsock sock_diag(7) module | 3 | * vsock sock_diag(7) module |
| 3 | * | 4 | * |
| 4 | * Copyright (C) 2017 Red Hat, Inc. | 5 | * Copyright (C) 2017 Red Hat, Inc. |
| 5 | * Author: Stefan Hajnoczi <stefanha@redhat.com> | 6 | * Author: Stefan Hajnoczi <stefanha@redhat.com> |
| 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 as published by the Free | ||
| 9 | * Software Foundation version 2 and no later version. | ||
| 10 | * | ||
| 11 | * This program is distributed in the hope that it will be useful, but WITHOUT | ||
| 12 | * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or | ||
| 13 | * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for | ||
| 14 | * more details. | ||
| 15 | */ | 7 | */ |
| 16 | 8 | ||
| 17 | #include <linux/module.h> | 9 | #include <linux/module.h> |
diff --git a/net/vmw_vsock/hyperv_transport.c b/net/vmw_vsock/hyperv_transport.c index 982a8dc49e03..0a6fe0649945 100644 --- a/net/vmw_vsock/hyperv_transport.c +++ b/net/vmw_vsock/hyperv_transport.c | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-only | ||
| 1 | /* | 2 | /* |
| 2 | * Hyper-V transport for vsock | 3 | * Hyper-V transport for vsock |
| 3 | * | 4 | * |
| @@ -6,16 +7,6 @@ | |||
| 6 | * support in the VM by introducing the new vsock transport. | 7 | * support in the VM by introducing the new vsock transport. |
| 7 | * | 8 | * |
| 8 | * Copyright (c) 2017, Microsoft Corporation. | 9 | * Copyright (c) 2017, Microsoft Corporation. |
| 9 | * | ||
| 10 | * This program is free software; you can redistribute it and/or modify it | ||
| 11 | * under the terms and conditions of the GNU General Public License, | ||
| 12 | * version 2, as published by the Free Software Foundation. | ||
| 13 | * | ||
| 14 | * This program is distributed in the hope it will be useful, but WITHOUT | ||
| 15 | * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or | ||
| 16 | * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for | ||
| 17 | * more details. | ||
| 18 | * | ||
| 19 | */ | 10 | */ |
| 20 | #include <linux/module.h> | 11 | #include <linux/module.h> |
| 21 | #include <linux/vmalloc.h> | 12 | #include <linux/vmalloc.h> |
diff --git a/net/vmw_vsock/vmci_transport.c b/net/vmw_vsock/vmci_transport.c index c3d5ab01fba7..8c9c4ed90fa7 100644 --- a/net/vmw_vsock/vmci_transport.c +++ b/net/vmw_vsock/vmci_transport.c | |||
| @@ -1,16 +1,8 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-only | ||
| 1 | /* | 2 | /* |
| 2 | * VMware vSockets Driver | 3 | * VMware vSockets Driver |
| 3 | * | 4 | * |
| 4 | * Copyright (C) 2007-2013 VMware, Inc. All rights reserved. | 5 | * Copyright (C) 2007-2013 VMware, Inc. All rights reserved. |
| 5 | * | ||
| 6 | * This program is free software; you can redistribute it and/or modify it | ||
| 7 | * under the terms of the GNU General Public License as published by the Free | ||
| 8 | * Software Foundation version 2 and no later version. | ||
| 9 | * | ||
| 10 | * This program is distributed in the hope that it will be useful, but WITHOUT | ||
| 11 | * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or | ||
| 12 | * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for | ||
| 13 | * more details. | ||
| 14 | */ | 6 | */ |
| 15 | 7 | ||
| 16 | #include <linux/types.h> | 8 | #include <linux/types.h> |
diff --git a/net/vmw_vsock/vmci_transport.h b/net/vmw_vsock/vmci_transport.h index 1820e74a5752..1ca1e8640b31 100644 --- a/net/vmw_vsock/vmci_transport.h +++ b/net/vmw_vsock/vmci_transport.h | |||
| @@ -1,16 +1,8 @@ | |||
| 1 | /* SPDX-License-Identifier: GPL-2.0-only */ | ||
| 1 | /* | 2 | /* |
| 2 | * VMware vSockets Driver | 3 | * VMware vSockets Driver |
| 3 | * | 4 | * |
| 4 | * Copyright (C) 2013 VMware, Inc. All rights reserved. | 5 | * Copyright (C) 2013 VMware, Inc. All rights reserved. |
| 5 | * | ||
| 6 | * This program is free software; you can redistribute it and/or modify it | ||
| 7 | * under the terms of the GNU General Public License as published by the Free | ||
| 8 | * Software Foundation version 2 and no later version. | ||
| 9 | * | ||
| 10 | * This program is distributed in the hope that it will be useful, but WITHOUT | ||
| 11 | * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or | ||
| 12 | * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for | ||
| 13 | * more details. | ||
| 14 | */ | 6 | */ |
| 15 | 7 | ||
| 16 | #ifndef _VMCI_TRANSPORT_H_ | 8 | #ifndef _VMCI_TRANSPORT_H_ |
diff --git a/net/vmw_vsock/vmci_transport_notify.c b/net/vmw_vsock/vmci_transport_notify.c index 41fb427f150a..d69fc4b595ad 100644 --- a/net/vmw_vsock/vmci_transport_notify.c +++ b/net/vmw_vsock/vmci_transport_notify.c | |||
| @@ -1,16 +1,8 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-only | ||
| 1 | /* | 2 | /* |
| 2 | * VMware vSockets Driver | 3 | * VMware vSockets Driver |
| 3 | * | 4 | * |
| 4 | * Copyright (C) 2009-2013 VMware, Inc. All rights reserved. | 5 | * Copyright (C) 2009-2013 VMware, Inc. All rights reserved. |
| 5 | * | ||
| 6 | * This program is free software; you can redistribute it and/or modify it | ||
| 7 | * under the terms of the GNU General Public License as published by the Free | ||
| 8 | * Software Foundation version 2 and no later version. | ||
| 9 | * | ||
| 10 | * This program is distributed in the hope that it will be useful, but WITHOUT | ||
| 11 | * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or | ||
| 12 | * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for | ||
| 13 | * more details. | ||
| 14 | */ | 6 | */ |
| 15 | 7 | ||
| 16 | #include <linux/types.h> | 8 | #include <linux/types.h> |
diff --git a/net/vmw_vsock/vmci_transport_notify.h b/net/vmw_vsock/vmci_transport_notify.h index 3c464d394a8f..7843f08d4290 100644 --- a/net/vmw_vsock/vmci_transport_notify.h +++ b/net/vmw_vsock/vmci_transport_notify.h | |||
| @@ -1,16 +1,8 @@ | |||
| 1 | /* SPDX-License-Identifier: GPL-2.0-only */ | ||
| 1 | /* | 2 | /* |
| 2 | * VMware vSockets Driver | 3 | * VMware vSockets Driver |
| 3 | * | 4 | * |
| 4 | * Copyright (C) 2009-2013 VMware, Inc. All rights reserved. | 5 | * Copyright (C) 2009-2013 VMware, Inc. All rights reserved. |
| 5 | * | ||
| 6 | * This program is free software; you can redistribute it and/or modify it | ||
| 7 | * under the terms of the GNU General Public License as published by the Free | ||
| 8 | * Software Foundation version 2 and no later version. | ||
| 9 | * | ||
| 10 | * This program is distributed in the hope that it will be useful, but WITHOUT | ||
| 11 | * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or | ||
| 12 | * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for | ||
| 13 | * more details. | ||
| 14 | */ | 6 | */ |
| 15 | 7 | ||
| 16 | #ifndef __VMCI_TRANSPORT_NOTIFY_H__ | 8 | #ifndef __VMCI_TRANSPORT_NOTIFY_H__ |
diff --git a/net/vmw_vsock/vmci_transport_notify_qstate.c b/net/vmw_vsock/vmci_transport_notify_qstate.c index 0cc84f2bb05e..0f36d7c45db3 100644 --- a/net/vmw_vsock/vmci_transport_notify_qstate.c +++ b/net/vmw_vsock/vmci_transport_notify_qstate.c | |||
| @@ -1,16 +1,8 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-only | ||
| 1 | /* | 2 | /* |
| 2 | * VMware vSockets Driver | 3 | * VMware vSockets Driver |
| 3 | * | 4 | * |
| 4 | * Copyright (C) 2009-2013 VMware, Inc. All rights reserved. | 5 | * Copyright (C) 2009-2013 VMware, Inc. All rights reserved. |
| 5 | * | ||
| 6 | * This program is free software; you can redistribute it and/or modify it | ||
| 7 | * under the terms of the GNU General Public License as published by the Free | ||
| 8 | * Software Foundation version 2 and no later version. | ||
| 9 | * | ||
| 10 | * This program is distributed in the hope that it will be useful, but WITHOUT | ||
| 11 | * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or | ||
| 12 | * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for | ||
| 13 | * more details. | ||
| 14 | */ | 6 | */ |
| 15 | 7 | ||
| 16 | #include <linux/types.h> | 8 | #include <linux/types.h> |
diff --git a/net/vmw_vsock/vsock_addr.c b/net/vmw_vsock/vsock_addr.c index 82486ee55eac..909de26cb0e7 100644 --- a/net/vmw_vsock/vsock_addr.c +++ b/net/vmw_vsock/vsock_addr.c | |||
| @@ -1,16 +1,8 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-only | ||
| 1 | /* | 2 | /* |
| 2 | * VMware vSockets Driver | 3 | * VMware vSockets Driver |
| 3 | * | 4 | * |
| 4 | * Copyright (C) 2007-2012 VMware, Inc. All rights reserved. | 5 | * Copyright (C) 2007-2012 VMware, Inc. All rights reserved. |
| 5 | * | ||
| 6 | * This program is free software; you can redistribute it and/or modify it | ||
| 7 | * under the terms of the GNU General Public License as published by the Free | ||
| 8 | * Software Foundation version 2 and no later version. | ||
| 9 | * | ||
| 10 | * This program is distributed in the hope that it will be useful, but WITHOUT | ||
| 11 | * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or | ||
| 12 | * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for | ||
| 13 | * more details. | ||
| 14 | */ | 6 | */ |
| 15 | 7 | ||
| 16 | #include <linux/types.h> | 8 | #include <linux/types.h> |
diff --git a/net/wimax/debug-levels.h b/net/wimax/debug-levels.h index 0975adba6b71..ebc287cde336 100644 --- a/net/wimax/debug-levels.h +++ b/net/wimax/debug-levels.h | |||
| @@ -1,24 +1,10 @@ | |||
| 1 | /* SPDX-License-Identifier: GPL-2.0-only */ | ||
| 1 | /* | 2 | /* |
| 2 | * Linux WiMAX Stack | 3 | * Linux WiMAX Stack |
| 3 | * Debug levels control file for the wimax module | 4 | * Debug levels control file for the wimax module |
| 4 | * | 5 | * |
| 5 | * | ||
| 6 | * Copyright (C) 2007-2008 Intel Corporation <linux-wimax@intel.com> | 6 | * Copyright (C) 2007-2008 Intel Corporation <linux-wimax@intel.com> |
| 7 | * Inaky Perez-Gonzalez <inaky.perez-gonzalez@intel.com> | 7 | * Inaky Perez-Gonzalez <inaky.perez-gonzalez@intel.com> |
| 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 version | ||
| 11 | * 2 as published by the Free Software Foundation. | ||
| 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., 51 Franklin Street, Fifth Floor, Boston, MA | ||
| 21 | * 02110-1301, USA. | ||
| 22 | */ | 8 | */ |
| 23 | #ifndef __debug_levels__h__ | 9 | #ifndef __debug_levels__h__ |
| 24 | #define __debug_levels__h__ | 10 | #define __debug_levels__h__ |
diff --git a/net/wimax/debugfs.c b/net/wimax/debugfs.c index 24514840746e..1af56df30276 100644 --- a/net/wimax/debugfs.c +++ b/net/wimax/debugfs.c | |||
| @@ -1,24 +1,10 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-only | ||
| 1 | /* | 2 | /* |
| 2 | * Linux WiMAX | 3 | * Linux WiMAX |
| 3 | * Debugfs support | 4 | * Debugfs support |
| 4 | * | 5 | * |
| 5 | * | ||
| 6 | * Copyright (C) 2005-2006 Intel Corporation <linux-wimax@intel.com> | 6 | * Copyright (C) 2005-2006 Intel Corporation <linux-wimax@intel.com> |
| 7 | * Inaky Perez-Gonzalez <inaky.perez-gonzalez@intel.com> | 7 | * Inaky Perez-Gonzalez <inaky.perez-gonzalez@intel.com> |
| 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 version | ||
| 11 | * 2 as published by the Free Software Foundation. | ||
| 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., 51 Franklin Street, Fifth Floor, Boston, MA | ||
| 21 | * 02110-1301, USA. | ||
| 22 | */ | 8 | */ |
| 23 | #include <linux/debugfs.h> | 9 | #include <linux/debugfs.h> |
| 24 | #include <linux/wimax.h> | 10 | #include <linux/wimax.h> |
diff --git a/net/wimax/id-table.c b/net/wimax/id-table.c index a21508d11036..02eee37b7e31 100644 --- a/net/wimax/id-table.c +++ b/net/wimax/id-table.c | |||
| @@ -1,26 +1,11 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-only | ||
| 1 | /* | 2 | /* |
| 2 | * Linux WiMAX | 3 | * Linux WiMAX |
| 3 | * Mappping of generic netlink family IDs to net devices | 4 | * Mappping of generic netlink family IDs to net devices |
| 4 | * | 5 | * |
| 5 | * | ||
| 6 | * Copyright (C) 2005-2006 Intel Corporation <linux-wimax@intel.com> | 6 | * Copyright (C) 2005-2006 Intel Corporation <linux-wimax@intel.com> |
| 7 | * Inaky Perez-Gonzalez <inaky.perez-gonzalez@intel.com> | 7 | * Inaky Perez-Gonzalez <inaky.perez-gonzalez@intel.com> |
| 8 | * | 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 version | ||
| 11 | * 2 as published by the Free Software Foundation. | ||
| 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., 51 Franklin Street, Fifth Floor, Boston, MA | ||
| 21 | * 02110-1301, USA. | ||
| 22 | * | ||
| 23 | * | ||
| 24 | * We assign a single generic netlink family ID to each device (to | 9 | * We assign a single generic netlink family ID to each device (to |
| 25 | * simplify lookup). | 10 | * simplify lookup). |
| 26 | * | 11 | * |
diff --git a/net/wimax/op-msg.c b/net/wimax/op-msg.c index 101b2fa3f32e..6460b5785758 100644 --- a/net/wimax/op-msg.c +++ b/net/wimax/op-msg.c | |||
| @@ -1,26 +1,11 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-only | ||
| 1 | /* | 2 | /* |
| 2 | * Linux WiMAX | 3 | * Linux WiMAX |
| 3 | * Generic messaging interface between userspace and driver/device | 4 | * Generic messaging interface between userspace and driver/device |
| 4 | * | 5 | * |
| 5 | * | ||
| 6 | * Copyright (C) 2007-2008 Intel Corporation <linux-wimax@intel.com> | 6 | * Copyright (C) 2007-2008 Intel Corporation <linux-wimax@intel.com> |
| 7 | * Inaky Perez-Gonzalez <inaky.perez-gonzalez@intel.com> | 7 | * Inaky Perez-Gonzalez <inaky.perez-gonzalez@intel.com> |
| 8 | * | 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 version | ||
| 11 | * 2 as published by the Free Software Foundation. | ||
| 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., 51 Franklin Street, Fifth Floor, Boston, MA | ||
| 21 | * 02110-1301, USA. | ||
| 22 | * | ||
| 23 | * | ||
| 24 | * This implements a direct communication channel between user space and | 9 | * This implements a direct communication channel between user space and |
| 25 | * the driver/device, by which free form messages can be sent back and | 10 | * the driver/device, by which free form messages can be sent back and |
| 26 | * forth. | 11 | * forth. |
diff --git a/net/wimax/op-reset.c b/net/wimax/op-reset.c index a42079165e1f..9899b2e56721 100644 --- a/net/wimax/op-reset.c +++ b/net/wimax/op-reset.c | |||
| @@ -1,26 +1,11 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-only | ||
| 1 | /* | 2 | /* |
| 2 | * Linux WiMAX | 3 | * Linux WiMAX |
| 3 | * Implement and export a method for resetting a WiMAX device | 4 | * Implement and export a method for resetting a WiMAX device |
| 4 | * | 5 | * |
| 5 | * | ||
| 6 | * Copyright (C) 2008 Intel Corporation <linux-wimax@intel.com> | 6 | * Copyright (C) 2008 Intel Corporation <linux-wimax@intel.com> |
| 7 | * Inaky Perez-Gonzalez <inaky.perez-gonzalez@intel.com> | 7 | * Inaky Perez-Gonzalez <inaky.perez-gonzalez@intel.com> |
| 8 | * | 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 version | ||
| 11 | * 2 as published by the Free Software Foundation. | ||
| 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., 51 Franklin Street, Fifth Floor, Boston, MA | ||
| 21 | * 02110-1301, USA. | ||
| 22 | * | ||
| 23 | * | ||
| 24 | * This implements a simple synchronous call to reset a WiMAX device. | 9 | * This implements a simple synchronous call to reset a WiMAX device. |
| 25 | * | 10 | * |
| 26 | * Resets aim at being warm, keeping the device handles active; | 11 | * Resets aim at being warm, keeping the device handles active; |
diff --git a/net/wimax/op-rfkill.c b/net/wimax/op-rfkill.c index 477364ad750e..248d10b60b05 100644 --- a/net/wimax/op-rfkill.c +++ b/net/wimax/op-rfkill.c | |||
| @@ -1,26 +1,11 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-only | ||
| 1 | /* | 2 | /* |
| 2 | * Linux WiMAX | 3 | * Linux WiMAX |
| 3 | * RF-kill framework integration | 4 | * RF-kill framework integration |
| 4 | * | 5 | * |
| 5 | * | ||
| 6 | * Copyright (C) 2008 Intel Corporation <linux-wimax@intel.com> | 6 | * Copyright (C) 2008 Intel Corporation <linux-wimax@intel.com> |
| 7 | * Inaky Perez-Gonzalez <inaky.perez-gonzalez@intel.com> | 7 | * Inaky Perez-Gonzalez <inaky.perez-gonzalez@intel.com> |
| 8 | * | 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 version | ||
| 11 | * 2 as published by the Free Software Foundation. | ||
| 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., 51 Franklin Street, Fifth Floor, Boston, MA | ||
| 21 | * 02110-1301, USA. | ||
| 22 | * | ||
| 23 | * | ||
| 24 | * This integrates into the Linux Kernel rfkill susbystem so that the | 9 | * This integrates into the Linux Kernel rfkill susbystem so that the |
| 25 | * drivers just have to do the bare minimal work, which is providing a | 10 | * drivers just have to do the bare minimal work, which is providing a |
| 26 | * method to set the software RF-Kill switch and to report changes in | 11 | * method to set the software RF-Kill switch and to report changes in |
diff --git a/net/wimax/op-state-get.c b/net/wimax/op-state-get.c index e6788d281d0e..5bc712de1563 100644 --- a/net/wimax/op-state-get.c +++ b/net/wimax/op-state-get.c | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-only | ||
| 1 | /* | 2 | /* |
| 2 | * Linux WiMAX | 3 | * Linux WiMAX |
| 3 | * Implement and export a method for getting a WiMAX device current state | 4 | * Implement and export a method for getting a WiMAX device current state |
| @@ -7,20 +8,6 @@ | |||
| 7 | * Based on previous WiMAX core work by: | 8 | * Based on previous WiMAX core work by: |
| 8 | * Copyright (C) 2008 Intel Corporation <linux-wimax@intel.com> | 9 | * Copyright (C) 2008 Intel Corporation <linux-wimax@intel.com> |
| 9 | * Inaky Perez-Gonzalez <inaky.perez-gonzalez@intel.com> | 10 | * Inaky Perez-Gonzalez <inaky.perez-gonzalez@intel.com> |
| 10 | * | ||
| 11 | * This program is free software; you can redistribute it and/or | ||
| 12 | * modify it under the terms of the GNU General Public License version | ||
| 13 | * 2 as published by the Free Software Foundation. | ||
| 14 | * | ||
| 15 | * This program is distributed in the hope that it will be useful, | ||
| 16 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
| 17 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
| 18 | * GNU General Public License for more details. | ||
| 19 | * | ||
| 20 | * You should have received a copy of the GNU General Public License | ||
| 21 | * along with this program; if not, write to the Free Software | ||
| 22 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA | ||
| 23 | * 02110-1301, USA. | ||
| 24 | */ | 11 | */ |
| 25 | 12 | ||
| 26 | #include <net/wimax.h> | 13 | #include <net/wimax.h> |
diff --git a/net/wimax/stack.c b/net/wimax/stack.c index 4969de672886..1ba99d65feca 100644 --- a/net/wimax/stack.c +++ b/net/wimax/stack.c | |||
| @@ -1,26 +1,11 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-only | ||
| 1 | /* | 2 | /* |
| 2 | * Linux WiMAX | 3 | * Linux WiMAX |
| 3 | * Initialization, addition and removal of wimax devices | 4 | * Initialization, addition and removal of wimax devices |
| 4 | * | 5 | * |
| 5 | * | ||
| 6 | * Copyright (C) 2005-2006 Intel Corporation <linux-wimax@intel.com> | 6 | * Copyright (C) 2005-2006 Intel Corporation <linux-wimax@intel.com> |
| 7 | * Inaky Perez-Gonzalez <inaky.perez-gonzalez@intel.com> | 7 | * Inaky Perez-Gonzalez <inaky.perez-gonzalez@intel.com> |
| 8 | * | 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 version | ||
| 11 | * 2 as published by the Free Software Foundation. | ||
| 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., 51 Franklin Street, Fifth Floor, Boston, MA | ||
| 21 | * 02110-1301, USA. | ||
| 22 | * | ||
| 23 | * | ||
| 24 | * This implements: | 9 | * This implements: |
| 25 | * | 10 | * |
| 26 | * - basic life cycle of 'struct wimax_dev' [wimax_dev_*()]; on | 11 | * - basic life cycle of 'struct wimax_dev' [wimax_dev_*()]; on |
diff --git a/net/wimax/wimax-internal.h b/net/wimax/wimax-internal.h index 733c4bf8d4b3..e819a09337ee 100644 --- a/net/wimax/wimax-internal.h +++ b/net/wimax/wimax-internal.h | |||
| @@ -1,26 +1,11 @@ | |||
| 1 | /* SPDX-License-Identifier: GPL-2.0-only */ | ||
| 1 | /* | 2 | /* |
| 2 | * Linux WiMAX | 3 | * Linux WiMAX |
| 3 | * Internal API for kernel space WiMAX stack | 4 | * Internal API for kernel space WiMAX stack |
| 4 | * | 5 | * |
| 5 | * | ||
| 6 | * Copyright (C) 2007 Intel Corporation <linux-wimax@intel.com> | 6 | * Copyright (C) 2007 Intel Corporation <linux-wimax@intel.com> |
| 7 | * Inaky Perez-Gonzalez <inaky.perez-gonzalez@intel.com> | 7 | * Inaky Perez-Gonzalez <inaky.perez-gonzalez@intel.com> |
| 8 | * | 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 version | ||
| 11 | * 2 as published by the Free Software Foundation. | ||
| 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., 51 Franklin Street, Fifth Floor, Boston, MA | ||
| 21 | * 02110-1301, USA. | ||
| 22 | * | ||
| 23 | * | ||
| 24 | * This header file is for declarations and definitions internal to | 9 | * This header file is for declarations and definitions internal to |
| 25 | * the WiMAX stack. For public APIs and documentation, see | 10 | * the WiMAX stack. For public APIs and documentation, see |
| 26 | * include/net/wimax.h and include/linux/wimax.h. | 11 | * include/net/wimax.h and include/linux/wimax.h. |
diff --git a/net/wireless/sysfs.c b/net/wireless/sysfs.c index 6ab32f6a1961..3ac1f48195d2 100644 --- a/net/wireless/sysfs.c +++ b/net/wireless/sysfs.c | |||
| @@ -1,11 +1,10 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-only | ||
| 1 | /* | 2 | /* |
| 2 | * This file provides /sys/class/ieee80211/<wiphy name>/ | 3 | * This file provides /sys/class/ieee80211/<wiphy name>/ |
| 3 | * and some default attributes. | 4 | * and some default attributes. |
| 4 | * | 5 | * |
| 5 | * Copyright 2005-2006 Jiri Benc <jbenc@suse.cz> | 6 | * Copyright 2005-2006 Jiri Benc <jbenc@suse.cz> |
| 6 | * Copyright 2006 Johannes Berg <johannes@sipsolutions.net> | 7 | * Copyright 2006 Johannes Berg <johannes@sipsolutions.net> |
| 7 | * | ||
| 8 | * This file is GPLv2 as found in COPYING. | ||
| 9 | */ | 8 | */ |
| 10 | 9 | ||
| 11 | #include <linux/device.h> | 10 | #include <linux/device.h> |
diff --git a/net/xfrm/xfrm_algo.c b/net/xfrm/xfrm_algo.c index 44ac85fe2bc9..32a378e7011f 100644 --- a/net/xfrm/xfrm_algo.c +++ b/net/xfrm/xfrm_algo.c | |||
| @@ -1,12 +1,8 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-or-later | ||
| 1 | /* | 2 | /* |
| 2 | * xfrm algorithm interface | 3 | * xfrm algorithm interface |
| 3 | * | 4 | * |
| 4 | * Copyright (c) 2002 James Morris <jmorris@intercode.com.au> | 5 | * Copyright (c) 2002 James Morris <jmorris@intercode.com.au> |
| 5 | * | ||
| 6 | * This program is free software; you can redistribute it and/or modify it | ||
| 7 | * under the terms of the GNU General Public License as published by the Free | ||
| 8 | * Software Foundation; either version 2 of the License, or (at your option) | ||
| 9 | * any later version. | ||
| 10 | */ | 6 | */ |
| 11 | 7 | ||
| 12 | #include <crypto/hash.h> | 8 | #include <crypto/hash.h> |
diff --git a/net/xfrm/xfrm_device.c b/net/xfrm/xfrm_device.c index b24cd86a02c3..ff654306d836 100644 --- a/net/xfrm/xfrm_device.c +++ b/net/xfrm/xfrm_device.c | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-or-later | ||
| 1 | /* | 2 | /* |
| 2 | * xfrm_device.c - IPsec device offloading code. | 3 | * xfrm_device.c - IPsec device offloading code. |
| 3 | * | 4 | * |
| @@ -5,11 +6,6 @@ | |||
| 5 | * | 6 | * |
| 6 | * Author: | 7 | * Author: |
| 7 | * Steffen Klassert <steffen.klassert@secunet.com> | 8 | * Steffen Klassert <steffen.klassert@secunet.com> |
| 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 | * as published by the Free Software Foundation; either version | ||
| 12 | * 2 of the License, or (at your option) any later version. | ||
| 13 | */ | 9 | */ |
| 14 | 10 | ||
| 15 | #include <linux/errno.h> | 11 | #include <linux/errno.h> |
diff --git a/net/xfrm/xfrm_ipcomp.c b/net/xfrm/xfrm_ipcomp.c index a00ec715aa46..32c364d3bfb3 100644 --- a/net/xfrm/xfrm_ipcomp.c +++ b/net/xfrm/xfrm_ipcomp.c | |||
| @@ -1,14 +1,10 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-or-later | ||
| 1 | /* | 2 | /* |
| 2 | * IP Payload Compression Protocol (IPComp) - RFC3173. | 3 | * IP Payload Compression Protocol (IPComp) - RFC3173. |
| 3 | * | 4 | * |
| 4 | * Copyright (c) 2003 James Morris <jmorris@intercode.com.au> | 5 | * Copyright (c) 2003 James Morris <jmorris@intercode.com.au> |
| 5 | * Copyright (c) 2003-2008 Herbert Xu <herbert@gondor.apana.org.au> | 6 | * Copyright (c) 2003-2008 Herbert Xu <herbert@gondor.apana.org.au> |
| 6 | * | 7 | * |
| 7 | * This program is free software; you can redistribute it and/or modify it | ||
| 8 | * under the terms of the GNU General Public License as published by the Free | ||
| 9 | * Software Foundation; either version 2 of the License, or (at your option) | ||
| 10 | * any later version. | ||
| 11 | * | ||
| 12 | * Todo: | 8 | * Todo: |
| 13 | * - Tunable compression parameters. | 9 | * - Tunable compression parameters. |
| 14 | * - Compression stats. | 10 | * - Compression stats. |
diff --git a/net/xfrm/xfrm_output.c b/net/xfrm/xfrm_output.c index a55510f9ff35..9499b35feb92 100644 --- a/net/xfrm/xfrm_output.c +++ b/net/xfrm/xfrm_output.c | |||
| @@ -1,12 +1,8 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-or-later | ||
| 1 | /* | 2 | /* |
| 2 | * xfrm_output.c - Common IPsec encapsulation code. | 3 | * xfrm_output.c - Common IPsec encapsulation code. |
| 3 | * | 4 | * |
| 4 | * Copyright (c) 2007 Herbert Xu <herbert@gondor.apana.org.au> | 5 | * Copyright (c) 2007 Herbert Xu <herbert@gondor.apana.org.au> |
| 5 | * | ||
| 6 | * This program is free software; you can redistribute it and/or | ||
| 7 | * modify it under the terms of the GNU General Public License | ||
| 8 | * as published by the Free Software Foundation; either version | ||
| 9 | * 2 of the License, or (at your option) any later version. | ||
| 10 | */ | 6 | */ |
| 11 | 7 | ||
| 12 | #include <linux/errno.h> | 8 | #include <linux/errno.h> |
diff --git a/net/xfrm/xfrm_proc.c b/net/xfrm/xfrm_proc.c index 178318d2e120..fee9b5cf37a7 100644 --- a/net/xfrm/xfrm_proc.c +++ b/net/xfrm/xfrm_proc.c | |||
| @@ -1,14 +1,10 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-or-later | ||
| 1 | /* | 2 | /* |
| 2 | * xfrm_proc.c | 3 | * xfrm_proc.c |
| 3 | * | 4 | * |
| 4 | * Copyright (C)2006-2007 USAGI/WIDE Project | 5 | * Copyright (C)2006-2007 USAGI/WIDE Project |
| 5 | * | 6 | * |
| 6 | * Authors: Masahide NAKAMURA <nakam@linux-ipv6.org> | 7 | * Authors: Masahide NAKAMURA <nakam@linux-ipv6.org> |
| 7 | * | ||
| 8 | * This program is free software; you can redistribute it and/or | ||
| 9 | * modify it under the terms of the GNU General Public License | ||
| 10 | * as published by the Free Software Foundation; either version | ||
| 11 | * 2 of the License, or (at your option) any later version. | ||
| 12 | */ | 8 | */ |
| 13 | #include <linux/proc_fs.h> | 9 | #include <linux/proc_fs.h> |
| 14 | #include <linux/seq_file.h> | 10 | #include <linux/seq_file.h> |
diff --git a/net/xfrm/xfrm_replay.c b/net/xfrm/xfrm_replay.c index 9e3a5e85f828..98943f8d01aa 100644 --- a/net/xfrm/xfrm_replay.c +++ b/net/xfrm/xfrm_replay.c | |||
| @@ -1,21 +1,9 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-only | ||
| 1 | /* | 2 | /* |
| 2 | * xfrm_replay.c - xfrm replay detection, derived from xfrm_state.c. | 3 | * xfrm_replay.c - xfrm replay detection, derived from xfrm_state.c. |
| 3 | * | 4 | * |
| 4 | * Copyright (C) 2010 secunet Security Networks AG | 5 | * Copyright (C) 2010 secunet Security Networks AG |
| 5 | * Copyright (C) 2010 Steffen Klassert <steffen.klassert@secunet.com> | 6 | * Copyright (C) 2010 Steffen Klassert <steffen.klassert@secunet.com> |
| 6 | * | ||
| 7 | * This program is free software; you can redistribute it and/or modify it | ||
| 8 | * under the terms and conditions of the GNU General Public License, | ||
| 9 | * version 2, as published by the Free Software Foundation. | ||
| 10 | * | ||
| 11 | * This program is distributed in the hope it will be useful, but WITHOUT | ||
| 12 | * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or | ||
| 13 | * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for | ||
| 14 | * more details. | ||
| 15 | * | ||
| 16 | * You should have received a copy of the GNU General Public License along with | ||
| 17 | * this program; if not, write to the Free Software Foundation, Inc., | ||
| 18 | * 51 Franklin St - Fifth Floor, Boston, MA 02110-1301 USA. | ||
| 19 | */ | 7 | */ |
| 20 | 8 | ||
| 21 | #include <linux/export.h> | 9 | #include <linux/export.h> |
