linux/net/dsa/tag_ar9331.c

// SPDX-License-Identifier: GPL-2.0
/*
 * Copyright (c) 2019 Pengutronix, Oleksij Rempel <[email protected]>
 */


#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
/* AR9331_HDR_RESERVED - not used or may be version field.
 * According to the AR8216 doc it should 0b10. On AR9331 it is 0b11 on RX path
 * and should be set to 0b11 to make it work.
 */
#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);