]> git.baikalelectronics.ru Git - kernel.git/commit
bonding: allow all slave speeds
authorJiri Pirko <jpirko@redhat.com>
Wed, 1 Jun 2011 10:36:33 +0000 (10:36 +0000)
committerDavid S. Miller <davem@davemloft.net>
Thu, 2 Jun 2011 21:43:56 +0000 (14:43 -0700)
commitb75f918692610bb48ee9b03f6928f167fa08b6e4
treee2ad3c8f3f146011396d77360fdcea32846ceb8c
parent612b440599cfe6da773f202cdf2e7136739efa5e
bonding: allow all slave speeds

No need to check for 10, 100, 1000, 10000 explicitly. Just make this
generic and check for invalid values only (similar check is in ethtool
userspace app). This enables correct speed handling for slave devices
with "nonstandard" speeds.

Signed-off-by: Jiri Pirko <jpirko@redhat.com>
Reviewed-by: Nicolas de Pesloüan <nicolas.2p.debian@free.fr>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/bonding/bond_main.c