mlx4: Fix NAPI polling
authorBarret Rhoden <brho@cs.berkeley.edu>
Mon, 26 Jun 2017 16:26:12 +0000 (12:26 -0400)
committerBarret Rhoden <brho@cs.berkeley.edu>
Thu, 20 Jul 2017 12:19:46 +0000 (08:19 -0400)
commitad7f58d1756d6ecbaad00bcb95b18dc014d146c1
tree403579891bc406c23e297d72da4e7fc7b6f6ac28
parent9e8d9721a664b300099164af014f6dd9c18f8264
mlx4: Fix NAPI polling

I triggered this by trying to send a lot of packets at once, specifically
by removing the kthread_yield() from tcp.c.  When we poll and exceed the
budget, in Linux the NAPI code will call the poll function again.  We
weren't, and we weren't rearming the NIC's TX IRQ.  Then we'd never be able
to send another packet, since the transmit ring would always be full.

Signed-off-by: Barret Rhoden <brho@cs.berkeley.edu>
kern/drivers/net/mlx4/en_rx.c
kern/drivers/net/mlx4/en_tx.c