Skip to content

Commit f08a1e9

Browse files
committed
Merge tag 'net-6.10-rc0' of git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net
Pull networking fixes from Jakub Kicinski: "Current release - regressions: - virtio_net: fix missed error path rtnl_unlock after control queue locking rework Current release - new code bugs: - bpf: fix KASAN slab-out-of-bounds in percpu_array_map_gen_lookup, caused by missing nested map handling - drv: dsa: correct initialization order for KSZ88x3 ports Previous releases - regressions: - af_packet: do not call packet_read_pending() from tpacket_destruct_skb() fix performance regression - ipv6: fix route deleting failure when metric equals 0, don't assume 0 means not set / default in this case Previous releases - always broken: - bridge: couple of syzbot-driven fixes" * tag 'net-6.10-rc0' of git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net: (30 commits) selftests: net: local_termination: annotate the expected failures net: dsa: microchip: Correct initialization order for KSZ88x3 ports MAINTAINERS: net: Update reviewers for TI's Ethernet drivers dt-bindings: net: ti: Update maintainers list l2tp: fix ICMP error handling for UDP-encap sockets net: txgbe: fix to control VLAN strip net: wangxun: match VLAN CTAG and STAG features net: wangxun: fix to change Rx features af_packet: do not call packet_read_pending() from tpacket_destruct_skb() virtio_net: Fix missed rtnl_unlock netrom: fix possible dead-lock in nr_rt_ioctl() idpf: don't skip over ethtool tcp-data-split setting dt-bindings: net: qcom: ethernet: Allow dma-coherent bonding: fix oops during rmmod net/ipv6: Fix route deleting failure when metric equals 0 selftests/net: reduce xfrm_policy test time selftests/bpf: Adjust btf_dump test to reflect recent change in file_operations selftests/bpf: Adjust test_access_variable_array after a kernel function name change selftests/net/lib: no need to record ns name if it already exist net: qrtr: ns: Fix module refcnt ...
2 parents 26aa834 + fe56d6e commit f08a1e9

File tree

39 files changed

+304
-110
lines changed

39 files changed

+304
-110
lines changed

Documentation/bpf/standardization/instruction-set.rst

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -301,8 +301,9 @@ Arithmetic instructions
301301
``ALU`` uses 32-bit wide operands while ``ALU64`` uses 64-bit wide operands for
302302
otherwise identical operations. ``ALU64`` instructions belong to the
303303
base64 conformance group unless noted otherwise.
304-
The 'code' field encodes the operation as below, where 'src' and 'dst' refer
305-
to the values of the source and destination registers, respectively.
304+
The 'code' field encodes the operation as below, where 'src' refers to the
305+
the source operand and 'dst' refers to the value of the destination
306+
register.
306307

307308
===== ===== ======= ==========================================================
308309
name code offset description

Documentation/devicetree/bindings/net/qcom,ethqos.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,8 @@ properties:
6161
iommus:
6262
maxItems: 1
6363

64+
dma-coherent: true
65+
6466
phys: true
6567

6668
phy-names:

Documentation/devicetree/bindings/net/ti,cpsw-switch.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ title: TI SoC Ethernet Switch Controller (CPSW)
88

99
maintainers:
1010
- Siddharth Vadapalli <s-vadapalli@ti.com>
11-
- Ravi Gunasekaran <r-gunasekaran@ti.com>
1211
- Roger Quadros <rogerq@kernel.org>
1312

1413
description:

Documentation/devicetree/bindings/net/ti,k3-am654-cpsw-nuss.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ title: The TI AM654x/J721E/AM642x SoC Gigabit Ethernet MAC (Media Access Control
88

99
maintainers:
1010
- Siddharth Vadapalli <s-vadapalli@ti.com>
11-
- Ravi Gunasekaran <r-gunasekaran@ti.com>
1211
- Roger Quadros <rogerq@kernel.org>
1312

1413
description:

Documentation/devicetree/bindings/net/ti,k3-am654-cpts.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ title: The TI AM654x/J721E Common Platform Time Sync (CPTS) module
88

99
maintainers:
1010
- Siddharth Vadapalli <s-vadapalli@ti.com>
11-
- Ravi Gunasekaran <r-gunasekaran@ti.com>
1211
- Roger Quadros <rogerq@kernel.org>
1312

1413
description: |+

MAINTAINERS

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3815,7 +3815,7 @@ F: arch/arm/net/
38153815
BPF JIT for ARM64
38163816
M: Daniel Borkmann <daniel@iogearbox.net>
38173817
M: Alexei Starovoitov <ast@kernel.org>
3818-
M: Zi Shen Lim <zlim.lnx@gmail.com>
3818+
M: Puranjay Mohan <puranjay@kernel.org>
38193819
L: bpf@vger.kernel.org
38203820
S: Supported
38213821
F: arch/arm64/net/
@@ -22392,7 +22392,6 @@ F: drivers/counter/ti-eqep.c
2239222392

2239322393
TI ETHERNET SWITCH DRIVER (CPSW)
2239422394
R: Siddharth Vadapalli <s-vadapalli@ti.com>
22395-
R: Ravi Gunasekaran <r-gunasekaran@ti.com>
2239622395
R: Roger Quadros <rogerq@kernel.org>
2239722396
L: linux-omap@vger.kernel.org
2239822397
L: netdev@vger.kernel.org

drivers/net/bonding/bond_main.c

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6477,16 +6477,16 @@ static int __init bonding_init(void)
64776477
if (res)
64786478
goto out;
64796479

6480+
bond_create_debugfs();
6481+
64806482
res = register_pernet_subsys(&bond_net_ops);
64816483
if (res)
6482-
goto out;
6484+
goto err_net_ops;
64836485

64846486
res = bond_netlink_init();
64856487
if (res)
64866488
goto err_link;
64876489

6488-
bond_create_debugfs();
6489-
64906490
for (i = 0; i < max_bonds; i++) {
64916491
res = bond_create(&init_net, NULL);
64926492
if (res)
@@ -6501,10 +6501,11 @@ static int __init bonding_init(void)
65016501
out:
65026502
return res;
65036503
err:
6504-
bond_destroy_debugfs();
65056504
bond_netlink_fini();
65066505
err_link:
65076506
unregister_pernet_subsys(&bond_net_ops);
6507+
err_net_ops:
6508+
bond_destroy_debugfs();
65086509
goto out;
65096510

65106511
}
@@ -6513,11 +6514,11 @@ static void __exit bonding_exit(void)
65136514
{
65146515
unregister_netdevice_notifier(&bond_netdev_notifier);
65156516

6516-
bond_destroy_debugfs();
6517-
65186517
bond_netlink_fini();
65196518
unregister_pernet_subsys(&bond_net_ops);
65206519

6520+
bond_destroy_debugfs();
6521+
65216522
#ifdef CONFIG_NET_POLL_CONTROLLER
65226523
/* Make sure we don't have an imbalance on our netpoll blocking */
65236524
WARN_ON(atomic_read(&netpoll_block_tx));

drivers/net/dsa/microchip/ksz_dcb.c

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -805,5 +805,15 @@ int ksz_dcb_init(struct ksz_device *dev)
805805
if (ret)
806806
return ret;
807807

808+
/* Enable 802.1p priority control on Port 2 during switch initialization.
809+
* This setup is critical for the apptrust functionality on Port 1, which
810+
* relies on the priority settings of Port 2. Note: Port 1 is naturally
811+
* configured before Port 2, necessitating this configuration order.
812+
*/
813+
if (ksz_is_ksz88x3(dev))
814+
return ksz_prmw8(dev, KSZ_PORT_2, KSZ8_REG_PORT_1_CTRL_0,
815+
KSZ8_PORT_802_1P_ENABLE,
816+
KSZ8_PORT_802_1P_ENABLE);
817+
808818
return 0;
809819
}

drivers/net/ethernet/intel/idpf/idpf_ethtool.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -376,7 +376,8 @@ static int idpf_set_ringparam(struct net_device *netdev,
376376
new_tx_count);
377377

378378
if (new_tx_count == vport->txq_desc_count &&
379-
new_rx_count == vport->rxq_desc_count)
379+
new_rx_count == vport->rxq_desc_count &&
380+
kring->tcp_data_split == idpf_vport_get_hsplit(vport))
380381
goto unlock_mutex;
381382

382383
if (!idpf_vport_set_hsplit(vport, kring->tcp_data_split)) {

drivers/net/ethernet/micrel/ks8851_common.c

Lines changed: 1 addition & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -328,32 +328,24 @@ static irqreturn_t ks8851_irq(int irq, void *_ks)
328328
{
329329
struct ks8851_net *ks = _ks;
330330
struct sk_buff_head rxq;
331-
unsigned handled = 0;
332331
unsigned long flags;
333332
unsigned int status;
334333
struct sk_buff *skb;
335334

336335
ks8851_lock(ks, &flags);
337336

338337
status = ks8851_rdreg16(ks, KS_ISR);
338+
ks8851_wrreg16(ks, KS_ISR, status);
339339

340340
netif_dbg(ks, intr, ks->netdev,
341341
"%s: status 0x%04x\n", __func__, status);
342342

343-
if (status & IRQ_LCI)
344-
handled |= IRQ_LCI;
345-
346343
if (status & IRQ_LDI) {
347344
u16 pmecr = ks8851_rdreg16(ks, KS_PMECR);
348345
pmecr &= ~PMECR_WKEVT_MASK;
349346
ks8851_wrreg16(ks, KS_PMECR, pmecr | PMECR_WKEVT_LINK);
350-
351-
handled |= IRQ_LDI;
352347
}
353348

354-
if (status & IRQ_RXPSI)
355-
handled |= IRQ_RXPSI;
356-
357349
if (status & IRQ_TXI) {
358350
unsigned short tx_space = ks8851_rdreg16(ks, KS_TXMIR);
359351

@@ -365,20 +357,12 @@ static irqreturn_t ks8851_irq(int irq, void *_ks)
365357
if (netif_queue_stopped(ks->netdev))
366358
netif_wake_queue(ks->netdev);
367359
spin_unlock(&ks->statelock);
368-
369-
handled |= IRQ_TXI;
370360
}
371361

372-
if (status & IRQ_RXI)
373-
handled |= IRQ_RXI;
374-
375362
if (status & IRQ_SPIBEI) {
376363
netdev_err(ks->netdev, "%s: spi bus error\n", __func__);
377-
handled |= IRQ_SPIBEI;
378364
}
379365

380-
ks8851_wrreg16(ks, KS_ISR, handled);
381-
382366
if (status & IRQ_RXI) {
383367
/* the datasheet says to disable the rx interrupt during
384368
* packet read-out, however we're masking the interrupt

0 commit comments

Comments
 (0)