mbox series

[net-next,0/4] net: dsa: b53: Support prepended Broadcom tags

Message ID 20171110232255.2462-1-f.fainelli@gmail.com
Headers show
Series net: dsa: b53: Support prepended Broadcom tags | expand

Message

Florian Fainelli Nov. 10, 2017, 11:22 p.m. UTC
Hi all,

This patch series adds support for prepended 4-bytes Broadcom tags that we
already support. This type of tag will typically be used when interfaced to
a SoC like BCM58xx (NorthStar Plus) which supports a Flow Accelerator (WIP).
In that case, we need to support a slightly different tagging format.

The first patch does a bit of re-factoring and passes a port index to
the get_tag_protocol() function since at least two different drivers need
that type of information (mt7530, b53) to support tagging or not.

David, this is on top of my previous patch series:

[PATCH net-next v3 0/3] net: dsa: b53: Turn on Broadcom tags

Thank you!

Florian Fainelli (4):
  net: dsa: Pass a port to get_tag_protocol()
  net: dsa: tag_brcm: Prepare for supporting prepended tag
  net: dsa: Support prepended Broadcom tag
  net: dsa: b53: Support prepended Broadcom tags

 drivers/net/dsa/b53/Kconfig            |  1 +
 drivers/net/dsa/b53/b53_common.c       | 42 ++++++++++----------
 drivers/net/dsa/bcm_sf2.c              |  3 +-
 drivers/net/dsa/dsa_loop.c             |  3 +-
 drivers/net/dsa/lan9303-core.c         |  3 +-
 drivers/net/dsa/microchip/ksz_common.c |  3 +-
 drivers/net/dsa/mt7530.c               |  4 +-
 drivers/net/dsa/mv88e6060.c            |  3 +-
 drivers/net/dsa/mv88e6xxx/chip.c       |  3 +-
 drivers/net/dsa/qca8k.c                |  2 +-
 include/net/dsa.h                      |  4 +-
 net/dsa/Kconfig                        |  3 ++
 net/dsa/Makefile                       |  1 +
 net/dsa/dsa.c                          |  3 ++
 net/dsa/dsa2.c                         |  2 +-
 net/dsa/dsa_priv.h                     |  1 +
 net/dsa/legacy.c                       |  2 +-
 net/dsa/tag_brcm.c                     | 70 ++++++++++++++++++++++++++++------
 18 files changed, 109 insertions(+), 44 deletions(-)

Comments

David Miller Nov. 13, 2017, 1:35 a.m. UTC | #1
From: Florian Fainelli <f.fainelli@gmail.com>
Date: Fri, 10 Nov 2017 15:22:51 -0800

> This patch series adds support for prepended 4-bytes Broadcom tags that we
> already support. This type of tag will typically be used when interfaced to
> a SoC like BCM58xx (NorthStar Plus) which supports a Flow Accelerator (WIP).
> In that case, we need to support a slightly different tagging format.
> 
> The first patch does a bit of re-factoring and passes a port index to
> the get_tag_protocol() function since at least two different drivers need
> that type of information (mt7530, b53) to support tagging or not.

Series applied, thanks Florian.