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
net: add rte prefix to ether structures
[dpdk.git]
/
drivers
/
net
/
dpaa
/
dpaa_ethdev.c
diff --git
a/drivers/net/dpaa/dpaa_ethdev.c
b/drivers/net/dpaa/dpaa_ethdev.c
index
b1fac8f
..
0e1dc1a
100644
(file)
--- a/
drivers/net/dpaa/dpaa_ethdev.c
+++ b/
drivers/net/dpaa/dpaa_ethdev.c
@@
-15,6
+15,7
@@
#include <sys/types.h>
#include <sys/syscall.h>
#include <sys/types.h>
#include <sys/syscall.h>
+#include <rte_string_fns.h>
#include <rte_byteorder.h>
#include <rte_common.h>
#include <rte_interrupts.h>
#include <rte_byteorder.h>
#include <rte_common.h>
#include <rte_interrupts.h>
@@
-439,10
+440,9
@@
dpaa_xstats_get_names(__rte_unused struct rte_eth_dev *dev,
if (xstats_names != NULL)
for (i = 0; i < stat_cnt; i++)
if (xstats_names != NULL)
for (i = 0; i < stat_cnt; i++)
- snprintf(xstats_names[i].name,
- sizeof(xstats_names[i].name),
- "%s",
- dpaa_xstats_strings[i].name);
+ strlcpy(xstats_names[i].name,
+ dpaa_xstats_strings[i].name,
+ sizeof(xstats_names[i].name));
return stat_cnt;
}
return stat_cnt;
}
@@
-934,7
+934,7
@@
dpaa_flow_ctrl_get(struct rte_eth_dev *dev,
static int
dpaa_dev_add_mac_addr(struct rte_eth_dev *dev,
static int
dpaa_dev_add_mac_addr(struct rte_eth_dev *dev,
- struct ether_addr *addr,
+ struct
rte_
ether_addr *addr,
uint32_t index,
__rte_unused uint32_t pool)
{
uint32_t index,
__rte_unused uint32_t pool)
{
@@
-964,7
+964,7
@@
dpaa_dev_remove_mac_addr(struct rte_eth_dev *dev,
static int
dpaa_dev_set_mac_addr(struct rte_eth_dev *dev,
static int
dpaa_dev_set_mac_addr(struct rte_eth_dev *dev,
- struct ether_addr *addr)
+ struct
rte_
ether_addr *addr)
{
int ret;
struct dpaa_if *dpaa_intf = dev->data->dev_private;
{
int ret;
struct dpaa_if *dpaa_intf = dev->data->dev_private;