rdma: fix chained buffer tx path in dv mode 52/32952/2
authorBenoît Ganne <bganne@cisco.com>
Fri, 25 Jun 2021 15:49:01 +0000 (17:49 +0200)
committerDamjan Marion <dmarion@me.com>
Wed, 30 Jun 2021 18:58:42 +0000 (18:58 +0000)
commit41e64e76d26b839a820424d9882b51c31f9108d6
treed3276feef5d2914e7e564a8a57422063a42b3e6a
parent44d524f941c8070c2a04301f832a129984fe4c96
rdma: fix chained buffer tx path in dv mode

When switching to the direct verb chain buffer tx path, we must account
for all remaining packets, including the packets that would wrapped
around.
Previously we were using the 'n' counter but ignoring the 'n_wrap'
counter: if some packets would have wrapped around in the default path,
it would be ignored by the chained buffer tx path.
Compute the correct number of remaining packets based on the old and
current txq tail instead.
Also simplify the chained tx function parameters.

Type: fix

Change-Id: If12b41a8f143fda80290342e2904792f7501c559
Signed-off-by: Benoît Ganne <bganne@cisco.com>
src/plugins/rdma/output.c