Lines Matching +full:3 +full:br

38 static void get_port_ifindices(struct net_bridge *br, int *ifindices, int num)  in get_port_ifindices()  argument
42 list_for_each_entry(p, &br->port_list, list) { in get_port_ifindices()
55 static int get_fdb_entries(struct net_bridge *br, void __user *userbuf, in get_fdb_entries() argument
72 num = br_fdb_fillbuf(br, buf, maxnum, offset); in get_fdb_entries()
83 static int add_del_if(struct net_bridge *br, int ifindex, int isadd) in add_del_if() argument
85 struct net *net = dev_net(br->dev); in add_del_if()
97 ret = br_add_if(br, dev, NULL); in add_del_if()
99 ret = br_del_if(br, dev); in add_del_if()
111 struct net_bridge *br = netdev_priv(dev); in old_dev_ioctl() local
122 return add_del_if(br, args[1], args[0] == BRCTL_ADD_IF); in old_dev_ioctl()
130 memcpy(&b.designated_root, &br->designated_root, 8); in old_dev_ioctl()
131 memcpy(&b.bridge_id, &br->bridge_id, 8); in old_dev_ioctl()
132 b.root_path_cost = br->root_path_cost; in old_dev_ioctl()
133 b.max_age = jiffies_to_clock_t(br->max_age); in old_dev_ioctl()
134 b.hello_time = jiffies_to_clock_t(br->hello_time); in old_dev_ioctl()
135 b.forward_delay = br->forward_delay; in old_dev_ioctl()
136 b.bridge_max_age = br->bridge_max_age; in old_dev_ioctl()
137 b.bridge_hello_time = br->bridge_hello_time; in old_dev_ioctl()
138 b.bridge_forward_delay = jiffies_to_clock_t(br->bridge_forward_delay); in old_dev_ioctl()
139 b.topology_change = br->topology_change; in old_dev_ioctl()
140 b.topology_change_detected = br->topology_change_detected; in old_dev_ioctl()
141 b.root_port = br->root_port; in old_dev_ioctl()
143 b.stp_enabled = (br->stp_enabled != BR_NO_STP); in old_dev_ioctl()
144 b.ageing_time = jiffies_to_clock_t(br->ageing_time); in old_dev_ioctl()
145 b.hello_timer_value = br_timer_value(&br->hello_timer); in old_dev_ioctl()
146 b.tcn_timer_value = br_timer_value(&br->tcn_timer); in old_dev_ioctl()
147 b.topology_change_timer_value = br_timer_value(&br->topology_change_timer); in old_dev_ioctl()
148 b.gc_timer_value = br_timer_value(&br->gc_work.timer); in old_dev_ioctl()
173 get_port_ifindices(br, indices, num); in old_dev_ioctl()
184 ret = br_set_forward_delay(br, args[1]); in old_dev_ioctl()
191 ret = br_set_hello_time(br, args[1]); in old_dev_ioctl()
198 ret = br_set_max_age(br, args[1]); in old_dev_ioctl()
205 ret = br_set_ageing_time(br, args[1]); in old_dev_ioctl()
214 if ((pt = br_get_port(br, args[2])) == NULL) { in old_dev_ioctl()
245 ret = br_stp_set_enabled(br, args[1], NULL); in old_dev_ioctl()
252 br_stp_set_bridge_priority(br, args[1]); in old_dev_ioctl()
261 spin_lock_bh(&br->lock); in old_dev_ioctl()
262 if ((p = br_get_port(br, args[1])) == NULL) in old_dev_ioctl()
266 spin_unlock_bh(&br->lock); in old_dev_ioctl()
275 spin_lock_bh(&br->lock); in old_dev_ioctl()
276 if ((p = br_get_port(br, args[1])) == NULL) in old_dev_ioctl()
280 spin_unlock_bh(&br->lock); in old_dev_ioctl()
285 return get_fdb_entries(br, (void __user *)args[1], in old_dev_ioctl()
286 args[2], args[3]); in old_dev_ioctl()
293 netdev_state_change(br->dev); in old_dev_ioctl()
301 unsigned long args[3]; in old_deviceless()
383 struct net_bridge *br = netdev_priv(dev); in br_dev_ioctl() local
391 return add_del_if(br, rq->ifr_ifindex, cmd == SIOCBRADDIF); in br_dev_ioctl()
395 br_debug(br, "Bridge does not support ioctl 0x%x\n", cmd); in br_dev_ioctl()