Skip to content

Commit 736b554

Browse files
committed
Merge tag 'net-6.8-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net
Pull networking fixes from Jakub Kicinski: "Including fixes from bpf and netfilter. Previous releases - regressions: - Revert "net: rtnetlink: Enslave device before bringing it up", breaks the case inverse to the one it was trying to fix - net: dsa: fix oob access in DSA's netdevice event handler dereference netdev_priv() before check its a DSA port - sched: track device in tcf_block_get/put_ext() only for clsact binder types - net: tls, fix WARNING in __sk_msg_free when record becomes full during splice and MORE hint set - sfp-bus: fix SFP mode detect from bitrate - drv: stmmac: prevent DSA tags from breaking COE Previous releases - always broken: - bpf: fix no forward progress in in bpf_iter_udp if output buffer is too small - bpf: reject variable offset alu on registers with a type of PTR_TO_FLOW_KEYS to prevent oob access - netfilter: tighten input validation - net: add more sanity check in virtio_net_hdr_to_skb() - rxrpc: fix use of Don't Fragment flag on RESPONSE packets, avoid infinite loop - amt: do not use the portion of skb->cb area which may get clobbered - mptcp: improve validation of the MPTCPOPT_MP_JOIN MCTCP option Misc: - spring cleanup of inactive maintainers" * tag 'net-6.8-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net: (88 commits) i40e: Include types.h to some headers ipv6: mcast: fix data-race in ipv6_mc_down / mld_ifc_work selftests: mlxsw: qos_pfc: Adjust the test to support 8 lanes selftests: mlxsw: qos_pfc: Remove wrong description mlxsw: spectrum_router: Register netdevice notifier before nexthop mlxsw: spectrum_acl_tcam: Fix stack corruption mlxsw: spectrum_acl_tcam: Fix NULL pointer dereference in error path mlxsw: spectrum_acl_erp: Fix error flow of pool allocation failure ethtool: netlink: Add missing ethnl_ops_begin/complete selftests: bonding: Add more missing config options selftests: netdevsim: add a config file libbpf: warn on unexpected __arg_ctx type when rewriting BTF selftests/bpf: add tests confirming type logic in kernel for __arg_ctx bpf: enforce types for __arg_ctx-tagged arguments in global subprogs bpf: extract bpf_ctx_convert_map logic and make it more reusable libbpf: feature-detect arg:ctx tag support in kernel ipvs: avoid stat macros calls from preemptible context netfilter: nf_tables: reject NFT_SET_CONCAT with not field length description netfilter: nf_tables: skip dead set elements in netlink dump netfilter: nf_tables: do not allow mismatch field size and set key length ...
2 parents ed8d845 + 925781a commit 736b554

File tree

90 files changed

+1366
-235
lines changed

Some content is hidden

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

90 files changed

+1366
-235
lines changed

CREDITS

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -179,6 +179,7 @@ E: ralf@gnu.org
179179
P: 1024/AF7B30C1 CF 97 C2 CC 6D AE A7 FE C8 BA 9C FC 88 DE 32 C3
180180
D: Linux/MIPS port
181181
D: Linux/68k hacker
182+
D: AX25 maintainer
182183
S: Hauptstrasse 19
183184
S: 79837 St. Blasien
184185
S: Germany
@@ -677,6 +678,10 @@ D: Media subsystem (V4L/DVB) drivers and core
677678
D: EDAC drivers and EDAC 3.0 core rework
678679
S: Brazil
679680

681+
N: Landen Chao
682+
E: Landen.Chao@mediatek.com
683+
D: MT7531 Ethernet switch support
684+
680685
N: Raymond Chen
681686
E: raymondc@microsoft.com
682687
D: Author of Configure script
@@ -814,6 +819,10 @@ D: Support for Xircom PGSDB9 (firmware and host driver)
814819
S: Bucharest
815820
S: Romania
816821

822+
N: John Crispin
823+
E: john@phrozen.org
824+
D: MediaTek MT7623 Gigabit ethernet support
825+
817826
N: Laurence Culhane
818827
E: loz@holmes.demon.co.uk
819828
D: Wrote the initial alpha SLIP code
@@ -1538,6 +1547,10 @@ N: Andrew Haylett
15381547
E: ajh@primag.co.uk
15391548
D: Selection mechanism
15401549

1550+
N: Johan Hedberg
1551+
E: johan.hedberg@gmail.com
1552+
D: Bluetooth subsystem maintainer
1553+
15411554
N: Andre Hedrick
15421555
E: andre@linux-ide.org
15431556
E: andre@linuxdiskcert.org
@@ -3052,6 +3065,10 @@ S: Demonstratsii 8-382
30523065
S: Tula 300000
30533066
S: Russia
30543067

3068+
N: Thomas Petazzoni
3069+
E: thomas.petazzoni@bootlin.com
3070+
D: Driver for the Marvell Armada 370/XP network unit.
3071+
30553072
N: Gordon Peters
30563073
E: GordPeters@smarttech.com
30573074
D: Isochronous receive for IEEE 1394 driver (OHCI module).

MAINTAINERS

Lines changed: 4 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -3390,9 +3390,8 @@ F: Documentation/devicetree/bindings/iio/adc/avia-hx711.yaml
33903390
F: drivers/iio/adc/hx711.c
33913391

33923392
AX.25 NETWORK LAYER
3393-
M: Ralf Baechle <ralf@linux-mips.org>
33943393
L: linux-hams@vger.kernel.org
3395-
S: Maintained
3394+
S: Orphan
33963395
W: https://linux-ax25.in-berlin.de
33973396
F: include/net/ax25.h
33983397
F: include/uapi/linux/ax25.h
@@ -3631,7 +3630,6 @@ F: drivers/mtd/devices/block2mtd.c
36313630

36323631
BLUETOOTH DRIVERS
36333632
M: Marcel Holtmann <marcel@holtmann.org>
3634-
M: Johan Hedberg <johan.hedberg@gmail.com>
36353633
M: Luiz Augusto von Dentz <luiz.dentz@gmail.com>
36363634
L: linux-bluetooth@vger.kernel.org
36373635
S: Supported
@@ -4726,11 +4724,8 @@ F: drivers/i2c/busses/i2c-octeon*
47264724
F: drivers/i2c/busses/i2c-thunderx*
47274725

47284726
CAVIUM LIQUIDIO NETWORK DRIVER
4729-
M: Derek Chickles <dchickles@marvell.com>
4730-
M: Satanand Burla <sburla@marvell.com>
4731-
M: Felix Manlunas <fmanlunas@marvell.com>
47324727
L: netdev@vger.kernel.org
4733-
S: Supported
4728+
S: Orphan
47344729
W: http://www.marvell.com
47354730
F: drivers/net/ethernet/cavium/liquidio/
47364731

@@ -10239,7 +10234,6 @@ IBM Power SRIOV Virtual NIC Device Driver
1023910234
M: Haren Myneni <haren@linux.ibm.com>
1024010235
M: Rick Lindsley <ricklind@linux.ibm.com>
1024110236
R: Nick Child <nnac123@linux.ibm.com>
10242-
R: Dany Madden <danymadden@us.ibm.com>
1024310237
R: Thomas Falcon <tlfalcon@linux.ibm.com>
1024410238
L: netdev@vger.kernel.org
1024510239
S: Supported
@@ -13003,10 +12997,10 @@ S: Maintained
1300312997
F: drivers/thermal/armada_thermal.c
1300412998

1300512999
MARVELL MVNETA ETHERNET DRIVER
13006-
M: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
13000+
M: Marcin Wojtas <marcin.s.wojtas@gmail.com>
1300713001
L: netdev@vger.kernel.org
1300813002
S: Maintained
13009-
F: drivers/net/ethernet/marvell/mvneta.*
13003+
F: drivers/net/ethernet/marvell/mvneta*
1301013004

1301113005
MARVELL MVPP2 ETHERNET DRIVER
1301213006
M: Marcin Wojtas <marcin.s.wojtas@gmail.com>
@@ -13656,7 +13650,6 @@ F: drivers/dma/mediatek/
1365613650

1365713651
MEDIATEK ETHERNET DRIVER
1365813652
M: Felix Fietkau <nbd@nbd.name>
13659-
M: John Crispin <john@phrozen.org>
1366013653
M: Sean Wang <sean.wang@mediatek.com>
1366113654
M: Mark Lee <Mark-MC.Lee@mediatek.com>
1366213655
M: Lorenzo Bianconi <lorenzo@kernel.org>
@@ -13812,7 +13805,6 @@ F: include/soc/mediatek/smi.h
1381213805
MEDIATEK SWITCH DRIVER
1381313806
M: Arınç ÜNAL <arinc.unal@arinc9.com>
1381413807
M: Daniel Golle <daniel@makrotopia.org>
13815-
M: Landen Chao <Landen.Chao@mediatek.com>
1381613808
M: DENG Qingfang <dqfext@gmail.com>
1381713809
M: Sean Wang <sean.wang@mediatek.com>
1381813810
L: netdev@vger.kernel.org

drivers/net/amt.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
#include <linux/net.h>
1212
#include <linux/igmp.h>
1313
#include <linux/workqueue.h>
14-
#include <net/sch_generic.h>
14+
#include <net/pkt_sched.h>
1515
#include <net/net_namespace.h>
1616
#include <net/ip.h>
1717
#include <net/udp.h>
@@ -80,11 +80,11 @@ static struct mld2_grec mldv2_zero_grec;
8080

8181
static struct amt_skb_cb *amt_skb_cb(struct sk_buff *skb)
8282
{
83-
BUILD_BUG_ON(sizeof(struct amt_skb_cb) + sizeof(struct qdisc_skb_cb) >
83+
BUILD_BUG_ON(sizeof(struct amt_skb_cb) + sizeof(struct tc_skb_cb) >
8484
sizeof_field(struct sk_buff, cb));
8585

8686
return (struct amt_skb_cb *)((void *)skb->cb +
87-
sizeof(struct qdisc_skb_cb));
87+
sizeof(struct tc_skb_cb));
8888
}
8989

9090
static void __amt_source_gc_work(void)

drivers/net/dsa/vitesse-vsc73xx-core.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1135,6 +1135,8 @@ static int vsc73xx_gpio_probe(struct vsc73xx *vsc)
11351135

11361136
vsc->gc.label = devm_kasprintf(vsc->dev, GFP_KERNEL, "VSC%04x",
11371137
vsc->chipid);
1138+
if (!vsc->gc.label)
1139+
return -ENOMEM;
11381140
vsc->gc.ngpio = 4;
11391141
vsc->gc.owner = THIS_MODULE;
11401142
vsc->gc.parent = vsc->dev;

drivers/net/ethernet/cavium/liquidio/cn23xx_pf_device.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1490,7 +1490,7 @@ int cn23xx_get_vf_stats(struct octeon_device *oct, int vfidx,
14901490
mbox_cmd.q_no = vfidx * oct->sriov_info.rings_per_vf;
14911491
mbox_cmd.recv_len = 0;
14921492
mbox_cmd.recv_status = 0;
1493-
mbox_cmd.fn = (octeon_mbox_callback_t)cn23xx_get_vf_stats_callback;
1493+
mbox_cmd.fn = cn23xx_get_vf_stats_callback;
14941494
ctx.stats = stats;
14951495
atomic_set(&ctx.status, 0);
14961496
mbox_cmd.fn_arg = (void *)&ctx;

drivers/net/ethernet/cavium/liquidio/cn23xx_vf_device.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -429,7 +429,7 @@ int cn23xx_octeon_pfvf_handshake(struct octeon_device *oct)
429429
mbox_cmd.q_no = 0;
430430
mbox_cmd.recv_len = 0;
431431
mbox_cmd.recv_status = 0;
432-
mbox_cmd.fn = (octeon_mbox_callback_t)octeon_pfvf_hs_callback;
432+
mbox_cmd.fn = octeon_pfvf_hs_callback;
433433
mbox_cmd.fn_arg = &status;
434434

435435
octeon_mbox_write(oct, &mbox_cmd);

drivers/net/ethernet/cavium/liquidio/octeon_mailbox.h

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,10 @@ union octeon_mbox_message {
5757
} s;
5858
};
5959

60-
typedef void (*octeon_mbox_callback_t)(void *, void *, void *);
60+
struct octeon_mbox_cmd;
61+
62+
typedef void (*octeon_mbox_callback_t)(struct octeon_device *,
63+
struct octeon_mbox_cmd *, void *);
6164

6265
struct octeon_mbox_cmd {
6366
union octeon_mbox_message msg;

drivers/net/ethernet/intel/i40e/i40e_adminq_cmd.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
#define _I40E_ADMINQ_CMD_H_
66

77
#include <linux/bits.h>
8+
#include <linux/types.h>
89

910
/* This header file defines the i40e Admin Queue commands and is shared between
1011
* i40e Firmware and Software.

drivers/net/ethernet/intel/i40e/i40e_diag.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
#ifndef _I40E_DIAG_H_
55
#define _I40E_DIAG_H_
66

7+
#include <linux/types.h>
78
#include "i40e_adminq_cmd.h"
89

910
/* forward-declare the HW struct for the compiler */

drivers/net/ethernet/marvell/octeontx2/af/rpm.c

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -506,14 +506,19 @@ u32 rpm2_get_lmac_fifo_len(void *rpmd, int lmac_id)
506506
rpm_t *rpm = rpmd;
507507
u8 num_lmacs;
508508
u32 fifo_len;
509+
u16 max_lmac;
509510

510511
lmac_info = rpm_read(rpm, 0, RPM2_CMRX_RX_LMACS);
511512
/* LMACs are divided into two groups and each group
512513
* gets half of the FIFO
513514
* Group0 lmac_id range {0..3}
514515
* Group1 lmac_id range {4..7}
515516
*/
516-
fifo_len = rpm->mac_ops->fifo_len / 2;
517+
max_lmac = (rpm_read(rpm, 0, CGX_CONST) >> 24) & 0xFF;
518+
if (max_lmac > 4)
519+
fifo_len = rpm->mac_ops->fifo_len / 2;
520+
else
521+
fifo_len = rpm->mac_ops->fifo_len;
517522

518523
if (lmac_id < 4) {
519524
num_lmacs = hweight8(lmac_info & 0xF);

0 commit comments

Comments
 (0)