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 functions
[dpdk.git]
/
drivers
/
net
/
sfc
/
sfc_ethdev.c
diff --git
a/drivers/net/sfc/sfc_ethdev.c
b/drivers/net/sfc/sfc_ethdev.c
index
fadcdb5
..
dd9897d
100644
(file)
--- a/
drivers/net/sfc/sfc_ethdev.c
+++ b/
drivers/net/sfc/sfc_ethdev.c
@@
-983,7
+983,7
@@
sfc_mac_addr_set(struct rte_eth_dev *dev, struct rte_ether_addr *mac_addr)
* Copy the address to the device private data so that
* it could be recalled in the case of adapter restart.
*/
* Copy the address to the device private data so that
* it could be recalled in the case of adapter restart.
*/
- ether_addr_copy(mac_addr, &port->default_mac_addr);
+
rte_
ether_addr_copy(mac_addr, &port->default_mac_addr);
/*
* Neither of the two following checks can return
/*
* Neither of the two following checks can return
@@
-1043,7
+1043,7
@@
sfc_mac_addr_set(struct rte_eth_dev *dev, struct rte_ether_addr *mac_addr)
unlock:
if (rc != 0)
unlock:
if (rc != 0)
- ether_addr_copy(old_addr, &port->default_mac_addr);
+
rte_
ether_addr_copy(old_addr, &port->default_mac_addr);
sfc_adapter_unlock(sa);
sfc_adapter_unlock(sa);
@@
-2126,7
+2126,7
@@
sfc_eth_dev_init(struct rte_eth_dev *dev)
* Linux kernel. Copy from NIC config to Ethernet device data.
*/
from = (const struct rte_ether_addr *)(encp->enc_mac_addr);
* Linux kernel. Copy from NIC config to Ethernet device data.
*/
from = (const struct rte_ether_addr *)(encp->enc_mac_addr);
- ether_addr_copy(from, &dev->data->mac_addrs[0]);
+
rte_
ether_addr_copy(from, &dev->data->mac_addrs[0]);
sfc_adapter_unlock(sa);
sfc_adapter_unlock(sa);