aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--net/dcb/dcbnl.c37
1 files changed, 0 insertions, 37 deletions
diff --git a/net/dcb/dcbnl.c b/net/dcb/dcbnl.c
index 5e392b85d48..5ed71674a4a 100644
--- a/net/dcb/dcbnl.c
+++ b/net/dcb/dcbnl.c
@@ -224,43 +224,6 @@ static struct sk_buff *dcbnl_newmsg(int type, u8 cmd, u32 port, u32 seq,
224 return skb; 224 return skb;
225} 225}
226 226
227/* standard netlink reply call */
228static int dcbnl_reply(u8 value, u8 event, u8 cmd, u8 attr, u32 pid,
229 u32 seq, u16 flags)
230{
231 struct sk_buff *dcbnl_skb;
232 struct dcbmsg *dcb;
233 struct nlmsghdr *nlh;
234 int ret = -EINVAL;
235
236 dcbnl_skb = nlmsg_new(NLMSG_DEFAULT_SIZE, GFP_KERNEL);
237 if (!dcbnl_skb)
238 return ret;
239
240 nlh = NLMSG_NEW(dcbnl_skb, pid, seq, event, sizeof(*dcb), flags);
241
242 dcb = NLMSG_DATA(nlh);
243 dcb->dcb_family = AF_UNSPEC;
244 dcb->cmd = cmd;
245 dcb->dcb_pad = 0;
246
247 ret = nla_put_u8(dcbnl_skb, attr, value);
248 if (ret)
249 goto err;
250
251 /* end the message, assign the nlmsg_len. */
252 nlmsg_end(dcbnl_skb, nlh);
253 ret = rtnl_unicast(dcbnl_skb, &init_net, pid);
254 if (ret)
255 return -EINVAL;
256
257 return 0;
258nlmsg_failure:
259err:
260 kfree_skb(dcbnl_skb);
261 return ret;
262}
263
264static int dcbnl_getstate(struct net_device *netdev, struct nlmsghdr *nlh, 227static int dcbnl_getstate(struct net_device *netdev, struct nlmsghdr *nlh,
265 u32 seq, struct nlattr **tb, struct sk_buff *skb) 228 u32 seq, struct nlattr **tb, struct sk_buff *skb)
266{ 229{