// SPDX-License-Identifier: GPL-2.0 /* Copyright 2022 NXP */ #include <linux/netdevice.h> #include <net/rtnetlink.h> #include "netlink.h" #include "user.h" static const struct nla_policy dsa_policy[IFLA_DSA_MAX + 1] = …; static int dsa_changelink(struct net_device *dev, struct nlattr *tb[], struct nlattr *data[], struct netlink_ext_ack *extack) { … } static size_t dsa_get_size(const struct net_device *dev) { … } static int dsa_fill_info(struct sk_buff *skb, const struct net_device *dev) { … } struct rtnl_link_ops dsa_link_ops __read_mostly = …;