]> git.baikalelectronics.ru Git - kernel.git/commit
bonding: fix slave speed reporting in bond_miimon_commit
authorNikolay Aleksandrov <nikolay@redhat.com>
Thu, 20 Jun 2013 12:34:13 +0000 (14:34 +0200)
committerDavid S. Miller <davem@davemloft.net>
Mon, 24 Jun 2013 07:04:55 +0000 (00:04 -0700)
commit7bc03e749450876eb7d97b75af0a461d182de9e8
tree896bf67806e257d30d754b0498b07a5253f991ba
parent6ffeab3ed7ad6349c021a00833240fd1bef34c22
bonding: fix slave speed reporting in bond_miimon_commit

When we have BOND_LINK_UP the speed is reported unconditionally with %u
format although it can be SPEED_UNKNOWN (-1). After this patch it returns
0 in that case in an attempt to keep the existing scripts happy.
One line is intenionally left 81 chars because it gets ugly if broken.

Signed-off-by: Nikolay Aleksandrov <nikolay@redhat.com>
Acked-by: Veaceslav Falico <vfalico@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/bonding/bond_main.c