Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
86 commits
Select commit Hold shift + click to select a range
da4282c
selftests/bpf: Fix a compile error for BPF_F_BPRM_SECUREEXEC
Jiang-BD Dec 24, 2020
fd16931
crypto: arm/chacha-neon - add missing counter increment
ardbiesheuvel Dec 13, 2020
0aa171e
crypto: ecdh - avoid buffer overflow in ecdh_set_secret()
ardbiesheuvel Jan 2, 2021
04901aa
bpf: Fix a task_iter bug caused by a merge conflict resolution
yonghong-song Dec 31, 2020
2860d45
qed: select CONFIG_CRC32
arndb Jan 3, 2021
f9d6f94
phy: dp83640: select CONFIG_CRC32
arndb Jan 3, 2021
1d48595
can: kvaser_pciefd: select CONFIG_CRC32
arndb Jan 3, 2021
e186620
wil6210: select CONFIG_CRC32
arndb Jan 3, 2021
152a8a6
cfg80211: select CONFIG_CRC32
arndb Jan 3, 2021
51049bd
misdn: dsp: select CONFIG_BITREVERSE
arndb Jan 3, 2021
69931e1
wan: ds26522: select CONFIG_BITREVERSE
arndb Jan 3, 2021
0f7ba7b
net/sonic: Fix some resource leaks in error handling paths
tititiou36 Jan 3, 2021
cf07206
net: suggest L2 discards be counted towards rx_dropped
kuba-moo Dec 31, 2020
55b7ab1
net: vlan: avoid leaks on register_vlan_dev() failures
kuba-moo Dec 31, 2020
7eeecc4
net: stmmac: dwmac-sun8i: Fix probe error handling
smaeul Jan 3, 2021
5292542
net: stmmac: dwmac-sun8i: Balance internal PHY resource references
smaeul Jan 3, 2021
b823963
net: stmmac: dwmac-sun8i: Balance internal PHY power
smaeul Jan 3, 2021
9b1e39c
net: stmmac: dwmac-sun8i: Balance syscon (de)initialization
smaeul Jan 3, 2021
8db2553
Merge branch 'stmmac-fixes'
davem330 Jan 6, 2021
9f9d41f
docs: net: fix documentation on .ndo_get_stats
kuba-moo Jan 5, 2021
f04bbcb
net: hns3: fix a phy loopback fail issue
liuyonglong86 Jan 5, 2021
65e61e3
net: hns3: fix the number of queues actually used by ARQ
Jan 5, 2021
ab6e32d
net: hns3: fix incorrect handling of sctp6 rss tuple
IronShen Jan 5, 2021
be8d1e0
Merge branch 'hns3-fixes'
davem330 Jan 6, 2021
7a68d72
net: cdc_ncm: correct overhead in delayed_ndp_size
jkseppan Jan 5, 2021
4beb17e
net: qrtr: fix null-ptr-deref in qrtr_ns_remove
Jan 5, 2021
445c619
net: ethernet: fs_enet: Add missing MODULE_LICENSE
mpe Jan 5, 2021
3503ee6
selftests: fix the return value for UDP GRO test
Cypresslin Jan 5, 2021
6720869
tools/resolve_btfids: Warn when having multiple IDs for single type
olsajiri Jan 5, 2021
67a5a68
gcc-plugins: fix gcc 11 indigestion with plugins...
valdisk Dec 26, 2020
6f02b54
bpftool: Fix compilation failure for net.o with older glibc
alan-maguire Jan 6, 2021
0d136f5
net: mvneta: fix error message when MTU too large for XDP
elkablo Jan 5, 2021
94bcfdb
net: bareudp: add missing error handling for bareudp_link_config()
kuba-moo Jan 5, 2021
7f847db
net: dsa: fix led_classdev build errors
rddunlap Jan 6, 2021
1f685e6
ptp: ptp_ines: prevent build when HAS_IOMEM is not set
rddunlap Jan 6, 2021
c4aec38
can: m_can: m_can_class_unregister(): remove erroneous m_can_clk_stop()
marckleinebudde Dec 15, 2020
aee2b3c
can: tcan4x5x: fix bittiming const, use common bittiming from m_can d…
marckleinebudde Dec 15, 2020
6086f02
can: mcp251xfd: mcp251xfd_handle_tefif(): fix TEF vs. TX race condition
marckleinebudde Jan 5, 2021
2fbb397
can: mcp251xfd: mcp251xfd_handle_rxif_ring(): first increment RX tail…
marckleinebudde Jan 5, 2021
1169ec8
can: rcar: Kconfig: update help description for CAN_RCAR config
prabhakarlad Jan 4, 2021
6ee4911
MAINTAINERS: Update MCAN MMIO device driver maintainer
sriramdash Jan 4, 2021
c8c748f
Merge tag 'linux-can-fixes-for-5.11-20210107' of git://git.kernel.org…
kuba-moo Jan 7, 2021
d8f5c29
net: ipv6: fib: flush exceptions when purging route
Jan 6, 2021
5316a7c
tools: selftests: add test for changing routes with PTMU exceptions
Jan 6, 2021
abf8ef9
net/mlx5: Check if lag is supported before creating one
MarkZhang81 Nov 30, 2020
9c9be85
net/mlx5e: Add missing capability check for uplink follow
ayalevin Nov 24, 2020
0f2dcad
net/mlx5: Use port_num 1 instead of 0 when delete a RoCE address
MarkZhang81 Dec 14, 2020
eed38ee
net/mlx5e: CT: Use per flow counter when CT flow accounting is enabled
ozshlomo Dec 7, 2020
b544011
net/mlx5e: Fix SWP offsets when vlan inserted by driver
Nov 13, 2020
25c904b
net/mlx5: E-Switch, fix changing vf VLANID
alaahl Jan 4, 2021
e13ed0a
net/mlx5e: In skb build skip setting mark in switchdev mode
dickmanmaor Dec 14, 2020
b1c0aca
net/mlx5e: ethtool, Fix restriction of autoneg with 56G
ayalevin Dec 27, 2020
4d8be21
net/mlx5: Release devlink object if adev fails
rleon Jan 4, 2021
7a6eb07
net/mlx5e: Fix two double free cases
dinghaoliu Dec 28, 2020
5b0bb12
net/mlx5e: Fix memleak in mlx5e_create_l2_table_groups
dinghaoliu Dec 21, 2020
f3562f5
docs: octeontx2: tune rst markup
bulwahn Jan 6, 2021
9e7a67d
selftests: netfilter: add selftest for ipip pmtu discovery with enabl…
Jan 5, 2021
50c6616
net: fix pmtu check in nopmtudisc mode
Jan 5, 2021
bb4cc1a
net: ip: always refragment ip defragmented packets
Jan 5, 2021
704a0f8
Merge branch 'net-fix-netfilter-defrag-ip-tunnel-pmtu-blackhole'
kuba-moo Jan 7, 2021
0565ff5
Merge https://git.kernel.org/pub/scm/linux/kernel/git/bpf/bpf
kuba-moo Jan 7, 2021
c4cc3b1
Merge tag 'gcc-plugins-v5.11-rc3' of git://git.kernel.org/pub/scm/lin…
torvalds Jan 8, 2021
717df0f
chtls: Fix hardware tid leak
ayushsawl Jan 6, 2021
827d329
chtls: Remove invalid set_tcb call
ayushsawl Jan 6, 2021
5a5fac9
chtls: Fix panic when route to peer not configured
ayushsawl Jan 6, 2021
f8d15d2
chtls: Avoid unnecessary freeing of oreq pointer
ayushsawl Jan 6, 2021
a84b2c0
chtls: Replace skb_dequeue with skb_peek
ayushsawl Jan 6, 2021
eade1e0
chtls: Added a check to avoid NULL pointer dereference
ayushsawl Jan 6, 2021
15ef6b0
chtls: Fix chtls resources release sequence
ayushsawl Jan 6, 2021
85bd605
Merge branch 'bug-fixes-for-chtls-driver'
kuba-moo Jan 8, 2021
ac7996d
octeontx2-af: fix memory leak of lmac and lmac->name
Jan 7, 2021
07e61a9
nexthop: Fix off-by-one error in error path
idosch Jan 7, 2021
7b01e53
nexthop: Unlink nexthop group entry in error path
idosch Jan 7, 2021
b19218b
nexthop: Bounce NHA_GATEWAY in FDB nexthop groups
pmachata Jan 7, 2021
a5c9ca7
selftests: fib_nexthops: Fix wrong mausezahn invocation
idosch Jan 7, 2021
d708342
Merge branch 'nexthop-various-fixes'
kuba-moo Jan 8, 2021
0b9902c
s390/qeth: fix deadlock during recovery
julianwiedmann Jan 7, 2021
b41b554
s390/qeth: fix locking for discipline setup / removal
julianwiedmann Jan 7, 2021
f9c4845
s390/qeth: fix L2 header access in qeth_l3_osa_features_check()
julianwiedmann Jan 7, 2021
286e95e
Merge branch 's390-qeth-fixes-2021-01-07'
kuba-moo Jan 8, 2021
3545454
net: dsa: lantiq_gswip: Exclude RMII from modes that report 1 GbE
abajk Jan 7, 2021
220efcf
Merge tag 'mlx5-fixes-2021-01-07' of git://git.kernel.org/pub/scm/lin…
kuba-moo Jan 8, 2021
a91bd62
Revert "init/console: Use ttynull as a fallback when there is no cons…
pmladek Jan 8, 2021
ef0ba05
poll: fix performance regression due to out-of-line __put_user()
torvalds Jan 7, 2021
ea1c87c
Merge branch 'linus' of git://git.kernel.org/pub/scm/linux/kernel/git…
torvalds Jan 8, 2021
6279d81
Merge tag 'net-5.11-rc3-2' of git://git.kernel.org/pub/scm/linux/kern…
torvalds Jan 8, 2021
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -164,46 +164,56 @@ Devlink health reporters

NPA Reporters
-------------
The NPA reporters are responsible for reporting and recovering the following group of errors
The NPA reporters are responsible for reporting and recovering the following group of errors:

1. GENERAL events

- Error due to operation of unmapped PF.
- Error due to disabled alloc/free for other HW blocks (NIX, SSO, TIM, DPI and AURA).

2. ERROR events

- Fault due to NPA_AQ_INST_S read or NPA_AQ_RES_S write.
- AQ Doorbell Error.

3. RAS events

- RAS Error Reporting for NPA_AQ_INST_S/NPA_AQ_RES_S.

4. RVU events

- Error due to unmapped slot.

Sample Output
-------------
~# devlink health
pci/0002:01:00.0:
reporter hw_npa_intr
state healthy error 2872 recover 2872 last_dump_date 2020-12-10 last_dump_time 09:39:09 grace_period 0 auto_recover true auto_dump true
reporter hw_npa_gen
state healthy error 2872 recover 2872 last_dump_date 2020-12-11 last_dump_time 04:43:04 grace_period 0 auto_recover true auto_dump true
reporter hw_npa_err
state healthy error 2871 recover 2871 last_dump_date 2020-12-10 last_dump_time 09:39:17 grace_period 0 auto_recover true auto_dump true
reporter hw_npa_ras
state healthy error 0 recover 0 last_dump_date 2020-12-10 last_dump_time 09:32:40 grace_period 0 auto_recover true auto_dump true
Sample Output::

~# devlink health
pci/0002:01:00.0:
reporter hw_npa_intr
state healthy error 2872 recover 2872 last_dump_date 2020-12-10 last_dump_time 09:39:09 grace_period 0 auto_recover true auto_dump true
reporter hw_npa_gen
state healthy error 2872 recover 2872 last_dump_date 2020-12-11 last_dump_time 04:43:04 grace_period 0 auto_recover true auto_dump true
reporter hw_npa_err
state healthy error 2871 recover 2871 last_dump_date 2020-12-10 last_dump_time 09:39:17 grace_period 0 auto_recover true auto_dump true
reporter hw_npa_ras
state healthy error 0 recover 0 last_dump_date 2020-12-10 last_dump_time 09:32:40 grace_period 0 auto_recover true auto_dump true

Each reporter dumps the

- Error Type
- Error Register value
- Reason in words

For eg:
~# devlink health dump show pci/0002:01:00.0 reporter hw_npa_gen
NPA_AF_GENERAL:
NPA General Interrupt Reg : 1
NIX0: free disabled RX
~# devlink health dump show pci/0002:01:00.0 reporter hw_npa_intr
NPA_AF_RVU:
NPA RVU Interrupt Reg : 1
Unmap Slot Error
~# devlink health dump show pci/0002:01:00.0 reporter hw_npa_err
NPA_AF_ERR:
NPA Error Interrupt Reg : 4096
AQ Doorbell Error
For example::

~# devlink health dump show pci/0002:01:00.0 reporter hw_npa_gen
NPA_AF_GENERAL:
NPA General Interrupt Reg : 1
NIX0: free disabled RX
~# devlink health dump show pci/0002:01:00.0 reporter hw_npa_intr
NPA_AF_RVU:
NPA RVU Interrupt Reg : 1
Unmap Slot Error
~# devlink health dump show pci/0002:01:00.0 reporter hw_npa_err
NPA_AF_ERR:
NPA Error Interrupt Reg : 4096
AQ Doorbell Error
4 changes: 2 additions & 2 deletions Documentation/networking/netdevices.rst
Original file line number Diff line number Diff line change
Expand Up @@ -64,8 +64,8 @@ ndo_do_ioctl:
Context: process

ndo_get_stats:
Synchronization: dev_base_lock rwlock.
Context: nominally process, but don't sleep inside an rwlock
Synchronization: rtnl_lock() semaphore, dev_base_lock rwlock, or RCU.
Context: atomic (can't sleep under rwlock or RCU)

ndo_start_xmit:
Synchronization: __netif_tx_lock spinlock.
Expand Down
2 changes: 1 addition & 1 deletion MAINTAINERS
Original file line number Diff line number Diff line change
Expand Up @@ -10847,7 +10847,7 @@ F: drivers/media/radio/radio-maxiradio*

MCAN MMIO DEVICE DRIVER
M: Dan Murphy <dmurphy@ti.com>
M: Sriram Dash <sriram.dash@samsung.com>
M: Pankaj Sharma <pankj.sharma@samsung.com>
L: linux-can@vger.kernel.org
S: Maintained
F: Documentation/devicetree/bindings/net/can/bosch,m_can.yaml
Expand Down
1 change: 1 addition & 0 deletions arch/arm/crypto/chacha-glue.c
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ static void chacha_doneon(u32 *state, u8 *dst, const u8 *src,
chacha_block_xor_neon(state, d, s, nrounds);
if (d != dst)
memcpy(dst, buf, bytes);
state[12]++;
}
}

Expand Down
3 changes: 2 additions & 1 deletion crypto/ecdh.c
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,8 @@ static int ecdh_set_secret(struct crypto_kpp *tfm, const void *buf,
struct ecdh params;
unsigned int ndigits;

if (crypto_ecdh_decode_key(buf, len, &params) < 0)
if (crypto_ecdh_decode_key(buf, len, &params) < 0 ||
params.key_size > sizeof(ctx->private_key))
return -EINVAL;

ndigits = ecdh_supported_curve(params.curve_id);
Expand Down
1 change: 1 addition & 0 deletions drivers/isdn/mISDN/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ if MISDN != n
config MISDN_DSP
tristate "Digital Audio Processing of transparent data"
depends on MISDN
select BITREVERSE
help
Enable support for digital audio processing capability.

Expand Down
22 changes: 14 additions & 8 deletions drivers/net/bareudp.c
Original file line number Diff line number Diff line change
Expand Up @@ -645,11 +645,20 @@ static int bareudp_link_config(struct net_device *dev,
return 0;
}

static void bareudp_dellink(struct net_device *dev, struct list_head *head)
{
struct bareudp_dev *bareudp = netdev_priv(dev);

list_del(&bareudp->next);
unregister_netdevice_queue(dev, head);
}

static int bareudp_newlink(struct net *net, struct net_device *dev,
struct nlattr *tb[], struct nlattr *data[],
struct netlink_ext_ack *extack)
{
struct bareudp_conf conf;
LIST_HEAD(list_kill);
int err;

err = bareudp2info(data, &conf, extack);
Expand All @@ -662,17 +671,14 @@ static int bareudp_newlink(struct net *net, struct net_device *dev,

err = bareudp_link_config(dev, tb);
if (err)
return err;
goto err_unconfig;

return 0;
}

static void bareudp_dellink(struct net_device *dev, struct list_head *head)
{
struct bareudp_dev *bareudp = netdev_priv(dev);

list_del(&bareudp->next);
unregister_netdevice_queue(dev, head);
err_unconfig:
bareudp_dellink(dev, &list_kill);
unregister_netdevice_many(&list_kill);
return err;
}

static size_t bareudp_get_size(const struct net_device *dev)
Expand Down
1 change: 1 addition & 0 deletions drivers/net/can/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,7 @@ config CAN_JANZ_ICAN3
config CAN_KVASER_PCIEFD
depends on PCI
tristate "Kvaser PCIe FD cards"
select CRC32
help
This is a driver for the Kvaser PCI Express CAN FD family.

Expand Down
2 changes: 0 additions & 2 deletions drivers/net/can/m_can/m_can.c
Original file line number Diff line number Diff line change
Expand Up @@ -1852,8 +1852,6 @@ EXPORT_SYMBOL_GPL(m_can_class_register);
void m_can_class_unregister(struct m_can_classdev *cdev)
{
unregister_candev(cdev->net);

m_can_clk_stop(cdev);
}
EXPORT_SYMBOL_GPL(m_can_class_unregister);

Expand Down
26 changes: 0 additions & 26 deletions drivers/net/can/m_can/tcan4x5x.c
Original file line number Diff line number Diff line change
Expand Up @@ -131,30 +131,6 @@ static inline struct tcan4x5x_priv *cdev_to_priv(struct m_can_classdev *cdev)

}

static struct can_bittiming_const tcan4x5x_bittiming_const = {
.name = DEVICE_NAME,
.tseg1_min = 2,
.tseg1_max = 31,
.tseg2_min = 2,
.tseg2_max = 16,
.sjw_max = 16,
.brp_min = 1,
.brp_max = 32,
.brp_inc = 1,
};

static struct can_bittiming_const tcan4x5x_data_bittiming_const = {
.name = DEVICE_NAME,
.tseg1_min = 1,
.tseg1_max = 32,
.tseg2_min = 1,
.tseg2_max = 16,
.sjw_max = 16,
.brp_min = 1,
.brp_max = 32,
.brp_inc = 1,
};

static void tcan4x5x_check_wake(struct tcan4x5x_priv *priv)
{
int wake_state = 0;
Expand Down Expand Up @@ -469,8 +445,6 @@ static int tcan4x5x_can_probe(struct spi_device *spi)
mcan_class->dev = &spi->dev;
mcan_class->ops = &tcan4x5x_ops;
mcan_class->is_peripheral = true;
mcan_class->bit_timing = &tcan4x5x_bittiming_const;
mcan_class->data_timing = &tcan4x5x_data_bittiming_const;
mcan_class->net->irq = spi->irq;

spi_set_drvdata(spi, priv);
Expand Down
4 changes: 2 additions & 2 deletions drivers/net/can/rcar/Kconfig
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
# SPDX-License-Identifier: GPL-2.0
config CAN_RCAR
tristate "Renesas R-Car CAN controller"
tristate "Renesas R-Car and RZ/G CAN controller"
depends on ARCH_RENESAS || ARM
help
Say Y here if you want to use CAN controller found on Renesas R-Car
SoCs.
or RZ/G SoCs.

To compile this driver as a module, choose M here: the module will
be called rcar_can.
Expand Down
17 changes: 8 additions & 9 deletions drivers/net/can/spi/mcp251xfd/mcp251xfd-core.c
Original file line number Diff line number Diff line change
Expand Up @@ -1368,13 +1368,10 @@ static int mcp251xfd_handle_tefif(struct mcp251xfd_priv *priv)
struct mcp251xfd_tx_ring *tx_ring = priv->tx;
struct spi_transfer *last_xfer;

tx_ring->tail += len;

/* Increment the TEF FIFO tail pointer 'len' times in
* a single SPI message.
*/

/* Note:
*
* Note:
*
* "cs_change == 1" on the last transfer results in an
* active chip select after the complete SPI
Expand All @@ -1391,6 +1388,8 @@ static int mcp251xfd_handle_tefif(struct mcp251xfd_priv *priv)
if (err)
return err;

tx_ring->tail += len;

err = mcp251xfd_check_tef_tail(priv);
if (err)
return err;
Expand Down Expand Up @@ -1553,10 +1552,8 @@ mcp251xfd_handle_rxif_ring(struct mcp251xfd_priv *priv,

/* Increment the RX FIFO tail pointer 'len' times in a
* single SPI message.
*/
ring->tail += len;

/* Note:
*
* Note:
*
* "cs_change == 1" on the last transfer results in an
* active chip select after the complete SPI
Expand All @@ -1572,6 +1569,8 @@ mcp251xfd_handle_rxif_ring(struct mcp251xfd_priv *priv,
last_xfer->cs_change = 1;
if (err)
return err;

ring->tail += len;
}

return 0;
Expand Down
1 change: 1 addition & 0 deletions drivers/net/dsa/hirschmann/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ config NET_DSA_HIRSCHMANN_HELLCREEK
depends on HAS_IOMEM
depends on NET_DSA
depends on PTP_1588_CLOCK
depends on LEDS_CLASS
select NET_DSA_TAG_HELLCREEK
help
This driver adds support for Hirschmann Hellcreek TSN switches.
7 changes: 4 additions & 3 deletions drivers/net/dsa/lantiq_gswip.c
Original file line number Diff line number Diff line change
Expand Up @@ -1436,11 +1436,12 @@ static void gswip_phylink_validate(struct dsa_switch *ds, int port,
phylink_set(mask, Pause);
phylink_set(mask, Asym_Pause);

/* With the exclusion of MII and Reverse MII, we support Gigabit,
* including Half duplex
/* With the exclusion of MII, Reverse MII and Reduced MII, we
* support Gigabit, including Half duplex
*/
if (state->interface != PHY_INTERFACE_MODE_MII &&
state->interface != PHY_INTERFACE_MODE_REVMII) {
state->interface != PHY_INTERFACE_MODE_REVMII &&
state->interface != PHY_INTERFACE_MODE_RMII) {
phylink_set(mask, 1000baseT_Full);
phylink_set(mask, 1000baseT_Half);
}
Expand Down
Loading