net/sfc: fix datapath name references in logs
authorIvan Malov <ivan.malov@oktetlabs.ru>
Wed, 16 Jan 2019 12:24:40 +0000 (12:24 +0000)
committerFerruh Yigit <ferruh.yigit@intel.com>
Fri, 18 Jan 2019 08:47:26 +0000 (09:47 +0100)
Rx and Tx datapath references were mixed up in a couple
of log statements and commentary blocks in the original
commit. Correct datapath name references in said places.

Fixes: f28ede500c2e ("net/sfc: support multi-process")
Cc: stable@dpdk.org
Signed-off-by: Ivan Malov <ivan.malov@oktetlabs.ru>
Signed-off-by: Andrew Rybchenko <arybchenko@solarflare.com>
drivers/net/sfc/sfc.h
drivers/net/sfc/sfc_ethdev.c

index 51be440..0b85234 100644 (file)
@@ -251,7 +251,7 @@ struct sfc_adapter {
 
        /*
         * Shared memory copy of the Tx datapath name to be used by
-        * the secondary process to find Rx datapath to be used.
+        * the secondary process to find Tx datapath to be used.
         */
        char                            *dp_tx_name;
        const struct sfc_dp_tx          *dp_tx;
index 9f59c8d..08d3271 100644 (file)
@@ -1862,13 +1862,13 @@ sfc_eth_dev_secondary_set_ops(struct rte_eth_dev *dev)
 
        dp_rx = sfc_dp_find_rx_by_name(&sfc_dp_head, sa->dp_rx_name);
        if (dp_rx == NULL) {
-               sfc_err(sa, "cannot find %s Rx datapath", sa->dp_tx_name);
+               sfc_err(sa, "cannot find %s Rx datapath", sa->dp_rx_name);
                rc = ENOENT;
                goto fail_dp_rx;
        }
        if (~dp_rx->features & SFC_DP_RX_FEAT_MULTI_PROCESS) {
                sfc_err(sa, "%s Rx datapath does not support multi-process",
-                       sa->dp_tx_name);
+                       sa->dp_rx_name);
                rc = EINVAL;
                goto fail_dp_rx_multi_process;
        }