solaflare: driver bugfix
authorRoni Häcki <roni.haecki@inf.ethz.ch>
Mon, 3 Apr 2017 11:47:03 +0000 (13:47 +0200)
committerRoni Häcki <roni.haecki@inf.ethz.ch>
Mon, 3 Apr 2017 11:47:03 +0000 (13:47 +0200)
Signed-off-by: Roni Häcki <roni.haecki@inf.ethz.ch>

usr/drivers/solarflare/sfn5122f_qdriver.c

index f9e8945..9b2486a 100644 (file)
@@ -155,7 +155,7 @@ static size_t check_for_new_events(void)
                         DEBUG_QUEUE("TX EVENT OK %d \n", qi);
                         uint8_t index = 0;
                         while (q->num_left > 0) {
-                            handle_tx_done(q->bufs[0]);
+                            handle_tx_done(q->bufs[index]);
                             index++;
                             q->num_left--;
                         }