memif: fix chain buffer length in zero-copy mode 72/32872/2
authorBenoît Ganne <bganne@cisco.com>
Wed, 23 Jun 2021 11:45:25 +0000 (13:45 +0200)
committerDamjan Marion <dmarion@me.com>
Wed, 30 Jun 2021 18:57:59 +0000 (18:57 +0000)
commit44d524f941c8070c2a04301f832a129984fe4c96
tree10bafc2fa174d45a1d5de0c15a5763d9a6ccdc63
parent734268f484d8deb5d2054dadc890e48b26f77feb
memif: fix chain buffer length in zero-copy mode

The total_length_not_including_first_buffer field must be reset before
being updated otherwise it will quicly grows as stale values are reused.

Type: fix

Change-Id: Ic48c0822660998b0dfc0b5fdeadae6071b2d03f7
Signed-off-by: Benoît Ganne <bganne@cisco.com>
src/plugins/memif/node.c