Lines Matching refs:tb
138 struct nlattr **tb, in br_vlan_modify_tunnel() argument
156 attr = tb[BRIDGE_VLANDB_ENTRY_TUNNEL_INFO]; in br_vlan_modify_tunnel()
176 vinfo = nla_data(tb[BRIDGE_VLANDB_ENTRY_INFO]); in br_vlan_modify_tunnel()
197 struct nlattr **tb, in br_vlan_process_one_opts() argument
204 if (tb[BRIDGE_VLANDB_ENTRY_STATE]) { in br_vlan_process_one_opts()
205 u8 state = nla_get_u8(tb[BRIDGE_VLANDB_ENTRY_STATE]); in br_vlan_process_one_opts()
211 if (tb[BRIDGE_VLANDB_ENTRY_TUNNEL_INFO]) { in br_vlan_process_one_opts()
212 err = br_vlan_modify_tunnel(p, v, tb, changed, extack); in br_vlan_process_one_opts()
218 if (tb[BRIDGE_VLANDB_ENTRY_MCAST_ROUTER]) { in br_vlan_process_one_opts()
221 val = nla_get_u8(tb[BRIDGE_VLANDB_ENTRY_MCAST_ROUTER]); in br_vlan_process_one_opts()
227 if (tb[BRIDGE_VLANDB_ENTRY_MCAST_MAX_GROUPS]) { in br_vlan_process_one_opts()
239 val = nla_get_u32(tb[BRIDGE_VLANDB_ENTRY_MCAST_MAX_GROUPS]); in br_vlan_process_one_opts()
245 if (tb[BRIDGE_VLANDB_ENTRY_NEIGH_SUPPRESS]) { in br_vlan_process_one_opts()
247 bool val = nla_get_u8(tb[BRIDGE_VLANDB_ENTRY_NEIGH_SUPPRESS]); in br_vlan_process_one_opts()
267 struct nlattr **tb, in br_vlan_process_options() argument
300 err = br_vlan_process_one_opts(br, p, vg, v, tb, &changed, in br_vlan_process_options()
514 struct nlattr **tb, in br_vlan_process_global_one_opts() argument
522 if (tb[BRIDGE_VLANDB_GOPTS_MCAST_SNOOPING]) { in br_vlan_process_global_one_opts()
525 mc_snooping = nla_get_u8(tb[BRIDGE_VLANDB_GOPTS_MCAST_SNOOPING]); in br_vlan_process_global_one_opts()
529 if (tb[BRIDGE_VLANDB_GOPTS_MCAST_IGMP_VERSION]) { in br_vlan_process_global_one_opts()
532 ver = nla_get_u8(tb[BRIDGE_VLANDB_GOPTS_MCAST_IGMP_VERSION]); in br_vlan_process_global_one_opts()
538 if (tb[BRIDGE_VLANDB_GOPTS_MCAST_LAST_MEMBER_CNT]) { in br_vlan_process_global_one_opts()
541 cnt = nla_get_u32(tb[BRIDGE_VLANDB_GOPTS_MCAST_LAST_MEMBER_CNT]); in br_vlan_process_global_one_opts()
545 if (tb[BRIDGE_VLANDB_GOPTS_MCAST_STARTUP_QUERY_CNT]) { in br_vlan_process_global_one_opts()
548 cnt = nla_get_u32(tb[BRIDGE_VLANDB_GOPTS_MCAST_STARTUP_QUERY_CNT]); in br_vlan_process_global_one_opts()
552 if (tb[BRIDGE_VLANDB_GOPTS_MCAST_LAST_MEMBER_INTVL]) { in br_vlan_process_global_one_opts()
555 val = nla_get_u64(tb[BRIDGE_VLANDB_GOPTS_MCAST_LAST_MEMBER_INTVL]); in br_vlan_process_global_one_opts()
559 if (tb[BRIDGE_VLANDB_GOPTS_MCAST_MEMBERSHIP_INTVL]) { in br_vlan_process_global_one_opts()
562 val = nla_get_u64(tb[BRIDGE_VLANDB_GOPTS_MCAST_MEMBERSHIP_INTVL]); in br_vlan_process_global_one_opts()
566 if (tb[BRIDGE_VLANDB_GOPTS_MCAST_QUERIER_INTVL]) { in br_vlan_process_global_one_opts()
569 val = nla_get_u64(tb[BRIDGE_VLANDB_GOPTS_MCAST_QUERIER_INTVL]); in br_vlan_process_global_one_opts()
573 if (tb[BRIDGE_VLANDB_GOPTS_MCAST_QUERY_INTVL]) { in br_vlan_process_global_one_opts()
576 val = nla_get_u64(tb[BRIDGE_VLANDB_GOPTS_MCAST_QUERY_INTVL]); in br_vlan_process_global_one_opts()
580 if (tb[BRIDGE_VLANDB_GOPTS_MCAST_QUERY_RESPONSE_INTVL]) { in br_vlan_process_global_one_opts()
583 val = nla_get_u64(tb[BRIDGE_VLANDB_GOPTS_MCAST_QUERY_RESPONSE_INTVL]); in br_vlan_process_global_one_opts()
587 if (tb[BRIDGE_VLANDB_GOPTS_MCAST_STARTUP_QUERY_INTVL]) { in br_vlan_process_global_one_opts()
590 val = nla_get_u64(tb[BRIDGE_VLANDB_GOPTS_MCAST_STARTUP_QUERY_INTVL]); in br_vlan_process_global_one_opts()
594 if (tb[BRIDGE_VLANDB_GOPTS_MCAST_QUERIER]) { in br_vlan_process_global_one_opts()
597 val = nla_get_u8(tb[BRIDGE_VLANDB_GOPTS_MCAST_QUERIER]); in br_vlan_process_global_one_opts()
604 if (tb[BRIDGE_VLANDB_GOPTS_MCAST_MLD_VERSION]) { in br_vlan_process_global_one_opts()
607 ver = nla_get_u8(tb[BRIDGE_VLANDB_GOPTS_MCAST_MLD_VERSION]); in br_vlan_process_global_one_opts()
615 if (tb[BRIDGE_VLANDB_GOPTS_MSTI]) { in br_vlan_process_global_one_opts()
618 msti = nla_get_u16(tb[BRIDGE_VLANDB_GOPTS_MSTI]); in br_vlan_process_global_one_opts()
652 struct nlattr *tb[BRIDGE_VLANDB_GOPTS_MAX + 1]; in br_vlan_rtm_process_global_options() local
671 err = nla_parse_nested(tb, BRIDGE_VLANDB_GOPTS_MAX, attr, in br_vlan_rtm_process_global_options()
676 if (!tb[BRIDGE_VLANDB_GOPTS_ID]) { in br_vlan_rtm_process_global_options()
680 vid = nla_get_u16(tb[BRIDGE_VLANDB_GOPTS_ID]); in br_vlan_rtm_process_global_options()
684 if (tb[BRIDGE_VLANDB_GOPTS_RANGE]) { in br_vlan_rtm_process_global_options()
685 vid_range = nla_get_u16(tb[BRIDGE_VLANDB_GOPTS_RANGE]); in br_vlan_rtm_process_global_options()
706 err = br_vlan_process_global_one_opts(br, vg, v, tb, &changed, in br_vlan_rtm_process_global_options()