Skip to content

bcm63xx_enet: major makeover of driver

Sieng Piaw Liew linux-arm-kernel lkml netdev 3 versions – Applied

Status from this message: Applied, thanks!

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v3 Latest7 patches 9 repliesApplied
  2. v26 patches 8 repliesSuperseded
  3. v11 patch 3 repliesSuperseded

Changes in v3 from the cover letter

* Simplify xmit_more patch by not moving around the code needlessly.
* Fix indentation in xmit_more patch.
* Fix indentation in build_skb patch.
* Split rx ring cleanup patch from build_skb patch and precede build_skb patch for better understanding, as suggested by Florian Fainelli.

Patches in v3 Applied

#Subject and filesSizeRepliesApplied
1/7bcm63xx_enet: batch process rx pathdrivers/net/ethernet/broadcom/bcm63xx_enet.c+5 -11 reply
2/7bcm63xx_enet: add BQL supportdrivers/net/ethernet/broadcom/bcm63xx_enet.c+9 -01 reply
3/7bcm63xx_enet: add xmit_more supportdrivers/net/ethernet/broadcom/bcm63xx_enet.c+2 -11 reply
4/7bcm63xx_enet: alloc rx skb with NET_IP_ALIGNdrivers/net/ethernet/broadcom/bcm63xx_enet.c+4 -11 reply
5/7bcm63xx_enet: consolidate rx SKB ring cleanup codedrivers/net/ethernet/broadcom/bcm63xx_enet.c+22 -501 reply
6/7bcm63xx_enet: convert to build_skbdrivers/net/ethernet/broadcom/bcm63xx_enet.c drivers/net/ethernet/broadcom/bcm63xx_enet.h+71 -541 reply
7/7bcm63xx_enet: improve rx loopdrivers/net/ethernet/broadcom/bcm63xx_enet.c+2 -21 reply

Reviews trailers per patch

All 7 patches have a Reviewed-by or Acked-by.

PatchFlorian Fainelli
1/7A-b
2/7A-b
3/7A-b
4/7A-b
5/7A-b
6/7A-b
7/7A-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v3 thread

Cover letter [PATCH net-next v3 0/7] bcm63xx_enet: major makeover of driver

This patch series aim to improve the bcm63xx_enet driver by integrating the latest networking features, i.e. batched rx processing, BQL, build_skb, etc.

The newer enetsw SoCs are found to be able to do unaligned rx DMA by adding NET_IP_ALIGN padding which, combined with these patches, improved packet processing performance by ~50% on BCM6328.

Older non-enetsw SoCs still benefit mainly from rx batching. Performance improvement of ~30% is observed on BCM6333.

The BCM63xx SoCs are designed for routers. As such, having BQL is beneficial as well as trivial to add.

v3:
* Simplify xmit_more patch by not moving around the code needlessly.
* Fix indentation in xmit_more patch.
* Fix indentation in build_skb patch.
* Split rx ring cleanup patch from build_skb patch and precede build_skb patch for better understanding, as suggested by Florian Fainelli.

v2:
* Add xmit_more support and rx loop improvisation patches.
* Moved BQL netdev_reset_queue() to bcm_enet_stop()/bcm_enetsw_stop() functions as suggested by Florian Fainelli.
* Improved commit messages.

Sieng Piaw Liew (7):
bcm63xx_enet: batch process rx path
bcm63xx_enet: add BQL support
bcm63xx_enet: add xmit_more support
bcm63xx_enet: alloc rx skb with NET_IP_ALIGN
bcm63xx_enet: consolidate rx SKB ring cleanup code
bcm63xx_enet: convert to build_skb
bcm63xx_enet: improve rx loop

 drivers/net/ethernet/broadcom/bcm63xx_enet.c | 186 +++++++++----------
 drivers/net/ethernet/broadcom/bcm63xx_enet.h |  14 +-
 2 files changed, 103 insertions(+), 97 deletions(-)
Signature · 1 line
2.17.1