[NETLINK]: Convert netlink users to use group numbers instead of bitmasks
Signed-off-by: Patrick McHardy <kaber@trash.net> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
committed by
David S. Miller
parent
d629b836d1
commit
ac6d439d20
@@ -148,7 +148,7 @@ int rtnetlink_send(struct sk_buff *skb, u32 pid, unsigned group, int echo)
|
||||
{
|
||||
int err = 0;
|
||||
|
||||
NETLINK_CB(skb).dst_groups = group;
|
||||
NETLINK_CB(skb).dst_group = group;
|
||||
if (echo)
|
||||
atomic_inc(&skb->users);
|
||||
netlink_broadcast(rtnl, skb, pid, group, GFP_KERNEL);
|
||||
@@ -458,8 +458,8 @@ void rtmsg_ifinfo(int type, struct net_device *dev, unsigned change)
|
||||
kfree_skb(skb);
|
||||
return;
|
||||
}
|
||||
NETLINK_CB(skb).dst_groups = RTMGRP_LINK;
|
||||
netlink_broadcast(rtnl, skb, 0, RTMGRP_LINK, GFP_KERNEL);
|
||||
NETLINK_CB(skb).dst_group = RTNLGRP_LINK;
|
||||
netlink_broadcast(rtnl, skb, 0, RTNLGRP_LINK, GFP_KERNEL);
|
||||
}
|
||||
|
||||
static int rtnetlink_done(struct netlink_callback *cb)
|
||||
|
Reference in New Issue
Block a user