Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 256119
b: refs/heads/master
c: 8698529
h: refs/heads/master
i:
  256117: 8b74847
  256115: 9cb5939
  256111: e4a5d90
v: v3
  • Loading branch information
Antonio Quartulli authored and Marek Lindner committed Jul 5, 2011
1 parent b5b274a commit 9d3d6a3
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 6 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: 5fbc1598c28555d2aa44bff0ac56ec3739401aff
refs/heads/master: 8698529d209c43f6434592caf38733b84ccab5f3
2 changes: 1 addition & 1 deletion trunk/net/batman-adv/routing.c
Original file line number Diff line number Diff line change
Expand Up @@ -1677,7 +1677,7 @@ int recv_bcast_packet(struct sk_buff *skb, struct hard_iface *recv_if)
spin_unlock_bh(&orig_node->bcast_seqno_lock);

/* rebroadcast packet */
add_bcast_packet_to_list(bat_priv, skb);
add_bcast_packet_to_list(bat_priv, skb, 1);

/* broadcast for me */
interface_rx(recv_if->soft_iface, skb, recv_if, hdr_size);
Expand Down
4 changes: 2 additions & 2 deletions trunk/net/batman-adv/send.c
Original file line number Diff line number Diff line change
Expand Up @@ -455,7 +455,7 @@ static void _add_bcast_packet_to_list(struct bat_priv *bat_priv,
* The skb is not consumed, so the caller should make sure that the
* skb is freed. */
int add_bcast_packet_to_list(struct bat_priv *bat_priv,
const struct sk_buff *skb)
const struct sk_buff *skb, unsigned long delay)
{
struct hard_iface *primary_if = NULL;
struct forw_packet *forw_packet;
Expand Down Expand Up @@ -492,7 +492,7 @@ int add_bcast_packet_to_list(struct bat_priv *bat_priv,
/* how often did we send the bcast packet ? */
forw_packet->num_packets = 0;

_add_bcast_packet_to_list(bat_priv, forw_packet, 1);
_add_bcast_packet_to_list(bat_priv, forw_packet, delay);
return NETDEV_TX_OK;

packet_free:
Expand Down
2 changes: 1 addition & 1 deletion trunk/net/batman-adv/send.h
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ void schedule_forward_packet(struct orig_node *orig_node,
int directlink,
struct hard_iface *if_outgoing);
int add_bcast_packet_to_list(struct bat_priv *bat_priv,
const struct sk_buff *skb);
const struct sk_buff *skb, unsigned long delay);
void send_outstanding_bat_packet(struct work_struct *work);
void purge_outstanding_packets(struct bat_priv *bat_priv,
const struct hard_iface *hard_iface);
Expand Down
2 changes: 1 addition & 1 deletion trunk/net/batman-adv/soft-interface.c
Original file line number Diff line number Diff line change
Expand Up @@ -634,7 +634,7 @@ static int interface_tx(struct sk_buff *skb, struct net_device *soft_iface)
bcast_packet->seqno =
htonl(atomic_inc_return(&bat_priv->bcast_seqno));

add_bcast_packet_to_list(bat_priv, skb);
add_bcast_packet_to_list(bat_priv, skb, 1);

/* a copy is stored in the bcast list, therefore removing
* the original skb. */
Expand Down

0 comments on commit 9d3d6a3

Please sign in to comment.