]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit7b6a2632958efcfbbc92bc509c9a3df2badfe9fc
treee225c4e8ede36140d00cdb3dc1aac52a3788935a
parent0d61c246cf586a9fb47b8052c001130b17bd2b8c
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