X-Git-Url: https://gerrit.fd.io/r/gitweb?a=blobdiff_plain;f=src%2Fvnet%2Funix%2Ftuntap.c;h=ce7b260f393b3f4f30b1e6475495f60167b13fe1;hb=5de3fec531691a81b3f77ed965488dc8dbf1e9a1;hp=e002a248ce4115171ca3963dcb5e5494dc1fd938;hpb=672ab690182f3d4941d2640c68bb6ced38880bc3;p=vpp.git diff --git a/src/vnet/unix/tuntap.c b/src/vnet/unix/tuntap.c index e002a248ce4..ce7b260f393 100644 --- a/src/vnet/unix/tuntap.c +++ b/src/vnet/unix/tuntap.c @@ -243,7 +243,7 @@ tuntap_rx (vlib_main_t * vm, vlib_node_runtime_t * node, vlib_frame_t * frame) tuntap_main_t *tm = &tuntap_main; vlib_buffer_t *b; u32 bi; - const uword buffer_size = VLIB_BUFFER_DATA_SIZE; + const uword buffer_size = vlib_bufer_get_default_size (vm); u16 thread_index = vm->thread_index; /** Make sure we have some RX buffers. */ @@ -490,7 +490,7 @@ tuntap_config (vlib_main_t * vm, unformat_input_t * input) u8 *name; int flags = IFF_TUN | IFF_NO_PI; int is_enabled = 0, is_ether = 0, have_normal_interface = 0; - const uword buffer_size = VLIB_BUFFER_DATA_SIZE; + const uword buffer_size = vlib_bufer_get_default_size (vm); while (unformat_check_input (input) != UNFORMAT_END_OF_INPUT) {