OSDN Git Service

IB/ipoib: Get rid of the tx_outstanding variable in all modes
authorErez Shitrit <erezsh@mellanox.com>
Thu, 19 Oct 2017 04:56:42 +0000 (07:56 +0300)
committerDoug Ledford <dledford@redhat.com>
Wed, 25 Oct 2017 17:36:50 +0000 (13:36 -0400)
commit2c104ea68350b7f49c4ae207afa6e7f7f5c81546
tree3d861c8c90508e1327d5dd1ca2eae7224e8bfd4d
parent5556176d8cb33652c702c3b6a629b4e1a0dd2a80
IB/ipoib: Get rid of the tx_outstanding variable in all modes

The first step toward using NAPI in the UD/TX flow is to separate
between two flows, the NAPI and the xmit, meaning no use of shared
variables between both flows.

This patch takes out the tx_outstanding variable that was used in both
flows and instead the driver uses the 2 cyclic ring variables: tx_head
and tx_tail, tx_head used in the xmit flow and tx_tail in the NAPI flow.

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