#include <linux/dsa/8021q.h>
#include <linux/dsa/ocelot.h>
#include "tag.h"
#include "tag_8021q.h"
#define OCELOT_8021Q_NAME …
struct ocelot_8021q_tagger_private { … };
static struct sk_buff *ocelot_defer_xmit(struct dsa_port *dp,
struct sk_buff *skb)
{ … }
static struct sk_buff *ocelot_xmit(struct sk_buff *skb,
struct net_device *netdev)
{ … }
static struct sk_buff *ocelot_rcv(struct sk_buff *skb,
struct net_device *netdev)
{ … }
static void ocelot_disconnect(struct dsa_switch *ds)
{ … }
static int ocelot_connect(struct dsa_switch *ds)
{ … }
static const struct dsa_device_ops ocelot_8021q_netdev_ops = …;
MODULE_DESCRIPTION(…) …;
MODULE_LICENSE(…) …;
MODULE_ALIAS_DSA_TAG_DRIVER(…);
module_dsa_tag_driver(ocelot_8021q_netdev_ops);