From 73b71225b1f6bdd65923ac8ac786ed226d57228e Mon Sep 17 00:00:00 2001 From: Benoît Ganne Date: Tue, 11 May 2021 13:19:56 +0200 Subject: af_xdp: refill rx rings when interface goes up MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit If interrupt mode is configured through startup.conf exec script, the input function will not be polled and the rx ring will never be filled. Always refill the ring when interface goes up so it is ready to receive packets. Type: fix Change-Id: I4cf22c8ae00638679f2e8650303a6fe916c1319b Signed-off-by: Benoît Ganne --- src/plugins/af_xdp/af_xdp.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/plugins/af_xdp/af_xdp.h') diff --git a/src/plugins/af_xdp/af_xdp.h b/src/plugins/af_xdp/af_xdp.h index 91895ced23b..825a3fb29fd 100644 --- a/src/plugins/af_xdp/af_xdp.h +++ b/src/plugins/af_xdp/af_xdp.h @@ -164,6 +164,8 @@ typedef struct void af_xdp_create_if (vlib_main_t * vm, af_xdp_create_if_args_t * args); void af_xdp_delete_if (vlib_main_t * vm, af_xdp_device_t * ad); +void af_xdp_device_input_refill (af_xdp_device_t *ad); + extern vlib_node_registration_t af_xdp_input_node; extern vnet_device_class_t af_xdp_device_class; -- cgit 1.2.3-korg