summaryrefslogtreecommitdiff
path: root/net/sunrpc/sched.c
diff options
context:
space:
mode:
authorMark McLoughlin <markmc@redhat.com>2008-01-04 00:56:25 -0800
committerDavid S. Miller <davem@davemloft.net>2008-01-04 03:55:34 -0800
commit44344b2a85f03326c7047a8c861b0c625c674839 (patch)
treefe578496a5c71a74500260a5f9bcced8d5299f22 /net/sunrpc/sched.c
parent14be85f555fa53a3b80119569e4c2fe88aa9fd3e (diff)
[INET]: Fix netdev renaming and inet address labels
When re-naming an interface, the previous secondary address labels get lost e.g. $> brctl addbr foo $> ip addr add 192.168.0.1 dev foo $> ip addr add 192.168.0.2 dev foo label foo:00 $> ip addr show dev foo | grep inet inet 192.168.0.1/32 scope global foo inet 192.168.0.2/32 scope global foo:00 $> ip link set foo name bar $> ip addr show dev bar | grep inet inet 192.168.0.1/32 scope global bar inet 192.168.0.2/32 scope global bar:2 Turns out to be a simple thinko in inetdev_changename() - clearly we want to look at the address label, rather than the device name, for a suffix to retain. Signed-off-by: Mark McLoughlin <markmc@redhat.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/sunrpc/sched.c')
0 files changed, 0 insertions, 0 deletions