rdma: fix bug related to ring buffer 57/25757/1
authorElias Rudberg <elias.rudberg@bahnhof.net>
Tue, 18 Feb 2020 11:12:25 +0000 (12:12 +0100)
committerBenoît Ganne <bganne@cisco.com>
Tue, 10 Mar 2020 08:59:47 +0000 (08:59 +0000)
commit9ef52ab8589586f6659aa00426149fc36c7589fe
tree31d252b1286d9955221c14f26237e45fff883674
parenta9df8e40c78a1fa6a321661163c16045c0ff25fb
rdma: fix bug related to ring buffer

Fix a bug that caused some input packets to be dropped due to errors of
the type 'ip4 length > l2 length'. The change is related to the second
call to the rdma_device_input_bufs() function that happens when the end
of the ring buffer is reached.

Type: fix
Change-Id: I332d69ab22242b3443a0baca6e5dd86349a54765
Signed-off-by: Elias Rudberg <elias.rudberg@bahnhof.net>
(cherry picked from commit e5ecf3ea4b456afb710f4ed903cd7e4c1ae87859)
src/plugins/rdma/input.c