git.droids-corp.org
/
dpdk.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
ethdev: introduce generic dummy packet burst function
[dpdk.git]
/
drivers
/
net
/
hns3
/
hns3_cmd.c
diff --git
a/drivers/net/hns3/hns3_cmd.c
b/drivers/net/hns3/hns3_cmd.c
index
50769c6
..
5dc874f
100644
(file)
--- a/
drivers/net/hns3/hns3_cmd.c
+++ b/
drivers/net/hns3/hns3_cmd.c
@@
-5,7
+5,7
@@
#include <ethdev_pci.h>
#include <rte_io.h>
#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"
#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;
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
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;
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
}
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)
{
if (ring->desc)
- hns3_free_dma_mem(
hw,
ring);
+ hns3_free_dma_mem(ring);
}
static int
}
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;
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 capabili
t
y: id-%u, name-%s.",
i, hns3_get_caps_name(i));
}
}
i, hns3_get_caps_name(i));
}
}
@@
-736,7
+732,7
@@
hns3_cmd_init(struct hns3_hw *hw)
return 0;
/*
return 0;
/*
- * Requiring firmware to enable some features, fi
r
ber 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.
*/
* work without it, but copper port can't work because the firmware
* fails to take over the PHY.
*/