net/ena: ensure Rx buffer size is at least 1400B
authorMichal Krawczyk <mk@semihalf.com>
Wed, 8 Apr 2020 08:28:52 +0000 (10:28 +0200)
committerFerruh Yigit <ferruh.yigit@intel.com>
Tue, 21 Apr 2020 11:57:06 +0000 (13:57 +0200)
commit38364c2687ead97b99402310087c27131a97748c
tree880b6d2763d3183a646a8f1e3953fdd68046dd86
parentfd5cbded9ecf3b98a90a0787dfcd5d0707b990ca
net/ena: ensure Rx buffer size is at least 1400B

Some of the ENA devices can't handle buffers which are smaller than a
1400B. Because of this limitation, size of the buffer is being checked
and limited during the Rx queue setup.

If it's below the allowed value, PMD won't finish it's configuration
successfully..

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