Home
last modified time | relevance | path

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

12

/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()
/net/xfrm/
Dxfrm_compat.c229 return nla_put(dst, src->nla_type, len, nla_data(src)); in xfrm_nla_cpy()
234 switch (src->nla_type) { in xfrm_xlate64_attr()
252 return nla_put_64bit(dst, src->nla_type, nla_len(src), in xfrm_xlate64_attr()
261 return nla_put_64bit(dst, src->nla_type, nla_len(src), in xfrm_xlate64_attr()
281 pr_warn_once("unsupported nla_type %d\n", src->nla_type); in xfrm_xlate64_attr()
430 int type = nla_type(nla); in xfrm_xlate32_attr()
/net/openvswitch/
Dflow_netlink.c57 u16 action = nla_type(nla); in actions_may_change_flow()
471 u16 type = nla_type(nla); in __parse_flow_nlattrs()
583 int type = nla_type(a); in vxlan_tun_opt_from_nlattr()
665 int type = nla_type(a); in ip_tun_from_nlattr()
1295 int type = nla_type(a); in nsh_hdr_from_nlattr()
1343 int type = nla_type(a); in nsh_key_from_nlattr()
1390 int type = nla_type(a); in nsh_key_put_from_nlattr()
1727 if (tbl[nla_type(nla)].len == OVS_ATTR_NESTED) in nlattr_set()
1728 nlattr_set(nla, val, tbl[nla_type(nla)].next ? : tbl); in nlattr_set()
1732 if (nla_type(nla) == OVS_KEY_ATTR_CT_STATE) in nlattr_set()
[all …]
Dactions.c964 switch (nla_type(a)) { in output_userspace()
1075 if (nla_type(a) == OVS_KEY_ATTR_TUNNEL_INFO) { in execute_set_action()
1096 switch (nla_type(a)) { in execute_masked_set_action()
1235 switch (nla_type(a)) { in do_execute_actions()
Dconntrack.c1390 int type = nla_type(a); in parse_nat()
1520 int type = nla_type(a); in parse_ct()
/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()
/net/ipv4/
Dmetrics.c22 int type = nla_type(nla); in ip_metrics_convert()
Dfib_frontend.c471 nla->nla_type = type; in put_rtax()
771 switch (nla_type(attr)) { in rtm_to_fib_config()
/net/sched/
Dsch_fifo.c156 nla->nla_type = RTM_NEWQDISC; in fifo_set_limit()
Dact_tunnel_key.c131 switch (nla_type(attr)) { in tunnel_key_copy_opts()
173 switch (nla_type(nla_data(nla))) { in tunnel_key_opts_set()
Dsch_mqprio.c172 if (nla_type(attr) != TCA_MQPRIO_MIN_RATE64) { in mqprio_parse_nlattr()
201 if (nla_type(attr) != TCA_MQPRIO_MAX_RATE64) { in mqprio_parse_nlattr()
Dematch.c353 if (rt_match->nla_type != (idx + 1)) in tcf_em_tree_validate()
Dsch_gred.c551 switch (nla_type(attr)) { in gred_vqs_apply()
615 switch (nla_type(attr)) { in gred_vqs_validate()
Dact_pedit.c65 if (nla_type(ka) != TCA_PEDIT_KEY_EX) { in tcf_pedit_keys_ex_parse()
/net/netfilter/
Dxt_RATEEST.c153 cfg.opt.nla_type = TCA_STATS_RATE_EST; in xt_rateest_tg_checkentry()
Dnfnetlink_log.c641 nla->nla_type = NFULA_PAYLOAD; in __build_packet_message()
/net/psample/
Dpsample.c274 nla->nla_type = PSAMPLE_ATTR_DATA; in psample_sample_packet()
/net/core/
Dgen_stats.c85 if (ret == 0 && d->tail->nla_type == padattr) in gnet_stats_start_copy_compat()
Ddevlink.c3051 int nla_type; in devlink_nl_param_fill() local
3097 nla_type = devlink_param_type_to_nla_type(param->type); in devlink_nl_param_fill()
3098 if (nla_type < 0) in devlink_nl_param_fill()
3100 if (nla_put_u8(msg, DEVLINK_ATTR_PARAM_TYPE, nla_type)) in devlink_nl_param_fill()
4128 u8 nla_type; member
4206 item->nla_type = NLA_NUL_STRING; in devlink_fmsg_put_name()
4283 item->nla_type = value_nla_type; in devlink_fmsg_put_value()
4459 switch (msg->nla_type) { in devlink_fmsg_item_fill_type()
4467 msg->nla_type); in devlink_fmsg_item_fill_type()
4479 switch (msg->nla_type) { in devlink_fmsg_item_fill_data()
[all …]
Drtnetlink.c2170 af_ops = rtnl_af_lookup(nla_type(af)); in validate_linkmsg()
2254 if (nla_type(attr) != IFLA_VF_VLAN_INFO || in do_setvfinfo()
2618 if (nla_type(attr) != IFLA_VF_INFO || in do_setlink()
2648 if (nla_type(attr) != IFLA_VF_PORT || in do_setlink()
2698 BUG_ON(!(af_ops = rtnl_af_lookup(nla_type(af)))); in do_setlink()
4609 if (nla_type(attr) == IFLA_BRIDGE_FLAGS && !br_flags_attr) { in rtnl_bridge_setlink()
4617 if (nla_type(attr) == IFLA_BRIDGE_MODE) { in rtnl_bridge_setlink()
4690 if (nla_type(attr) == IFLA_BRIDGE_FLAGS) { in rtnl_bridge_dellink()
Ddrop_monitor.c641 attr->nla_type = NET_DM_ATTR_PAYLOAD; in net_dm_packet_report_fill()
786 attr->nla_type = NET_DM_ATTR_PAYLOAD; in net_dm_hw_packet_report_fill()
/net/dcb/
Ddcbnl.c741 data[i]->nla_type - DCB_PFC_UP_ATTR_0, value); in dcbnl_setpfccfg()
959 data[i]->nla_type - DCB_BCN_ATTR_RP_0, value_byte); in dcbnl_bcn_setcfg()
1498 if (nla_type(attr) != DCB_ATTR_IEEE_APP) in dcbnl_ieee_set()
1559 if (nla_type(attr) != DCB_ATTR_IEEE_APP) in dcbnl_ieee_del()
/net/wireless/
Dpmsr.c192 switch (nla_type(treq)) { in pmsr_parse_peer()
/net/netfilter/ipset/
Dip_set_core.c285 return nla->nla_type & NLA_F_NESTED; in flag_nested()
1313 pr_debug("type: %u, len %u\n", nla_type(attr), attr->nla_len); in dump_attrs()
1659 if (nla_type(nla) != IPSET_ATTR_DATA || in ip_set_ad()
/net/bridge/
Dbr_netlink.c628 switch (nla_type(attr)) { in br_afspec()
879 if (protinfo->nla_type & NLA_F_NESTED) { in br_setlink()

12