Lines Matching refs:nlh
201 struct nlmsghdr *nlh; in dcbnl_newmsg() local
207 nlh = nlmsg_put(skb, port, seq, type, sizeof(*dcb), flags); in dcbnl_newmsg()
208 BUG_ON(!nlh); in dcbnl_newmsg()
210 dcb = nlmsg_data(nlh); in dcbnl_newmsg()
216 *nlhp = nlh; in dcbnl_newmsg()
221 static int dcbnl_getstate(struct net_device *netdev, struct nlmsghdr *nlh, in dcbnl_getstate() argument
232 static int dcbnl_getpfccfg(struct net_device *netdev, struct nlmsghdr *nlh, in dcbnl_getpfccfg() argument
277 static int dcbnl_getperm_hwaddr(struct net_device *netdev, struct nlmsghdr *nlh, in dcbnl_getperm_hwaddr() argument
291 static int dcbnl_getcap(struct net_device *netdev, struct nlmsghdr *nlh, in dcbnl_getcap() argument
335 static int dcbnl_getnumtcs(struct net_device *netdev, struct nlmsghdr *nlh, in dcbnl_getnumtcs() argument
381 static int dcbnl_setnumtcs(struct net_device *netdev, struct nlmsghdr *nlh, in dcbnl_setnumtcs() argument
414 static int dcbnl_getpfcstate(struct net_device *netdev, struct nlmsghdr *nlh, in dcbnl_getpfcstate() argument
424 static int dcbnl_setpfcstate(struct net_device *netdev, struct nlmsghdr *nlh, in dcbnl_setpfcstate() argument
442 static int dcbnl_getapp(struct net_device *netdev, struct nlmsghdr *nlh, in dcbnl_getapp() argument
511 static int dcbnl_setapp(struct net_device *netdev, struct nlmsghdr *nlh, in dcbnl_setapp() argument
560 static int __dcbnl_pg_getcfg(struct net_device *netdev, struct nlmsghdr *nlh, in __dcbnl_pg_getcfg() argument
694 static int dcbnl_pgtx_getcfg(struct net_device *netdev, struct nlmsghdr *nlh, in dcbnl_pgtx_getcfg() argument
697 return __dcbnl_pg_getcfg(netdev, nlh, tb, skb, 0); in dcbnl_pgtx_getcfg()
700 static int dcbnl_pgrx_getcfg(struct net_device *netdev, struct nlmsghdr *nlh, in dcbnl_pgrx_getcfg() argument
703 return __dcbnl_pg_getcfg(netdev, nlh, tb, skb, 1); in dcbnl_pgrx_getcfg()
706 static int dcbnl_setstate(struct net_device *netdev, struct nlmsghdr *nlh, in dcbnl_setstate() argument
723 static int dcbnl_setpfccfg(struct net_device *netdev, struct nlmsghdr *nlh, in dcbnl_setpfccfg() argument
754 static int dcbnl_setall(struct net_device *netdev, struct nlmsghdr *nlh, in dcbnl_setall() argument
772 static int __dcbnl_pg_setcfg(struct net_device *netdev, struct nlmsghdr *nlh, in __dcbnl_pg_setcfg() argument
862 static int dcbnl_pgtx_setcfg(struct net_device *netdev, struct nlmsghdr *nlh, in dcbnl_pgtx_setcfg() argument
865 return __dcbnl_pg_setcfg(netdev, nlh, seq, tb, skb, 0); in dcbnl_pgtx_setcfg()
868 static int dcbnl_pgrx_setcfg(struct net_device *netdev, struct nlmsghdr *nlh, in dcbnl_pgrx_setcfg() argument
871 return __dcbnl_pg_setcfg(netdev, nlh, seq, tb, skb, 1); in dcbnl_pgrx_setcfg()
874 static int dcbnl_bcn_getcfg(struct net_device *netdev, struct nlmsghdr *nlh, in dcbnl_bcn_getcfg() argument
935 static int dcbnl_bcn_setcfg(struct net_device *netdev, struct nlmsghdr *nlh, in dcbnl_bcn_setcfg() argument
1364 struct nlmsghdr *nlh; in dcbnl_notify() local
1371 skb = dcbnl_newmsg(event, cmd, portid, seq, 0, &nlh); in dcbnl_notify()
1386 nlmsg_end(skb, nlh); in dcbnl_notify()
1413 static int dcbnl_ieee_set(struct net_device *netdev, struct nlmsghdr *nlh, in dcbnl_ieee_set() argument
1486 static int dcbnl_ieee_get(struct net_device *netdev, struct nlmsghdr *nlh, in dcbnl_ieee_get() argument
1497 static int dcbnl_ieee_del(struct net_device *netdev, struct nlmsghdr *nlh, in dcbnl_ieee_del() argument
1542 static int dcbnl_getdcbx(struct net_device *netdev, struct nlmsghdr *nlh, in dcbnl_getdcbx() argument
1552 static int dcbnl_setdcbx(struct net_device *netdev, struct nlmsghdr *nlh, in dcbnl_setdcbx() argument
1569 static int dcbnl_getfeatcfg(struct net_device *netdev, struct nlmsghdr *nlh, in dcbnl_getfeatcfg() argument
1614 static int dcbnl_setfeatcfg(struct net_device *netdev, struct nlmsghdr *nlh, in dcbnl_setfeatcfg() argument
1651 static int dcbnl_cee_get(struct net_device *netdev, struct nlmsghdr *nlh, in dcbnl_cee_get() argument
1701 static int dcb_doit(struct sk_buff *skb, struct nlmsghdr *nlh) in dcb_doit() argument
1705 struct dcbmsg *dcb = nlmsg_data(nlh); in dcb_doit()
1713 if ((nlh->nlmsg_type == RTM_SETDCB) && !netlink_capable(skb, CAP_NET_ADMIN)) in dcb_doit()
1716 ret = nlmsg_parse(nlh, sizeof(*dcb), tb, DCB_ATTR_MAX, in dcb_doit()
1739 reply_skb = dcbnl_newmsg(fn->type, dcb->cmd, portid, nlh->nlmsg_seq, in dcb_doit()
1740 nlh->nlmsg_flags, &reply_nlh); in dcb_doit()
1744 ret = fn->cb(netdev, nlh, nlh->nlmsg_seq, tb, reply_skb); in dcb_doit()