Code Review
/
vpp.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
review
|
tree
raw
|
patch
| inline |
side by side
(parent:
99214ce
)
tap_v2: convert ring size from network to host order
24/9724/3
author
Milan Lenco
<milan.lenco@pantheon.tech>
Tue, 5 Dec 2017 11:18:15 +0000
(12:18 +0100)
committer
Damjan Marion
<dmarion.lists@gmail.com>
Tue, 5 Dec 2017 18:19:21 +0000
(18:19 +0000)
Change-Id: Ica1be5c75c83ac64c7063bfeff1f4d00702a00e1
Signed-off-by: Milan Lenco <milan.lenco@pantheon.tech>
src/vnet/devices/tap/tapv2_api.c
patch
|
blob
|
history
diff --git
a/src/vnet/devices/tap/tapv2_api.c
b/src/vnet/devices/tap/tapv2_api.c
index
2d4d241
..
2b324d6
100644
(file)
--- a/
src/vnet/devices/tap/tapv2_api.c
+++ b/
src/vnet/devices/tap/tapv2_api.c
@@
-65,8
+65,8
@@
vl_api_tap_create_v2_t_handler (vl_api_tap_create_v2_t * mp)
clib_memcpy (ap->hw_addr, mp->mac_address, 6);
ap->hw_addr_set = 1;
}
- ap->rx_ring_sz =
mp->rx_ring_sz
;
- ap->tx_ring_sz =
mp->tx_ring_sz
;
+ ap->rx_ring_sz =
ntohs (mp->rx_ring_sz)
;
+ ap->tx_ring_sz =
ntohs (mp->tx_ring_sz)
;
ap->sw_if_index = (u32) ~ 0;
if (mp->host_namespace_set)