Lines Matching defs:nlh

187 	struct nlmsghdr *nlh;
193 nlh = nlmsg_put(skb, port, seq, type, sizeof(*dcb), flags);
194 BUG_ON(!nlh);
196 dcb = nlmsg_data(nlh);
202 *nlhp = nlh;
207 static int dcbnl_getstate(struct net_device *netdev, struct nlmsghdr *nlh,
218 static int dcbnl_getpfccfg(struct net_device *netdev, struct nlmsghdr *nlh,
263 static int dcbnl_getperm_hwaddr(struct net_device *netdev, struct nlmsghdr *nlh,
277 static int dcbnl_getcap(struct net_device *netdev, struct nlmsghdr *nlh,
322 static int dcbnl_getnumtcs(struct net_device *netdev, struct nlmsghdr *nlh,
369 static int dcbnl_setnumtcs(struct net_device *netdev, struct nlmsghdr *nlh,
403 static int dcbnl_getpfcstate(struct net_device *netdev, struct nlmsghdr *nlh,
413 static int dcbnl_setpfcstate(struct net_device *netdev, struct nlmsghdr *nlh,
431 static int dcbnl_getapp(struct net_device *netdev, struct nlmsghdr *nlh,
501 static int dcbnl_setapp(struct net_device *netdev, struct nlmsghdr *nlh,
551 static int __dcbnl_pg_getcfg(struct net_device *netdev, struct nlmsghdr *nlh,
687 static int dcbnl_pgtx_getcfg(struct net_device *netdev, struct nlmsghdr *nlh,
690 return __dcbnl_pg_getcfg(netdev, nlh, tb, skb, 0);
693 static int dcbnl_pgrx_getcfg(struct net_device *netdev, struct nlmsghdr *nlh,
696 return __dcbnl_pg_getcfg(netdev, nlh, tb, skb, 1);
699 static int dcbnl_setstate(struct net_device *netdev, struct nlmsghdr *nlh,
716 static int dcbnl_setpfccfg(struct net_device *netdev, struct nlmsghdr *nlh,
747 static int dcbnl_setall(struct net_device *netdev, struct nlmsghdr *nlh,
765 static int __dcbnl_pg_setcfg(struct net_device *netdev, struct nlmsghdr *nlh,
858 static int dcbnl_pgtx_setcfg(struct net_device *netdev, struct nlmsghdr *nlh,
861 return __dcbnl_pg_setcfg(netdev, nlh, seq, tb, skb, 0);
864 static int dcbnl_pgrx_setcfg(struct net_device *netdev, struct nlmsghdr *nlh,
867 return __dcbnl_pg_setcfg(netdev, nlh, seq, tb, skb, 1);
870 static int dcbnl_bcn_getcfg(struct net_device *netdev, struct nlmsghdr *nlh,
932 static int dcbnl_bcn_setcfg(struct net_device *netdev, struct nlmsghdr *nlh,
1375 struct nlmsghdr *nlh;
1382 skb = dcbnl_newmsg(event, cmd, portid, seq, 0, &nlh);
1397 nlmsg_end(skb, nlh);
1424 static int dcbnl_ieee_set(struct net_device *netdev, struct nlmsghdr *nlh,
1522 static int dcbnl_ieee_get(struct net_device *netdev, struct nlmsghdr *nlh,
1533 static int dcbnl_ieee_del(struct net_device *netdev, struct nlmsghdr *nlh,
1579 static int dcbnl_getdcbx(struct net_device *netdev, struct nlmsghdr *nlh,
1589 static int dcbnl_setdcbx(struct net_device *netdev, struct nlmsghdr *nlh,
1606 static int dcbnl_getfeatcfg(struct net_device *netdev, struct nlmsghdr *nlh,
1652 static int dcbnl_setfeatcfg(struct net_device *netdev, struct nlmsghdr *nlh,
1690 static int dcbnl_cee_get(struct net_device *netdev, struct nlmsghdr *nlh,
1740 static int dcb_doit(struct sk_buff *skb, struct nlmsghdr *nlh,
1745 struct dcbmsg *dcb = nlmsg_data(nlh);
1753 if ((nlh->nlmsg_type == RTM_SETDCB) && !netlink_capable(skb, CAP_NET_ADMIN))
1756 ret = nlmsg_parse_deprecated(nlh, sizeof(*dcb), tb, DCB_ATTR_MAX,
1781 reply_skb = dcbnl_newmsg(fn->type, dcb->cmd, portid, nlh->nlmsg_seq,
1782 nlh->nlmsg_flags, &reply_nlh);
1786 ret = fn->cb(netdev, nlh, nlh->nlmsg_seq, tb, reply_skb);