Skip to content

Commit 1b649e0

Browse files
committed
Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net
Pull networking fixes from David Miller: 1) Fix deadlock in bpf_send_signal() from Yonghong Song. 2) Fix off by one in kTLS offload of mlx5, from Tariq Toukan. 3) Add missing locking in iwlwifi mvm code, from Avraham Stern. 4) Fix MSG_WAITALL handling in rxrpc, from David Howells. 5) Need to hold RTNL mutex in tcindex_partial_destroy_work(), from Cong Wang. 6) Fix producer race condition in AF_PACKET, from Willem de Bruijn. 7) cls_route removes the wrong filter during change operations, from Cong Wang. 8) Reject unrecognized request flags in ethtool netlink code, from Michal Kubecek. 9) Need to keep MAC in reset until PHY is up in bcmgenet driver, from Doug Berger. 10) Don't leak ct zone template in act_ct during replace, from Paul Blakey. 11) Fix flushing of offloaded netfilter flowtable flows, also from Paul Blakey. 12) Fix throughput drop during tx backpressure in cxgb4, from Rahul Lakkireddy. 13) Don't let a non-NULL skb->dev leave the TCP stack, from Eric Dumazet. 14) TCP_QUEUE_SEQ socket option has to update tp->copied_seq as well, also from Eric Dumazet. 15) Restrict macsec to ethernet devices, from Willem de Bruijn. 16) Fix reference leak in some ethtool *_SET handlers, from Michal Kubecek. 17) Fix accidental disabling of MSI for some r8169 chips, from Heiner Kallweit. * git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net: (138 commits) net: Fix CONFIG_NET_CLS_ACT=n and CONFIG_NFT_FWD_NETDEV={y, m} build net: ena: Add PCI shutdown handler to allow safe kexec selftests/net/forwarding: define libs as TEST_PROGS_EXTENDED selftests/net: add missing tests to Makefile r8169: re-enable MSI on RTL8168c net: phy: mdio-bcm-unimac: Fix clock handling cxgb4/ptp: pass the sign of offset delta in FW CMD net: dsa: tag_8021q: replace dsa_8021q_remove_header with __skb_vlan_pop net: cbs: Fix software cbs to consider packet sending time net/mlx5e: Do not recover from a non-fatal syndrome net/mlx5e: Fix ICOSQ recovery flow with Striding RQ net/mlx5e: Fix missing reset of SW metadata in Striding RQ reset net/mlx5e: Enhance ICOSQ WQE info fields net/mlx5_core: Set IB capability mask1 to fix ib_srpt connection failure selftests: netfilter: add nfqueue test case netfilter: nft_fwd_netdev: allow to redirect to ifb via ingress netfilter: nft_fwd_netdev: validate family and chain type netfilter: nft_set_rbtree: Detect partial overlaps on insertion netfilter: nft_set_rbtree: Introduce and use nft_rbtree_interval_start() netfilter: nft_set_pipapo: Separate partial and complete overlap cases on insertion ...
2 parents 1dfb642 + 2910594 commit 1b649e0

File tree

159 files changed

+2140
-945
lines changed

Some content is hidden

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

159 files changed

+2140
-945
lines changed

.mailmap

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -225,6 +225,7 @@ Pratyush Anand <[email protected]> <[email protected]>
225225
Praveen BP <[email protected]>
226226
227227
228+
228229
229230
230231
Rajesh Shah <[email protected]>

MAINTAINERS

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8688,7 +8688,7 @@ M: Emmanuel Grumbach <[email protected]>
86888688
M: Luca Coelho <[email protected]>
86898689
M: Intel Linux Wireless <[email protected]>
86908690
8691-
W: http://intellinuxwireless.org
8691+
W: https://wireless.wiki.kernel.org/en/users/drivers/iwlwifi
86928692
T: git git://git.kernel.org/pub/scm/linux/kernel/git/iwlwifi/iwlwifi.git
86938693
S: Supported
86948694
F: drivers/net/wireless/intel/iwlwifi/

arch/arm64/boot/dts/freescale/fsl-ls1043a-rdb.dts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -119,12 +119,12 @@
119119

120120
ethernet@e4000 {
121121
phy-handle = <&rgmii_phy1>;
122-
phy-connection-type = "rgmii-txid";
122+
phy-connection-type = "rgmii-id";
123123
};
124124

125125
ethernet@e6000 {
126126
phy-handle = <&rgmii_phy2>;
127-
phy-connection-type = "rgmii-txid";
127+
phy-connection-type = "rgmii-id";
128128
};
129129

130130
ethernet@e8000 {

arch/arm64/boot/dts/freescale/fsl-ls1046a-rdb.dts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -131,12 +131,12 @@
131131
&fman0 {
132132
ethernet@e4000 {
133133
phy-handle = <&rgmii_phy1>;
134-
phy-connection-type = "rgmii";
134+
phy-connection-type = "rgmii-id";
135135
};
136136

137137
ethernet@e6000 {
138138
phy-handle = <&rgmii_phy2>;
139-
phy-connection-type = "rgmii";
139+
phy-connection-type = "rgmii-id";
140140
};
141141

142142
ethernet@e8000 {

arch/x86/net/bpf_jit_comp32.c

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2039,10 +2039,12 @@ static int do_jit(struct bpf_prog *bpf_prog, int *addrs, u8 *image,
20392039
}
20402040
/* and dreg_lo,sreg_lo */
20412041
EMIT2(0x23, add_2reg(0xC0, sreg_lo, dreg_lo));
2042-
/* and dreg_hi,sreg_hi */
2043-
EMIT2(0x23, add_2reg(0xC0, sreg_hi, dreg_hi));
2044-
/* or dreg_lo,dreg_hi */
2045-
EMIT2(0x09, add_2reg(0xC0, dreg_lo, dreg_hi));
2042+
if (is_jmp64) {
2043+
/* and dreg_hi,sreg_hi */
2044+
EMIT2(0x23, add_2reg(0xC0, sreg_hi, dreg_hi));
2045+
/* or dreg_lo,dreg_hi */
2046+
EMIT2(0x09, add_2reg(0xC0, dreg_lo, dreg_hi));
2047+
}
20462048
goto emit_cond_jmp;
20472049
}
20482050
case BPF_JMP | BPF_JSET | BPF_K:

drivers/net/Kconfig

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -149,6 +149,7 @@ config NET_FC
149149
config IFB
150150
tristate "Intermediate Functional Block support"
151151
depends on NET_CLS_ACT
152+
select NET_REDIRECT
152153
---help---
153154
This is an intermediate driver that allows sharing of
154155
resources.

drivers/net/caif/caif_spi.c

Lines changed: 36 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -141,29 +141,29 @@ static ssize_t dbgfs_state(struct file *file, char __user *user_buf,
141141
return 0;
142142

143143
/* Print out debug information. */
144-
len += snprintf((buf + len), (DEBUGFS_BUF_SIZE - len),
145-
"CAIF SPI debug information:\n");
146-
147-
len += snprintf((buf + len), (DEBUGFS_BUF_SIZE - len), FLAVOR);
148-
149-
len += snprintf((buf + len), (DEBUGFS_BUF_SIZE - len),
150-
"STATE: %d\n", cfspi->dbg_state);
151-
len += snprintf((buf + len), (DEBUGFS_BUF_SIZE - len),
152-
"Previous CMD: 0x%x\n", cfspi->pcmd);
153-
len += snprintf((buf + len), (DEBUGFS_BUF_SIZE - len),
154-
"Current CMD: 0x%x\n", cfspi->cmd);
155-
len += snprintf((buf + len), (DEBUGFS_BUF_SIZE - len),
156-
"Previous TX len: %d\n", cfspi->tx_ppck_len);
157-
len += snprintf((buf + len), (DEBUGFS_BUF_SIZE - len),
158-
"Previous RX len: %d\n", cfspi->rx_ppck_len);
159-
len += snprintf((buf + len), (DEBUGFS_BUF_SIZE - len),
160-
"Current TX len: %d\n", cfspi->tx_cpck_len);
161-
len += snprintf((buf + len), (DEBUGFS_BUF_SIZE - len),
162-
"Current RX len: %d\n", cfspi->rx_cpck_len);
163-
len += snprintf((buf + len), (DEBUGFS_BUF_SIZE - len),
164-
"Next TX len: %d\n", cfspi->tx_npck_len);
165-
len += snprintf((buf + len), (DEBUGFS_BUF_SIZE - len),
166-
"Next RX len: %d\n", cfspi->rx_npck_len);
144+
len += scnprintf((buf + len), (DEBUGFS_BUF_SIZE - len),
145+
"CAIF SPI debug information:\n");
146+
147+
len += scnprintf((buf + len), (DEBUGFS_BUF_SIZE - len), FLAVOR);
148+
149+
len += scnprintf((buf + len), (DEBUGFS_BUF_SIZE - len),
150+
"STATE: %d\n", cfspi->dbg_state);
151+
len += scnprintf((buf + len), (DEBUGFS_BUF_SIZE - len),
152+
"Previous CMD: 0x%x\n", cfspi->pcmd);
153+
len += scnprintf((buf + len), (DEBUGFS_BUF_SIZE - len),
154+
"Current CMD: 0x%x\n", cfspi->cmd);
155+
len += scnprintf((buf + len), (DEBUGFS_BUF_SIZE - len),
156+
"Previous TX len: %d\n", cfspi->tx_ppck_len);
157+
len += scnprintf((buf + len), (DEBUGFS_BUF_SIZE - len),
158+
"Previous RX len: %d\n", cfspi->rx_ppck_len);
159+
len += scnprintf((buf + len), (DEBUGFS_BUF_SIZE - len),
160+
"Current TX len: %d\n", cfspi->tx_cpck_len);
161+
len += scnprintf((buf + len), (DEBUGFS_BUF_SIZE - len),
162+
"Current RX len: %d\n", cfspi->rx_cpck_len);
163+
len += scnprintf((buf + len), (DEBUGFS_BUF_SIZE - len),
164+
"Next TX len: %d\n", cfspi->tx_npck_len);
165+
len += scnprintf((buf + len), (DEBUGFS_BUF_SIZE - len),
166+
"Next RX len: %d\n", cfspi->rx_npck_len);
167167

168168
if (len > DEBUGFS_BUF_SIZE)
169169
len = DEBUGFS_BUF_SIZE;
@@ -180,23 +180,23 @@ static ssize_t print_frame(char *buf, size_t size, char *frm,
180180
int len = 0;
181181
int i;
182182
for (i = 0; i < count; i++) {
183-
len += snprintf((buf + len), (size - len),
183+
len += scnprintf((buf + len), (size - len),
184184
"[0x" BYTE_HEX_FMT "]",
185185
frm[i]);
186186
if ((i == cut) && (count > (cut * 2))) {
187187
/* Fast forward. */
188188
i = count - cut;
189-
len += snprintf((buf + len), (size - len),
190-
"--- %zu bytes skipped ---\n",
191-
count - (cut * 2));
189+
len += scnprintf((buf + len), (size - len),
190+
"--- %zu bytes skipped ---\n",
191+
count - (cut * 2));
192192
}
193193

194194
if ((!(i % 10)) && i) {
195-
len += snprintf((buf + len), (DEBUGFS_BUF_SIZE - len),
196-
"\n");
195+
len += scnprintf((buf + len), (DEBUGFS_BUF_SIZE - len),
196+
"\n");
197197
}
198198
}
199-
len += snprintf((buf + len), (DEBUGFS_BUF_SIZE - len), "\n");
199+
len += scnprintf((buf + len), (DEBUGFS_BUF_SIZE - len), "\n");
200200
return len;
201201
}
202202

@@ -214,18 +214,18 @@ static ssize_t dbgfs_frame(struct file *file, char __user *user_buf,
214214
return 0;
215215

216216
/* Print out debug information. */
217-
len += snprintf((buf + len), (DEBUGFS_BUF_SIZE - len),
218-
"Current frame:\n");
217+
len += scnprintf((buf + len), (DEBUGFS_BUF_SIZE - len),
218+
"Current frame:\n");
219219

220-
len += snprintf((buf + len), (DEBUGFS_BUF_SIZE - len),
221-
"Tx data (Len: %d):\n", cfspi->tx_cpck_len);
220+
len += scnprintf((buf + len), (DEBUGFS_BUF_SIZE - len),
221+
"Tx data (Len: %d):\n", cfspi->tx_cpck_len);
222222

223223
len += print_frame((buf + len), (DEBUGFS_BUF_SIZE - len),
224224
cfspi->xfer.va_tx[0],
225225
(cfspi->tx_cpck_len + SPI_CMD_SZ), 100);
226226

227-
len += snprintf((buf + len), (DEBUGFS_BUF_SIZE - len),
228-
"Rx data (Len: %d):\n", cfspi->rx_cpck_len);
227+
len += scnprintf((buf + len), (DEBUGFS_BUF_SIZE - len),
228+
"Rx data (Len: %d):\n", cfspi->rx_cpck_len);
229229

230230
len += print_frame((buf + len), (DEBUGFS_BUF_SIZE - len),
231231
cfspi->xfer.va_rx,

drivers/net/can/slcan.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -625,7 +625,10 @@ static int slcan_open(struct tty_struct *tty)
625625
tty->disc_data = NULL;
626626
clear_bit(SLF_INUSE, &sl->flags);
627627
slc_free_netdev(sl->dev);
628+
/* do not call free_netdev before rtnl_unlock */
629+
rtnl_unlock();
628630
free_netdev(sl->dev);
631+
return err;
629632

630633
err_exit:
631634
rtnl_unlock();

drivers/net/dsa/mt7530.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -566,7 +566,7 @@ mt7530_mib_reset(struct dsa_switch *ds)
566566
static void
567567
mt7530_port_set_status(struct mt7530_priv *priv, int port, int enable)
568568
{
569-
u32 mask = PMCR_TX_EN | PMCR_RX_EN;
569+
u32 mask = PMCR_TX_EN | PMCR_RX_EN | PMCR_FORCE_LNK;
570570

571571
if (enable)
572572
mt7530_set(priv, MT7530_PMCR_P(port), mask);
@@ -1444,7 +1444,7 @@ static void mt7530_phylink_mac_config(struct dsa_switch *ds, int port,
14441444
mcr_new &= ~(PMCR_FORCE_SPEED_1000 | PMCR_FORCE_SPEED_100 |
14451445
PMCR_FORCE_FDX | PMCR_TX_FC_EN | PMCR_RX_FC_EN);
14461446
mcr_new |= PMCR_IFG_XMIT(1) | PMCR_MAC_MODE | PMCR_BACKOFF_EN |
1447-
PMCR_BACKPR_EN | PMCR_FORCE_MODE | PMCR_FORCE_LNK;
1447+
PMCR_BACKPR_EN | PMCR_FORCE_MODE;
14481448

14491449
/* Are we connected to external phy */
14501450
if (port == 5 && dsa_is_user_port(ds, 5))

0 commit comments

Comments
 (0)