netlink.c (29583dfcd2dd72c766422bd05c16f06c6b1fb356) netlink.c (09f92341681a23346c456938bcb2670de2cd99d4)
1// SPDX-License-Identifier: GPL-2.0
2/* Copyright 2022 NXP
3 */
4#include <linux/netdevice.h>
5#include <net/rtnetlink.h>
6
7#include "dsa_priv.h"
1// SPDX-License-Identifier: GPL-2.0
2/* Copyright 2022 NXP
3 */
4#include <linux/netdevice.h>
5#include <net/rtnetlink.h>
6
7#include "dsa_priv.h"
8#include "slave.h"
8
9static const struct nla_policy dsa_policy[IFLA_DSA_MAX + 1] = {
10 [IFLA_DSA_MASTER] = { .type = NLA_U32 },
11};
12
13static int dsa_changelink(struct net_device *dev, struct nlattr *tb[],
14 struct nlattr *data[],
15 struct netlink_ext_ack *extack)

--- 48 unchanged lines hidden ---
9
10static const struct nla_policy dsa_policy[IFLA_DSA_MAX + 1] = {
11 [IFLA_DSA_MASTER] = { .type = NLA_U32 },
12};
13
14static int dsa_changelink(struct net_device *dev, struct nlattr *tb[],
15 struct nlattr *data[],
16 struct netlink_ext_ack *extack)

--- 48 unchanged lines hidden ---