Lines Matching defs:br
39 static void get_port_ifindices(struct net_bridge *br, int *ifindices, int num)
43 list_for_each_entry(p, &br->port_list, list) {
56 static int get_fdb_entries(struct net_bridge *br, void __user *userbuf,
73 num = br_fdb_fillbuf(br, buf, maxnum, offset);
85 static int add_del_if(struct net_bridge *br, int ifindex, int isadd)
87 struct net *net = dev_net(br->dev);
99 ret = br_add_if(br, dev, NULL);
101 ret = br_del_if(br, dev);
147 struct net_bridge *br = netdev_priv(dev);
160 return add_del_if(br, args[1], args[0] == BRCTL_ADD_IF);
168 memcpy(&b.designated_root, &br->designated_root, 8);
169 memcpy(&b.bridge_id, &br->bridge_id, 8);
170 b.root_path_cost = br->root_path_cost;
171 b.max_age = jiffies_to_clock_t(br->max_age);
172 b.hello_time = jiffies_to_clock_t(br->hello_time);
173 b.forward_delay = br->forward_delay;
174 b.bridge_max_age = br->bridge_max_age;
175 b.bridge_hello_time = br->bridge_hello_time;
176 b.bridge_forward_delay = jiffies_to_clock_t(br->bridge_forward_delay);
177 b.topology_change = br->topology_change;
178 b.topology_change_detected = br->topology_change_detected;
179 b.root_port = br->root_port;
181 b.stp_enabled = (br->stp_enabled != BR_NO_STP);
182 b.ageing_time = jiffies_to_clock_t(br->ageing_time);
183 b.hello_timer_value = br_timer_value(&br->hello_timer);
184 b.tcn_timer_value = br_timer_value(&br->tcn_timer);
185 b.topology_change_timer_value = br_timer_value(&br->topology_change_timer);
186 b.gc_timer_value = br_timer_value(&br->gc_work.timer);
211 get_port_ifindices(br, indices, num);
222 ret = br_set_forward_delay(br, args[1]);
229 ret = br_set_hello_time(br, args[1]);
236 ret = br_set_max_age(br, args[1]);
243 ret = br_set_ageing_time(br, args[1]);
252 if ((pt = br_get_port(br, args[2])) == NULL) {
283 ret = br_stp_set_enabled(br, args[1], NULL);
290 br_stp_set_bridge_priority(br, args[1]);
299 spin_lock_bh(&br->lock);
300 if ((p = br_get_port(br, args[1])) == NULL)
304 spin_unlock_bh(&br->lock);
313 spin_lock_bh(&br->lock);
314 if ((p = br_get_port(br, args[1])) == NULL)
318 spin_unlock_bh(&br->lock);
323 return get_fdb_entries(br, argp, args[2], args[3]);
333 netdev_state_change(br->dev);