net/mlx4_en: use napi_complete_done() in TX completion
authorEric Dumazet <edumazet@google.com>
Wed, 22 Apr 2020 16:13:29 +0000 (09:13 -0700)
committerDavid S. Miller <davem@davemloft.net>
Thu, 23 Apr 2020 19:43:20 +0000 (12:43 -0700)
commitcf4058dbaa18bf8e55b7cb8c04e1c313298cd5b1
treee225c4e8ede36140d00cdb3dc1aac52a3788935a
parent7e417a66b86c110f4b282945dac82e21e0b08328
net/mlx4_en: use napi_complete_done() in TX completion

In order to benefit from the new napi_defer_hard_irqs feature,
we need to use napi_complete_done() variant in this driver.

RX path is already using it, this patch implements TX completion side.

mlx4_en_process_tx_cq() now returns the amount of retired packets,
instead of a boolean, so that mlx4_en_poll_tx_cq() can pass
this value to napi_complete_done().

Signed-off-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mellanox/mlx4/en_rx.c
drivers/net/ethernet/mellanox/mlx4/en_tx.c
drivers/net/ethernet/mellanox/mlx4/mlx4_en.h