linux/net/dsa/tag_mtk.c

// SPDX-License-Identifier: GPL-2.0
/*
 * Mediatek DSA Tag support
 * Copyright (C) 2017 Landen Chao <[email protected]>
 *		      Sean Wang <[email protected]>
 */

#include <linux/etherdevice.h>
#include <linux/if_vlan.h>

#include "tag.h"

#define MTK_NAME

#define MTK_HDR_LEN
#define MTK_HDR_XMIT_UNTAGGED
#define MTK_HDR_XMIT_TAGGED_TPID_8100
#define MTK_HDR_XMIT_TAGGED_TPID_88A8
#define MTK_HDR_RECV_SOURCE_PORT_MASK
#define MTK_HDR_XMIT_DP_BIT_MASK
#define MTK_HDR_XMIT_SA_DIS

static struct sk_buff *mtk_tag_xmit(struct sk_buff *skb,
				    struct net_device *dev)
{}

static struct sk_buff *mtk_tag_rcv(struct sk_buff *skb, struct net_device *dev)
{}

static const struct dsa_device_ops mtk_netdev_ops =;

MODULE_DESCRIPTION();
MODULE_LICENSE();
MODULE_ALIAS_DSA_TAG_DRIVER();

module_dsa_tag_driver(mtk_netdev_ops);