aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins
diff options
context:
space:
mode:
authorDamjan Marion <damarion@cisco.com>2023-12-04 15:25:12 +0100
committerMohammed HAWARI <momohawari@gmail.com>2023-12-04 16:35:10 +0000
commit4338683b07fa25c22b754c7e808ef33dff661566 (patch)
treedd1519c3f60159e97c5a895adeb392af4d59099b /src/plugins
parentc6ae4999d2ddd0b700248aa0a3ea8facded1d359 (diff)
iavf: add missing cfg_change_validate callback
Type: fix Fixes: 47447f1f Change-Id: I438f5535bc48ca5397b8f5d3fbbd893ca6a511b4 Signed-off-by: Damjan Marion <damarion@cisco.com>
Diffstat (limited to 'src/plugins')
-rw-r--r--src/plugins/dev_iavf/iavf.c3
-rw-r--r--src/plugins/dev_iavf/iavf.h2
2 files changed, 4 insertions, 1 deletions
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 *);