Skip to content

Commit 02dc96e

Browse files
committed
Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net
Pull networking fixes from David Miller: 1) Sanity check URB networking device parameters to avoid divide by zero, from Oliver Neukum. 2) Disable global multicast filter in NCSI, otherwise LLDP and IPV6 don't work properly. Longer term this needs a better fix tho. From Vijay Khemka. 3) Small fixes to selftests (use ping when ping6 is not present, etc.) from David Ahern. 4) Bring back rt_uses_gateway member of struct rtable, it's semantics were not well understood and trying to remove it broke things. From David Ahern. 5) Move usbnet snaity checking, ignore endpoints with invalid wMaxPacketSize. From Bjørn Mork. 6) Missing Kconfig deps for sja1105 driver, from Mao Wenan. 7) Various small fixes to the mlx5 DR steering code, from Alaa Hleihel, Alex Vesker, and Yevgeny Kliteynik 8) Missing CAP_NET_RAW checks in various places, from Ori Nimron. 9) Fix crash when removing sch_cbs entry while offloading is enabled, from Vinicius Costa Gomes. 10) Signedness bug fixes, generally in looking at the result given by of_get_phy_mode() and friends. From Dan Crapenter. 11) Disable preemption around BPF_PROG_RUN() calls, from Eric Dumazet. 12) Don't create VRF ipv6 rules if ipv6 is disabled, from David Ahern. 13) Fix quantization code in tcp_bbr, from Kevin Yang. * git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net: (127 commits) net: tap: clean up an indentation issue nfp: abm: fix memory leak in nfp_abm_u32_knode_replace tcp: better handle TCP_USER_TIMEOUT in SYN_SENT state sk_buff: drop all skb extensions on free and skb scrubbing tcp_bbr: fix quantization code to not raise cwnd if not probing bandwidth mlxsw: spectrum_flower: Fail in case user specifies multiple mirror actions Documentation: Clarify trap's description mlxsw: spectrum: Clear VLAN filters during port initialization net: ena: clean up indentation issue NFC: st95hf: clean up indentation issue net: phy: micrel: add Asym Pause workaround for KSZ9021 net: socionext: ave: Avoid using netdev_err() before calling register_netdev() ptp: correctly disable flags on old ioctls lib: dimlib: fix help text typos net: dsa: microchip: Always set regmap stride to 1 nfp: flower: fix memory leak in nfp_flower_spawn_vnic_reprs nfp: flower: prevent memory leak in nfp_flower_spawn_phy_reprs net/sched: Set default of CONFIG_NET_TC_SKB_EXT to N vrf: Do not attempt to create IPv6 mcast rule if IPv6 is disabled net: sched: sch_sfb: don't call qdisc_put() while holding tree lock ...
2 parents edf445a + faeacb6 commit 02dc96e

File tree

169 files changed

+1225
-1307
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

169 files changed

+1225
-1307
lines changed

Documentation/devicetree/bindings/net/adi,adin.yaml

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -36,12 +36,6 @@ properties:
3636
enum: [ 4, 8, 12, 16, 20, 24 ]
3737
default: 8
3838

39-
adi,disable-energy-detect:
40-
description: |
41-
Disables Energy Detect Powerdown Mode (default disabled, i.e energy detect
42-
is enabled if this property is unspecified)
43-
type: boolean
44-
4539
examples:
4640
- |
4741
ethernet {
@@ -68,6 +62,5 @@ examples:
6862
reg = <1>;
6963
7064
adi,fifo-depth-bits = <16>;
71-
adi,disable-energy-detect;
7265
};
7366
};

Documentation/devicetree/bindings/net/micrel-ksz90x1.txt

Lines changed: 30 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,36 @@ and therefore may overwrite them.
1212
KSZ9021:
1313

1414
All skew control options are specified in picoseconds. The minimum
15-
value is 0, the maximum value is 3000, and it is incremented by 200ps
16-
steps.
15+
value is 0, the maximum value is 3000, and it can be specified in 200ps
16+
steps, *but* these values are in not fact what you get because this chip's
17+
skew values actually increase in 120ps steps, starting from -840ps. The
18+
incorrect values came from an error in the original KSZ9021 datasheet
19+
before it was corrected in revision 1.2 (Feb 2014), but it is too late to
20+
change the driver now because of the many existing device trees that have
21+
been created using values that go up in increments of 200.
22+
23+
The following table shows the actual skew delay you will get for each of the
24+
possible devicetree values, and the number that will be programmed into the
25+
corresponding pad skew register:
26+
27+
Device Tree Value Delay Pad Skew Register Value
28+
-----------------------------------------------------
29+
0 -840ps 0000
30+
200 -720ps 0001
31+
400 -600ps 0010
32+
600 -480ps 0011
33+
800 -360ps 0100
34+
1000 -240ps 0101
35+
1200 -120ps 0110
36+
1400 0ps 0111
37+
1600 120ps 1000
38+
1800 240ps 1001
39+
2000 360ps 1010
40+
2200 480ps 1011
41+
2400 600ps 1100
42+
2600 720ps 1101
43+
2800 840ps 1110
44+
3000 960ps 1111
1745

1846
Optional properties:
1947

Documentation/devicetree/bindings/net/renesas,ravb.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ Required properties:
1818
R-Car Gen2 and RZ/G1 devices.
1919

2020
- "renesas,etheravb-r8a774a1" for the R8A774A1 SoC.
21+
- "renesas,etheravb-r8a774b1" for the R8A774B1 SoC.
2122
- "renesas,etheravb-r8a774c0" for the R8A774C0 SoC.
2223
- "renesas,etheravb-r8a7795" for the R8A7795 SoC.
2324
- "renesas,etheravb-r8a7796" for the R8A7796 SoC.

Documentation/devicetree/bindings/net/snps,dwmac.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ properties:
113113
const: stmmaceth
114114

115115
mac-mode:
116-
maxItems: 1
116+
$ref: ethernet-controller.yaml#/properties/phy-connection-type
117117
description:
118118
The property is identical to 'phy-mode', and assumes that there is mode
119119
converter in-between the MAC & PHY (e.g. GMII-to-RGMII). This converter

Documentation/networking/devlink-trap.rst

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,8 @@ be added to the following table:
143143
* - ``port_list_is_empty``
144144
- ``drop``
145145
- Traps packets that the device decided to drop in case they need to be
146-
flooded and the flood list is empty
146+
flooded (e.g., unknown unicast, unregistered multicast) and there are
147+
no ports the packets should be flooded to
147148
* - ``port_loopback_filter``
148149
- ``drop``
149150
- Traps packets that the device decided to drop in case after layer 2

MAINTAINERS

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -643,6 +643,7 @@ F: drivers/net/ethernet/alacritech/*
643643

644644
FORCEDETH GIGABIT ETHERNET DRIVER
645645
M: Rain River <[email protected]>
646+
M: Zhu Yanjun <[email protected]>
646647
647648
S: Maintained
648649
F: drivers/net/ethernet/nvidia/*

drivers/atm/he.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1690,7 +1690,7 @@ he_service_rbrq(struct he_dev *he_dev, int group)
16901690

16911691
if (RBRQ_HBUF_ERR(he_dev->rbrq_head)) {
16921692
hprintk("HBUF_ERR! (cid 0x%x)\n", cid);
1693-
atomic_inc(&vcc->stats->rx_drop);
1693+
atomic_inc(&vcc->stats->rx_drop);
16941694
goto return_host_buffers;
16951695
}
16961696

drivers/infiniband/core/addr.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -352,7 +352,7 @@ static bool has_gateway(const struct dst_entry *dst, sa_family_t family)
352352

353353
if (family == AF_INET) {
354354
rt = container_of(dst, struct rtable, dst);
355-
return rt->rt_gw_family == AF_INET;
355+
return rt->rt_uses_gateway;
356356
}
357357

358358
rt6 = container_of(dst, struct rt6_info, dst);

drivers/isdn/mISDN/socket.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -754,6 +754,8 @@ base_sock_create(struct net *net, struct socket *sock, int protocol, int kern)
754754

755755
if (sock->type != SOCK_RAW)
756756
return -ESOCKTNOSUPPORT;
757+
if (!capable(CAP_NET_RAW))
758+
return -EPERM;
757759

758760
sk = sk_alloc(net, PF_ISDN, GFP_KERNEL, &mISDN_proto, kern);
759761
if (!sk)

drivers/net/Kconfig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -487,7 +487,7 @@ config FUJITSU_ES
487487
depends on ACPI
488488
help
489489
This driver provides support for Extended Socket network device
490-
on Extended Partitioning of FUJITSU PRIMEQUEST 2000 E2 series.
490+
on Extended Partitioning of FUJITSU PRIMEQUEST 2000 E2 series.
491491

492492
config THUNDERBOLT_NET
493493
tristate "Networking over Thunderbolt cable"

0 commit comments

Comments
 (0)