Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 351367
b: refs/heads/master
c: 46d160e
h: refs/heads/master
i:
  351365: 5f2d24d
  351363: 736fc0f
  351359: 69dc762
v: v3
  • Loading branch information
Antonio Quartulli committed Jan 12, 2013
1 parent afa676e commit 5fbd50b
Show file tree
Hide file tree
Showing 9 changed files with 1 addition and 30 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: dec05074b1a322f5fbbe3f81bc438a75bfec3c34
refs/heads/master: 46d160ef887963f26fee2df3d3b99eab54637014
6 changes: 0 additions & 6 deletions trunk/net/batman-adv/bat_iv_ogm.c
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,6 @@ static void batadv_iv_ogm_send_to_if(struct batadv_forw_packet *forw_packet,
/* adjust all flags and log packets */
while (batadv_iv_ogm_aggr_packet(buff_pos, forw_packet->packet_len,
batadv_ogm_packet->tt_num_changes)) {

/* we might have aggregated direct link packets with an
* ordinary base packet
*/
Expand Down Expand Up @@ -261,7 +260,6 @@ static void batadv_iv_ogm_emit(struct batadv_forw_packet *forw_packet)
*/
if ((directlink && (batadv_ogm_packet->header.ttl == 1)) ||
(forw_packet->own && (forw_packet->if_incoming != primary_if))) {

/* FIXME: what about aggregated packets ? */
batadv_dbg(BATADV_DBG_BATMAN, bat_priv,
"%s packet (originator %pM, seqno %u, TTL %d) on interface %s [%pM]\n",
Expand Down Expand Up @@ -325,7 +323,6 @@ batadv_iv_ogm_can_aggregate(const struct batadv_ogm_packet *new_bat_ogm_packet,
if (time_before(send_time, forw_packet->send_time) &&
time_after_eq(aggregation_end_time, forw_packet->send_time) &&
(aggregated_bytes <= BATADV_MAX_AGGREGATION_BYTES)) {

/* check aggregation compatibility
* -> direct link packets are broadcasted on
* their interface only
Expand Down Expand Up @@ -815,7 +812,6 @@ static int batadv_iv_ogm_calc_tq(struct batadv_orig_node *orig_node,
rcu_read_lock();
hlist_for_each_entry_rcu(tmp_neigh_node, node,
&orig_neigh_node->neigh_list, list) {

if (!batadv_compare_eth(tmp_neigh_node->addr,
orig_neigh_node->orig))
continue;
Expand Down Expand Up @@ -949,7 +945,6 @@ batadv_iv_ogm_update_seqnos(const struct ethhdr *ethhdr,
rcu_read_lock();
hlist_for_each_entry_rcu(tmp_neigh_node, node,
&orig_node->neigh_list, list) {

is_duplicate |= batadv_test_bit(tmp_neigh_node->real_bits,
orig_node->last_real_seqno,
seqno);
Expand Down Expand Up @@ -1223,7 +1218,6 @@ static void batadv_iv_ogm_process(const struct ethhdr *ethhdr,

/* is single hop (direct) neighbor */
if (is_single_hop_neigh) {

/* mark direct link on incoming interface */
batadv_iv_ogm_forward(orig_node, ethhdr, batadv_ogm_packet,
is_single_hop_neigh,
Expand Down
4 changes: 0 additions & 4 deletions trunk/net/batman-adv/bridge_loop_avoidance.c
Original file line number Diff line number Diff line change
Expand Up @@ -235,7 +235,6 @@ batadv_bla_del_backbone_claims(struct batadv_backbone_gw *backbone_gw)
spin_lock_bh(list_lock);
hlist_for_each_entry_safe(claim, node, node_tmp,
head, hash_entry) {

if (claim->backbone_gw != backbone_gw)
continue;

Expand Down Expand Up @@ -338,7 +337,6 @@ static void batadv_bla_send_claim(struct batadv_priv *bat_priv, uint8_t *mac,
"bla_send_claim(): REQUEST of %pM to %pMon vid %d\n",
ethhdr->h_source, ethhdr->h_dest, vid);
break;

}

if (vid != -1)
Expand Down Expand Up @@ -539,7 +537,6 @@ static void batadv_bla_send_announce(struct batadv_priv *bat_priv,

batadv_bla_send_claim(bat_priv, mac, backbone_gw->vid,
BATADV_CLAIM_TYPE_ANNOUNCE);

}

/**
Expand Down Expand Up @@ -598,7 +595,6 @@ static void batadv_bla_add_claim(struct batadv_priv *bat_priv,

claim->backbone_gw->crc ^= crc16(0, claim->addr, ETH_ALEN);
batadv_backbone_gw_free_ref(claim->backbone_gw);

}
/* set (new) backbone gw */
atomic_inc(&backbone_gw->refcount);
Expand Down
1 change: 0 additions & 1 deletion trunk/net/batman-adv/debugfs.c
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,6 @@ static ssize_t batadv_log_read(struct file *file, char __user *buf,

buf++;
i++;

}

spin_unlock_bh(&debug_log->lock);
Expand Down
3 changes: 0 additions & 3 deletions trunk/net/batman-adv/originator.c
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,6 @@ void batadv_originator_free(struct batadv_priv *bat_priv)
spin_lock_bh(list_lock);
hlist_for_each_entry_safe(orig_node, node, node_tmp,
head, hash_entry) {

hlist_del_rcu(node);
batadv_orig_node_free_ref(orig_node);
}
Expand Down Expand Up @@ -291,15 +290,13 @@ batadv_purge_orig_neighbors(struct batadv_priv *bat_priv,
/* for all neighbors towards this originator ... */
hlist_for_each_entry_safe(neigh_node, node, node_tmp,
&orig_node->neigh_list, list) {

last_seen = neigh_node->last_seen;
if_incoming = neigh_node->if_incoming;

if ((batadv_has_timed_out(last_seen, BATADV_PURGE_TIMEOUT)) ||
(if_incoming->if_status == BATADV_IF_INACTIVE) ||
(if_incoming->if_status == BATADV_IF_NOT_IN_USE) ||
(if_incoming->if_status == BATADV_IF_TO_BE_REMOVED)) {

if ((if_incoming->if_status == BATADV_IF_INACTIVE) ||
(if_incoming->if_status == BATADV_IF_NOT_IN_USE) ||
(if_incoming->if_status == BATADV_IF_TO_BE_REMOVED))
Expand Down
4 changes: 0 additions & 4 deletions trunk/net/batman-adv/routing.c
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,6 @@ static void _batadv_update_route(struct batadv_priv *bat_priv,

/* route added */
} else if ((!curr_router) && (neigh_node)) {

batadv_dbg(BATADV_DBG_ROUTES, bat_priv,
"Adding route towards: %pM (via %pM)\n",
orig_node->orig, neigh_node->addr);
Expand Down Expand Up @@ -172,7 +171,6 @@ void batadv_bonding_candidate_add(struct batadv_orig_node *orig_node,
*/
hlist_for_each_entry_rcu(tmp_neigh_node, node,
&orig_node->neigh_list, list) {

if (tmp_neigh_node == neigh_node)
continue;

Expand Down Expand Up @@ -836,7 +834,6 @@ static int batadv_route_unicast_packet(struct sk_buff *skb,
if (unicast_packet->header.packet_type == BATADV_UNICAST_FRAG &&
batadv_frag_can_reassemble(skb,
neigh_node->if_incoming->net_dev->mtu)) {

ret = batadv_frag_reassemble_skb(skb, bat_priv, &new_skb);

if (ret == NET_RX_DROP)
Expand Down Expand Up @@ -1103,7 +1100,6 @@ int batadv_recv_ucast_frag_packet(struct sk_buff *skb,

/* packet for me */
if (batadv_is_my_mac(unicast_packet->dest)) {

ret = batadv_frag_reassemble_skb(skb, bat_priv, &new_skb);

if (ret == NET_RX_DROP)
Expand Down
2 changes: 0 additions & 2 deletions trunk/net/batman-adv/send.c
Original file line number Diff line number Diff line change
Expand Up @@ -330,7 +330,6 @@ batadv_purge_outstanding_packets(struct batadv_priv *bat_priv,
spin_lock_bh(&bat_priv->forw_bcast_list_lock);
hlist_for_each_entry_safe(forw_packet, tmp_node, safe_tmp_node,
&bat_priv->forw_bcast_list, list) {

/* if purge_outstanding_packets() was called with an argument
* we delete only packets belonging to the given interface
*/
Expand All @@ -357,7 +356,6 @@ batadv_purge_outstanding_packets(struct batadv_priv *bat_priv,
spin_lock_bh(&bat_priv->forw_bat_list_lock);
hlist_for_each_entry_safe(forw_packet, tmp_node, safe_tmp_node,
&bat_priv->forw_bat_list, list) {

/* if purge_outstanding_packets() was called with an argument
* we delete only packets belonging to the given interface
*/
Expand Down
7 changes: 0 additions & 7 deletions trunk/net/batman-adv/translation-table.c
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,6 @@ batadv_tt_global_hash_find(struct batadv_priv *bat_priv, const void *data)
struct batadv_tt_global_entry,
common);
return tt_global_entry;

}

static void
Expand Down Expand Up @@ -256,7 +255,6 @@ static void batadv_tt_global_free(struct batadv_priv *bat_priv,
batadv_hash_remove(bat_priv->tt.global_hash, batadv_compare_tt,
batadv_choose_orig, tt_global->common.addr);
batadv_tt_global_entry_free_ref(tt_global);

}

void batadv_tt_local_add(struct net_device *soft_iface, const uint8_t *addr,
Expand Down Expand Up @@ -652,7 +650,6 @@ static void batadv_tt_local_purge(struct batadv_priv *bat_priv)
batadv_tt_local_purge_list(bat_priv, head);
spin_unlock_bh(list_lock);
}

}

static void batadv_tt_local_table_free(struct batadv_priv *bat_priv)
Expand Down Expand Up @@ -1079,7 +1076,6 @@ batadv_tt_global_del_orig_list(struct batadv_tt_global_entry *tt_global_entry)
batadv_tt_orig_list_entry_free_ref(orig_entry);
}
spin_unlock_bh(&tt_global_entry->list_lock);

}

static void
Expand Down Expand Up @@ -1855,7 +1851,6 @@ batadv_send_other_tt_response(struct batadv_priv *bat_priv,
if (!ret)
kfree_skb(skb);
return ret;

}

static bool
Expand Down Expand Up @@ -2382,7 +2377,6 @@ static void batadv_tt_local_purge_pending_clients(struct batadv_priv *bat_priv)
}
spin_unlock_bh(list_lock);
}

}

static int batadv_tt_commit_changes(struct batadv_priv *bat_priv,
Expand Down Expand Up @@ -2579,7 +2573,6 @@ bool batadv_tt_local_client_is_roaming(struct batadv_priv *bat_priv,
batadv_tt_local_entry_free_ref(tt_local_entry);
out:
return ret;

}

bool batadv_tt_add_temporary_global_entry(struct batadv_priv *bat_priv,
Expand Down
2 changes: 0 additions & 2 deletions trunk/net/batman-adv/unicast.c
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,6 @@ batadv_frag_search_packet(struct list_head *head,
is_head = !!(up->flags & BATADV_UNI_FRAG_HEAD);

list_for_each_entry(tfp, head, list) {

if (!tfp->skb)
continue;

Expand Down Expand Up @@ -162,7 +161,6 @@ void batadv_frag_list_free(struct list_head *head)
struct batadv_frag_packet_list_entry *pf, *tmp_pf;

if (!list_empty(head)) {

list_for_each_entry_safe(pf, tmp_pf, head, list) {
kfree_skb(pf->skb);
list_del(&pf->list);
Expand Down

0 comments on commit 5fbd50b

Please sign in to comment.