Skip to content

Commit 8916e31

Browse files
committed
tgupdate: merge t/DO-NOT-MERGE-mptcp-enabled-by-default into t/upstream base
2 parents 294bee9 + b681e31 commit 8916e31

Some content is hidden

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

73 files changed

+1900
-870
lines changed

Documentation/netlink/specs/rt_addr.yaml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -168,6 +168,29 @@ operations:
168168
reply:
169169
value: 20
170170
attributes: *ifaddr-all
171+
-
172+
name: getmaddrs
173+
doc: Get / dump IPv4/IPv6 multicast addresses.
174+
attribute-set: addr-attrs
175+
fixed-header: ifaddrmsg
176+
do:
177+
request:
178+
value: 58
179+
attributes:
180+
- ifa-family
181+
- ifa-index
182+
reply:
183+
value: 58
184+
attributes: &mcaddr-attrs
185+
- ifa-multicast
186+
- ifa-cacheinfo
187+
dump:
188+
request:
189+
value: 58
190+
- ifa-family
191+
reply:
192+
value: 58
193+
attributes: *mcaddr-attrs
171194

172195
mcast-groups:
173196
list:

Documentation/networking/devlink/sfc.rst

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ sfc devlink support
55
===================
66

77
This document describes the devlink features implemented by the ``sfc``
8-
device driver for the ef100 device.
8+
device driver for the ef10 and ef100 devices.
99

1010
Info versions
1111
=============
@@ -18,6 +18,10 @@ The ``sfc`` driver reports the following versions
1818
* - Name
1919
- Type
2020
- Description
21+
* - ``fw.bundle_id``
22+
- stored
23+
- Version of the firmware "bundle" image that was last used to update
24+
multiple components.
2125
* - ``fw.mgmt.suc``
2226
- running
2327
- For boards where the management function is split between multiple
@@ -55,3 +59,13 @@ The ``sfc`` driver reports the following versions
5559
* - ``fw.uefi``
5660
- running
5761
- UEFI driver version (No UNDI support).
62+
63+
Flash Update
64+
============
65+
66+
The ``sfc`` driver implements support for flash update using the
67+
``devlink-flash`` interface. It supports updating the device flash using a
68+
combined flash image ("bundle") that contains multiple components (on ef10,
69+
typically ``fw.mgmt``, ``fw.app``, ``fw.exprom`` and ``fw.uefi``).
70+
71+
The driver does not support any overwrite mask flags.

Documentation/networking/ip-sysctl.rst

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -705,6 +705,8 @@ tcp_retries2 - INTEGER
705705
seconds and is a lower bound for the effective timeout.
706706
TCP will effectively time out at the first RTO which exceeds the
707707
hypothetical timeout.
708+
If tcp_rto_max_ms is decreased, it is recommended to also
709+
change tcp_retries2.
708710

709711
RFC 1122 recommends at least 100 seconds for the timeout,
710712
which corresponds to a value of at least 8.
@@ -1237,6 +1239,17 @@ tcp_rto_min_us - INTEGER
12371239

12381240
Default: 200000
12391241

1242+
tcp_rto_max_ms - INTEGER
1243+
Maximal TCP retransmission timeout (in ms).
1244+
Note that TCP_RTO_MAX_MS socket option has higher precedence.
1245+
1246+
When changing tcp_rto_max_ms, it is important to understand
1247+
that tcp_retries2 might need a change.
1248+
1249+
Possible Values: 1000 - 120,000
1250+
1251+
Default: 120,000
1252+
12401253
UDP variables
12411254
=============
12421255

Documentation/networking/net_cachelines/inet_connection_sock.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ struct timer_list icsk_retransmit_timer read_mostly
1717
struct timer_list icsk_delack_timer read_mostly inet_csk_reset_xmit_timer,tcp_connect
1818
u32 icsk_rto read_write tcp_cwnd_validate,tcp_schedule_loss_probe,tcp_connect_init,tcp_connect,tcp_write_xmit,tcp_push_one
1919
u32 icsk_rto_min
20+
u32 icsk_rto_max read_mostly tcp_reset_xmit_timer
2021
u32 icsk_delack_max
2122
u32 icsk_pmtu_cookie read_write tcp_sync_mss,tcp_current_mss,tcp_send_syn_data,tcp_connect_init,tcp_connect
2223
struct tcp_congestion_ops icsk_ca_ops read_write tcp_cwnd_validate,tcp_tso_segs,tcp_ca_dst_init,tcp_connect_init,tcp_connect,tcp_write_xmit

Documentation/networking/net_cachelines/netns_ipv4_sysctl.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,7 @@ u8 sysctl_tcp_sack
8686
u8 sysctl_tcp_window_scaling tcp_syn_options,tcp_parse_options
8787
u8 sysctl_tcp_timestamps
8888
u8 sysctl_tcp_early_retrans read_mostly tcp_schedule_loss_probe(tcp_write_xmit)
89+
u32 sysctl_tcp_rto_max_ms
8990
u8 sysctl_tcp_recovery tcp_fastretrans_alert
9091
u8 sysctl_tcp_thin_linear_timeouts tcp_retrans_timer(on_thin_streams)
9192
u8 sysctl_tcp_slow_start_after_idle unlikely(tcp_cwnd_validate-network-not-starved)

drivers/net/ethernet/aquantia/atlantic/aq_drvinfo.c

Lines changed: 2 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -113,19 +113,9 @@ static const struct hwmon_ops aq_hwmon_ops = {
113113
.read_string = aq_hwmon_read_string,
114114
};
115115

116-
static u32 aq_hwmon_temp_config[] = {
117-
HWMON_T_INPUT | HWMON_T_LABEL,
118-
HWMON_T_INPUT | HWMON_T_LABEL,
119-
0,
120-
};
121-
122-
static const struct hwmon_channel_info aq_hwmon_temp = {
123-
.type = hwmon_temp,
124-
.config = aq_hwmon_temp_config,
125-
};
126-
127116
static const struct hwmon_channel_info * const aq_hwmon_info[] = {
128-
&aq_hwmon_temp,
117+
HWMON_CHANNEL_INFO(temp, HWMON_T_INPUT | HWMON_T_LABEL,
118+
HWMON_T_INPUT | HWMON_T_LABEL),
129119
NULL,
130120
};
131121

drivers/net/ethernet/freescale/fec_main.c

Lines changed: 25 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -1093,6 +1093,29 @@ static void fec_enet_enable_ring(struct net_device *ndev)
10931093
}
10941094
}
10951095

1096+
/* Whack a reset. We should wait for this.
1097+
* For i.MX6SX SOC, enet use AXI bus, we use disable MAC
1098+
* instead of reset MAC itself.
1099+
*/
1100+
static void fec_ctrl_reset(struct fec_enet_private *fep, bool allow_wol)
1101+
{
1102+
u32 val;
1103+
1104+
if (!allow_wol || !(fep->wol_flag & FEC_WOL_FLAG_SLEEP_ON)) {
1105+
if (fep->quirks & FEC_QUIRK_HAS_MULTI_QUEUES ||
1106+
((fep->quirks & FEC_QUIRK_NO_HARD_RESET) && fep->link)) {
1107+
writel(0, fep->hwp + FEC_ECNTRL);
1108+
} else {
1109+
writel(FEC_ECR_RESET, fep->hwp + FEC_ECNTRL);
1110+
udelay(10);
1111+
}
1112+
} else {
1113+
val = readl(fep->hwp + FEC_ECNTRL);
1114+
val |= (FEC_ECR_MAGICEN | FEC_ECR_SLEEP);
1115+
writel(val, fep->hwp + FEC_ECNTRL);
1116+
}
1117+
}
1118+
10961119
/*
10971120
* This function is called to start or restart the FEC during a link
10981121
* change, transmit timeout, or to reconfigure the FEC. The network
@@ -1109,17 +1132,7 @@ fec_restart(struct net_device *ndev)
11091132
if (fep->bufdesc_ex)
11101133
fec_ptp_save_state(fep);
11111134

1112-
/* Whack a reset. We should wait for this.
1113-
* For i.MX6SX SOC, enet use AXI bus, we use disable MAC
1114-
* instead of reset MAC itself.
1115-
*/
1116-
if (fep->quirks & FEC_QUIRK_HAS_MULTI_QUEUES ||
1117-
((fep->quirks & FEC_QUIRK_NO_HARD_RESET) && fep->link)) {
1118-
writel(0, fep->hwp + FEC_ECNTRL);
1119-
} else {
1120-
writel(1, fep->hwp + FEC_ECNTRL);
1121-
udelay(10);
1122-
}
1135+
fec_ctrl_reset(fep, false);
11231136

11241137
/*
11251138
* enet-mac reset will reset mac address registers too,
@@ -1373,22 +1386,7 @@ fec_stop(struct net_device *ndev)
13731386
if (fep->bufdesc_ex)
13741387
fec_ptp_save_state(fep);
13751388

1376-
/* Whack a reset. We should wait for this.
1377-
* For i.MX6SX SOC, enet use AXI bus, we use disable MAC
1378-
* instead of reset MAC itself.
1379-
*/
1380-
if (!(fep->wol_flag & FEC_WOL_FLAG_SLEEP_ON)) {
1381-
if (fep->quirks & FEC_QUIRK_HAS_MULTI_QUEUES) {
1382-
writel(0, fep->hwp + FEC_ECNTRL);
1383-
} else {
1384-
writel(FEC_ECR_RESET, fep->hwp + FEC_ECNTRL);
1385-
udelay(10);
1386-
}
1387-
} else {
1388-
val = readl(fep->hwp + FEC_ECNTRL);
1389-
val |= (FEC_ECR_MAGICEN | FEC_ECR_SLEEP);
1390-
writel(val, fep->hwp + FEC_ECNTRL);
1391-
}
1389+
fec_ctrl_reset(fep, true);
13921390
writel(fep->phy_speed, fep->hwp + FEC_MII_SPEED);
13931391
writel(FEC_DEFAULT_IMASK, fep->hwp + FEC_IMASK);
13941392

drivers/net/ethernet/freescale/ucc_geth.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -890,8 +890,6 @@ struct ucc_geth_hardware_statistics {
890890
addresses */
891891

892892
#define TX_TIMEOUT (1*HZ)
893-
#define PHY_INIT_TIMEOUT 100000
894-
#define PHY_CHANGE_TIME 2
895893

896894
/* Fast Ethernet (10/100 Mbps) */
897895
#define UCC_GETH_URFS_INIT 512 /* Rx virtual FIFO size

drivers/net/ethernet/intel/Kconfig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -336,7 +336,7 @@ config ICE_SWITCHDEV
336336
config ICE_HWTS
337337
bool "Support HW cross-timestamp on platforms with PTM support"
338338
default y
339-
depends on ICE && X86
339+
depends on ICE && X86 && PCIE_PTM
340340
help
341341
Say Y to enable hardware supported cross-timestamping on platforms
342342
with PCIe PTM support. The cross-timestamp is available through

drivers/net/ethernet/intel/e1000e/mac.c

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -331,8 +331,21 @@ void e1000e_update_mc_addr_list_generic(struct e1000_hw *hw,
331331
}
332332

333333
/* replace the entire MTA table */
334-
for (i = hw->mac.mta_reg_count - 1; i >= 0; i--)
334+
for (i = hw->mac.mta_reg_count - 1; i >= 0; i--) {
335335
E1000_WRITE_REG_ARRAY(hw, E1000_MTA, i, hw->mac.mta_shadow[i]);
336+
337+
if (IS_ENABLED(CONFIG_PREEMPT_RT)) {
338+
/*
339+
* Do not queue up too many posted writes to prevent
340+
* increased latency for other devices on the
341+
* interconnect. Flush after each 8th posted write,
342+
* to keep additional execution time low while still
343+
* preventing increased latency.
344+
*/
345+
if (!(i % 8) && i)
346+
e1e_flush();
347+
}
348+
}
336349
e1e_flush();
337350
}
338351

0 commit comments

Comments
 (0)