]> git.droids-corp.org - dpdk.git/blobdiff - app/test-pmd/cmdline_flow.c
app/testpmd: check status of getting ethdev info
[dpdk.git] / app / test-pmd / cmdline_flow.c
index 495871394e15c0565428534e89d9f96b6bf32cfe..932bdb98eea1abca28e94cf2bbf08adea7a22fe7 100644 (file)
@@ -3549,8 +3549,12 @@ parse_vc_action_rss(struct context *ctx, const struct token *token,
        if (!port_id_is_invalid(ctx->port, DISABLED_WARN) &&
            ctx->port != (portid_t)RTE_PORT_ALL) {
                struct rte_eth_dev_info info;
+               int ret2;
+
+               ret2 = rte_eth_dev_info_get(ctx->port, &info);
+               if (ret2 != 0)
+                       return ret2;
 
-               rte_eth_dev_info_get(ctx->port, &info);
                action_rss_data->conf.key_len =
                        RTE_MIN(sizeof(action_rss_data->key),
                                info.hash_key_size);