OSDN Git Service

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)
commitd5e73f7be850323ae3adbbe84ed37a38b0c31476
tree5779db50f040bb37bf80f5d5343a0430a4a1b01b
parent96d7552e99393fdffddfc589e697c62a5fd98640
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