[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20210810131356.1655069-1-vladimir.oltean@nxp.com>
Date: Tue, 10 Aug 2021 16:13:52 +0300
From: Vladimir Oltean <vladimir.oltean@....com>
To: netdev@...r.kernel.org, Jakub Kicinski <kuba@...nel.org>,
"David S. Miller" <davem@...emloft.net>
Cc: Andrew Lunn <andrew@...n.ch>,
Florian Fainelli <f.fainelli@...il.com>,
Vivien Didelot <vivien.didelot@...il.com>,
Vladimir Oltean <olteanv@...il.com>,
Linus Walleij <linus.walleij@...aro.org>,
DENG Qingfang <dqfext@...il.com>,
John Crispin <john@...ozen.org>,
Sean Wang <sean.wang@...iatek.com>,
Landen Chao <Landen.Chao@...iatek.com>
Subject: [PATCH v2 net-next 0/4] DSA tagger helpers
The goal of this series is to minimize the use of memmove and skb->data
in the DSA tagging protocol drivers. Unfiltered access to this level of
information is not very friendly to drive-by contributors, and sometimes
is also not the easiest to review.
For starters, I have converted the most common form of DSA tagging
protocols: the DSA headers which are placed where the EtherType is.
The helper functions introduced by this series are:
- dsa_alloc_etype_header
- dsa_strip_etype_header
- dsa_etype_header_pos_rx
- dsa_etype_header_pos_tx
This series is just a resend as non-RFC of v1.
Vladimir Oltean (4):
net: dsa: create a helper that strips EtherType DSA headers on RX
net: dsa: create a helper which allocates space for EtherType DSA
headers
net: dsa: create a helper for locating EtherType DSA headers on RX
net: dsa: create a helper for locating EtherType DSA headers on TX
net/dsa/dsa_priv.h | 78 +++++++++++++++++++++++++++++++++++++++++++
net/dsa/tag_brcm.c | 16 +++------
net/dsa/tag_dsa.c | 20 +++++------
net/dsa/tag_lan9303.c | 18 ++++------
net/dsa/tag_mtk.c | 14 +++-----
net/dsa/tag_qca.c | 13 +++-----
net/dsa/tag_rtl4_a.c | 16 +++------
net/dsa/tag_sja1105.c | 25 +++++---------
8 files changed, 119 insertions(+), 81 deletions(-)
--
2.25.1
Powered by blists - more mailing lists