Home
last modified time | relevance | path

Searched refs:nla_get_u16 (Results 1 – 25 of 65) sorted by relevance

123

/Linux-v5.15/drivers/infiniband/ulp/ipoib/
Dipoib_netlink.c75 mode = nla_get_u16(data[IFLA_IPOIB_MODE]); in ipoib_changelink()
88 umcast = nla_get_u16(data[IFLA_IPOIB_UMCAST]); in ipoib_changelink()
123 child_pkey = nla_get_u16(data[IFLA_IPOIB_PKEY]); in ipoib_new_child_link()
/Linux-v5.15/drivers/infiniband/core/
Diwpm_msg.c411 iwpm_version = nla_get_u16(nltb[IWPM_NLA_RREG_ULIB_VER]); in iwpm_register_pid_cb()
570 err_code = nla_get_u16(nltb[IWPM_NLA_RQUERY_MAPPING_ERR]); in iwpm_add_and_query_mapping_cb()
709 iwpm_version = nla_get_u16(nltb[IWPM_NLA_MAPINFO_ULIB_VER]); in iwpm_mapping_info_cb()
790 err_code = nla_get_u16(nltb[IWPM_NLA_ERR_CODE]); in iwpm_mapping_error_cb()
837 abi_version = nla_get_u16(nltb[IWPM_NLA_HELLO_ABI_VERSION]); in iwpm_hello_cb()
/Linux-v5.15/drivers/net/ethernet/qualcomm/rmnet/
Drmnet_config.c142 mux_id = nla_get_u16(data[IFLA_RMNET_MUX_ID]); in rmnet_newlink()
282 mux_id = nla_get_u16(data[IFLA_RMNET_MUX_ID]); in rmnet_rtnl_validate()
310 mux_id = nla_get_u16(data[IFLA_RMNET_MUX_ID]); in rmnet_changelink()
/Linux-v5.15/drivers/net/ipvlan/
Dipvlan_main.c453 u16 nmode = nla_get_u16(data[IFLA_IPVLAN_MODE]); in ipvlan_nl_changelink()
459 u16 flags = nla_get_u16(data[IFLA_IPVLAN_FLAGS]); in ipvlan_nl_changelink()
490 u16 mode = nla_get_u16(data[IFLA_IPVLAN_MODE]); in ipvlan_nl_validate()
496 u16 flags = nla_get_u16(data[IFLA_IPVLAN_FLAGS]); in ipvlan_nl_validate()
626 port->flags = nla_get_u16(data[IFLA_IPVLAN_FLAGS]); in ipvlan_link_new()
629 mode = nla_get_u16(data[IFLA_IPVLAN_MODE]); in ipvlan_link_new()
/Linux-v5.15/net/bridge/
Dbr_netlink_tunnel.c239 vid = nla_get_u16(tb[IFLA_BRIDGE_VLAN_TUNNEL_VID]); in br_parse_vlan_tunnel_info()
244 flags = nla_get_u16(tb[IFLA_BRIDGE_VLAN_TUNNEL_FLAGS]); in br_parse_vlan_tunnel_info()
Dbr_netlink.c917 err = br_stp_set_port_priority(p, nla_get_u16(tb[IFLA_BRPORT_PRIORITY])); in br_setport()
952 u16 fwd_mask = nla_get_u16(tb[IFLA_BRPORT_GROUP_FWD_MASK]); in br_setport()
1085 __u16 defpvid = nla_get_u16(data[IFLA_BR_VLAN_DEFAULT_PVID]); in br_validate()
1209 u32 priority = nla_get_u16(data[IFLA_BR_PRIORITY]); in br_changelink()
1232 __u16 defpvid = nla_get_u16(data[IFLA_BR_VLAN_DEFAULT_PVID]); in br_changelink()
1257 u16 fwd_mask = nla_get_u16(data[IFLA_BR_GROUP_FWD_MASK]); in br_changelink()
Dbr_mrp_netlink.c59 inst.prio = nla_get_u16(tb[IFLA_BRIDGE_MRP_INSTANCE_PRIO]); in br_mrp_instance_parse()
308 role.in_id = nla_get_u16(tb[IFLA_BRIDGE_MRP_IN_ROLE_IN_ID]); in br_mrp_in_role_parse()
Dbr_vlan_options.c617 vid = nla_get_u16(tb[BRIDGE_VLANDB_GOPTS_ID]); in br_vlan_rtm_process_global_options()
622 vid_range = nla_get_u16(tb[BRIDGE_VLANDB_GOPTS_RANGE]); in br_vlan_rtm_process_global_options()
/Linux-v5.15/net/8021q/
Dvlan_netlink.c74 id = nla_get_u16(data[IFLA_VLAN_ID]); in vlan_validate()
168 vlan->vlan_id = nla_get_u16(data[IFLA_VLAN_ID]); in vlan_newlink()
/Linux-v5.15/net/openvswitch/
Dvport-geneve.c69 dst_port = nla_get_u16(a); in geneve_tnl_create()
Dvport-vxlan.c93 conf.dst_port = htons(nla_get_u16(a)); in vxlan_tnl_create()
/Linux-v5.15/drivers/net/wireless/ath/wcn36xx/
Dtestmode.c143 attr = nla_get_u16(tb[WCN36XX_TM_ATTR_CMD]); in wcn36xx_tm_cmd()
/Linux-v5.15/drivers/net/wireguard/
Dnetlink.c338 family = nla_get_u16(attrs[WGALLOWEDIP_A_FAMILY]); in set_allowedip()
471 const u16 persistent_keepalive_interval = nla_get_u16( in set_peer()
536 nla_get_u16(info->attrs[WGDEVICE_A_LISTEN_PORT])); in wg_set_device()
/Linux-v5.15/drivers/net/bonding/
Dbond_netlink.c144 u16 queue_id = nla_get_u16(data[IFLA_BOND_SLAVE_QUEUE_ID]); in bond_slave_changelink()
421 nla_get_u16(data[IFLA_BOND_AD_ACTOR_SYS_PRIO]); in bond_changelink()
430 nla_get_u16(data[IFLA_BOND_AD_USER_PORT_KEY]); in bond_changelink()
/Linux-v5.15/net/l2tp/
Dl2tp_netlink.c161 cfg->local_udp_port = nla_get_u16(attrs[L2TP_ATTR_UDP_SPORT]); in l2tp_nl_cmd_tunnel_create_get_addr()
163 cfg->peer_udp_port = nla_get_u16(attrs[L2TP_ATTR_UDP_DPORT]); in l2tp_nl_cmd_tunnel_create_get_addr()
218 cfg.encap = nla_get_u16(attrs[L2TP_ATTR_ENCAP_TYPE]); in l2tp_nl_cmd_tunnel_create()
560 cfg.pw_type = nla_get_u16(info->attrs[L2TP_ATTR_PW_TYPE]); in l2tp_nl_cmd_session_create()
/Linux-v5.15/net/sched/
Dsch_dsmark.c367 indices = nla_get_u16(tb[TCA_DSMARK_INDICES]); in dsmark_init()
373 default_index = nla_get_u16(tb[TCA_DSMARK_DEFAULT_INDEX]); in dsmark_init()
Dact_pedit.c81 k->htype = nla_get_u16(tb[TCA_PEDIT_KEY_EX_HTYPE]); in tcf_pedit_keys_ex_parse()
82 k->cmd = nla_get_u16(tb[TCA_PEDIT_KEY_EX_CMD]); in tcf_pedit_keys_ex_parse()
/Linux-v5.15/drivers/net/
Dbareudp.c581 conf->port = nla_get_u16(data[IFLA_BAREUDP_PORT]); in bareudp2info()
584 conf->ethertype = nla_get_u16(data[IFLA_BAREUDP_ETHERTYPE]); in bareudp2info()
587 conf->sport_min = nla_get_u16(data[IFLA_BAREUDP_SRCPORT_MIN]); in bareudp2info()
/Linux-v5.15/net/wireless/
Dnl80211.c2974 txq_params->txop = nla_get_u16(tb[NL80211_TXQ_ATTR_TXOP]); in parse_txq_params()
2975 txq_params->cwmin = nla_get_u16(tb[NL80211_TXQ_ATTR_CWMIN]); in parse_txq_params()
2976 txq_params->cwmax = nla_get_u16(tb[NL80211_TXQ_ATTR_CWMAX]); in parse_txq_params()
4105 noack_map = nla_get_u16(info->attrs[NL80211_ATTR_NOACK_MAP]); in nl80211_set_noack_map()
4391 key.p.vlan_id = nla_get_u16(info->attrs[NL80211_ATTR_VLAN_ID]); in nl80211_new_key()
5399 params.inactivity_timeout = nla_get_u16( in nl80211_start_ap()
6352 params->aid = nla_get_u16(info->attrs[NL80211_ATTR_PEER_AID]); in nl80211_set_station_tdls()
6422 params.aid = nla_get_u16(info->attrs[NL80211_ATTR_STA_AID]); in nl80211_set_station()
6425 params.vlan_id = nla_get_u16(info->attrs[NL80211_ATTR_VLAN_ID]); in nl80211_set_station()
6429 nla_get_u16(info->attrs[NL80211_ATTR_STA_LISTEN_INTERVAL]); in nl80211_set_station()
[all …]
/Linux-v5.15/net/ipv6/
Dioam6.c117 id = cpu_to_be16(nla_get_u16(info->attrs[IOAM6_ATTR_NS_ID])); in ioam6_genl_addns()
170 id = cpu_to_be16(nla_get_u16(info->attrs[IOAM6_ATTR_NS_ID])); in ioam6_genl_delns()
510 ns_id = cpu_to_be16(nla_get_u16(info->attrs[IOAM6_ATTR_NS_ID])); in ioam6_genl_ns_set_schema()
/Linux-v5.15/net/ipv4/
Dipip.c464 ipencap->type = nla_get_u16(data[IFLA_IPTUN_ENCAP_TYPE]); in ipip_netlink_encap_parms()
469 ipencap->flags = nla_get_u16(data[IFLA_IPTUN_ENCAP_FLAGS]); in ipip_netlink_encap_parms()
/Linux-v5.15/net/netlabel/
Dnetlabel_mgmt.c112 nla_get_u16(info->attrs[NLBL_MGMT_A_FAMILY]); in netlbl_mgmt_add_common()
605 family = nla_get_u16(info->attrs[NLBL_MGMT_A_FAMILY]); in netlbl_mgmt_listdef()
/Linux-v5.15/include/linux/
Dgenl_magic_struct.h80 nla_get_u16, nla_put_u16, false)
/Linux-v5.15/lib/
Dnlattr.c175 value = nla_get_u16(nla); in nla_validate_range_unsigned()
337 value = nla_get_u16(nla); in nla_validate_mask()
/Linux-v5.15/net/core/
Dlwtunnel.c200 encap_type = nla_get_u16(nla_entype); in lwtunnel_valid_encap_type_attr()

123