From 4338683b07fa25c22b754c7e808ef33dff661566 Mon Sep 17 00:00:00 2001 From: Damjan Marion Date: Mon, 4 Dec 2023 15:25:12 +0100 Subject: iavf: add missing cfg_change_validate callback Type: fix Fixes: 47447f1f Change-Id: I438f5535bc48ca5397b8f5d3fbbd893ca6a511b4 Signed-off-by: Damjan Marion --- src/plugins/dev_iavf/iavf.c | 3 ++- src/plugins/dev_iavf/iavf.h | 2 ++ 2 files changed, 4 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/plugins/dev_iavf/iavf.c b/src/plugins/dev_iavf/iavf.c index 5603f61f45f..ffb18c7cc94 100644 --- a/src/plugins/dev_iavf/iavf.c +++ b/src/plugins/dev_iavf/iavf.c @@ -181,7 +181,8 @@ iavf_init (vlib_main_t *vm, vnet_dev_t *dev) .init = iavf_port_init, .start = iavf_port_start, .stop = iavf_port_stop, - .config_change = iavf_port_cfg_change, + .config_change = iavf_port_cfg_change, + .config_change_validate = iavf_port_cfg_change_validate, .format_status = format_iavf_port_status, }, .data_size = sizeof (iavf_port_t), diff --git a/src/plugins/dev_iavf/iavf.h b/src/plugins/dev_iavf/iavf.h index 47e86e14f43..39f92741a63 100644 --- a/src/plugins/dev_iavf/iavf.h +++ b/src/plugins/dev_iavf/iavf.h @@ -113,6 +113,8 @@ vnet_dev_rv_t iavf_port_start (vlib_main_t *, vnet_dev_port_t *); void iavf_port_stop (vlib_main_t *, vnet_dev_port_t *); vnet_dev_rv_t iavf_port_cfg_change (vlib_main_t *, vnet_dev_port_t *, vnet_dev_port_cfg_change_req_t *); +vnet_dev_rv_t iavf_port_cfg_change_validate (vlib_main_t *, vnet_dev_port_t *, + vnet_dev_port_cfg_change_req_t *); /* queue.c */ vnet_dev_rv_t iavf_rx_queue_alloc (vlib_main_t *, vnet_dev_rx_queue_t *); -- cgit 1.2.3-korg