Home
last modified time | relevance | path

Searched refs:nlattr (Results 1 – 25 of 301) sorted by relevance

12345678910>>...13

/net/openvswitch/
Dflow_netlink.h35 int parse_flow_nlattrs(const struct nlattr *attr, const struct nlattr *a[],
38 const struct nlattr *a[OVS_KEY_ATTR_MAX + 1],
46 const struct nlattr *key, const struct nlattr *mask,
52 bool ovs_nla_get_ufid(struct sw_flow_id *, const struct nlattr *, bool log);
53 int ovs_nla_get_identifier(struct sw_flow_id *sfid, const struct nlattr *ufid,
55 u32 ovs_nla_get_ufid_flags(const struct nlattr *attr);
57 int ovs_nla_copy_actions(struct net *net, const struct nlattr *attr,
62 int ovs_nla_put_actions(const struct nlattr *attr,
68 int nsh_key_from_nlattr(const struct nlattr *attr, struct ovs_key_nsh *nsh,
70 int nsh_hdr_from_nlattr(const struct nlattr *attr, struct nshhdr *nh,
Dflow_netlink.c52 static bool actions_may_change_flow(const struct nlattr *actions) in actions_may_change_flow()
54 struct nlattr *nla; in actions_may_change_flow()
464 static int __parse_flow_nlattrs(const struct nlattr *attr, in __parse_flow_nlattrs()
465 const struct nlattr *a[], in __parse_flow_nlattrs()
468 const struct nlattr *nla; in __parse_flow_nlattrs()
509 static int parse_flow_mask_nlattrs(const struct nlattr *attr, in parse_flow_mask_nlattrs()
510 const struct nlattr *a[], u64 *attrsp, in parse_flow_mask_nlattrs()
516 int parse_flow_nlattrs(const struct nlattr *attr, const struct nlattr *a[], in parse_flow_nlattrs()
522 static int genev_tun_opt_from_nlattr(const struct nlattr *a, in genev_tun_opt_from_nlattr()
573 static int vxlan_tun_opt_from_nlattr(const struct nlattr *attr, in vxlan_tun_opt_from_nlattr()
[all …]
Dvport-vxlan.c31 struct nlattr *exts; in vxlan_get_options()
51 static int vxlan_configure_exts(struct vport *vport, struct nlattr *attr, in vxlan_configure_exts()
54 struct nlattr *exts[OVS_VXLAN_EXT_MAX + 1]; in vxlan_configure_exts()
57 if (nla_len(attr) < sizeof(struct nlattr)) in vxlan_configure_exts()
74 struct nlattr *options = parms->options; in vxlan_tnl_create()
77 struct nlattr *a; in vxlan_tnl_create()
Dvport.h35 int ovs_vport_set_options(struct vport *, struct nlattr *options);
38 int ovs_vport_set_upcall_portids(struct vport *, const struct nlattr *pids);
97 struct nlattr *options;
102 struct nlattr *upcall_portids;
128 int (*set_options)(struct vport *, struct nlattr *);
Dconntrack.h19 int ovs_ct_copy_action(struct net *, const struct nlattr *,
31 void ovs_ct_free_action(const struct nlattr *a);
49 static inline int ovs_ct_copy_action(struct net *net, const struct nlattr *nla, in ovs_ct_copy_action()
96 static inline void ovs_ct_free_action(const struct nlattr *a) { } in ovs_ct_free_action()
/net/bridge/
Dbr_mrp_netlink.c31 static int br_mrp_instance_parse(struct net_bridge *br, struct nlattr *attr, in br_mrp_instance_parse()
34 struct nlattr *tb[IFLA_BRIDGE_MRP_INSTANCE_MAX + 1]; in br_mrp_instance_parse()
76 struct nlattr *attr, in br_mrp_port_state_parse()
79 struct nlattr *tb[IFLA_BRIDGE_MRP_PORT_STATE_MAX + 1]; in br_mrp_port_state_parse()
105 struct nlattr *attr, in br_mrp_port_role_parse()
108 struct nlattr *tb[IFLA_BRIDGE_MRP_PORT_ROLE_MAX + 1]; in br_mrp_port_role_parse()
134 static int br_mrp_ring_state_parse(struct net_bridge *br, struct nlattr *attr, in br_mrp_ring_state_parse()
137 struct nlattr *tb[IFLA_BRIDGE_MRP_RING_STATE_MAX + 1]; in br_mrp_ring_state_parse()
168 static int br_mrp_ring_role_parse(struct net_bridge *br, struct nlattr *attr, in br_mrp_ring_role_parse()
171 struct nlattr *tb[IFLA_BRIDGE_MRP_RING_ROLE_MAX + 1]; in br_mrp_ring_role_parse()
[all …]
/net/tipc/
Dnetlink_compat.c68 int (*format)(struct tipc_nl_compat_msg *msg, struct nlattr **attrs);
191 struct nlattr **attrbuf; in __tipc_nl_compat_dumpit()
209 sizeof(struct nlattr *), GFP_KERNEL); in __tipc_nl_compat_dumpit()
335 struct nlattr **attrbuf; in __tipc_nl_compat_doit()
343 sizeof(struct nlattr *), in __tipc_nl_compat_doit()
365 (const struct nlattr *)trans_buf->data, in __tipc_nl_compat_doit()
407 struct nlattr **attrs) in tipc_nl_compat_bearer_dump()
409 struct nlattr *bearer[TIPC_NLA_BEARER_MAX + 1]; in tipc_nl_compat_bearer_dump()
429 struct nlattr *prop; in tipc_nl_compat_bearer_enable()
430 struct nlattr *bearer; in tipc_nl_compat_bearer_enable()
[all …]
/net/dcb/
Ddcbnl.c208 u32 seq, struct nlattr **tb, struct sk_buff *skb) in dcbnl_getstate()
219 u32 seq, struct nlattr **tb, struct sk_buff *skb) in dcbnl_getpfccfg()
221 struct nlattr *data[DCB_PFC_UP_ATTR_MAX + 1], *nest; in dcbnl_getpfccfg()
264 u32 seq, struct nlattr **tb, struct sk_buff *skb) in dcbnl_getperm_hwaddr()
278 u32 seq, struct nlattr **tb, struct sk_buff *skb) in dcbnl_getcap()
280 struct nlattr *data[DCB_CAP_ATTR_MAX + 1], *nest; in dcbnl_getcap()
323 u32 seq, struct nlattr **tb, struct sk_buff *skb) in dcbnl_getnumtcs()
325 struct nlattr *data[DCB_NUMTCS_ATTR_MAX + 1], *nest; in dcbnl_getnumtcs()
370 u32 seq, struct nlattr **tb, struct sk_buff *skb) in dcbnl_setnumtcs()
372 struct nlattr *data[DCB_NUMTCS_ATTR_MAX + 1]; in dcbnl_setnumtcs()
[all …]
/net/ethtool/
Dbitset.c236 struct nlattr *nest; in ethnl_put_bitset32()
237 struct nlattr *attr; in ethnl_put_bitset32()
270 struct nlattr *bits; in ethnl_put_bitset32()
328 int ethnl_bitset_is_compact(const struct nlattr *bitset, bool *compact) in ethnl_bitset_is_compact()
330 struct nlattr *tb[ARRAY_SIZE(bitset_policy)]; in ethnl_bitset_is_compact()
378 const struct nlattr *bit_attr, bool no_mask, in ethnl_parse_bit()
382 struct nlattr *tb[ARRAY_SIZE(bit_policy)]; in ethnl_parse_bit()
430 const struct nlattr *attr, struct nlattr **tb, in ethnl_update_bitset32_verbose()
434 struct nlattr *bit_attr; in ethnl_update_bitset32_verbose()
481 const struct nlattr *nest, in ethnl_compact_sanity_checks()
[all …]
Dnetlink.h14 const struct nlattr *nest, struct net *net,
51 struct nlattr *attr; in ethnl_put_strz()
73 static inline void ethnl_update_u32(u32 *dst, const struct nlattr *attr, in ethnl_update_u32()
99 static inline void ethnl_update_u8(u8 *dst, const struct nlattr *attr, in ethnl_update_u8()
125 static inline void ethnl_update_bool32(u32 *dst, const struct nlattr *attr, in ethnl_update_bool32()
153 const struct nlattr *attr, bool *mod) in ethnl_update_binary()
176 static inline void ethnl_update_bitfield32(u32 *dst, const struct nlattr *attr, in ethnl_update_bitfield32()
321 struct nlattr **tb,
Dbitset.h10 int ethnl_bitset_is_compact(const struct nlattr *bitset, bool *compact);
24 const struct nlattr *attr, ethnl_string_array_t names,
27 const struct nlattr *attr, ethnl_string_array_t names,
30 unsigned int nbits, const struct nlattr *attr,
Dcabletest.c60 struct nlattr **tb = info->attrs; in ethnl_act_cable_test()
165 struct nlattr *nest; in ethnl_cable_test_result()
188 struct nlattr *nest; in ethnl_cable_test_fault_length()
228 static int ethnl_act_cable_test_tdr_cfg(const struct nlattr *nest, in ethnl_act_cable_test_tdr_cfg()
232 struct nlattr *tb[ARRAY_SIZE(cable_test_tdr_act_cfg_policy)]; in ethnl_act_cable_test_tdr_cfg()
311 struct nlattr **tb = info->attrs; in ethnl_act_cable_test_tdr()
363 struct nlattr *nest; in ethnl_cable_test_amplitude()
387 struct nlattr *nest; in ethnl_cable_test_pulse()
409 struct nlattr *nest; in ethnl_cable_test_step()
Dstrset.c135 static int strset_get_id(const struct nlattr *nest, u32 *val, in strset_get_id()
138 struct nlattr *tb[ARRAY_SIZE(get_stringset_policy)]; in strset_get_id()
157 struct nlattr **tb, in strset_parse_request()
161 struct nlattr *nest = tb[ETHTOOL_A_STRSET_STRINGSETS]; in strset_parse_request()
162 struct nlattr *attr; in strset_parse_request()
352 struct nlattr *string_attr; in strset_fill_string()
376 struct nlattr *stringset_attr; in strset_fill_set()
377 struct nlattr *strings_attr; in strset_fill_set()
417 struct nlattr *nest; in strset_fill_reply()
/net/netfilter/
Dnf_conntrack_netlink.c66 struct nlattr *nest_parms; in ctnetlink_dump_tuples_proto()
107 struct nlattr *nest_parms; in ctnetlink_dump_tuples_ip()
185 struct nlattr *nest_proto; in ctnetlink_dump_protoinfo()
209 struct nlattr *nest_helper; in ctnetlink_dump_helpinfo()
246 struct nlattr *nest_count; in dump_counters()
294 struct nlattr *nest_count; in ctnetlink_dump_timestamp()
342 struct nlattr *nest_secctx; in ctnetlink_dump_secctx()
406 struct nlattr *nest_parms; in ctnetlink_dump_master()
427 struct nlattr *nest_parms; in dump_ct_seq_adj()
476 struct nlattr *nest_parms; in ctnetlink_dump_ct_synproxy()
[all …]
Dnfnetlink_cthelper.c73 const struct nlattr *attr) in nfnl_cthelper_parse_tuple()
76 struct nlattr *tb[NFCTH_TUPLE_MAX+1]; in nfnl_cthelper_parse_tuple()
96 nfnl_cthelper_from_nlattr(struct nlattr *attr, struct nf_conn *ct) in nfnl_cthelper_from_nlattr()
134 const struct nlattr *attr) in nfnl_cthelper_expect_policy()
137 struct nlattr *tb[NFCTH_POLICY_MAX+1]; in nfnl_cthelper_expect_policy()
169 const struct nlattr *attr) in nfnl_cthelper_parse_expect_policy()
173 struct nlattr *tb[NFCTH_POLICY_SET_MAX+1]; in nfnl_cthelper_parse_expect_policy()
216 nfnl_cthelper_create(const struct nlattr * const tb[], in nfnl_cthelper_create()
286 const struct nlattr *attr) in nfnl_cthelper_update_policy_one()
288 struct nlattr *tb[NFCTH_POLICY_MAX + 1]; in nfnl_cthelper_update_policy_one()
[all …]
Dnft_tunnel.c75 const struct nlattr * const tb[]) in nft_tunnel_get_init()
164 const struct nlattr *attr, in nft_tunnel_obj_ip_init()
167 struct nlattr *tb[NFTA_TUNNEL_KEY_IP_MAX + 1]; in nft_tunnel_obj_ip_init()
193 const struct nlattr *attr, in nft_tunnel_obj_ip6_init()
196 struct nlattr *tb[NFTA_TUNNEL_KEY_IP6_MAX + 1]; in nft_tunnel_obj_ip6_init()
229 static int nft_tunnel_obj_vxlan_init(const struct nlattr *attr, in nft_tunnel_obj_vxlan_init()
232 struct nlattr *tb[NFTA_TUNNEL_KEY_VXLAN_MAX + 1]; in nft_tunnel_obj_vxlan_init()
258 static int nft_tunnel_obj_erspan_init(const struct nlattr *attr, in nft_tunnel_obj_erspan_init()
261 struct nlattr *tb[NFTA_TUNNEL_KEY_ERSPAN_MAX + 1]; in nft_tunnel_obj_erspan_init()
311 static int nft_tunnel_obj_geneve_init(const struct nlattr *attr, in nft_tunnel_obj_geneve_init()
[all …]
/net/8021q/
Dvlan_netlink.c31 static inline int vlan_validate_qos_map(struct nlattr *attr) in vlan_validate_qos_map()
39 static int vlan_validate(struct nlattr *tb[], struct nlattr *data[], in vlan_validate()
104 static int vlan_changelink(struct net_device *dev, struct nlattr *tb[], in vlan_changelink()
105 struct nlattr *data[], in vlan_changelink()
110 struct nlattr *attr; in vlan_changelink()
141 struct nlattr *tb[], struct nlattr *data[], in vlan_newlink()
202 return nla_total_size(sizeof(struct nlattr)) + in vlan_qos_map_size()
223 struct nlattr *nest; in vlan_fill_info()
/net/sched/
Dact_api.c235 struct nlattr *nest; in tcf_dump_walker()
308 struct nlattr *nest; in tcf_del_walker()
426 int tcf_idr_create(struct tc_action_net *tn, u32 index, struct nlattr *est, in tcf_idr_create()
483 struct nlattr *est, struct tc_action **a, in tcf_idr_create_from_flags()
655 static struct tc_action_ops *tc_lookup_action(struct nlattr *kind) in tc_lookup_action()
816 struct nlattr *nest; in tcf_action_dump_1()
856 struct nlattr *nest; in tcf_action_dump()
879 static struct tc_cookie *nla_memdup_cookie(struct nlattr **tb) in nla_memdup_cookie()
895 static u8 tcf_action_hw_stats_get(struct nlattr *hw_stats_attr) in tcf_action_hw_stats_get()
939 struct tc_action_ops *tc_action_load_ops(char *name, struct nlattr *nla, in tc_action_load_ops()
[all …]
Dact_tunnel_key.c87 tunnel_key_copy_geneve_opt(const struct nlattr *nla, void *dst, int dst_len, in tunnel_key_copy_geneve_opt()
90 struct nlattr *tb[TCA_TUNNEL_KEY_ENC_OPT_GENEVE_MAX + 1]; in tunnel_key_copy_geneve_opt()
139 tunnel_key_copy_vxlan_opt(const struct nlattr *nla, void *dst, int dst_len, in tunnel_key_copy_vxlan_opt()
142 struct nlattr *tb[TCA_TUNNEL_KEY_ENC_OPT_VXLAN_MAX + 1]; in tunnel_key_copy_vxlan_opt()
166 tunnel_key_copy_erspan_opt(const struct nlattr *nla, void *dst, int dst_len, in tunnel_key_copy_erspan_opt()
169 struct nlattr *tb[TCA_TUNNEL_KEY_ENC_OPT_ERSPAN_MAX + 1]; in tunnel_key_copy_erspan_opt()
218 static int tunnel_key_copy_opts(const struct nlattr *nla, u8 *dst, in tunnel_key_copy_opts()
222 const struct nlattr *attr, *head = nla_data(nla); in tunnel_key_copy_opts()
291 static int tunnel_key_get_opts_len(struct nlattr *nla, in tunnel_key_get_opts_len()
297 static int tunnel_key_opts_set(struct nlattr *nla, struct ip_tunnel_info *info, in tunnel_key_opts_set()
[all …]
Dematch.c171 struct tcf_ematch *em, struct nlattr *nla, int idx) in tcf_em_validate()
305 int tcf_em_tree_validate(struct tcf_proto *tp, struct nlattr *nla, in tcf_em_tree_validate()
309 struct nlattr *tb[TCA_EMATCH_TREE_MAX + 1]; in tcf_em_tree_validate()
310 struct nlattr *rt_match, *rt_hdr, *rt_list; in tcf_em_tree_validate()
441 struct nlattr *top_start; in tcf_em_tree_dump()
442 struct nlattr *list_start; in tcf_em_tree_dump()
457 struct nlattr *match_start = (struct nlattr *)tail; in tcf_em_tree_dump()
/net/xfrm/
Dxfrm_user.c37 static int verify_one_alg(struct nlattr **attrs, enum xfrm_attr_type_t type) in verify_one_alg()
39 struct nlattr *rt = attrs[type]; in verify_one_alg()
63 static int verify_auth_trunc(struct nlattr **attrs) in verify_auth_trunc()
65 struct nlattr *rt = attrs[XFRMA_ALG_AUTH_TRUNC]; in verify_auth_trunc()
79 static int verify_aead(struct nlattr **attrs) in verify_aead()
81 struct nlattr *rt = attrs[XFRMA_ALG_AEAD]; in verify_aead()
95 static void verify_one_addr(struct nlattr **attrs, enum xfrm_attr_type_t type, in verify_one_addr()
98 struct nlattr *rt = attrs[type]; in verify_one_addr()
104 static inline int verify_sec_ctx_len(struct nlattr **attrs) in verify_sec_ctx_len()
106 struct nlattr *rt = attrs[XFRMA_SEC_CTX]; in verify_sec_ctx_len()
[all …]
/net/core/
Drtnetlink.c505 size = nla_total_size(sizeof(struct nlattr)) + in rtnl_link_get_slave_info_data_size()
521 size = nla_total_size(sizeof(struct nlattr)) + /* IFLA_LINKINFO */ in rtnl_link_get_size()
526 size += nla_total_size(sizeof(struct nlattr)) + in rtnl_link_get_size()
587 size = nla_total_size(sizeof(struct nlattr)); in rtnl_link_get_af_size()
593 size += nla_total_size(sizeof(struct nlattr)) + in rtnl_link_get_af_size()
621 struct nlattr *slave_data; in rtnl_link_slave_info_fill()
652 struct nlattr *data; in rtnl_link_info_fill()
682 struct nlattr *linkinfo; in rtnl_link_fill()
751 struct nlattr *mx; in rtnetlink_put_metrics()
967 size_t vf_ports_size = nla_total_size(sizeof(struct nlattr)); in rtnl_port_size()
[all …]
/net/ipv6/
Dseg6_local.c659 static int parse_nla_srh(struct nlattr **attrs, struct seg6_local_lwt *slwt) in parse_nla_srh()
686 struct nlattr *nla; in put_nla_srh()
711 static int parse_nla_table(struct nlattr **attrs, struct seg6_local_lwt *slwt) in parse_nla_table()
734 static int parse_nla_nh4(struct nlattr **attrs, struct seg6_local_lwt *slwt) in parse_nla_nh4()
744 struct nlattr *nla; in put_nla_nh4()
760 static int parse_nla_nh6(struct nlattr **attrs, struct seg6_local_lwt *slwt) in parse_nla_nh6()
770 struct nlattr *nla; in put_nla_nh6()
786 static int parse_nla_iif(struct nlattr **attrs, struct seg6_local_lwt *slwt) in parse_nla_iif()
809 static int parse_nla_oif(struct nlattr **attrs, struct seg6_local_lwt *slwt) in parse_nla_oif()
839 static int parse_nla_bpf(struct nlattr **attrs, struct seg6_local_lwt *slwt) in parse_nla_bpf()
[all …]
/net/netfilter/ipset/
Dip_set_core.c269 flag_nested(const struct nlattr *nla) in flag_nested()
280 ip_set_get_ipaddr4(struct nlattr *nla, __be32 *ipaddr) in ip_set_get_ipaddr4()
282 struct nlattr *tb[IPSET_ATTR_IPADDR_MAX + 1]; in ip_set_get_ipaddr4()
298 ip_set_get_ipaddr6(struct nlattr *nla, union nf_inet_addr *ipaddr) in ip_set_get_ipaddr6()
300 struct nlattr *tb[IPSET_ATTR_IPADDR_MAX + 1]; in ip_set_get_ipaddr6()
331 ip_set_comment_uget(struct nlattr *tb) in ip_set_comment_uget()
426 add_extension(enum ip_set_ext_id id, u32 flags, struct nlattr *tb[]) in add_extension()
434 ip_set_elem_len(struct ip_set *set, struct nlattr *tb[], size_t len, in ip_set_elem_len()
461 ip_set_get_extensions(struct ip_set *set, struct nlattr *tb[], in ip_set_get_extensions()
944 static inline u8 protocol(const struct nlattr * const tb[]) in protocol()
[all …]
/net/ipv4/
Dip_tunnel_core.c478 static int ip_tun_parse_opts_geneve(struct nlattr *attr, in ip_tun_parse_opts_geneve()
482 struct nlattr *tb[LWTUNNEL_IP_OPT_GENEVE_MAX + 1]; in ip_tun_parse_opts_geneve()
515 static int ip_tun_parse_opts_vxlan(struct nlattr *attr, in ip_tun_parse_opts_vxlan()
519 struct nlattr *tb[LWTUNNEL_IP_OPT_VXLAN_MAX + 1]; in ip_tun_parse_opts_vxlan()
543 static int ip_tun_parse_opts_erspan(struct nlattr *attr, in ip_tun_parse_opts_erspan()
547 struct nlattr *tb[LWTUNNEL_IP_OPT_ERSPAN_MAX + 1]; in ip_tun_parse_opts_erspan()
592 static int ip_tun_parse_opts(struct nlattr *attr, struct ip_tunnel_info *info, in ip_tun_parse_opts()
596 struct nlattr *nla; in ip_tun_parse_opts()
648 static int ip_tun_get_optlen(struct nlattr *attr, in ip_tun_get_optlen()
654 static int ip_tun_set_opts(struct nlattr *attr, struct ip_tunnel_info *info, in ip_tun_set_opts()
[all …]

12345678910>>...13