Skip to content

net: dsa: b53: Turn on Broadcom tags

Florian Fainelli netdev 3 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v3 Latest3 patches 4 repliesIn review
  2. v23 patches 3 repliesSuperseded
  3. v13 patches 6 repliesSuperseded

Changes in v3 from the cover letter

- guarded padding with netdev_uses_dsa() to let the non-DSA use cases not have a performance hit for smaller packets

- added missing select NET_DSA_TAG_BRCM to drivers/net/dsa/b53/Kconfig

Patches in v3 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3net: bgmac: Pad packets to a minimum sizedrivers/net/ethernet/broadcom/bgmac.c+16 -01 reply
2/3net: dsa: b53: Stop using dev->cpu_port incorrectlydrivers/net/dsa/b53/b53_common.c+4 -61 reply
3/3net: dsa: b53: Turn on Broadcom tagsdrivers/net/dsa/b53/Kconfig drivers/net/dsa/b53/b53_common.c+40 -91 reply

Reviews trailers per patch

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

PatchAndrew Lunn
1/3R-b
2/3R-b
3/3R-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/3] net: dsa: b53: Turn on Broadcom tags

Hi all,

This was long overdue, with this patch series, the b53 driver now turns on Broadcom tags except for 5325 and 5365 which use an older format that we do not support yet (TBD).

First patch is necessary in order for bgmac, used on BCM5301X and Northstar Plus to work correctly and successfully send ARP packets back to the requsester.

Second patch is actually a bug fix, but because net/master and net-next/master diverge in that area, I am targeting net-next/master here.

Finally, the last patch enables Broadcom tags after checking that the CPU port selected is either, 5, 7 or 8, since those are the only valid combinations given currently supported HW.

Changes in v3:

- guarded padding with netdev_uses_dsa() to let the non-DSA use cases not have a performance hit for smaller packets

- added missing select NET_DSA_TAG_BRCM to drivers/net/dsa/b53/Kconfig

Changes in v2:

- moved a hunk between patch 2 and patch 3 to avoid a bisectability issue

Florian Fainelli (3):
net: bgmac: Pad packets to a minimum size
net: dsa: b53: Stop using dev->cpu_port incorrectly
net: dsa: b53: Turn on Broadcom tags

 drivers/net/dsa/b53/Kconfig           |  1 +
 drivers/net/dsa/b53/b53_common.c      | 58 ++++++++++++++++++++++++++---------
 drivers/net/ethernet/broadcom/bgmac.c | 16 ++++++++++
 3 files changed, 60 insertions(+), 15 deletions(-)
Signature · 1 line
2.9.3