]> git.baikalelectronics.ru Git - kernel.git/commit
bonding: restructure arp-monitor
authorMahesh Bandewar <maheshb@google.com>
Wed, 8 Mar 2017 18:55:51 +0000 (10:55 -0800)
committerDavid S. Miller <davem@davemloft.net>
Fri, 10 Mar 2017 01:33:29 +0000 (17:33 -0800)
commitb82c34f603bac658c95cc159a8a3cbd1817ce6d9
tree5779db50f040bb37bf80f5d5343a0430a4a1b01b
parent97f5afe150d3aa50a6708d0c3751ae3f11e0a4c5
bonding: restructure arp-monitor

In preparation to move the work-queue initialization to port creation
from current port_open phase. Work-queue initialization does not make
sense every time we do 'ifup/ifdown'. So moving to port creation phase.

Arp monitoring work depends on the bonding mode and that is not tied
to the port creation and can change anytime during the life after port
creation. So this restructuring allows us to move the initialization
at creation without losing the ability to arm the correct work for the
mode user has selected.

Signed-off-by: Mahesh Bandewar <maheshb@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/bonding/bond_main.c