Bug #216 » 0002-batman-adv-DEBUG-track-CRC-changes.patch
bridge_loop_avoidance.c | ||
---|---|---|
struct hlist_node *node_tmp;
|
||
struct hlist_head *head;
|
||
struct batadv_bla_claim *claim;
|
||
struct batadv_priv *bat_priv;
|
||
int i;
|
||
spinlock_t *list_lock; /* protects write access to the hash lists */
|
||
... | ... | |
spin_unlock_bh(list_lock);
|
||
}
|
||
bat_priv = backbone_gw->bat_priv;
|
||
/* all claims gone, intialize CRC */
|
||
batadv_dbg(BATADV_DBG_BLA, bat_priv,
|
||
"%s: initialize crc for %pM (was: %04x, change to: %04x)\n",
|
||
__func__, backbone_gw->orig, backbone_gw->crc, BATADV_BLA_CRC_INIT);
|
||
spin_lock_bh(&backbone_gw->crc_lock);
|
||
backbone_gw->crc = BATADV_BLA_CRC_INIT;
|
||
spin_unlock_bh(&backbone_gw->crc_lock);
|
||
}
|
||
/**
|
||
... | ... | |
"bla_add_claim(): changing ownership for %pM, vid %d\n",
|
||
mac, BATADV_PRINT_VID(vid));
|
||
batadv_dbg(BATADV_DBG_BLA, bat_priv,
|
||
"%s: change crc for %pM (was: %04x, change to: %04x)\n",
|
||
__func__, claim->backbone_gw->orig, claim->backbone_gw->crc,
|
||
claim->backbone_gw->crc ^ crc16(0, claim->addr, ETH_ALEN));
|
||
spin_lock_bh(&claim->backbone_gw->crc_lock);
|
||
claim->backbone_gw->crc ^= crc16(0, claim->addr, ETH_ALEN);
|
||
spin_unlock_bh(&claim->backbone_gw->crc_lock);
|
||
... | ... | |
atomic_inc(&backbone_gw->refcount);
|
||
claim->backbone_gw = backbone_gw;
|
||
batadv_dbg(BATADV_DBG_BLA, bat_priv,
|
||
"%s: change crc for %pM (was: %04x, change to: %04x)\n",
|
||
__func__, backbone_gw->orig, backbone_gw->crc,
|
||
backbone_gw->crc ^ crc16(0, claim->addr, ETH_ALEN));
|
||
spin_lock_bh(&backbone_gw->crc_lock);
|
||
backbone_gw->crc ^= crc16(0, claim->addr, ETH_ALEN);
|
||
spin_unlock_bh(&backbone_gw->crc_lock);
|
||
... | ... | |
batadv_choose_claim, claim);
|
||
batadv_claim_free_ref(claim); /* reference from the hash is gone */
|
||
batadv_dbg(BATADV_DBG_BLA, bat_priv,
|
||
"%s: change crc for %pM (was: %04x, change to: %04x)\n",
|
||
__func__, claim->backbone_gw->orig, claim->backbone_gw->crc,
|
||
claim->backbone_gw->crc ^ crc16(0, claim->addr, ETH_ALEN));
|
||
spin_lock_bh(&claim->backbone_gw->crc_lock);
|
||
claim->backbone_gw->crc ^= crc16(0, claim->addr, ETH_ALEN);
|
||
spin_unlock_bh(&claim->backbone_gw->crc_lock);
|
- « Previous
- 1
- 2
- 3
- 4
- Next »