aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/bonding/bond_main.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/net/bonding/bond_main.c')
-rw-r--r--drivers/net/bonding/bond_main.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/drivers/net/bonding/bond_main.c b/drivers/net/bonding/bond_main.c
index ea73ebff438..68afcb5d725 100644
--- a/drivers/net/bonding/bond_main.c
+++ b/drivers/net/bonding/bond_main.c
@@ -3423,6 +3423,9 @@ void bond_register_arp(struct bonding *bond)
3423{ 3423{
3424 struct packet_type *pt = &bond->arp_mon_pt; 3424 struct packet_type *pt = &bond->arp_mon_pt;
3425 3425
3426 if (pt->type)
3427 return;
3428
3426 pt->type = htons(ETH_P_ARP); 3429 pt->type = htons(ETH_P_ARP);
3427 pt->dev = NULL; /*bond->dev;XXX*/ 3430 pt->dev = NULL; /*bond->dev;XXX*/
3428 pt->func = bond_arp_rcv; 3431 pt->func = bond_arp_rcv;
@@ -3431,7 +3434,10 @@ void bond_register_arp(struct bonding *bond)
3431 3434
3432void bond_unregister_arp(struct bonding *bond) 3435void bond_unregister_arp(struct bonding *bond)
3433{ 3436{
3434 dev_remove_pack(&bond->arp_mon_pt); 3437 struct packet_type *pt = &bond->arp_mon_pt;
3438
3439 dev_remove_pack(pt);
3440 pt->type = 0;
3435} 3441}
3436 3442
3437/*---------------------------- Hashing Policies -----------------------------*/ 3443/*---------------------------- Hashing Policies -----------------------------*/