diff options
author | Zhiyong Yang <zhiyong.yang@intel.com> | 2019-05-06 22:42:55 -0400 |
---|---|---|
committer | Dave Wallace <dwallacelf@gmail.com> | 2019-05-09 16:50:51 +0000 |
commit | 016d4cc327f1980605db7a9e436597e8f36fe9ed (patch) | |
tree | ac58fcf9f034c75dcffce4e62253f003140c31bc /src/plugins/dpdk/device | |
parent | 1f30a5993a88958a09956418e825396e516e382f (diff) |
dpdk: fix return variable size
The function dpdk_ol_flags_extract should return u16
instead of u8.
Change-Id: Id0b08b04c93598818f9a2eee5a88733900320dfa
Signed-off-by: Zhiyong Yang <zhiyong.yang@intel.com>
Diffstat (limited to 'src/plugins/dpdk/device')
-rw-r--r-- | src/plugins/dpdk/device/node.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/plugins/dpdk/device/node.c b/src/plugins/dpdk/device/node.c index b859d48b9d4..222201dc3ea 100644 --- a/src/plugins/dpdk/device/node.c +++ b/src/plugins/dpdk/device/node.c @@ -144,10 +144,10 @@ dpdk_prefetch_buffer_x4 (struct rte_mbuf *mb[]) <code>xd->per_interface_next_index</code> */ -static_always_inline u8 +static_always_inline u16 dpdk_ol_flags_extract (struct rte_mbuf **mb, u16 * flags, int count) { - u8 rv = 0; + u16 rv = 0; int i; for (i = 0; i < count; i++) { |