ethdev: introduce generic dummy packet burst function
[dpdk.git] / drivers / net / hns3 / hns3_cmd.c
index 50769c6..5dc874f 100644 (file)
@@ -5,7 +5,7 @@
 #include <ethdev_pci.h>
 #include <rte_io.h>
 
-#include "hns3_ethdev.h"
+#include "hns3_common.h"
 #include "hns3_regs.h"
 #include "hns3_intr.h"
 #include "hns3_logs.h"
@@ -60,18 +60,14 @@ hns3_allocate_dma_mem(struct hns3_hw *hw, struct hns3_cmq_ring *ring,
        ring->desc = mz->addr;
        ring->desc_dma_addr = mz->iova;
        ring->zone = (const void *)mz;
-       hns3_dbg(hw, "memzone %s allocated with physical address: %" PRIu64,
-                mz->name, ring->desc_dma_addr);
+       hns3_dbg(hw, "cmd ring memzone name: %s", mz->name);
 
        return 0;
 }
 
 static void
-hns3_free_dma_mem(struct hns3_hw *hw, struct hns3_cmq_ring *ring)
+hns3_free_dma_mem(struct hns3_cmq_ring *ring)
 {
-       hns3_dbg(hw, "memzone %s to be freed with physical address: %" PRIu64,
-                ((const struct rte_memzone *)ring->zone)->name,
-                ring->desc_dma_addr);
        rte_memzone_free((const struct rte_memzone *)ring->zone);
        ring->buf_size = 0;
        ring->desc = NULL;
@@ -93,10 +89,10 @@ hns3_alloc_cmd_desc(struct hns3_hw *hw, struct hns3_cmq_ring *ring)
 }
 
 static void
-hns3_free_cmd_desc(struct hns3_hw *hw, struct hns3_cmq_ring *ring)
+hns3_free_cmd_desc(__rte_unused struct hns3_hw *hw, struct hns3_cmq_ring *ring)
 {
        if (ring->desc)
-               hns3_free_dma_mem(hw, ring);
+               hns3_free_dma_mem(ring);
 }
 
 static int
@@ -466,7 +462,7 @@ hns3_mask_capability(struct hns3_hw *hw,
        for (i = 0; i < MAX_CAPS_BIT; i++) {
                if (!(caps_masked & BIT_ULL(i)))
                        continue;
-               hns3_info(hw, "mask capabiliy: id-%u, name-%s.",
+               hns3_info(hw, "mask capability: id-%u, name-%s.",
                          i, hns3_get_caps_name(i));
        }
 }
@@ -736,7 +732,7 @@ hns3_cmd_init(struct hns3_hw *hw)
                return 0;
 
        /*
-        * Requiring firmware to enable some features, firber port can still
+        * Requiring firmware to enable some features, fiber port can still
         * work without it, but copper port can't work because the firmware
         * fails to take over the PHY.
         */