Lines Matching refs:nlh

204 	struct nlmsghdr *nlh;  in dcbnl_newmsg()  local
210 nlh = nlmsg_put(skb, port, seq, type, sizeof(*dcb), flags); in dcbnl_newmsg()
211 BUG_ON(!nlh); in dcbnl_newmsg()
213 dcb = nlmsg_data(nlh); in dcbnl_newmsg()
219 *nlhp = nlh; in dcbnl_newmsg()
224 static int dcbnl_getstate(struct net_device *netdev, struct nlmsghdr *nlh, in dcbnl_getstate() argument
235 static int dcbnl_getpfccfg(struct net_device *netdev, struct nlmsghdr *nlh, in dcbnl_getpfccfg() argument
280 static int dcbnl_getperm_hwaddr(struct net_device *netdev, struct nlmsghdr *nlh, in dcbnl_getperm_hwaddr() argument
294 static int dcbnl_getcap(struct net_device *netdev, struct nlmsghdr *nlh, in dcbnl_getcap() argument
338 static int dcbnl_getnumtcs(struct net_device *netdev, struct nlmsghdr *nlh, in dcbnl_getnumtcs() argument
384 static int dcbnl_setnumtcs(struct net_device *netdev, struct nlmsghdr *nlh, in dcbnl_setnumtcs() argument
417 static int dcbnl_getpfcstate(struct net_device *netdev, struct nlmsghdr *nlh, in dcbnl_getpfcstate() argument
427 static int dcbnl_setpfcstate(struct net_device *netdev, struct nlmsghdr *nlh, in dcbnl_setpfcstate() argument
445 static int dcbnl_getapp(struct net_device *netdev, struct nlmsghdr *nlh, in dcbnl_getapp() argument
514 static int dcbnl_setapp(struct net_device *netdev, struct nlmsghdr *nlh, in dcbnl_setapp() argument
563 static int __dcbnl_pg_getcfg(struct net_device *netdev, struct nlmsghdr *nlh, in __dcbnl_pg_getcfg() argument
697 static int dcbnl_pgtx_getcfg(struct net_device *netdev, struct nlmsghdr *nlh, in dcbnl_pgtx_getcfg() argument
700 return __dcbnl_pg_getcfg(netdev, nlh, tb, skb, 0); in dcbnl_pgtx_getcfg()
703 static int dcbnl_pgrx_getcfg(struct net_device *netdev, struct nlmsghdr *nlh, in dcbnl_pgrx_getcfg() argument
706 return __dcbnl_pg_getcfg(netdev, nlh, tb, skb, 1); in dcbnl_pgrx_getcfg()
709 static int dcbnl_setstate(struct net_device *netdev, struct nlmsghdr *nlh, in dcbnl_setstate() argument
726 static int dcbnl_setpfccfg(struct net_device *netdev, struct nlmsghdr *nlh, in dcbnl_setpfccfg() argument
757 static int dcbnl_setall(struct net_device *netdev, struct nlmsghdr *nlh, in dcbnl_setall() argument
775 static int __dcbnl_pg_setcfg(struct net_device *netdev, struct nlmsghdr *nlh, in __dcbnl_pg_setcfg() argument
865 static int dcbnl_pgtx_setcfg(struct net_device *netdev, struct nlmsghdr *nlh, in dcbnl_pgtx_setcfg() argument
868 return __dcbnl_pg_setcfg(netdev, nlh, seq, tb, skb, 0); in dcbnl_pgtx_setcfg()
871 static int dcbnl_pgrx_setcfg(struct net_device *netdev, struct nlmsghdr *nlh, in dcbnl_pgrx_setcfg() argument
874 return __dcbnl_pg_setcfg(netdev, nlh, seq, tb, skb, 1); in dcbnl_pgrx_setcfg()
877 static int dcbnl_bcn_getcfg(struct net_device *netdev, struct nlmsghdr *nlh, in dcbnl_bcn_getcfg() argument
938 static int dcbnl_bcn_setcfg(struct net_device *netdev, struct nlmsghdr *nlh, in dcbnl_bcn_setcfg() argument
1367 struct nlmsghdr *nlh; in dcbnl_notify() local
1374 skb = dcbnl_newmsg(event, cmd, portid, seq, 0, &nlh); in dcbnl_notify()
1389 nlmsg_end(skb, nlh); in dcbnl_notify()
1416 static int dcbnl_ieee_set(struct net_device *netdev, struct nlmsghdr *nlh, in dcbnl_ieee_set() argument
1489 static int dcbnl_ieee_get(struct net_device *netdev, struct nlmsghdr *nlh, in dcbnl_ieee_get() argument
1500 static int dcbnl_ieee_del(struct net_device *netdev, struct nlmsghdr *nlh, in dcbnl_ieee_del() argument
1545 static int dcbnl_getdcbx(struct net_device *netdev, struct nlmsghdr *nlh, in dcbnl_getdcbx() argument
1555 static int dcbnl_setdcbx(struct net_device *netdev, struct nlmsghdr *nlh, in dcbnl_setdcbx() argument
1572 static int dcbnl_getfeatcfg(struct net_device *netdev, struct nlmsghdr *nlh, in dcbnl_getfeatcfg() argument
1617 static int dcbnl_setfeatcfg(struct net_device *netdev, struct nlmsghdr *nlh, in dcbnl_setfeatcfg() argument
1654 static int dcbnl_cee_get(struct net_device *netdev, struct nlmsghdr *nlh, in dcbnl_cee_get() argument
1704 static int dcb_doit(struct sk_buff *skb, struct nlmsghdr *nlh) in dcb_doit() argument
1708 struct dcbmsg *dcb = nlmsg_data(nlh); in dcb_doit()
1716 if ((nlh->nlmsg_type == RTM_SETDCB) && !netlink_capable(skb, CAP_NET_ADMIN)) in dcb_doit()
1719 ret = nlmsg_parse(nlh, sizeof(*dcb), tb, DCB_ATTR_MAX, in dcb_doit()
1742 reply_skb = dcbnl_newmsg(fn->type, dcb->cmd, portid, nlh->nlmsg_seq, in dcb_doit()
1743 nlh->nlmsg_flags, &reply_nlh); in dcb_doit()
1747 ret = fn->cb(netdev, nlh, nlh->nlmsg_seq, tb, reply_skb); in dcb_doit()