diff options
author | Ilya Maximets <i.maximets@samsung.com> | 2017-05-19 16:37:32 +0300 |
---|---|---|
committer | Ben Pfaff <blp@ovn.org> | 2017-05-31 16:22:41 -0700 |
commit | bb37956ac0067beaa338282d34bd6654b4cdde7c (patch) | |
tree | f85af61b777fd307467c5ff01f5fa98ee2d8486d /xenserver | |
parent | 5dcde09c80a816cdd9a36740abf9b94688e694a8 (diff) | |
download | openvswitch-bb37956ac0067beaa338282d34bd6654b4cdde7c.tar.gz |
netdev-dpdk: Use uint8_t for port_id.
Currently, signed integer is used for 'port_id' variable and
'-1' as identifier of bad or uninitialized 'port_id'.
This inconsistent with dpdk library and, also, in few cases,
leads to passing '-1' to dpdk functions where uint8_t expected.
Such behaviour doesn't produce any issues, but it's better to
use same type as in dpdk library for consistency.
Introduced 'dpdk_port_t' typedef for better maintainability.
Also, magic number '-1' replaced with DPDK_ETH_PORT_ID_INVALID
macro.
Signed-off-by: Ilya Maximets <i.maximets@samsung.com>
Signed-off-by: Ben Pfaff <blp@ovn.org>
Acked-by: Mark Kavanagh <mark.b.kavanagh@intel.com>
Diffstat (limited to 'xenserver')
0 files changed, 0 insertions, 0 deletions