Skip to content

Commit 8096acd

Browse files
committed
Merge tag 'net-5.14-rc2' of git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net
Pull networking fixes from Jakub Kicinski. "Including fixes from bpf and netfilter. Current release - regressions: - sock: fix parameter order in sock_setsockopt() Current release - new code bugs: - netfilter: nft_last: - fix incorrect arithmetic when restoring last used - honor NFTA_LAST_SET on restoration Previous releases - regressions: - udp: properly flush normal packet at GRO time - sfc: ensure correct number of XDP queues; don't allow enabling the feature if there isn't sufficient resources to Tx from any CPU - dsa: sja1105: fix address learning getting disabled on the CPU port - mptcp: addresses a rmem accounting issue that could keep packets in subflow receive buffers longer than necessary, delaying MPTCP-level ACKs - ip_tunnel: fix mtu calculation for ETHER tunnel devices - do not reuse skbs allocated from skbuff_fclone_cache in the napi skb cache, we'd try to return them to the wrong slab cache - tcp: consistently disable header prediction for mptcp Previous releases - always broken: - bpf: fix subprog poke descriptor tracking use-after-free - ipv6: - allocate enough headroom in ip6_finish_output2() in case iptables TEE is used - tcp: drop silly ICMPv6 packet too big messages to avoid expensive and pointless lookups (which may serve as a DDOS vector) - make sure fwmark is copied in SYNACK packets - fix 'disable_policy' for forwarded packets (align with IPv4) - netfilter: conntrack: - do not renew entry stuck in tcp SYN_SENT state - do not mark RST in the reply direction coming after SYN packet for an out-of-sync entry - mptcp: cleanly handle error conditions with MP_JOIN and syncookies - mptcp: fix double free when rejecting a join due to port mismatch - validate lwtstate->data before returning from skb_tunnel_info() - tcp: call sk_wmem_schedule before sk_mem_charge in zerocopy path - mt76: mt7921: continue to probe driver when fw already downloaded - bonding: fix multiple issues with offloading IPsec to (thru?) bond - stmmac: ptp: fix issues around Qbv support and setting time back - bcmgenet: always clear wake-up based on energy detection Misc: - sctp: move 198 addresses from unusable to private scope - ptp: support virtual clocks and timestamping - openvswitch: optimize operation for key comparison" * tag 'net-5.14-rc2' of git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net: (158 commits) net: dsa: properly check for the bridge_leave methods in dsa_switch_bridge_leave() sfc: add logs explaining XDP_TX/REDIRECT is not available sfc: ensure correct number of XDP queues sfc: fix lack of XDP TX queues - error XDP TX failed (-22) net: fddi: fix UAF in fza_probe net: dsa: sja1105: fix address learning getting disabled on the CPU port net: ocelot: fix switchdev objects synced for wrong netdev with LAG offload net: Use nlmsg_unicast() instead of netlink_unicast() octeontx2-pf: Fix uninitialized boolean variable pps ipv6: allocate enough headroom in ip6_finish_output2() net: hdlc: rename 'mod_init' & 'mod_exit' functions to be module-specific net: bridge: multicast: fix MRD advertisement router port marking race net: bridge: multicast: fix PIM hello router port marking race net: phy: marvell10g: fix differentiation of 88X3310 from 88X3340 dsa: fix for_each_child.cocci warnings virtio_net: check virtqueue_add_sgs() return value mptcp: properly account bulk freed memory selftests: mptcp: fix case multiple subflows limited by server mptcp: avoid processing packet if a subflow reset mptcp: fix syncookie process if mptcp can not_accept new subflow ...
2 parents d1d488d + bcb9928 commit 8096acd

191 files changed

Lines changed: 3595 additions & 2346 deletions

File tree

Some content is hidden

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

‎Documentation/ABI/testing/sysfs-ptp‎

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,13 @@ Description:
3333
frequency adjustment value (a positive integer) in
3434
parts per billion.
3535

36+
What: /sys/class/ptp/ptpN/max_vclocks
37+
Date: May 2021
38+
Contact: Yangbo Lu <yangbo.lu@nxp.com>
39+
Description:
40+
This file contains the maximum number of ptp vclocks.
41+
Write integer to re-configure it.
42+
3643
What: /sys/class/ptp/ptpN/n_alarms
3744
Date: September 2010
3845
Contact: Richard Cochran <richardcochran@gmail.com>
@@ -61,6 +68,19 @@ Description:
6168
This file contains the number of programmable pins
6269
offered by the PTP hardware clock.
6370

71+
What: /sys/class/ptp/ptpN/n_vclocks
72+
Date: May 2021
73+
Contact: Yangbo Lu <yangbo.lu@nxp.com>
74+
Description:
75+
This file contains the number of virtual PTP clocks in
76+
use. By default, the value is 0 meaning that only the
77+
physical clock is in use. Setting the value creates
78+
the corresponding number of virtual clocks and causes
79+
the physical clock to become free running. Setting the
80+
value back to 0 deletes the virtual clocks and
81+
switches the physical clock back to normal, adjustable
82+
operation.
83+
6484
What: /sys/class/ptp/ptpN/pins
6585
Date: March 2014
6686
Contact: Richard Cochran <richardcochran@gmail.com>

‎Documentation/devicetree/bindings/net/gpmc-eth.txt‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ Documentation/devicetree/bindings/memory-controllers/omap-gpmc.txt
1313

1414
For the properties relevant to the ethernet controller connected to the GPMC
1515
refer to the binding documentation of the device. For example, the documentation
16-
for the SMSC 911x is Documentation/devicetree/bindings/net/smsc911x.txt
16+
for the SMSC 911x is Documentation/devicetree/bindings/net/smsc,lan9115.yaml
1717

1818
Child nodes need to specify the GPMC bus address width using the "bank-width"
1919
property but is possible that an ethernet controller also has a property to
Lines changed: 110 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,110 @@
1+
# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2+
%YAML 1.2
3+
---
4+
$id: http://devicetree.org/schemas/net/smsc,lan9115.yaml#
5+
$schema: http://devicetree.org/meta-schemas/core.yaml#
6+
7+
title: Smart Mixed-Signal Connectivity (SMSC) LAN911x/912x Controller
8+
9+
maintainers:
10+
- Shawn Guo <shawnguo@kernel.org>
11+
12+
allOf:
13+
- $ref: ethernet-controller.yaml#
14+
15+
properties:
16+
compatible:
17+
oneOf:
18+
- const: smsc,lan9115
19+
- items:
20+
- enum:
21+
- smsc,lan89218
22+
- smsc,lan9117
23+
- smsc,lan9118
24+
- smsc,lan9220
25+
- smsc,lan9221
26+
- const: smsc,lan9115
27+
28+
reg:
29+
maxItems: 1
30+
31+
reg-shift: true
32+
33+
reg-io-width:
34+
enum: [ 2, 4 ]
35+
default: 2
36+
37+
interrupts:
38+
minItems: 1
39+
items:
40+
- description:
41+
LAN interrupt line
42+
- description:
43+
Optional PME (power management event) interrupt that is able to wake
44+
up the host system with a 50ms pulse on network activity
45+
46+
clocks:
47+
maxItems: 1
48+
49+
phy-mode: true
50+
51+
smsc,irq-active-high:
52+
type: boolean
53+
description: Indicates the IRQ polarity is active-high
54+
55+
smsc,irq-push-pull:
56+
type: boolean
57+
description: Indicates the IRQ type is push-pull
58+
59+
smsc,force-internal-phy:
60+
type: boolean
61+
description: Forces SMSC LAN controller to use internal PHY
62+
63+
smsc,force-external-phy:
64+
type: boolean
65+
description: Forces SMSC LAN controller to use external PHY
66+
67+
smsc,save-mac-address:
68+
type: boolean
69+
description:
70+
Indicates that MAC address needs to be saved before resetting the
71+
controller
72+
73+
reset-gpios:
74+
maxItems: 1
75+
description:
76+
A GPIO line connected to the RESET (active low) signal of the device.
77+
On many systems this is wired high so the device goes out of reset at
78+
power-on, but if it is under program control, this optional GPIO can
79+
wake up in response to it.
80+
81+
vdd33a-supply:
82+
description: 3.3V analog power supply
83+
84+
vddvario-supply:
85+
description: IO logic power supply
86+
87+
required:
88+
- compatible
89+
- reg
90+
- interrupts
91+
92+
# There are lots of bus-specific properties ("qcom,*", "samsung,*", "fsl,*",
93+
# "gpmc,*", ...) to be found, that actually depend on the compatible value of
94+
# the parent node.
95+
additionalProperties: true
96+
97+
examples:
98+
- |
99+
#include <dt-bindings/gpio/gpio.h>
100+
101+
ethernet@f4000000 {
102+
compatible = "smsc,lan9220", "smsc,lan9115";
103+
reg = <0xf4000000 0x2000000>;
104+
phy-mode = "mii";
105+
interrupt-parent = <&gpio1>;
106+
interrupts = <31>, <32>;
107+
reset-gpios = <&gpio1 30 GPIO_ACTIVE_LOW>;
108+
reg-io-width = <4>;
109+
smsc,irq-push-pull;
110+
};

‎Documentation/devicetree/bindings/net/smsc911x.txt‎

Lines changed: 0 additions & 43 deletions
This file was deleted.

‎Documentation/networking/ethtool-netlink.rst‎

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -212,6 +212,7 @@ Userspace to kernel:
212212
``ETHTOOL_MSG_FEC_SET`` set FEC settings
213213
``ETHTOOL_MSG_MODULE_EEPROM_GET`` read SFP module EEPROM
214214
``ETHTOOL_MSG_STATS_GET`` get standard statistics
215+
``ETHTOOL_MSG_PHC_VCLOCKS_GET`` get PHC virtual clocks info
215216
===================================== ================================
216217

217218
Kernel to userspace:
@@ -250,6 +251,7 @@ Kernel to userspace:
250251
``ETHTOOL_MSG_FEC_NTF`` FEC settings
251252
``ETHTOOL_MSG_MODULE_EEPROM_GET_REPLY`` read SFP module EEPROM
252253
``ETHTOOL_MSG_STATS_GET_REPLY`` standard statistics
254+
``ETHTOOL_MSG_PHC_VCLOCKS_GET_REPLY`` PHC virtual clocks info
253255
======================================== =================================
254256

255257
``GET`` requests are sent by userspace applications to retrieve device
@@ -1477,6 +1479,25 @@ Low and high bounds are inclusive, for example:
14771479
etherStatsPkts512to1023Octets 512 1023
14781480
============================= ==== ====
14791481

1482+
PHC_VCLOCKS_GET
1483+
===============
1484+
1485+
Query device PHC virtual clocks information.
1486+
1487+
Request contents:
1488+
1489+
==================================== ====== ==========================
1490+
``ETHTOOL_A_PHC_VCLOCKS_HEADER`` nested request header
1491+
==================================== ====== ==========================
1492+
1493+
Kernel response contents:
1494+
1495+
==================================== ====== ==========================
1496+
``ETHTOOL_A_PHC_VCLOCKS_HEADER`` nested reply header
1497+
``ETHTOOL_A_PHC_VCLOCKS_NUM`` u32 PHC virtual clocks number
1498+
``ETHTOOL_A_PHC_VCLOCKS_INDEX`` s32 PHC index array
1499+
==================================== ====== ==========================
1500+
14801501
Request translation
14811502
===================
14821503

@@ -1575,4 +1596,5 @@ are netlink only.
15751596
n/a ``ETHTOOL_MSG_CABLE_TEST_ACT``
15761597
n/a ``ETHTOOL_MSG_CABLE_TEST_TDR_ACT``
15771598
n/a ``ETHTOOL_MSG_TUNNEL_INFO_GET``
1599+
n/a ``ETHTOOL_MSG_PHC_VCLOCKS_GET``
15781600
=================================== =====================================

‎Documentation/networking/nf_conntrack-sysctl.rst‎

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,12 @@ nf_conntrack_tcp_be_liberal - BOOLEAN
110110
Be conservative in what you do, be liberal in what you accept from others.
111111
If it's non-zero, we mark only out of window RST segments as INVALID.
112112

113+
nf_conntrack_tcp_ignore_invalid_rst - BOOLEAN
114+
- 0 - disabled (default)
115+
- 1 - enabled
116+
117+
If it's 1, we don't mark out of window RST segments as INVALID.
118+
113119
nf_conntrack_tcp_loose - BOOLEAN
114120
- 0 - disabled
115121
- not 0 - enabled (default)

‎Documentation/networking/tipc.rst‎

Lines changed: 118 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,125 @@
44
Linux Kernel TIPC
55
=================
66

7-
TIPC (Transparent Inter Process Communication) is a protocol that is
8-
specially designed for intra-cluster communication.
7+
Introduction
8+
============
99

10-
For more information about TIPC, see http://tipc.sourceforge.net.
10+
TIPC (Transparent Inter Process Communication) is a protocol that is specially
11+
designed for intra-cluster communication. It can be configured to transmit
12+
messages either on UDP or directly across Ethernet. Message delivery is
13+
sequence guaranteed, loss free and flow controlled. Latency times are shorter
14+
than with any other known protocol, while maximal throughput is comparable to
15+
that of TCP.
16+
17+
TIPC Features
18+
-------------
19+
20+
- Cluster wide IPC service
21+
22+
Have you ever wished you had the convenience of Unix Domain Sockets even when
23+
transmitting data between cluster nodes? Where you yourself determine the
24+
addresses you want to bind to and use? Where you don't have to perform DNS
25+
lookups and worry about IP addresses? Where you don't have to start timers
26+
to monitor the continuous existence of peer sockets? And yet without the
27+
downsides of that socket type, such as the risk of lingering inodes?
28+
29+
Welcome to the Transparent Inter Process Communication service, TIPC in short,
30+
which gives you all of this, and a lot more.
31+
32+
- Service Addressing
33+
34+
A fundamental concept in TIPC is that of Service Addressing which makes it
35+
possible for a programmer to chose his own address, bind it to a server
36+
socket and let client programs use only that address for sending messages.
37+
38+
- Service Tracking
39+
40+
A client wanting to wait for the availability of a server, uses the Service
41+
Tracking mechanism to subscribe for binding and unbinding/close events for
42+
sockets with the associated service address.
43+
44+
The service tracking mechanism can also be used for Cluster Topology Tracking,
45+
i.e., subscribing for availability/non-availability of cluster nodes.
46+
47+
Likewise, the service tracking mechanism can be used for Cluster Connectivity
48+
Tracking, i.e., subscribing for up/down events for individual links between
49+
cluster nodes.
50+
51+
- Transmission Modes
52+
53+
Using a service address, a client can send datagram messages to a server socket.
54+
55+
Using the same address type, it can establish a connection towards an accepting
56+
server socket.
57+
58+
It can also use a service address to create and join a Communication Group,
59+
which is the TIPC manifestation of a brokerless message bus.
60+
61+
Multicast with very good performance and scalability is available both in
62+
datagram mode and in communication group mode.
63+
64+
- Inter Node Links
65+
66+
Communication between any two nodes in a cluster is maintained by one or two
67+
Inter Node Links, which both guarantee data traffic integrity and monitor
68+
the peer node's availability.
69+
70+
- Cluster Scalability
71+
72+
By applying the Overlapping Ring Monitoring algorithm on the inter node links
73+
it is possible to scale TIPC clusters up to 1000 nodes with a maintained
74+
neighbor failure discovery time of 1-2 seconds. For smaller clusters this
75+
time can be made much shorter.
76+
77+
- Neighbor Discovery
78+
79+
Neighbor Node Discovery in the cluster is done by Ethernet broadcast or UDP
80+
multicast, when any of those services are available. If not, configured peer
81+
IP addresses can be used.
82+
83+
- Configuration
84+
85+
When running TIPC in single node mode no configuration whatsoever is needed.
86+
When running in cluster mode TIPC must as a minimum be given a node address
87+
(before Linux 4.17) and told which interface to attach to. The "tipc"
88+
configuration tool makes is possible to add and maintain many more
89+
configuration parameters.
90+
91+
- Performance
92+
93+
TIPC message transfer latency times are better than in any other known protocol.
94+
Maximal byte throughput for inter-node connections is still somewhat lower than
95+
for TCP, while they are superior for intra-node and inter-container throughput
96+
on the same host.
97+
98+
- Language Support
99+
100+
The TIPC user API has support for C, Python, Perl, Ruby, D and Go.
101+
102+
More Information
103+
----------------
104+
105+
- How to set up TIPC:
106+
107+
http://tipc.io/getting_started.html
108+
109+
- How to program with TIPC:
110+
111+
http://tipc.io/programming.html
112+
113+
- How to contribute to TIPC:
114+
115+
- http://tipc.io/contacts.html
116+
117+
- More details about TIPC specification:
118+
119+
http://tipc.io/protocol.html
120+
121+
122+
Implementation
123+
==============
124+
125+
TIPC is implemented as a kernel module in net/tipc/ directory.
11126

12127
TIPC Base Types
13128
---------------

0 commit comments

Comments
 (0)