Skip to content

Commit aee3bfa

Browse files
committed
Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net-next
Pull networking updates from Davic Miller: 1) Support busy polling generically, for all NAPI drivers. From Eric Dumazet. 2) Add byte/packet counter support to nft_ct, from Floriani Westphal. 3) Add RSS/XPS support to mvneta driver, from Gregory Clement. 4) Implement IPV6_HDRINCL socket option for raw sockets, from Hannes Frederic Sowa. 5) Add support for T6 adapter to cxgb4 driver, from Hariprasad Shenai. 6) Add support for VLAN device bridging to mlxsw switch driver, from Ido Schimmel. 7) Add driver for Netronome NFP4000/NFP6000, from Jakub Kicinski. 8) Provide hwmon interface to mlxsw switch driver, from Jiri Pirko. 9) Reorganize wireless drivers into per-vendor directories just like we do for ethernet drivers. From Kalle Valo. 10) Provide a way for administrators "destroy" connected sockets via the SOCK_DESTROY socket netlink diag operation. From Lorenzo Colitti. 11) Add support to add/remove multicast routes via netlink, from Nikolay Aleksandrov. 12) Make TCP keepalive settings per-namespace, from Nikolay Borisov. 13) Add forwarding and packet duplication facilities to nf_tables, from Pablo Neira Ayuso. 14) Dead route support in MPLS, from Roopa Prabhu. 15) TSO support for thunderx chips, from Sunil Goutham. 16) Add driver for IBM's System i/p VNIC protocol, from Thomas Falcon. 17) Rationalize, consolidate, and more completely document the checksum offloading facilities in the networking stack. From Tom Herbert. 18) Support aborting an ongoing scan in mac80211/cfg80211, from Vidyullatha Kanchanapally. 19) Use per-bucket spinlock for bpf hash facility, from Tom Leiming. * git://git.kernel.org/pub/scm/linux/kernel/git/davem/net-next: (1375 commits) net: bnxt: always return values from _bnxt_get_max_rings net: bpf: reject invalid shifts phonet: properly unshare skbs in phonet_rcv() dwc_eth_qos: Fix dma address for multi-fragment skbs phy: remove an unneeded condition mdio: remove an unneed condition mdio_bus: NULL dereference on allocation error net: Fix typo in netdev_intersect_features net: freescale: mac-fec: Fix build error from phy_device API change net: freescale: ucc_geth: Fix build error from phy_device API change bonding: Prevent IPv6 link local address on enslaved devices IB/mlx5: Add flow steering support net/mlx5_core: Export flow steering API net/mlx5_core: Make ipv4/ipv6 location more clear net/mlx5_core: Enable flow steering support for the IB driver net/mlx5_core: Initialize namespaces only when supported by device net/mlx5_core: Set priority attributes net/mlx5_core: Connect flow tables net/mlx5_core: Introduce modify flow table command net/mlx5_core: Managing root flow table ...
2 parents c597b6b + 415b6f1 commit aee3bfa

File tree

1,739 files changed

+70829
-25686
lines changed

Some content is hidden

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

1,739 files changed

+70829
-25686
lines changed

Documentation/ABI/testing/sysfs-class-net-cdc_ncm

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,25 @@ Description:
1919
Set to 0 to pad all frames. Set greater than tx_max to
2020
disable all padding.
2121

22+
What: /sys/class/net/<iface>/cdc_ncm/ndp_to_end
23+
Date: Dec 2015
24+
KernelVersion: 4.5
25+
Contact: Bjørn Mork <[email protected]>
26+
Description:
27+
Boolean attribute showing the status of the "NDP to
28+
end" quirk. Defaults to 'N', except for devices
29+
already known to need it enabled.
30+
31+
The "NDP to end" quirk makes the driver place the NDP
32+
(the packet index table) after the payload. The NCM
33+
specification does not mandate this, but some devices
34+
are known to be more restrictive. Write 'Y' to this
35+
attribute for temporary testing of a suspect device
36+
failing to work with the default driver settings.
37+
38+
A device entry should be added to the driver if this
39+
quirk is found to be required.
40+
2241
What: /sys/class/net/<iface>/cdc_ncm/rx_max
2342
Date: May 2014
2443
KernelVersion: 3.16

Documentation/ABI/testing/sysfs-class-net-mesh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ Description:
88

99
What: /sys/class/net/<mesh_iface>/mesh/<vlan_subdir>/ap_isolation
1010
Date: May 2011
11-
Contact: Antonio Quartulli <[email protected]>
11+
Contact: Antonio Quartulli <[email protected]>
1212
Description:
1313
Indicates whether the data traffic going from a
1414
wireless client to another wireless client will be
@@ -70,7 +70,7 @@ Description:
7070

7171
What: /sys/class/net/<mesh_iface>/mesh/isolation_mark
7272
Date: Nov 2013
73-
Contact: Antonio Quartulli <[email protected]>
73+
Contact: Antonio Quartulli <[email protected]>
7474
Description:
7575
Defines the isolation mark (and its bitmask) which
7676
is used to classify clients as "isolated" by the
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
What: /sys/class/net/<iface>/qmi/raw_ip
2+
Date: Dec 2015
3+
KernelVersion: 4.4
4+
Contact: Bjørn Mork <[email protected]>
5+
Description:
6+
Boolean. Default: 'N'
7+
8+
Set this to 'Y' to change the network device link
9+
framing from '802.3' to 'raw-ip'.
10+
11+
The netdev will change to reflect the link framing
12+
mode. The netdev is an ordinary ethernet device in
13+
'802.3' mode, and the driver expects to exchange
14+
frames with an ethernet header over the USB link. The
15+
netdev is a headerless p-t-p device in 'raw-ip' mode,
16+
and the driver expects to echange IPv4 or IPv6 packets
17+
without any L2 header over the USB link.
18+
19+
Userspace is in full control of firmware configuration
20+
through the delegation of the QMI protocol. Userspace
21+
is responsible for coordination of driver and firmware
22+
link framing mode, changing this setting to 'Y' if the
23+
firmware is configured for 'raw-ip' mode.

Documentation/devicetree/bindings/net/dsa/dsa.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,8 @@ A switch child node has the following optional property:
3131
switch. Must be set if the switch can not detect
3232
the presence and/or size of a connected EEPROM,
3333
otherwise optional.
34+
- reset-gpios : phandle and specifier to a gpio line connected to
35+
reset pin of the switch chip.
3436

3537
A switch may have multiple "port" children nodes
3638

@@ -114,6 +116,7 @@ Example:
114116
#size-cells = <0>;
115117
reg = <17 1>; /* MDIO address 17, switch 1 in tree */
116118
mii-bus = <&mii_bus1>;
119+
reset-gpios = <&gpio5 1 GPIO_ACTIVE_LOW>;
117120

118121
switch1port0: port@0 {
119122
reg = <0>;

Documentation/devicetree/bindings/net/hisilicon-hns-mdio.txt

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,12 @@
11
Hisilicon MDIO bus controller
22

33
Properties:
4-
- compatible: "hisilicon,mdio","hisilicon,hns-mdio".
4+
- compatible: can be one of:
5+
"hisilicon,hns-mdio"
6+
"hisilicon,mdio"
7+
"hisilicon,hns-mdio" is recommended to be used for hip05 and later SOCs,
8+
while "hisilicon,mdio" is optional for backwards compatibility only on
9+
hip04 Soc.
510
- reg: The base address of the MDIO bus controller register bank.
611
- #address-cells: Must be <1>.
712
- #size-cells: Must be <0>. MDIO addresses have no size component.
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
* ADF7242 IEEE 802.15.4 *
2+
3+
Required properties:
4+
- compatible: should be "adi,adf7242"
5+
- spi-max-frequency: maximal bus speed (12.5 MHz)
6+
- reg: the chipselect index
7+
- interrupts: the interrupt generated by the device via pin IRQ1.
8+
IRQ_TYPE_LEVEL_HIGH (4) or IRQ_TYPE_EDGE_FALLING (1)
9+
10+
Example:
11+
12+
adf7242@0 {
13+
compatible = "adi,adf7242";
14+
spi-max-frequency = <10000000>;
15+
reg = <0>;
16+
interrupts = <98 IRQ_TYPE_LEVEL_HIGH>;
17+
interrupt-parent = <&gpio3>;
18+
};

Documentation/devicetree/bindings/net/macb.txt

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ Required properties:
44
- compatible: Should be "cdns,[<chip>-]{macb|gem}"
55
Use "cdns,at91sam9260-macb" for Atmel at91sam9 SoCs or the 10/100Mbit IP
66
available on sama5d3 SoCs.
7+
Use "cdns,np4-macb" for NP4 SoC devices.
78
Use "cdns,at32ap7000-macb" for other 10/100 usage or use the generic form: "cdns,macb".
89
Use "cdns,pc302-gem" for Picochip picoXcell pc302 and later devices based on
910
the Cadence GEM, or the generic form: "cdns,gem".
@@ -19,6 +20,9 @@ Required properties:
1920
Optional elements: 'tx_clk'
2021
- clocks: Phandles to input clocks.
2122

23+
Optional properties for PHY child node:
24+
- reset-gpios : Should specify the gpio for phy reset
25+
2226
Examples:
2327

2428
macb0: ethernet@fffc4000 {
@@ -29,4 +33,8 @@ Examples:
2933
local-mac-address = [3a 0e 03 04 05 06];
3034
clock-names = "pclk", "hclk", "tx_clk";
3135
clocks = <&clkc 30>, <&clkc 30>, <&clkc 13>;
36+
ethernet-phy@1 {
37+
reg = <0x1>;
38+
reset-gpios = <&pioE 6 1>;
39+
};
3240
};

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

Lines changed: 4 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
Micrel KSZ9021/KSZ9031 Gigabit Ethernet PHY
22

3-
Some boards require special tuning values, particularly when it comes to
4-
clock delays. You can specify clock delay values by adding
5-
micrel-specific properties to an Ethernet OF device node.
3+
Some boards require special tuning values, particularly when it comes
4+
to clock delays. You can specify clock delay values in the PHY OF
5+
device node. Deprecated, but still supported, these properties can
6+
also be added to an Ethernet OF device node.
67

78
Note that these settings are applied after any phy-specific fixup from
89
phy_fixup_list (see phy_init_hw() from drivers/net/phy/phy_device.c),
@@ -57,16 +58,6 @@ KSZ9031:
5758

5859
Examples:
5960

60-
/* Attach to an Ethernet device with autodetected PHY */
61-
&enet {
62-
rxc-skew-ps = <3000>;
63-
rxdv-skew-ps = <0>;
64-
txc-skew-ps = <3000>;
65-
txen-skew-ps = <0>;
66-
status = "okay";
67-
};
68-
69-
/* Attach to an explicitly-specified PHY */
7061
mdio {
7162
phy0: ethernet-phy@0 {
7263
rxc-skew-ps = <3000>;
Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
* STMicroelectronics : NFC Transceiver ST95HF
2+
3+
ST NFC Transceiver is required to attach with SPI bus.
4+
ST95HF node should be defined in DT as SPI slave device of SPI
5+
master with which ST95HF transceiver is physically connected.
6+
The properties defined below are required to be the part of DT
7+
to include ST95HF transceiver into the platform.
8+
9+
Required properties:
10+
===================
11+
- reg: Address of SPI slave "ST95HF transceiver" on SPI master bus.
12+
13+
- compatible: should be "st,st95hf" for ST95HF NFC transceiver
14+
15+
- spi-max-frequency: Max. operating SPI frequency for ST95HF
16+
transceiver.
17+
18+
- enable-gpio: GPIO line to enable ST95HF transceiver.
19+
20+
- interrupt-parent : Standard way to specify the controller to which
21+
ST95HF transceiver's interrupt is routed.
22+
23+
- interrupts : Standard way to define ST95HF transceiver's out
24+
interrupt.
25+
26+
Optional property:
27+
=================
28+
- st95hfvin-supply : This is an optional property. It contains a
29+
phandle to ST95HF transceiver's regulator supply node in DT.
30+
31+
Example:
32+
=======
33+
spi@9840000 {
34+
reg = <0x9840000 0x110>;
35+
#address-cells = <1>;
36+
#size-cells = <0>;
37+
cs-gpios = <&pio0 4>;
38+
status = "okay";
39+
40+
st95hf@0{
41+
reg = <0>;
42+
compatible = "st,st95hf";
43+
status = "okay";
44+
spi-max-frequency = <1000000>;
45+
enable-gpio = <&pio4 0>;
46+
interrupt-parent = <&pio0>;
47+
interrupts = <7 IRQ_TYPE_EDGE_FALLING>;
48+
};
49+
50+
};

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

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,18 @@ interface contains.
55

66
Required properties:
77
- compatible: "renesas,etheravb-r8a7790" if the device is a part of R8A7790 SoC.
8+
"renesas,etheravb-r8a7791" if the device is a part of R8A7791 SoC.
9+
"renesas,etheravb-r8a7792" if the device is a part of R8A7792 SoC.
10+
"renesas,etheravb-r8a7793" if the device is a part of R8A7793 SoC.
811
"renesas,etheravb-r8a7794" if the device is a part of R8A7794 SoC.
912
"renesas,etheravb-r8a7795" if the device is a part of R8A7795 SoC.
13+
"renesas,etheravb-rcar-gen2" for generic R-Car Gen 2 compatible interface.
14+
"renesas,etheravb-rcar-gen3" for generic R-Car Gen 3 compatible interface.
15+
16+
When compatible with the generic version, nodes must list the
17+
SoC-specific version corresponding to the platform first
18+
followed by the generic version.
19+
1020
- reg: offset and length of (1) the register block and (2) the stream buffer.
1121
- interrupts: A list of interrupt-specifiers, one for each entry in
1222
interrupt-names.
@@ -37,7 +47,7 @@ Optional properties:
3747
Example:
3848

3949
ethernet@e6800000 {
40-
compatible = "renesas,etheravb-r8a7795";
50+
compatible = "renesas,etheravb-r8a7795", "renesas,etheravb-rcar-gen3";
4151
reg = <0 0xe6800000 0 0x800>, <0 0xe6a00000 0 0x10000>;
4252
interrupt-parent = <&gic>;
4353
interrupts = <GIC_SPI 39 IRQ_TYPE_LEVEL_HIGH>,

Documentation/devicetree/bindings/net/socfpga-dwmac.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@ Required properties:
1111
designware version numbers documented in stmmac.txt
1212
- altr,sysmgr-syscon : Should be the phandle to the system manager node that
1313
encompasses the glue register, the register offset, and the register shift.
14+
- altr,f2h_ptp_ref_clk use f2h_ptp_ref_clk instead of default eosc1 clock
15+
for ptp ref clk. This affects all emacs as the clock is common.
1416

1517
Optional properties:
1618
altr,emac-splitter: Should be the phandle to the emac splitter soft IP node if

Documentation/devicetree/bindings/net/stmmac.txt

Lines changed: 16 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -35,18 +35,18 @@ Optional properties:
3535
- reset-names: Should contain the reset signal name "stmmaceth", if a
3636
reset phandle is given
3737
- max-frame-size: See ethernet.txt file in the same directory
38-
- clocks: If present, the first clock should be the GMAC main clock and
39-
the second clock should be peripheral's register interface clock. Further
40-
clocks may be specified in derived bindings.
41-
- clock-names: One name for each entry in the clocks property, the
42-
first one should be "stmmaceth" and the second one should be "pclk".
43-
- clk_ptp_ref: this is the PTP reference clock; in case of the PTP is
44-
available this clock is used for programming the Timestamp Addend Register.
45-
If not passed then the system clock will be used and this is fine on some
46-
platforms.
38+
- clocks: If present, the first clock should be the GMAC main clock
39+
The optional second clock should be peripheral's register interface clock.
40+
The third optional clock should be the ptp reference clock.
41+
Further clocks may be specified in derived bindings.
42+
- clock-names: One name for each entry in the clocks property.
43+
The first one should be "stmmaceth".
44+
The optional second one should be "pclk".
45+
The optional third one should be "clk_ptp_ref".
4746
- snps,burst_len: The AXI burst lenth value of the AXI BUS MODE register.
4847
- tx-fifo-depth: See ethernet.txt file in the same directory
4948
- rx-fifo-depth: See ethernet.txt file in the same directory
49+
- mdio: with compatible = "snps,dwmac-mdio", create and register mdio bus.
5050

5151
Examples:
5252

@@ -65,4 +65,11 @@ Examples:
6565
tx-fifo-depth = <16384>;
6666
clocks = <&clock>;
6767
clock-names = "stmmaceth";
68+
mdio0 {
69+
#address-cells = <1>;
70+
#size-cells = <0>;
71+
compatible = "snps,dwmac-mdio";
72+
phy1: ethernet-phy@0 {
73+
};
74+
};
6875
};

Documentation/fault-injection/notifier-error-inject.txt

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ modules that can be used to test the following notifiers.
1010
* PM notifier
1111
* Memory hotplug notifier
1212
* powerpc pSeries reconfig notifier
13+
* Netdevice notifier
1314

1415
CPU notifier error injection module
1516
-----------------------------------
@@ -87,6 +88,30 @@ Possible pSeries reconfig notifier events to be failed are:
8788
* PSERIES_DRCONF_MEM_ADD
8889
* PSERIES_DRCONF_MEM_REMOVE
8990

91+
Netdevice notifier error injection module
92+
----------------------------------------------
93+
This feature is controlled through debugfs interface
94+
/sys/kernel/debug/notifier-error-inject/netdev/actions/<notifier event>/error
95+
96+
Netdevice notifier events which can be failed are:
97+
98+
* NETDEV_REGISTER
99+
* NETDEV_CHANGEMTU
100+
* NETDEV_CHANGENAME
101+
* NETDEV_PRE_UP
102+
* NETDEV_PRE_TYPE_CHANGE
103+
* NETDEV_POST_INIT
104+
* NETDEV_PRECHANGEMTU
105+
* NETDEV_PRECHANGEUPPER
106+
* NETDEV_CHANGEUPPER
107+
108+
Example: Inject netdevice mtu change error (-22 == -EINVAL)
109+
110+
# cd /sys/kernel/debug/notifier-error-inject/netdev
111+
# echo -22 > actions/NETDEV_CHANGEMTU/error
112+
# ip link set eth0 mtu 1024
113+
RTNETLINK answers: Invalid argument
114+
90115
For more usage examples
91116
-----------------------
92117
There are tools/testing/selftests using the notifier error injection features

Documentation/networking/batman-adv.txt

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -115,14 +115,17 @@ The "bat0" interface can be used like any other regular inter-
115115
face. It needs an IP address which can be either statically con-
116116
figured or dynamically (by using DHCP or similar services):
117117

118-
# NodeA: ifconfig bat0 192.168.0.1
119-
# NodeB: ifconfig bat0 192.168.0.2
118+
# NodeA: ip link set up dev bat0
119+
# NodeA: ip addr add 192.168.0.1/24 dev bat0
120+
121+
# NodeB: ip link set up dev bat0
122+
# NodeB: ip addr add 192.168.0.2/24 dev bat0
120123
# NodeB: ping 192.168.0.1
121124

122125
Note: In order to avoid problems remove all IP addresses previ-
123126
ously assigned to interfaces now used by batman advanced, e.g.
124127

125-
# ifconfig eth0 0.0.0.0
128+
# ip addr flush dev eth0
126129

127130

128131
LOGGING/DEBUGGING

0 commit comments

Comments
 (0)