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
2020-04-17 23:34:08 +02:00
2020-09-29 12:38:04 +02:00
2020-10-01 18:43:10 +02:00
2020-02-22 21:05:22 +01:00
2016-11-13 15:25:12 +01:00
2020-09-30 21:52:54 +02:00
2020-08-12 11:32:16 +02:00
2020-09-07 23:51:57 +02:00
2018-01-04 22:41:38 +01:00
2020-08-12 11:32:16 +02:00

DPDK is a set of libraries and drivers for fast packet processing.
It supports many processor architectures and both FreeBSD and Linux.

The DPDK uses the Open Source BSD-3-Clause license for the core libraries
and drivers. The kernel components are GPL-2.0 licensed.

Please check the doc directory for release notes,
API documentation, and sample application information.

For questions and usage discussions, subscribe to: users@dpdk.org
Report bugs and issues to the development mailing list: dev@dpdk.org
Description
No description provided
Readme
Languages
C 99.1%
Meson 0.5%
Python 0.2%
Shell 0.1%