]> git.baikalelectronics.ru Git - kernel.git/commit
bonding: don't permit to use ARP monitoring in 802.3ad mode
authorVeaceslav Falico <vfalico@redhat.com>
Tue, 12 Nov 2013 14:37:40 +0000 (15:37 +0100)
committerDavid S. Miller <davem@davemloft.net>
Thu, 14 Nov 2013 07:29:04 +0000 (02:29 -0500)
commit3df42704a887330b0a96e3e3729a373781d0b73f
tree2ab8cf7598eb255a22740f63d08253a0396eff49
parentc8a87695792b8baf22f0872a01789cd546e97105
bonding: don't permit to use ARP monitoring in 802.3ad mode

Currently the ARP monitoring is not supported with 802.3ad, and it's
prohibited to use it via the module params.

However we still can set it afterwards via sysfs, cause we only check for
*LB modes there.

To fix this - add a check for 802.3ad mode in bonding_store_arp_interval.

CC: Jay Vosburgh <fubar@us.ibm.com>
CC: Andy Gospodarek <andy@greyhouse.net>
Signed-off-by: Veaceslav Falico <vfalico@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/bonding/bond_sysfs.c