net/ena: reuse zero length Rx descriptor
authorMichal Krawczyk <mk@semihalf.com>
Wed, 8 Apr 2020 08:29:19 +0000 (10:29 +0200)
committerFerruh Yigit <ferruh.yigit@intel.com>
Tue, 21 Apr 2020 11:57:07 +0000 (13:57 +0200)
commit83fd97b20697dbe548d9cfe21767fd90cb917e41
tree1d29be22d7fd6e185b96a75ec2ba499ff17ae32f
parent36278b822789ad4e956943ed03624fd3ba7969ed
net/ena: reuse zero length Rx descriptor

Some ENA devices can pass to the driver descriptor with length 0. To
avoid extra allocation, the descriptor can be reused by simply putting
it back to the device.

Signed-off-by: Michal Krawczyk <mk@semihalf.com>
Reviewed-by: Igor Chauskin <igorch@amazon.com>
Reviewed-by: Guy Tzalik <gtzalik@amazon.com>
doc/guides/rel_notes/release_20_05.rst
drivers/net/ena/ena_ethdev.c