#include <linux/bitfield.h>
#include <linux/etherdevice.h>
#include "tag.h"
#define AR9331_NAME …
#define AR9331_HDR_LEN …
#define AR9331_HDR_VERSION …
#define AR9331_HDR_VERSION_MASK …
#define AR9331_HDR_PRIORITY_MASK …
#define AR9331_HDR_TYPE_MASK …
#define AR9331_HDR_BROADCAST …
#define AR9331_HDR_FROM_CPU …
#define AR9331_HDR_RESERVED_MASK …
#define AR9331_HDR_PORT_NUM_MASK …
static struct sk_buff *ar9331_tag_xmit(struct sk_buff *skb,
struct net_device *dev)
{ … }
static struct sk_buff *ar9331_tag_rcv(struct sk_buff *skb,
struct net_device *ndev)
{ … }
static const struct dsa_device_ops ar9331_netdev_ops = …;
MODULE_DESCRIPTION(…) …;
MODULE_LICENSE(…) …;
MODULE_ALIAS_DSA_TAG_DRIVER(…);
module_dsa_tag_driver(ar9331_netdev_ops);