Lines Matching refs:tb

93 	struct nlattr *tb[IFLA_BRIDGE_CFM_MEP_CREATE_MAX + 1];
98 err = nla_parse_nested(tb, IFLA_BRIDGE_CFM_MEP_CREATE_MAX, attr,
103 if (!tb[IFLA_BRIDGE_CFM_MEP_CREATE_INSTANCE]) {
107 if (!tb[IFLA_BRIDGE_CFM_MEP_CREATE_DOMAIN]) {
111 if (!tb[IFLA_BRIDGE_CFM_MEP_CREATE_DIRECTION]) {
115 if (!tb[IFLA_BRIDGE_CFM_MEP_CREATE_IFINDEX]) {
122 instance = nla_get_u32(tb[IFLA_BRIDGE_CFM_MEP_CREATE_INSTANCE]);
123 create.domain = nla_get_u32(tb[IFLA_BRIDGE_CFM_MEP_CREATE_DOMAIN]);
124 create.direction = nla_get_u32(tb[IFLA_BRIDGE_CFM_MEP_CREATE_DIRECTION]);
125 create.ifindex = nla_get_u32(tb[IFLA_BRIDGE_CFM_MEP_CREATE_IFINDEX]);
133 struct nlattr *tb[IFLA_BRIDGE_CFM_MEP_DELETE_MAX + 1];
137 err = nla_parse_nested(tb, IFLA_BRIDGE_CFM_MEP_DELETE_MAX, attr,
142 if (!tb[IFLA_BRIDGE_CFM_MEP_DELETE_INSTANCE]) {
148 instance = nla_get_u32(tb[IFLA_BRIDGE_CFM_MEP_DELETE_INSTANCE]);
156 struct nlattr *tb[IFLA_BRIDGE_CFM_MEP_CONFIG_MAX + 1];
161 err = nla_parse_nested(tb, IFLA_BRIDGE_CFM_MEP_CONFIG_MAX, attr,
166 if (!tb[IFLA_BRIDGE_CFM_MEP_CONFIG_INSTANCE]) {
170 if (!tb[IFLA_BRIDGE_CFM_MEP_CONFIG_UNICAST_MAC]) {
174 if (!tb[IFLA_BRIDGE_CFM_MEP_CONFIG_MDLEVEL]) {
178 if (!tb[IFLA_BRIDGE_CFM_MEP_CONFIG_MEPID]) {
185 instance = nla_get_u32(tb[IFLA_BRIDGE_CFM_MEP_CONFIG_INSTANCE]);
187 tb[IFLA_BRIDGE_CFM_MEP_CONFIG_UNICAST_MAC],
189 config.mdlevel = nla_get_u32(tb[IFLA_BRIDGE_CFM_MEP_CONFIG_MDLEVEL]);
190 config.mepid = nla_get_u32(tb[IFLA_BRIDGE_CFM_MEP_CONFIG_MEPID]);
198 struct nlattr *tb[IFLA_BRIDGE_CFM_CC_CONFIG_MAX + 1];
203 err = nla_parse_nested(tb, IFLA_BRIDGE_CFM_CC_CONFIG_MAX, attr,
208 if (!tb[IFLA_BRIDGE_CFM_CC_CONFIG_INSTANCE]) {
212 if (!tb[IFLA_BRIDGE_CFM_CC_CONFIG_ENABLE]) {
216 if (!tb[IFLA_BRIDGE_CFM_CC_CONFIG_EXP_INTERVAL]) {
220 if (!tb[IFLA_BRIDGE_CFM_CC_CONFIG_EXP_MAID]) {
227 instance = nla_get_u32(tb[IFLA_BRIDGE_CFM_CC_CONFIG_INSTANCE]);
228 config.enable = nla_get_u32(tb[IFLA_BRIDGE_CFM_CC_CONFIG_ENABLE]);
229 config.exp_interval = nla_get_u32(tb[IFLA_BRIDGE_CFM_CC_CONFIG_EXP_INTERVAL]);
230 nla_memcpy(&config.exp_maid.data, tb[IFLA_BRIDGE_CFM_CC_CONFIG_EXP_MAID],
239 struct nlattr *tb[IFLA_BRIDGE_CFM_CC_PEER_MEP_MAX + 1];
243 err = nla_parse_nested(tb, IFLA_BRIDGE_CFM_CC_PEER_MEP_MAX, attr,
248 if (!tb[IFLA_BRIDGE_CFM_CC_PEER_MEP_INSTANCE]) {
252 if (!tb[IFLA_BRIDGE_CFM_CC_PEER_MEPID]) {
257 instance = nla_get_u32(tb[IFLA_BRIDGE_CFM_CC_PEER_MEP_INSTANCE]);
258 peer_mep_id = nla_get_u32(tb[IFLA_BRIDGE_CFM_CC_PEER_MEPID]);
266 struct nlattr *tb[IFLA_BRIDGE_CFM_CC_PEER_MEP_MAX + 1];
270 err = nla_parse_nested(tb, IFLA_BRIDGE_CFM_CC_PEER_MEP_MAX, attr,
275 if (!tb[IFLA_BRIDGE_CFM_CC_PEER_MEP_INSTANCE]) {
279 if (!tb[IFLA_BRIDGE_CFM_CC_PEER_MEPID]) {
284 instance = nla_get_u32(tb[IFLA_BRIDGE_CFM_CC_PEER_MEP_INSTANCE]);
285 peer_mep_id = nla_get_u32(tb[IFLA_BRIDGE_CFM_CC_PEER_MEPID]);
293 struct nlattr *tb[IFLA_BRIDGE_CFM_CC_RDI_MAX + 1];
297 err = nla_parse_nested(tb, IFLA_BRIDGE_CFM_CC_RDI_MAX, attr,
302 if (!tb[IFLA_BRIDGE_CFM_CC_RDI_INSTANCE]) {
306 if (!tb[IFLA_BRIDGE_CFM_CC_RDI_RDI]) {
311 instance = nla_get_u32(tb[IFLA_BRIDGE_CFM_CC_RDI_INSTANCE]);
312 rdi = nla_get_u32(tb[IFLA_BRIDGE_CFM_CC_RDI_RDI]);
320 struct nlattr *tb[IFLA_BRIDGE_CFM_CC_CCM_TX_MAX + 1];
325 err = nla_parse_nested(tb, IFLA_BRIDGE_CFM_CC_CCM_TX_MAX, attr,
330 if (!tb[IFLA_BRIDGE_CFM_CC_CCM_TX_INSTANCE]) {
334 if (!tb[IFLA_BRIDGE_CFM_CC_CCM_TX_DMAC]) {
338 if (!tb[IFLA_BRIDGE_CFM_CC_CCM_TX_SEQ_NO_UPDATE]) {
342 if (!tb[IFLA_BRIDGE_CFM_CC_CCM_TX_PERIOD]) {
346 if (!tb[IFLA_BRIDGE_CFM_CC_CCM_TX_IF_TLV]) {
350 if (!tb[IFLA_BRIDGE_CFM_CC_CCM_TX_IF_TLV_VALUE]) {
354 if (!tb[IFLA_BRIDGE_CFM_CC_CCM_TX_PORT_TLV]) {
358 if (!tb[IFLA_BRIDGE_CFM_CC_CCM_TX_PORT_TLV_VALUE]) {
365 instance = nla_get_u32(tb[IFLA_BRIDGE_CFM_CC_CCM_TX_INSTANCE]);
367 tb[IFLA_BRIDGE_CFM_CC_CCM_TX_DMAC],
369 tx_info.seq_no_update = nla_get_u32(tb[IFLA_BRIDGE_CFM_CC_CCM_TX_SEQ_NO_UPDATE]);
370 tx_info.period = nla_get_u32(tb[IFLA_BRIDGE_CFM_CC_CCM_TX_PERIOD]);
371 tx_info.if_tlv = nla_get_u32(tb[IFLA_BRIDGE_CFM_CC_CCM_TX_IF_TLV]);
372 tx_info.if_tlv_value = nla_get_u8(tb[IFLA_BRIDGE_CFM_CC_CCM_TX_IF_TLV_VALUE]);
373 tx_info.port_tlv = nla_get_u32(tb[IFLA_BRIDGE_CFM_CC_CCM_TX_PORT_TLV]);
374 tx_info.port_tlv_value = nla_get_u8(tb[IFLA_BRIDGE_CFM_CC_CCM_TX_PORT_TLV_VALUE]);
382 struct nlattr *tb[IFLA_BRIDGE_CFM_MAX + 1];
391 err = nla_parse_nested(tb, IFLA_BRIDGE_CFM_MAX, attr,
396 if (tb[IFLA_BRIDGE_CFM_MEP_CREATE]) {
397 err = br_mep_create_parse(br, tb[IFLA_BRIDGE_CFM_MEP_CREATE],
403 if (tb[IFLA_BRIDGE_CFM_MEP_DELETE]) {
404 err = br_mep_delete_parse(br, tb[IFLA_BRIDGE_CFM_MEP_DELETE],
410 if (tb[IFLA_BRIDGE_CFM_MEP_CONFIG]) {
411 err = br_mep_config_parse(br, tb[IFLA_BRIDGE_CFM_MEP_CONFIG],
417 if (tb[IFLA_BRIDGE_CFM_CC_CONFIG]) {
418 err = br_cc_config_parse(br, tb[IFLA_BRIDGE_CFM_CC_CONFIG],
424 if (tb[IFLA_BRIDGE_CFM_CC_PEER_MEP_ADD]) {
425 err = br_cc_peer_mep_add_parse(br, tb[IFLA_BRIDGE_CFM_CC_PEER_MEP_ADD],
431 if (tb[IFLA_BRIDGE_CFM_CC_PEER_MEP_REMOVE]) {
432 err = br_cc_peer_mep_remove_parse(br, tb[IFLA_BRIDGE_CFM_CC_PEER_MEP_REMOVE],
438 if (tb[IFLA_BRIDGE_CFM_CC_RDI]) {
439 err = br_cc_rdi_parse(br, tb[IFLA_BRIDGE_CFM_CC_RDI],
445 if (tb[IFLA_BRIDGE_CFM_CC_CCM_TX]) {
446 err = br_cc_ccm_tx_parse(br, tb[IFLA_BRIDGE_CFM_CC_CCM_TX],
459 struct nlattr *tb;
462 tb = nla_nest_start(skb, IFLA_BRIDGE_CFM_MEP_CREATE_INFO);
463 if (!tb)
482 nla_nest_end(skb, tb);
484 tb = nla_nest_start(skb, IFLA_BRIDGE_CFM_MEP_CONFIG_INFO);
486 if (!tb)
506 nla_nest_end(skb, tb);
508 tb = nla_nest_start(skb, IFLA_BRIDGE_CFM_CC_CONFIG_INFO);
510 if (!tb)
530 nla_nest_end(skb, tb);
532 tb = nla_nest_start(skb, IFLA_BRIDGE_CFM_CC_RDI_INFO);
534 if (!tb)
545 nla_nest_end(skb, tb);
547 tb = nla_nest_start(skb, IFLA_BRIDGE_CFM_CC_CCM_TX_INFO);
549 if (!tb)
585 nla_nest_end(skb, tb);
588 tb = nla_nest_start(skb,
591 if (!tb)
603 nla_nest_end(skb, tb);
610 nla_nest_cancel(skb, tb);
622 struct nlattr *tb;
625 tb = nla_nest_start(skb, IFLA_BRIDGE_CFM_MEP_STATUS_INFO);
626 if (!tb)
656 nla_nest_end(skb, tb);
659 tb = nla_nest_start(skb,
661 if (!tb)
715 nla_nest_end(skb, tb);
722 nla_nest_cancel(skb, tb);