Lines Matching refs:br_idx
30 int ret = 0, br_idx, if_idx; in cmd_bridge_addif() local
34 br_idx = get_idx(sh, argv[1]); in cmd_bridge_addif()
35 if (br_idx < 0) { in cmd_bridge_addif()
36 return br_idx; in cmd_bridge_addif()
39 br = eth_bridge_get_by_index(br_idx); in cmd_bridge_addif()
41 shell_warn(sh, "Bridge %d not found\n", br_idx); in cmd_bridge_addif()
78 int ret = 0, br_idx, if_idx; in cmd_bridge_delif() local
82 br_idx = get_idx(sh, argv[1]); in cmd_bridge_delif()
83 if (br_idx < 0) { in cmd_bridge_delif()
84 return br_idx; in cmd_bridge_delif()
87 br = eth_bridge_get_by_index(br_idx); in cmd_bridge_delif()
89 shell_warn(sh, "Bridge %d not found\n", br_idx); in cmd_bridge_delif()
116 int br_idx = eth_bridge_get_index(ctx->iface); in bridge_show() local
119 shell_fprintf(sh, SHELL_NORMAL, "%-7d", br_idx); in bridge_show()
155 int br_idx; in cmd_bridge_show() local
158 br_idx = get_idx(sh, argv[1]); in cmd_bridge_show()
159 if (br_idx < 0) { in cmd_bridge_show()
160 return br_idx; in cmd_bridge_show()
163 br = eth_bridge_get_by_index(br_idx); in cmd_bridge_show()
165 shell_warn(sh, "Bridge %d not found\n", br_idx); in cmd_bridge_show()