Skip to content

net: lantiq_xrx200: fix errors under memory pressure

Aleksander Jan Bajkowski lkml netdev 3 versions – Applied

Status from this message: This series was applied to netdev/net.git (master)

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v3 Latest3 patches 0 repliesApplied 3/3
  2. v23 patches 1 replySuperseded
  3. v12 patches 1 replySuperseded

Changes in v3 from the cover letter

- removed netdev_err() log from the first patch

Patches in v3 All 3 applied

#Subject and filesSizeRepliesApplied
1/3net: lantiq_xrx200: confirm skb is allocated before usingdrivers/net/ethernet/lantiq_xrx200.c+6 -00 repliesApplied
2/3net: lantiq_xrx200: fix lock under memory pressuredrivers/net/ethernet/lantiq_xrx200.c+1 -10 repliesApplied
3/3net: lantiq_xrx200: restore buffer if memory allocation faileddrivers/net/ethernet/lantiq_xrx200.c+1 -00 repliesApplied

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v3 yet.

Read the v3 thread

Cover letter [PATCH net v3 0/3] net: lantiq_xrx200: fix errors under memory pressure

This series fixes issues that can occur in the driver under memory pressure. Situations when the system cannot allocate memory are rare, so the mentioned bugs have been fixed recently. The patches have been tested on a BT Home router with the Lantiq xRX200 chipset.

Changelog:

v3:
- removed netdev_err() log from the first patch

v2:
- the second patch has been changed, so that under memory pressure situation the driver will not receive packets indefinitely regardless of the NAPI budget,
- the third patch has been added.

Aleksander Jan Bajkowski (3):
net: lantiq_xrx200: confirm skb is allocated before using
net: lantiq_xrx200: fix lock under memory pressure
net: lantiq_xrx200: restore buffer if memory allocation failed

 drivers/net/ethernet/lantiq_xrx200.c | 9 ++++++++-
 1 file changed, 8 insertions(+), 1 deletion(-)
Signature · 1 line
2.30.2