summaryrefslogtreecommitdiff
path: root/lib/ethdev
diff options
context:
space:
mode:
authorThierry Herbelot <[email protected]>2024-03-11 13:55:18 +0100
committerFerruh Yigit <[email protected]>2024-03-11 15:12:28 +0100
commitaa2f2d3384bf75b27bcdfebc4eeb2ed2cf0e25e0 (patch)
tree9b03e80d16d8d2b0b159740f725052798d031291 /lib/ethdev
parentaae6989df36c105b917cf69975c075dfde2e6b84 (diff)
ethdev: fix representor devargs initialization
rte_eth_devargs_parse() stops initialising eth_devargs variable to zero, which causes regression in ixgbe PCI probe. Restore the memset for fix. As the listed commit introduces a new argument: nb_da, the memset takes it into account. Fixes: 9a9eb104edf6 ("ethdev: parse multiple representor devargs") Signed-off-by: Thierry Herbelot <[email protected]> Signed-off-by: Olivier Matz <[email protected]> Reviewed-by: Ferruh Yigit <[email protected]>
Diffstat (limited to 'lib/ethdev')
-rw-r--r--lib/ethdev/ethdev_driver.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/ethdev/ethdev_driver.c b/lib/ethdev/ethdev_driver.c
index 1660dd3f2a..f48c0eb8bc 100644
--- a/lib/ethdev/ethdev_driver.c
+++ b/lib/ethdev/ethdev_driver.c
@@ -617,6 +617,8 @@ rte_eth_devargs_parse(const char *dargs, struct rte_eth_devargs *eth_devargs,
unsigned int i;
int result = 0;
+ memset(eth_devargs, 0, nb_da * sizeof(*eth_devargs));
+
result = eth_dev_devargs_tokenise(&args, dargs);
if (result < 0)
goto parse_cleanup;