IB/ipoib: Use NAPI in UD/TX flows
authorErez Shitrit <erezsh@mellanox.com>
Thu, 19 Oct 2017 04:56:43 +0000 (07:56 +0300)
committerDoug Ledford <dledford@redhat.com>
Wed, 25 Oct 2017 17:36:50 +0000 (13:36 -0400)
commit8966e28d2e40cfc9f694bd02dabc49afb78d7160
tree94d3ed9ebe51f6afdbc17d07483870b5a091aeb9
parent2c104ea68350b7f49c4ae207afa6e7f7f5c81546
IB/ipoib: Use NAPI in UD/TX flows

Instead of explicit call to poll_cq of the tx ring, use the NAPI mechanism
to handle the completions of each packet that has been sent to the HW.

The next major changes were taken:
 * The driver init completion function in the creation of the send CQ,
   that function triggers the napi scheduling.
 * The driver uses CQ for RX for both modes UD and CM, and CQ for TX
   for CM and UD.

Cc: Kamal Heib <kamalh@mellanox.com>
Signed-off-by: Erez Shitrit <erezsh@mellanox.com>
Reviewed-by: Alex Vesker <valex@mellanox.com>
Signed-off-by: Leon Romanovsky <leonro@mellanox.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>
drivers/infiniband/ulp/ipoib/ipoib.h
drivers/infiniband/ulp/ipoib/ipoib_cm.c
drivers/infiniband/ulp/ipoib/ipoib_ib.c
drivers/infiniband/ulp/ipoib/ipoib_main.c
drivers/infiniband/ulp/ipoib/ipoib_verbs.c