drm/tests: hdmi: Fix memory leaks in drm_display_mode_from_cea_vic()
[drm/drm-misc.git] / net / dsa / tag_none.c
blobe9c9670a9c44af8a9e991904d5f3a63ce8e2c5a6
1 // SPDX-License-Identifier: GPL-2.0-or-later
2 /*
3 * net/dsa/tag_none.c - Traffic handling for switches with no tag
4 * Copyright (c) 2008-2009 Marvell Semiconductor
5 * Copyright (c) 2013 Florian Fainelli <florian@openwrt.org>
7 * WARNING: do not use this for new switches. In case of no hardware
8 * tagging support, look at tag_8021q.c instead.
9 */
11 #include "tag.h"
13 #define NONE_NAME "none"
15 static struct sk_buff *dsa_user_notag_xmit(struct sk_buff *skb,
16 struct net_device *dev)
18 /* Just return the original SKB */
19 return skb;
22 static const struct dsa_device_ops none_ops = {
23 .name = NONE_NAME,
24 .proto = DSA_TAG_PROTO_NONE,
25 .xmit = dsa_user_notag_xmit,
28 module_dsa_tag_driver(none_ops);
29 MODULE_ALIAS_DSA_TAG_DRIVER(DSA_TAG_PROTO_NONE, NONE_NAME);
30 MODULE_DESCRIPTION("DSA no-op tag driver");
31 MODULE_LICENSE("GPL");