numam-dpdk/drivers/net/ena
Michal Krawczyk 3c7e44c7d3 net/ena/base: convert values to 32-bit before shifting
When filling out meta descriptor, all values should be converted to the
desired type (u32 in case of the meta descriptor) to prevent losing the
data.

For example, io_sq->phase is of type u8. If
ENA_ETH_IO_TX_META_DESC_PHASE_SHIFT would be greater then 8, all data
would be lost.

Signed-off-by: Michal Krawczyk <mk@semihalf.com>
Reviewed-by: Igor Chauskin <igorch@amazon.com>
Reviewed-by: Guy Tzalik <gtzalik@amazon.com>
Reviewed-by: Stephen Hemminger <stephen@networkplumber.org>
2020-09-30 19:19:09 +02:00
..
base net/ena/base: convert values to 32-bit before shifting 2020-09-30 19:19:09 +02:00
ena_ethdev.c ethdev: remove underscore prefix from internal API 2020-09-18 18:55:08 +02:00
ena_ethdev.h net/ena: use macros for ring index operations 2020-04-21 13:57:07 +02:00
ena_logs.h net/ena: change license clause to SPDX tags 2019-10-07 15:00:56 +02:00
ena_platform.h net/ena: change license clause to SPDX tags 2019-10-07 15:00:56 +02:00
meson.build build: disable experimental API check internally 2020-04-14 16:22:34 +02:00
rte_pmd_ena_version.map version: 20.11-rc0 2020-08-12 11:32:16 +02:00