]> 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)
commit1437ca3b04198735f5b59836d478be4b62c821e2
tree5779db50f040bb37bf80f5d5343a0430a4a1b01b
parenta3496a13edaae47f0b86a80f570893e1ed66766d
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