From fcf9497d3bcd34b8b5090ee053575296cf56c5e6 Mon Sep 17 00:00:00 2001 From: Damjan Marion Date: Tue, 28 Aug 2018 19:40:30 +0200 Subject: avf: deal willth tx ring full properly Change-Id: I0b38e129ee01d212463253e5526bfc2d60fd88af Signed-off-by: Damjan Marion --- src/plugins/avf/device.c | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src/plugins/avf/device.c') diff --git a/src/plugins/avf/device.c b/src/plugins/avf/device.c index 2d6908bd1e2..ea4d82aaf4b 100644 --- a/src/plugins/avf/device.c +++ b/src/plugins/avf/device.c @@ -1314,6 +1314,12 @@ avf_set_interface_next_node (vnet_main_t * vnm, u32 hw_if_index, vlib_node_add_next (vlib_get_main (), avf_input_node.index, node_index); } +static char *avf_tx_func_error_strings[] = { +#define _(n,s) s, + foreach_avf_tx_func_error +#undef _ +}; + /* *INDENT-OFF* */ VNET_DEVICE_CLASS (avf_device_class,) = { @@ -1323,6 +1329,8 @@ VNET_DEVICE_CLASS (avf_device_class,) = .admin_up_down_function = avf_interface_admin_up_down, .rx_mode_change_function = avf_interface_rx_mode_change, .rx_redirect_to_node = avf_set_interface_next_node, + .tx_function_n_errors = AVF_TX_N_ERROR, + .tx_function_error_strings = avf_tx_func_error_strings, }; /* *INDENT-ON* */ -- cgit 1.2.3-korg