|
@@ -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_index = rr_priv(team)->sent_packets++ % team->en_port_count;
|
|
port = team_get_port_by_index_rcu(team, port_index);
|
|
port = team_get_port_by_index_rcu(team, port_index);
|
|
|
|
+ if (unlikely(!port))
|
|
|
|
+ goto drop;
|
|
port = team_get_first_port_txable_rcu(team, port);
|
|
port = team_get_first_port_txable_rcu(team, port);
|
|
if (unlikely(!port))
|
|
if (unlikely(!port))
|
|
goto drop;
|
|
goto drop;
|