br_netlink.c (e5a55a898720096f43bc24938f8875c0a1b34cd7) | br_netlink.c (2469ffd723f76ac2d3ce3d4f31ee31ee0a06cd38) |
---|---|
1/* 2 * Bridge netlink control interface 3 * 4 * Authors: 5 * Stephen Hemminger <shemminger@osdl.org> 6 * 7 * This program is free software; you can redistribute it and/or 8 * modify it under the terms of the GNU General Public License --- 152 unchanged lines hidden (view full) --- 161 162 p->state = new_state; 163 br_log_state(p); 164 165 spin_lock_bh(&p->br->lock); 166 br_port_state_selection(p->br); 167 spin_unlock_bh(&p->br->lock); 168 | 1/* 2 * Bridge netlink control interface 3 * 4 * Authors: 5 * Stephen Hemminger <shemminger@osdl.org> 6 * 7 * This program is free software; you can redistribute it and/or 8 * modify it under the terms of the GNU General Public License --- 152 unchanged lines hidden (view full) --- 161 162 p->state = new_state; 163 br_log_state(p); 164 165 spin_lock_bh(&p->br->lock); 166 br_port_state_selection(p->br); 167 spin_unlock_bh(&p->br->lock); 168 |
169 br_ifinfo_notify(RTM_NEWLINK, p); 170 | |
171 return 0; 172} 173 174static int br_validate(struct nlattr *tb[], struct nlattr *data[]) 175{ 176 if (tb[IFLA_ADDRESS]) { 177 if (nla_len(tb[IFLA_ADDRESS]) != ETH_ALEN) 178 return -EINVAL; --- 25 unchanged lines hidden --- | 169 return 0; 170} 171 172static int br_validate(struct nlattr *tb[], struct nlattr *data[]) 173{ 174 if (tb[IFLA_ADDRESS]) { 175 if (nla_len(tb[IFLA_ADDRESS]) != ETH_ALEN) 176 return -EINVAL; --- 25 unchanged lines hidden --- |