Home
last modified time | relevance | path

Searched refs:attrtype (Results 1 – 25 of 29) sorted by relevance

12

/net/ife/
A Dife.c127 void *ife_tlv_meta_decode(void *skbdata, const void *ifehdr_end, u16 *attrtype, in ife_tlv_meta_decode() argument
137 *attrtype = ntohs(tlv->type); in ife_tlv_meta_decode()
159 int ife_tlv_meta_encode(void *skbdata, u16 attrtype, u16 dlen, const void *dval) in ife_tlv_meta_encode() argument
164 u32 htlv = attrtype << 16 | (dlen + NLA_HDRLEN); in ife_tlv_meta_encode()
/net/devlink/
A Dhealth.c14 int attrtype; member
694 item->attrtype = attrtype; in devlink_fmsg_nest_common()
740 item->attrtype = DEVLINK_ATTR_FMSG_OBJ_NAME; in devlink_fmsg_put_name()
817 item->attrtype = DEVLINK_ATTR_FMSG_OBJ_VALUE_DATA; in devlink_fmsg_put_value()
939 int attrtype = DEVLINK_ATTR_FMSG_OBJ_VALUE_DATA; in devlink_fmsg_item_fill_data() local
947 return nla_put_u8(skb, attrtype, tmp); in devlink_fmsg_item_fill_data()
949 return nla_put_u8(skb, attrtype, *(u8 *)msg->value); in devlink_fmsg_item_fill_data()
951 return nla_put_u32(skb, attrtype, *(u32 *)msg->value); in devlink_fmsg_item_fill_data()
982 switch (item->attrtype) { in devlink_fmsg_prepare_skb()
987 err = nla_put_flag(skb, item->attrtype); in devlink_fmsg_prepare_skb()
[all …]
A Ddevl_internal.h130 u32 rel_index, int attrtype,
184 static inline int devlink_nl_put_u64(struct sk_buff *msg, int attrtype, u64 val) in devlink_nl_put_u64() argument
186 return nla_put_u64_64bit(msg, attrtype, val, DEVLINK_ATTR_PAD); in devlink_nl_put_u64()
190 struct devlink *devlink, int attrtype);
A Dnetlink.c134 struct devlink *devlink, int attrtype) in devlink_nl_put_nested_handle() argument
139 nested_attr = nla_nest_start(msg, attrtype); in devlink_nl_put_nested_handle()
A Dcore.c218 u32 rel_index, int attrtype, in devlink_rel_devlink_handle_put() argument
228 err = devlink_nl_put_nested_handle(msg, net, rel_devlink, attrtype); in devlink_rel_devlink_handle_put()
/net/802/
A Dgarp.c276 static int garp_pdu_append_msg(struct garp_applicant *app, u8 attrtype) in garp_pdu_append_msg() argument
283 gm->attrtype = attrtype; in garp_pdu_append_msg()
284 garp_cb(app->pdu)->cur_type = attrtype; in garp_pdu_append_msg()
440 u8 attrtype) in garp_pdu_parse_attr() argument
458 if (attrtype > app->app->maxattr) in garp_pdu_parse_attr()
485 attr = garp_attr_lookup(app, ga->data, dlen, attrtype); in garp_pdu_parse_attr()
499 if (gm->attrtype == 0) in garp_pdu_parse_msg()
504 if (garp_pdu_parse_attr(app, skb, gm->attrtype) < 0) in garp_pdu_parse_msg()
A Dmrp.c369 u8 attrtype, u8 attrlen) in mrp_pdu_append_msg_hdr() argument
383 mh->attrtype = attrtype; in mrp_pdu_append_msg_hdr()
423 mrp_cb(app->pdu)->mh->attrtype != attr->type || in mrp_pdu_append_vecattr_event()
657 mrp_cb(skb)->mh->attrtype); in mrp_pdu_parse_vecattr_event()
770 if (mrp_cb(skb)->mh->attrtype == 0 || in mrp_pdu_parse_msg()
771 mrp_cb(skb)->mh->attrtype > app->app->maxattr || in mrp_pdu_parse_msg()
/net/core/
A Dsock_diag.c66 int sock_diag_put_meminfo(struct sock *sk, struct sk_buff *skb, int attrtype) in sock_diag_put_meminfo() argument
72 return nla_put(skb, attrtype, sizeof(mem), &mem); in sock_diag_put_meminfo()
77 struct sk_buff *skb, int attrtype) in sock_diag_put_filterinfo() argument
86 nla_reserve(skb, attrtype, 0); in sock_diag_put_filterinfo()
101 attr = nla_reserve(skb, attrtype, flen); in sock_diag_put_filterinfo()
A Dfib_rules.c254 static int nla_put_port_range(struct sk_buff *skb, int attrtype, in nla_put_port_range() argument
257 return nla_put(skb, attrtype, sizeof(*range), range); in nla_put_port_range()
/net/ethtool/
A Dbitset.h16 int ethnl_put_bitset(struct sk_buff *skb, int attrtype,
20 int ethnl_put_bitset32(struct sk_buff *skb, int attrtype, const u32 *val,
A Dbitset.c232 int ethnl_put_bitset32(struct sk_buff *skb, int attrtype, const u32 *val, in ethnl_put_bitset32() argument
239 nest = nla_nest_start(skb, attrtype); in ethnl_put_bitset32()
774 int ethnl_put_bitset(struct sk_buff *skb, int attrtype, in ethnl_put_bitset() argument
802 ret = ethnl_put_bitset32(skb, attrtype, val32, mask32, nbits, names, in ethnl_put_bitset()
856 int ethnl_put_bitset(struct sk_buff *skb, int attrtype, in ethnl_put_bitset() argument
861 return ethnl_put_bitset32(skb, attrtype, (const u32 *)val, in ethnl_put_bitset()
A Dnetlink.h19 u16 attrtype);
51 static inline int ethnl_put_strz(struct sk_buff *skb, u16 attrtype, in ethnl_put_strz() argument
57 attr = nla_reserve(skb, attrtype, len + 1); in ethnl_put_strz()
A Dpause.c106 static int ethtool_put_stat(struct sk_buff *skb, u64 val, u16 attrtype, in ethtool_put_stat() argument
111 if (nla_put_u64_64bit(skb, attrtype, val, padtype)) in ethtool_put_stat()
A Dmm.c85 static int mm_put_stat(struct sk_buff *skb, u64 val, u16 attrtype) in mm_put_stat() argument
89 if (nla_put_u64_64bit(skb, attrtype, val, ETHTOOL_A_MM_STAT_PAD)) in mm_put_stat()
A Dtsinfo.c176 static int tsinfo_put_stat(struct sk_buff *skb, u64 val, u16 attrtype) in tsinfo_put_stat() argument
180 if (nla_put_uint(skb, attrtype, val)) in tsinfo_put_stat()
A Dstats.c240 static int stat_put(struct sk_buff *skb, u16 attrtype, u64 val) in stat_put() argument
264 ret = nla_put_u64_64bit(skb, attrtype, val, -1 /* not used */); in stat_put()
A Dnetlink.c257 u16 attrtype) in ethnl_fill_reply_header() argument
263 nest = nla_nest_start(skb, attrtype); in ethnl_fill_reply_header()
/net/openvswitch/
A Dflow_netlink.h60 int ovs_nla_add_action(struct sw_flow_actions **sfa, int attrtype,
A Dflow_netlink.c2495 int attrtype, void *data, int len, bool log) in __add_action() argument
2503 a->nla_type = attrtype; in __add_action()
2513 int ovs_nla_add_action(struct sw_flow_actions **sfa, int attrtype, void *data, in ovs_nla_add_action() argument
2518 a = __add_action(sfa, attrtype, data, len, log); in ovs_nla_add_action()
2524 int attrtype, bool log) in add_nested_action_start() argument
2529 err = ovs_nla_add_action(sfa, attrtype, NULL, 0, log); in add_nested_action_start()
/net/ipv6/
A Drpl_iptunnel.c315 static int nla_put_rpl_srh(struct sk_buff *skb, int attrtype, in nla_put_rpl_srh() argument
324 nla = nla_reserve(skb, attrtype, len); in nla_put_rpl_srh()
A Dseg6_iptunnel.c70 static int nla_put_srh(struct sk_buff *skb, int attrtype, in nla_put_srh() argument
79 nla = nla_reserve(skb, attrtype, len); in nla_put_srh()
/net/mpls/
A Dinternal.h192 int nla_put_labels(struct sk_buff *skb, int attrtype, u8 labels,
A Daf_mpls.c1686 int nla_put_labels(struct sk_buff *skb, int attrtype, in nla_put_labels() argument
1693 nla = nla_reserve(skb, attrtype, labels*4); in nla_put_labels()
/net/batman-adv/
A Dnetlink.c160 static int batadv_netlink_get_ifindex(const struct nlmsghdr *nlh, int attrtype) in batadv_netlink_get_ifindex() argument
162 struct nlattr *attr = nlmsg_find_attr(nlh, GENL_HDRLEN, attrtype); in batadv_netlink_get_ifindex()
/net/bridge/
A Dbr_netlink.c931 int attrtype, unsigned long mask) in br_set_port_flag() argument
933 if (!tb[attrtype]) in br_set_port_flag()
936 if (nla_get_u8(tb[attrtype])) in br_set_port_flag()

Completed in 53 milliseconds

12