// SPDX-License-Identifier: GPL-2.0+ /* * net/dsa/tag_trailer.c - Trailer tag format handling * Copyright (c) 2008-2009 Marvell Semiconductor */ #include <linux/etherdevice.h> #include <linux/list.h> #include <linux/slab.h> #include "tag.h" #define TRAILER_NAME … static struct sk_buff *trailer_xmit(struct sk_buff *skb, struct net_device *dev) { … } static struct sk_buff *trailer_rcv(struct sk_buff *skb, struct net_device *dev) { … } static const struct dsa_device_ops trailer_netdev_ops = …; MODULE_DESCRIPTION(…) …; MODULE_LICENSE(…) …; MODULE_ALIAS_DSA_TAG_DRIVER(…); module_dsa_tag_driver(trailer_netdev_ops);