Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 377018
b: refs/heads/master
c: 76c455d
h: refs/heads/master
v: v3
  • Loading branch information
Jiri Pirko authored and David S. Miller committed Jun 12, 2013
1 parent 7f6b87b commit 985cea0
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 19a6afb23e5d323e1245baa4e62755492b2f1200
refs/heads/master: 76c455decbbad31de21c727edb184a963f42b40b
2 changes: 2 additions & 0 deletions trunk/drivers/net/team/team_mode_random.c
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,8 @@ static bool rnd_transmit(struct team *team, struct sk_buff *skb)

port_index = random_N(team->en_port_count);
port = team_get_port_by_index_rcu(team, port_index);
if (unlikely(!port))
goto drop;
port = team_get_first_port_txable_rcu(team, port);
if (unlikely(!port))
goto drop;
Expand Down
2 changes: 2 additions & 0 deletions trunk/drivers/net/team/team_mode_roundrobin.c
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,8 @@ static bool rr_transmit(struct team *team, struct sk_buff *skb)

port_index = rr_priv(team)->sent_packets++ % team->en_port_count;
port = team_get_port_by_index_rcu(team, port_index);
if (unlikely(!port))
goto drop;
port = team_get_first_port_txable_rcu(team, port);
if (unlikely(!port))
goto drop;
Expand Down

0 comments on commit 985cea0

Please sign in to comment.