net/tap: fix multi-process request
authorRaslan Darawsheh <rasland@mellanox.com>
Tue, 26 Feb 2019 09:50:56 +0000 (09:50 +0000)
committerFerruh Yigit <ferruh.yigit@intel.com>
Fri, 1 Mar 2019 17:17:35 +0000 (18:17 +0100)
The structure was not initialized.

Fixes: c9aa56edec8e ("net/tap: access primary process queues from secondary")
Cc: stable@dpdk.org
Signed-off-by: Raslan Darawsheh <rasland@mellanox.com>
Reviewed-by: Rami Rosen <ramirose@gmail.com>
drivers/net/tap/rte_eth_tap.c

index 586c8a9..6f5109f 100644 (file)
@@ -2086,6 +2086,7 @@ tap_mp_attach_queues(const char *port_name, struct rte_eth_dev *dev)
        int queue, fd_iterator;
 
        /* Prepare the request */
+       memset(&request, 0, sizeof(request));
        strlcpy(request.name, TAP_MP_KEY, sizeof(request.name));
        strlcpy(request_param->port_name, port_name,
                sizeof(request_param->port_name));