net: dsa: move tagging protocol code to tag.{c,h}

It would be nice if tagging protocol drivers could include just the
header they need, since they are (mostly) data path and isolated from
most of the other DSA core code does.

Create a tag.c and a tag.h file which are meant to support tagging
protocol drivers.

Signed-off-by: Vladimir Oltean <vladimir.oltean@nxp.com>
Reviewed-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
This commit is contained in:
Vladimir Oltean
2022-11-21 15:55:47 +02:00
committed by Jakub Kicinski
parent 09f9234168
commit bd954b8260
27 changed files with 581 additions and 541 deletions

View File

@ -26,6 +26,7 @@
#include "port.h"
#include "master.h"
#include "slave.h"
#include "tag.h"
static void dsa_slave_standalone_event_work(struct work_struct *work)
{