History

Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net-next

Pull networking updates from David Miller: 1) Allow setting bluetooth L2CAP modes via socket option, from Luiz Augusto von Dentz. 2) Add GSO partial support to igc, from Sasha Neftin. 3) Several cleanups and improvements to r8169 from Heiner Kallweit. 4) Add IF_OPER_TESTING link state and use it when ethtool triggers a device self-test. From Andrew Lunn. 5) Start moving away from custom driver versions, use the globally defined kernel version instead, from Leon Romanovsky. 6) Support GRO vis gro_cells in DSA layer, from Alexander Lobakin. 7) Allow hard IRQ deferral during NAPI, from Eric Dumazet. 8) Add sriov and vf support to hinic, from Luo bin. 9) Support Media Redundancy Protocol (MRP) in the bridging code, from Horatiu Vultur. 10) Support netmap in the nft_nat code, from Pablo Neira Ayuso. 11) Allow UDPv6 encapsulation of ESP in the ipsec code, from Sabrina Dubroca. Also add ipv6 support for espintcp. 12) Lots of ReST conversions of the networking documentation, from Mauro Carvalho Chehab. 13) Support configuration of ethtool rxnfc flows in bcmgenet driver, from Doug Berger. 14) Allow to dump cgroup id and filter by it in inet_diag code, from Dmitry Yakunin. 15) Add infrastructure to export netlink attribute policies to userspace, from Johannes Berg. 16) Several optimizations to sch_fq scheduler, from Eric Dumazet. 17) Fallback to the default qdisc if qdisc init fails because otherwise a packet scheduler init failure will make a device inoperative. From Jesper Dangaard Brouer. 18) Several RISCV bpf jit optimizations, from Luke Nelson. 19) Correct the return type of the ->ndo_start_xmit() method in several drivers, it's netdev_tx_t but many drivers were using 'int'. From Yunjian Wang. 20) Add an ethtool interface for PHY master/slave config, from Oleksij Rempel. 21) Add BPF iterators, from Yonghang Song. 22) Add cable test infrastructure, including ethool interfaces, from Andrew Lunn. Marvell PHY driver is the first to support this facility. 23) Remove zero-length arrays all over, from Gustavo A. R. Silva. 24) Calculate and maintain an explicit frame size in XDP, from Jesper Dangaard Brouer. 25) Add CAP_BPF, from Alexei Starovoitov. 26) Support terse dumps in the packet scheduler, from Vlad Buslov. 27) Support XDP_TX bulking in dpaa2 driver, from Ioana Ciornei. 28) Add devm_register_netdev(), from Bartosz Golaszewski. 29) Minimize qdisc resets, from Cong Wang. 30) Get rid of kernel_getsockopt and kernel_setsockopt in order to eliminate set_fs/get_fs calls. From Christoph Hellwig. * git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net-next: (2517 commits) selftests: net: ip_defrag: ignore EPERM net_failover: fixed rollback in net_failover_open() Revert "tipc: Fix potential tipc_aead refcnt leak in tipc_crypto_rcv" Revert "tipc: Fix potential tipc_node refcnt leak in tipc_rcv" vmxnet3: allow rx flow hash ops only when rss is enabled hinic: add set_channels ethtool_ops support selftests/bpf: Add a default $(CXX) value tools/bpf: Don't use $(COMPILE.c) bpf, selftests: Use bpf_probe_read_kernel s390/bpf: Use bcr 0,%0 as tail call nop filler s390/bpf: Maintain 8-byte stack alignment selftests/bpf: Fix verifier test selftests/bpf: Fix sample_cnt shared between two threads bpf, selftests: Adapt cls_redirect to call csum_level helper bpf: Add csum_level helper for fixing up csum levels bpf: Fix up bpf_skb_adjust_room helper's skb csum setting sfc: add missing annotation for efx_ef10_try_update_nic_stats_vf() crypto/chtls: IPv6 support for inline TLS Crypto/chcr: Fixes a coccinile check error Crypto/chcr: Fixes compilations warnings ...

Linus Torvalds committed 6 years ago

Commit cb8e59c2 parents 2e63f6c 065fcfd2097 files · +151766 −46213Browse files

Showing the changes to scripts (4 of 2097 files). Show all

Unified · Split

4 files
  1. scripts/bpf_helpers_doc.py +8 −0
  2. scripts/checkpatch.pl +11 −0
  3. scripts/coccinelle/misc/newline_in_nl_msg.cocci +75 −0
  4. scripts/mod/modpost.c +1 −0
scripts/bpf_helpers_doc.py+8−0
@@ -318,6 +318,11 @@ may be interested in: · 317 unmodified lines
318 of eBPF maps are used with a given helper function.318 of eBPF maps are used with a given helper function.
319* *kernel/bpf/* directory contains other files in which additional helpers are319* *kernel/bpf/* directory contains other files in which additional helpers are
320 defined (for cgroups, sockmaps, etc.).320 defined (for cgroups, sockmaps, etc.).
321* The bpftool utility can be used to probe the availability of helper functions
322 on the system (as well as supported program and map types, and a number of
323 other parameters). To do so, run **bpftool feature probe** (see
324 **bpftool-feature**\ (8) for details). Add the **unprivileged** keyword to
325 list features available to unprivileged users.
321 326
322Compatibility between helper functions and program types can generally be found327Compatibility between helper functions and program types can generally be found
323in the files where helper functions are defined. Look for the **struct328in the files where helper functions are defined. Look for the **struct
@@ -338,6 +343,7 @@ SEE ALSO · 14 unmodified lines
338========343========
339 344
340**bpf**\ (2),345**bpf**\ (2),
346**bpftool**\ (8),
341**cgroups**\ (7),347**cgroups**\ (7),
342**ip**\ (8),348**ip**\ (8),
343**perf_event_open**\ (2),349**perf_event_open**\ (2),
@@ -414,6 +420,7 @@ class PrinterHelpers(Printer): · 70 unmodified lines
414 'struct sk_reuseport_md',420 'struct sk_reuseport_md',
415 'struct sockaddr',421 'struct sockaddr',
416 'struct tcphdr',422 'struct tcphdr',
423 'struct seq_file',
417 424
418 'struct __sk_buff',425 'struct __sk_buff',
419 'struct sk_msg_md',426 'struct sk_msg_md',
@@ -450,6 +457,7 @@ class PrinterHelpers(Printer): · 30 unmodified lines
450 'struct sk_reuseport_md',457 'struct sk_reuseport_md',
451 'struct sockaddr',458 'struct sockaddr',
452 'struct tcphdr',459 'struct tcphdr',
460 'struct seq_file',
453 }461 }
454 mapped_types = {462 mapped_types = {
455 'u8': '__u8',463 'u8': '__u8',
scripts/checkpatch.pl+11−0
@@ -4203,6 +4203,17 @@ sub process { · 4202 unmodified lines
4203 "ENOSYS means 'invalid syscall nr' and nothing else\n" . $herecurr);4203 "ENOSYS means 'invalid syscall nr' and nothing else\n" . $herecurr);
4204 }4204 }
4205 4205
4206# ENOTSUPP is not a standard error code and should be avoided in new patches.
4207# Folks usually mean EOPNOTSUPP (also called ENOTSUP), when they type ENOTSUPP.
4208# Similarly to ENOSYS warning a small number of false positives is expected.
4209 if (!$file && $line =~ /\bENOTSUPP\b/) {
4210 if (WARN("ENOTSUPP",
4211 "ENOTSUPP is not a SUSV4 error code, prefer EOPNOTSUPP\n" . $herecurr) &&
4212 $fix) {
4213 $fixed[$fixlinenr] =~ s/\bENOTSUPP\b/EOPNOTSUPP/;
4214 }
4215 }
4216
4206# function brace can't be on same line, except for #defines of do while,4217# function brace can't be on same line, except for #defines of do while,
4207# or if closed on same line4218# or if closed on same line
4208 if ($perl_version_ok &&4219 if ($perl_version_ok &&
scripts/coccinelle/misc/newline_in_nl_msg.cocci+75−0
@@ -0,0 +1,75 @@
1// SPDX-License-Identifier: GPL-2.0-only
2///
3/// Catch strings ending in newline with GENL_SET_ERR_MSG, NL_SET_ERR_MSG,
4/// NL_SET_ERR_MSG_MOD.
5///
6// Confidence: Very High
7// Copyright: (C) 2020 Intel Corporation
8// URL: http://coccinelle.lip6.fr/
9// Options: --no-includes --include-headers
10
11virtual context
12virtual org
13virtual report
14
15@r depends on context || org || report@
16expression e;
17constant m;
18position p;
19@@
20 \(GENL_SET_ERR_MSG\|NL_SET_ERR_MSG\|NL_SET_ERR_MSG_MOD\)(e,m@p)
21
22@script:python@
23m << r.m;
24@@
25
26if not m.endswith("\\n\""):
27 cocci.include_match(False)
28
29@r1 depends on r@
30identifier fname;
31expression r.e;
32constant r.m;
33position r.p;
34@@
35 fname(e,m@p)
36
37//----------------------------------------------------------
38// For context mode
39//----------------------------------------------------------
40
41@depends on context && r@
42identifier r1.fname;
43expression r.e;
44constant r.m;
45@@
46* fname(e,m)
47
48//----------------------------------------------------------
49// For org mode
50//----------------------------------------------------------
51
52@script:python depends on org@
53fname << r1.fname;
54m << r.m;
55p << r.p;
56@@
57
58if m.endswith("\\n\""):
59 msg="WARNING avoid newline at end of message in %s" % (fname)
60 msg_safe=msg.replace("[","@(").replace("]",")")
61 coccilib.org.print_todo(p[0], msg_safe)
62
63//----------------------------------------------------------
64// For report mode
65//----------------------------------------------------------
66
67@script:python depends on report@
68fname << r1.fname;
69m << r.m;
70p << r.p;
71@@
72
73if m.endswith("\\n\""):
74 msg="WARNING avoid newline at end of message in %s" % (fname)
75 coccilib.report.print_report(p[0], msg)
scripts/mod/modpost.c+1−0
@@ -2251,6 +2251,7 @@ static void add_header(struct buffer *b, struct module *mod) · 2250 unmodified lines
2251 * Include build-salt.h after module.h in order to2251 * Include build-salt.h after module.h in order to
2252 * inherit the definitions.2252 * inherit the definitions.
2253 */2253 */
2254 buf_printf(b, "#define INCLUDE_VERMAGIC\n");
2254 buf_printf(b, "#include <linux/build-salt.h>\n");2255 buf_printf(b, "#include <linux/build-salt.h>\n");
2255 buf_printf(b, "#include <linux/vermagic.h>\n");2256 buf_printf(b, "#include <linux/vermagic.h>\n");
2256 buf_printf(b, "#include <linux/compiler.h>\n");2257 buf_printf(b, "#include <linux/compiler.h>\n");