Home
last modified time | relevance | path

Searched refs:nla_put_u16 (Results 1 – 25 of 84) sorted by relevance

1234

/linux/drivers/infiniband/ulp/ipoib/
A Dipoib_netlink.c54 if (nla_put_u16(skb, IFLA_IPOIB_PKEY, priv->pkey)) in ipoib_fill_info()
58 if (nla_put_u16(skb, IFLA_IPOIB_MODE, val)) in ipoib_fill_info()
62 if (nla_put_u16(skb, IFLA_IPOIB_UMCAST, val)) in ipoib_fill_info()
/linux/drivers/net/bonding/
A Dbond_netlink.c54 if (nla_put_u16(skb, IFLA_BOND_SLAVE_QUEUE_ID, in bond_fill_slave_info()
68 if (nla_put_u16(skb, IFLA_BOND_SLAVE_AD_AGGREGATOR_ID, in bond_fill_slave_info()
75 if (nla_put_u16(skb, in bond_fill_slave_info()
798 if (nla_put_u16(skb, IFLA_BOND_AD_ACTOR_SYS_PRIO, in bond_fill_info()
802 if (nla_put_u16(skb, IFLA_BOND_AD_USER_PORT_KEY, in bond_fill_info()
817 if (nla_put_u16(skb, IFLA_BOND_AD_INFO_AGGREGATOR, in bond_fill_info()
820 if (nla_put_u16(skb, IFLA_BOND_AD_INFO_NUM_PORTS, in bond_fill_info()
823 if (nla_put_u16(skb, IFLA_BOND_AD_INFO_ACTOR_KEY, in bond_fill_info()
826 if (nla_put_u16(skb, IFLA_BOND_AD_INFO_PARTNER_KEY, in bond_fill_info()
/linux/net/devlink/
A Dsb.c184 if (nla_put_u16(msg, DEVLINK_ATTR_SB_INGRESS_POOL_COUNT, in devlink_nl_sb_fill()
187 if (nla_put_u16(msg, DEVLINK_ATTR_SB_EGRESS_POOL_COUNT, in devlink_nl_sb_fill()
190 if (nla_put_u16(msg, DEVLINK_ATTR_SB_INGRESS_TC_COUNT, in devlink_nl_sb_fill()
193 if (nla_put_u16(msg, DEVLINK_ATTR_SB_EGRESS_TC_COUNT, in devlink_nl_sb_fill()
286 if (nla_put_u16(msg, DEVLINK_ATTR_SB_POOL_INDEX, pool_index)) in devlink_nl_sb_pool_fill()
475 if (nla_put_u16(msg, DEVLINK_ATTR_SB_POOL_INDEX, pool_index)) in devlink_nl_sb_port_pool_fill()
681 if (nla_put_u16(msg, DEVLINK_ATTR_SB_TC_INDEX, tc_index)) in devlink_nl_sb_tc_pool_bind_fill()
685 if (nla_put_u16(msg, DEVLINK_ATTR_SB_POOL_INDEX, pool_index)) in devlink_nl_sb_tc_pool_bind_fill()
A Dport.c241 if (nla_put_u16(msg, DEVLINK_ATTR_PORT_FLAVOUR, attrs->flavour)) in devlink_nl_port_attrs_put()
247 nla_put_u16(msg, DEVLINK_ATTR_PORT_PCI_PF_NUMBER, attrs->pci_pf.pf)) in devlink_nl_port_attrs_put()
255 nla_put_u16(msg, DEVLINK_ATTR_PORT_PCI_PF_NUMBER, attrs->pci_vf.pf) || in devlink_nl_port_attrs_put()
256 nla_put_u16(msg, DEVLINK_ATTR_PORT_PCI_VF_NUMBER, attrs->pci_vf.vf)) in devlink_nl_port_attrs_put()
264 nla_put_u16(msg, DEVLINK_ATTR_PORT_PCI_PF_NUMBER, in devlink_nl_port_attrs_put()
504 if (nla_put_u16(msg, DEVLINK_ATTR_PORT_TYPE, devlink_port->type)) in devlink_nl_port_fill()
507 nla_put_u16(msg, DEVLINK_ATTR_PORT_DESIRED_TYPE, in devlink_nl_port_fill()
/linux/net/psample/
A Dpsample.c419 ret = nla_put_u16(nl_skb, PSAMPLE_ATTR_IIFINDEX, in_ifindex); in psample_sample_packet()
425 ret = nla_put_u16(nl_skb, PSAMPLE_ATTR_OIFINDEX, out_ifindex); in psample_sample_packet()
447 ret = nla_put_u16(nl_skb, PSAMPLE_ATTR_OUT_TC, md->out_tc); in psample_sample_packet()
471 ret = nla_put_u16(nl_skb, PSAMPLE_ATTR_PROTO, in psample_sample_packet()
/linux/net/hsr/
A Dhsr_netlink.c166 nla_put_u16(skb, IFLA_HSR_SEQ_NR, hsr->sequence_nr)) in hsr_fill_info()
385 res = nla_put_u16(skb_out, HSR_A_IF1_SEQ, hsr_node_if1_seq); in hsr_get_node_status()
398 res = nla_put_u16(skb_out, HSR_A_IF2_SEQ, hsr_node_if2_seq); in hsr_get_node_status()
/linux/net/l2tp/
A Dl2tp_netlink.c332 if (nla_put_u16(skb, L2TP_ATTR_UDP_SPORT, ntohs(inet->inet_sport)) || in l2tp_nl_tunnel_send_addr6()
333 nla_put_u16(skb, L2TP_ATTR_UDP_DPORT, ntohs(inet->inet_dport))) in l2tp_nl_tunnel_send_addr6()
354 nla_put_u16(skb, L2TP_ATTR_UDP_SPORT, ntohs(inet->inet_sport)) || in l2tp_nl_tunnel_send_addr4()
355 nla_put_u16(skb, L2TP_ATTR_UDP_DPORT, ntohs(inet->inet_dport))) in l2tp_nl_tunnel_send_addr4()
399 nla_put_u16(skb, L2TP_ATTR_ENCAP_TYPE, tunnel->encap)) in l2tp_nl_tunnel_send()
738 nla_put_u16(skb, L2TP_ATTR_PW_TYPE, session->pwtype)) in l2tp_nl_session_send()
/linux/net/bridge/
A Dbr_netlink_tunnel.c102 if (nla_put_u16(skb, IFLA_BRIDGE_VLAN_TUNNEL_VID, in br_fill_vlan_tinfo()
105 if (nla_put_u16(skb, IFLA_BRIDGE_VLAN_TUNNEL_FLAGS, in br_fill_vlan_tinfo()
A Dbr_netlink.c241 nla_put_u16(skb, IFLA_BRPORT_PRIORITY, p->priority) || in br_port_fill_attrs()
265 nla_put_u16(skb, IFLA_BRPORT_DESIGNATED_PORT, p->designated_port) || in br_port_fill_attrs()
266 nla_put_u16(skb, IFLA_BRPORT_DESIGNATED_COST, p->designated_cost) || in br_port_fill_attrs()
267 nla_put_u16(skb, IFLA_BRPORT_ID, p->port_id) || in br_port_fill_attrs()
268 nla_put_u16(skb, IFLA_BRPORT_NO, p->port_no) || in br_port_fill_attrs()
274 nla_put_u16(skb, IFLA_BRPORT_GROUP_FWD_MASK, p->group_fwd_mask) || in br_port_fill_attrs()
1671 nla_put_u16(skb, IFLA_BR_PRIORITY, priority) || in br_fill_info()
1673 nla_put_u16(skb, IFLA_BR_GROUP_FWD_MASK, br->group_fwd_mask) || in br_fill_info()
1678 nla_put_u16(skb, IFLA_BR_ROOT_PORT, br->root_port) || in br_fill_info()
1692 nla_put_u16(skb, IFLA_BR_VLAN_DEFAULT_PVID, br->default_pvid) || in br_fill_info()
A Dbr_vlan_options.c360 if (nla_put_u16(skb, BRIDGE_VLANDB_GOPTS_ID, vid)) in br_vlan_global_opts_fill()
364 nla_put_u16(skb, BRIDGE_VLANDB_GOPTS_RANGE, vid_range)) in br_vlan_global_opts_fill()
431 if (nla_put_u16(skb, BRIDGE_VLANDB_GOPTS_MSTI, v_opts->msti)) in br_vlan_global_opts_fill()
/linux/net/sched/
A Dact_skbedit.c309 nla_put_u16(skb, TCA_SKBEDIT_QUEUE_MAPPING, params->queue_mapping)) in tcf_skbedit_dump()
315 nla_put_u16(skb, TCA_SKBEDIT_PTYPE, params->ptype)) in tcf_skbedit_dump()
323 if (nla_put_u16(skb, TCA_SKBEDIT_QUEUE_MAPPING_MAX, in tcf_skbedit_dump()
A Dact_pedit.c128 if (nla_put_u16(skb, TCA_PEDIT_KEY_EX_HTYPE, keys_ex->htype) || in tcf_pedit_key_ex_dump()
129 nla_put_u16(skb, TCA_PEDIT_KEY_EX_CMD, keys_ex->cmd)) in tcf_pedit_key_ex_dump()
/linux/drivers/net/wireless/broadcom/brcm80211/brcmfmac/
A Dvendor.c88 nla_put_u16(reply, BRCMF_NLATTR_LEN, msglen)) { in brcmf_cfg80211_vndr_cmds_dcmd_handler()
/linux/net/openvswitch/
A Dvport-geneve.c46 if (nla_put_u16(skb, OVS_TUNNEL_ATTR_DST_PORT, geneve_port->dst_port)) in geneve_get_options()
A Dvport-vxlan.c27 if (nla_put_u16(skb, OVS_TUNNEL_ATTR_DST_PORT, ntohs(dst_port))) in vxlan_get_options()
/linux/net/mptcp/
A Ddiag.c66 nla_put_u16(skb, MPTCP_SUBFLOW_ATTR_MAP_DATALEN, in subflow_get_info()
/linux/drivers/vdpa/
A Dvdpa.c772 if (nla_put_u16(msg, VDPA_ATTR_DEV_MAX_VQ_SIZE, max_vq_size)) in vdpa_dev_fill()
774 if (nla_put_u16(msg, VDPA_ATTR_DEV_MIN_VQ_SIZE, min_vq_size)) in vdpa_dev_fill()
884 return nla_put_u16(msg, VDPA_ATTR_DEV_NET_CFG_MAX_VQP, val_u16); in vdpa_dev_net_mq_config_fill()
897 return nla_put_u16(msg, VDPA_ATTR_DEV_NET_CFG_MTU, val_u16); in vdpa_dev_net_mtu_config_fill()
919 return nla_put_u16(msg, VDPA_ATTR_DEV_NET_STATUS, val_u16); in vdpa_dev_net_status_config_fill()
1012 return nla_put_u16(msg, VDPA_ATTR_DEV_BLK_CFG_NUM_QUEUES, val_u16); in vdpa_dev_blk_mq_config_fill()
1035 if (nla_put_u16(msg, VDPA_ATTR_DEV_BLK_CFG_MIN_IO_SIZE, min_io_size)) in vdpa_dev_blk_topology_config_fill()
/linux/net/smc/
A Dsmc_ism.c323 if (nla_put_u16(skb, SMC_NLA_DEV_PCI_CHID, smc_pci_dev.pci_pchid)) in smc_nl_handle_smcd_dev()
325 if (nla_put_u16(skb, SMC_NLA_DEV_PCI_VENDOR, smc_pci_dev.pci_vendor)) in smc_nl_handle_smcd_dev()
327 if (nla_put_u16(skb, SMC_NLA_DEV_PCI_DEVICE, smc_pci_dev.pci_device)) in smc_nl_handle_smcd_dev()
/linux/net/ethtool/
A Dcabletest.c388 if (nla_put_u16(phydev->skb, ETHTOOL_A_CABLE_AMPLITUDE_mV, mV)) in ethnl_cable_test_amplitude()
409 if (nla_put_u16(phydev->skb, ETHTOOL_A_CABLE_PULSE_mV, mV)) in ethnl_cable_test_pulse()
/linux/drivers/net/wireguard/
A Dnetlink.c85 nla_put_u16(skb, WGALLOWEDIP_A_FAMILY, family) || in get_allowedips()
139 nla_put_u16(skb, WGPEER_A_PERSISTENT_KEEPALIVE_INTERVAL, in get_peer()
232 if (nla_put_u16(skb, WGDEVICE_A_LISTEN_PORT, in wg_get_device_dump()
/linux/net/ipv4/
A Dipip.c535 if (nla_put_u16(skb, IFLA_IPTUN_ENCAP_TYPE, in ipip_fill_info()
541 nla_put_u16(skb, IFLA_IPTUN_ENCAP_FLAGS, in ipip_fill_info()
/linux/net/tls/
A Dtls_main.c1036 err = nla_put_u16(skb, TLS_INFO_VERSION, version); in tls_get_info()
1042 err = nla_put_u16(skb, TLS_INFO_CIPHER, cipher_type); in tls_get_info()
1046 err = nla_put_u16(skb, TLS_INFO_TXCONF, tls_user_config(ctx, true)); in tls_get_info()
1050 err = nla_put_u16(skb, TLS_INFO_RXCONF, tls_user_config(ctx, false)); in tls_get_info()
/linux/net/ipv6/
A Dioam6.c220 if (nla_put_u16(skb, IOAM6_ATTR_NS_ID, be16_to_cpu(ns->id)) || in __ioam6_genl_dumpns_element()
417 if (ns && nla_put_u16(skb, IOAM6_ATTR_NS_ID, be16_to_cpu(ns->id))) { in __ioam6_genl_dumpsc_element()
626 if (nla_put_u16(skb, IOAM6_EVENT_ATTR_TRACE_NAMESPACE, in ioam6_event_put_trace()
/linux/net/core/
A Ddrop_monitor.c628 if (nla_put_u16(msg, NET_DM_ATTR_ORIGIN, NET_DM_ORIGIN_SW)) in net_dm_packet_report_fill()
672 if (nla_put_u16(msg, NET_DM_ATTR_PROTO, be16_to_cpu(skb->protocol))) in net_dm_packet_report_fill()
795 if (nla_put_u16(msg, NET_DM_ATTR_ORIGIN, NET_DM_ORIGIN_HW)) in net_dm_hw_packet_report_fill()
832 if (nla_put_u16(msg, NET_DM_ATTR_PROTO, be16_to_cpu(skb->protocol))) in net_dm_hw_packet_report_fill()
/linux/include/linux/
A Dgenl_magic_struct.h78 nla_get_u16, nla_put_u16, false)

Completed in 56 milliseconds

1234