mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 19:21:31 -04:00
bridge: add flags argument to ndo_bridge_setlink and ndo_bridge_dellink
bridge flags are needed inside ndo_bridge_setlink/dellink handlers to avoid another call to parse IFLA_AF_SPEC inside these handlers This is used later in this series Signed-off-by: Roopa Prabhu <[email protected]> Signed-off-by: David S. Miller <[email protected]>
This commit is contained in:
parent
aafb3e98b2
commit
add511b382
7 changed files with 18 additions and 13 deletions
|
|
@ -494,7 +494,7 @@ static int br_setport(struct net_bridge_port *p, struct nlattr *tb[])
|
|||
}
|
||||
|
||||
/* Change state and parameters on port. */
|
||||
int br_setlink(struct net_device *dev, struct nlmsghdr *nlh)
|
||||
int br_setlink(struct net_device *dev, struct nlmsghdr *nlh, u16 flags)
|
||||
{
|
||||
struct nlattr *protinfo;
|
||||
struct nlattr *afspec;
|
||||
|
|
@ -550,7 +550,7 @@ out:
|
|||
}
|
||||
|
||||
/* Delete port information */
|
||||
int br_dellink(struct net_device *dev, struct nlmsghdr *nlh)
|
||||
int br_dellink(struct net_device *dev, struct nlmsghdr *nlh, u16 flags)
|
||||
{
|
||||
struct nlattr *afspec;
|
||||
struct net_bridge_port *p;
|
||||
|
|
|
|||
|
|
@ -819,8 +819,8 @@ extern struct rtnl_link_ops br_link_ops;
|
|||
int br_netlink_init(void);
|
||||
void br_netlink_fini(void);
|
||||
void br_ifinfo_notify(int event, struct net_bridge_port *port);
|
||||
int br_setlink(struct net_device *dev, struct nlmsghdr *nlmsg);
|
||||
int br_dellink(struct net_device *dev, struct nlmsghdr *nlmsg);
|
||||
int br_setlink(struct net_device *dev, struct nlmsghdr *nlmsg, u16 flags);
|
||||
int br_dellink(struct net_device *dev, struct nlmsghdr *nlmsg, u16 flags);
|
||||
int br_getlink(struct sk_buff *skb, u32 pid, u32 seq, struct net_device *dev,
|
||||
u32 filter_mask);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue