Home
last modified time | relevance | path

Searched refs:nla_type (Results 1 – 25 of 80) sorted by relevance

1234

/linux-6.6.21/include/linux/
Dgenl_magic_func.h37 #define __field(attr_nr, attr_flag, name, nla_type, _type, __get, \ argument
39 [attr_nr] = { .type = nla_type },
42 #define __array(attr_nr, attr_flag, name, nla_type, _type, maxlen, \ argument
44 [attr_nr] = { .type = nla_type, \
45 .len = maxlen - (nla_type == NLA_NUL_STRING) },
56 static void dprint_field(const char *dir, int nla_type, in dprint_field() argument
60 switch (nla_type) { in dprint_field()
79 static void dprint_array(const char *dir, int nla_type, in dprint_array() argument
82 switch (nla_type) { in dprint_array()
102 #define DPRINT_FIELD(dir, nla_type, name, s, nla) \ argument
[all …]
Dgenl_magic_struct.h159 #define __field(attr_nr, attr_flag, name, nla_type, type, \ argument
164 #define __array(attr_nr, attr_flag, name, nla_type, type, \ argument
228 #define __field(attr_nr, attr_flag, name, nla_type, type, __get, __put, \ argument
233 #define __array(attr_nr, attr_flag, name, nla_type, type, maxlen, \ argument
252 #define __field(attr_nr, attr_flag, name, nla_type, type, __get, __put, \ argument
257 #define __array(attr_nr, attr_flag, name, nla_type, type, maxlen, \ argument
271 #define __field(attr_nr, attr_flag, name, nla_type, type, __get, __put, \ argument
276 #define __array(attr_nr, attr_flag, name, nla_type, type, maxlen, \ argument
/linux-6.6.21/tools/lib/thermal/
Dcommands.c47 if (nla_type(attr) == THERMAL_GENL_ATTR_TZ_ID) { in parse_tz_get()
59 if (nla_type(attr) == THERMAL_GENL_ATTR_TZ_NAME) in parse_tz_get()
81 if (nla_type(attr) == THERMAL_GENL_ATTR_CDEV_ID) { in parse_cdev_get()
92 if (nla_type(attr) == THERMAL_GENL_ATTR_CDEV_NAME) { in parse_cdev_get()
97 if (nla_type(attr) == THERMAL_GENL_ATTR_CDEV_CUR_STATE) in parse_cdev_get()
100 if (nla_type(attr) == THERMAL_GENL_ATTR_CDEV_MAX_STATE) in parse_cdev_get()
121 if (nla_type(attr) == THERMAL_GENL_ATTR_TZ_TRIP_ID) { in parse_tz_get_trip()
132 if (nla_type(attr) == THERMAL_GENL_ATTR_TZ_TRIP_TYPE) in parse_tz_get_trip()
135 if (nla_type(attr) == THERMAL_GENL_ATTR_TZ_TRIP_TEMP) in parse_tz_get_trip()
138 if (nla_type(attr) == THERMAL_GENL_ATTR_TZ_TRIP_HYST) in parse_tz_get_trip()
/linux-6.6.21/tools/accounting/
Dprocacct.c126 __u8 genl_cmd, __u16 nla_type, in send_cmd() argument
144 na->nla_type = nla_type; in send_cmd()
195 if (na->nla_type == CTRL_ATTR_FAMILY_ID) in get_family_id()
232 switch (na->nla_type) { in handle_aggr()
253 na->nla_type); in handle_aggr()
378 int mother = na->nla_type; in main()
381 switch (na->nla_type) { in main()
389 na->nla_type); in main()
Dgetdelays.c119 __u8 genl_cmd, __u16 nla_type, in send_cmd() argument
137 na->nla_type = nla_type; in send_cmd()
188 if (na->nla_type == CTRL_ATTR_FAMILY_ID) { in get_family_id()
494 switch (na->nla_type) { in main()
503 switch (na->nla_type) { in main()
534 na->nla_type); in main()
548 na->nla_type); in main()
/linux-6.6.21/drivers/block/drbd/
Ddrbd_nla.c22 if (nla->nla_type & DRBD_GENLA_F_MANDATORY) { in drbd_nla_check_mandatory()
23 nla->nla_type &= ~DRBD_GENLA_F_MANDATORY; in drbd_nla_check_mandatory()
24 if (nla_type(nla) > maxtype) in drbd_nla_check_mandatory()
/linux-6.6.21/tools/lib/bpf/
Dnlattr.c40 static int nla_type(const struct nlattr *nla) in nla_type() function
42 return nla->nla_type & NLA_TYPE_MASK; in nla_type()
50 int type = nla_type(nla); in validate_nla()
113 int type = nla_type(nla); in libbpf_nla_parse()
Dnlattr.h152 nla->nla_type = type; in nlattr_add()
/linux-6.6.21/tools/testing/selftests/nci/
Dnci_dev.c112 __u8 genl_cmd, int nla_num, __u16 nla_type[], in send_cmd_mt_nla() argument
133 na->nla_type = nla_type[cnt]; in send_cmd_mt_nla()
206 if (na->nla_type == CTRL_ATTR_FAMILY_ID) { in get_family_id()
208 } else if (na->nla_type == CTRL_ATTR_MCAST_GROUPS) { in get_family_id()
220 if (group_na->nla_type == CTRL_ATTR_MCAST_GRP_ID) { in get_family_id()
243 __u16 nla_type = NFC_ATTR_DEVICE_INDEX; in send_cmd_with_idx() local
248 &nla_type, &nla_data, &nla_len, NLM_F_REQUEST); in send_cmd_with_idx()
290 if (na->nla_type == NFC_ATTR_DEVICE_POWERED) in get_dev_enable_state()
679 if (na->nla_type == NFC_ATTR_TARGET_INDEX) in get_taginfo()
681 else if (na->nla_type == NFC_ATTR_TARGET_SEL_RES) in get_taginfo()
[all …]
/linux-6.6.21/net/netlabel/
Dnetlabel_cipso_v4.c95 if (nla_type(nla) == NLBL_CIPSOV4_A_TAG) { in netlbl_cipsov4_add_common()
160 if (nla_type(nla_a) == NLBL_CIPSOV4_A_MLSLVL) { in netlbl_cipsov4_add_std()
167 switch (nla_type(nla_b)) { in netlbl_cipsov4_add_std()
209 if (nla_type(nla_a) == NLBL_CIPSOV4_A_MLSLVL) { in netlbl_cipsov4_add_std()
235 if (nla_type(nla_a) == NLBL_CIPSOV4_A_MLSCAT) { in netlbl_cipsov4_add_std()
242 switch (nla_type(nla_b)) { in netlbl_cipsov4_add_std()
286 if (nla_type(nla_a) == NLBL_CIPSOV4_A_MLSCAT) { in netlbl_cipsov4_add_std()
/linux-6.6.21/net/xfrm/
Dxfrm_compat.c230 return nla_put(dst, src->nla_type, len, nla_data(src)); in xfrm_nla_cpy()
235 switch (src->nla_type) { in xfrm_xlate64_attr()
253 return nla_put_64bit(dst, src->nla_type, nla_len(src), in xfrm_xlate64_attr()
262 return nla_put_64bit(dst, src->nla_type, nla_len(src), in xfrm_xlate64_attr()
283 pr_warn_once("unsupported nla_type %d\n", src->nla_type); in xfrm_xlate64_attr()
432 int type = nla_type(nla); in xfrm_xlate32_attr()
/linux-6.6.21/lib/
Dnlattr.c386 int minlen = 0, attrlen = nla_len(nla), type = nla_type(nla); in validate_nla()
412 !(nla->nla_type & NLA_F_NESTED)) { in validate_nla()
418 pt->type != NLA_UNSPEC && (nla->nla_type & NLA_F_NESTED)) { in validate_nla()
601 u16 type = nla_type(nla); in __nla_validate_parse()
729 if (nla_type(nla) == attrtype) in nla_find()
885 nla->nla_type = attrtype; in __nla_reserve()
/linux-6.6.21/net/openvswitch/
Dflow_netlink.c59 u16 action = nla_type(nla); in actions_may_change_flow()
479 u16 type = nla_type(nla); in __parse_flow_nlattrs()
598 int type = nla_type(a); in vxlan_tun_opt_from_nlattr()
680 int type = nla_type(a); in ip_tun_from_nlattr()
1310 int type = nla_type(a); in nsh_hdr_from_nlattr()
1358 int type = nla_type(a); in nsh_key_from_nlattr()
1405 int type = nla_type(a); in nsh_key_put_from_nlattr()
1768 if (tbl[nla_type(nla)].len == OVS_ATTR_NESTED) in nlattr_set()
1769 nlattr_set(nla, val, tbl[nla_type(nla)].next ? : tbl); in nlattr_set()
1773 if (nla_type(nla) == OVS_KEY_ATTR_CT_STATE) in nlattr_set()
[all …]
/linux-6.6.21/net/8021q/
Dvlan_netlink.c121 if (nla_type(attr) != IFLA_VLAN_QOS_MAPPING) in vlan_changelink()
129 if (nla_type(attr) != IFLA_VLAN_QOS_MAPPING) in vlan_changelink()
/linux-6.6.21/net/devlink/
Dparam.c249 int nla_type; in devlink_nl_param_fill() local
296 nla_type = devlink_param_type_to_nla_type(param->type); in devlink_nl_param_fill()
297 if (nla_type < 0) in devlink_nl_param_fill()
299 if (nla_put_u8(msg, DEVLINK_ATTR_PARAM_TYPE, nla_type)) in devlink_nl_param_fill()
Dhealth.c15 u8 nla_type; member
730 item->nla_type = NLA_NUL_STRING; in devlink_fmsg_put_name()
843 item->nla_type = value_nla_type; in devlink_fmsg_put_value()
1046 switch (msg->nla_type) { in devlink_fmsg_item_fill_type()
1054 msg->nla_type); in devlink_fmsg_item_fill_type()
1066 switch (msg->nla_type) { in devlink_fmsg_item_fill_data()
/linux-6.6.21/net/ipv4/
Dmetrics.c19 int type = nla_type(nla); in ip_metrics_convert()
/linux-6.6.21/net/handshake/
Dtlshd.c71 if (nla_type(nla) == HANDSHAKE_A_DONE_REMOTE_AUTH) in tls_handshake_remote_peerids()
81 if (nla_type(nla) == HANDSHAKE_A_DONE_REMOTE_AUTH) in tls_handshake_remote_peerids()
/linux-6.6.21/tools/include/uapi/linux/
Dnetlink.h213 __u16 nla_type; member
/linux-6.6.21/include/uapi/linux/
Dnetlink.h231 __u16 nla_type; member
/linux-6.6.21/net/ethtool/
Dstrset.c202 if (WARN_ONCE(nla_type(attr) != ETHTOOL_A_STRINGSETS_STRINGSET, in strset_parse_request()
204 nla_type(attr))) in strset_parse_request()
/linux-6.6.21/include/linux/netfilter/ipset/
Dip_set.h379 return tb[type] && (tb[type]->nla_type & NLA_F_NET_BYTEORDER); in ip_set_attr_netorder()
385 return !tb[type] || (tb[type]->nla_type & NLA_F_NET_BYTEORDER); in ip_set_optattr_netorder()
/linux-6.6.21/net/sched/
Dsch_mqprio.c219 if (nla_type(n) != TCA_MQPRIO_TC_ENTRY) in mqprio_parse_tc_entries()
288 if (nla_type(attr) != TCA_MQPRIO_MIN_RATE64) { in mqprio_parse_nlattr()
317 if (nla_type(attr) != TCA_MQPRIO_MAX_RATE64) { in mqprio_parse_nlattr()
/linux-6.6.21/Documentation/userspace-api/netlink/
Dintro.rst273 __u16 nla_type: CTRL_ATTR_FAMILY_NAME
303 __u16 nla_type: CTRL_ATTR_FAMILY_NAME
311 __u16 nla_type: CTRL_ATTR_FAMILY_ID
319 __u16 nla_type: CTRL_ATTR_FAMILY_VERSION
460 __u16 nla_type: CTRL_ATTR_FAMILY_NAME
468 __u16 nla_type: CTRL_ATTR_FAMILY_ID
476 __u16 nla_type: CTRL_ATTR_FAMILY_VERSION
/linux-6.6.21/net/netfilter/
Dxt_RATEEST.c154 cfg.opt.nla_type = TCA_STATS_RATE_EST; in xt_rateest_tg_checkentry()

1234