Hi all, This patch series does factor the common code found in all tag implementations into dsa_switch_rcv(). The original motivation was to add GRO support, but this may be a lot of work with unclear benefits at this point.
Changes in v2: - take care of tag_mtk.c in the process Florian Fainelli (3): net: dsa: Do not check for NULL dst in tag parsers net: dsa: Move skb_unshare() to dsa_switch_rcv() net: dsa: Factor bottom tag receive functions include/net/dsa.h | 2 +- net/dsa/dsa.c | 24 +++++++++++++++++++++++- net/dsa/dsa_priv.h | 5 +++-- net/dsa/tag_brcm.c | 26 +++++--------------------- net/dsa/tag_dsa.c | 26 +++++--------------------- net/dsa/tag_edsa.c | 26 +++++--------------------- net/dsa/tag_mtk.c | 28 +++++----------------------- net/dsa/tag_qca.c | 26 +++++--------------------- net/dsa/tag_trailer.c | 25 +++++-------------------- 9 files changed, 57 insertions(+), 131 deletions(-) -- 2.9.3