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
/
mlx5
/
mlx5_nl.c
diff --git
a/drivers/net/mlx5/mlx5_nl.c
b/drivers/net/mlx5/mlx5_nl.c
index
0ff9667
..
ce4c937
100644
(file)
--- a/
drivers/net/mlx5/mlx5_nl.c
+++ b/
drivers/net/mlx5/mlx5_nl.c
@@
-80,7
+80,7
@@
/* Add/remove MAC address through Netlink */
struct mlx5_nl_mac_addr {
/* Add/remove MAC address through Netlink */
struct mlx5_nl_mac_addr {
- struct ether_addr (*mac)[];
+ struct
rte_
ether_addr (*mac)[];
/**< MAC address handled by the device. */
int mac_n; /**< Number of addresses in the array. */
};
/**< MAC address handled by the device. */
int mac_n; /**< Number of addresses in the array. */
};
@@
-365,7
+365,7
@@
mlx5_nl_mac_addr_cb(struct nlmsghdr *nh, void *arg)
* 0 on success, a negative errno value otherwise and rte_errno is set.
*/
static int
* 0 on success, a negative errno value otherwise and rte_errno is set.
*/
static int
-mlx5_nl_mac_addr_list(struct rte_eth_dev *dev, struct ether_addr (*mac)[],
+mlx5_nl_mac_addr_list(struct rte_eth_dev *dev, struct
rte_
ether_addr (*mac)[],
int *mac_n)
{
struct mlx5_priv *priv = dev->data->dev_private;
int *mac_n)
{
struct mlx5_priv *priv = dev->data->dev_private;
@@
-424,7
+424,7
@@
error:
* 0 on success, a negative errno value otherwise and rte_errno is set.
*/
static int
* 0 on success, a negative errno value otherwise and rte_errno is set.
*/
static int
-mlx5_nl_mac_addr_modify(struct rte_eth_dev *dev, struct ether_addr *mac,
+mlx5_nl_mac_addr_modify(struct rte_eth_dev *dev, struct
rte_
ether_addr *mac,
int add)
{
struct mlx5_priv *priv = dev->data->dev_private;
int add)
{
struct mlx5_priv *priv = dev->data->dev_private;
@@
-496,7
+496,7
@@
error:
* 0 on success, a negative errno value otherwise and rte_errno is set.
*/
int
* 0 on success, a negative errno value otherwise and rte_errno is set.
*/
int
-mlx5_nl_mac_addr_add(struct rte_eth_dev *dev, struct ether_addr *mac,
+mlx5_nl_mac_addr_add(struct rte_eth_dev *dev, struct
rte_
ether_addr *mac,
uint32_t index)
{
struct mlx5_priv *priv = dev->data->dev_private;
uint32_t index)
{
struct mlx5_priv *priv = dev->data->dev_private;
@@
-524,7
+524,7
@@
mlx5_nl_mac_addr_add(struct rte_eth_dev *dev, struct ether_addr *mac,
* 0 on success, a negative errno value otherwise and rte_errno is set.
*/
int
* 0 on success, a negative errno value otherwise and rte_errno is set.
*/
int
-mlx5_nl_mac_addr_remove(struct rte_eth_dev *dev, struct ether_addr *mac,
+mlx5_nl_mac_addr_remove(struct rte_eth_dev *dev, struct
rte_
ether_addr *mac,
uint32_t index)
{
struct mlx5_priv *priv = dev->data->dev_private;
uint32_t index)
{
struct mlx5_priv *priv = dev->data->dev_private;
@@
-542,7
+542,7
@@
mlx5_nl_mac_addr_remove(struct rte_eth_dev *dev, struct ether_addr *mac,
void
mlx5_nl_mac_addr_sync(struct rte_eth_dev *dev)
{
void
mlx5_nl_mac_addr_sync(struct rte_eth_dev *dev)
{
- struct ether_addr macs[MLX5_MAX_MAC_ADDRESSES];
+ struct
rte_
ether_addr macs[MLX5_MAX_MAC_ADDRESSES];
int macs_n = 0;
int i;
int ret;
int macs_n = 0;
int i;
int ret;
@@
-583,7
+583,7
@@
mlx5_nl_mac_addr_flush(struct rte_eth_dev *dev)
int i;
for (i = MLX5_MAX_MAC_ADDRESSES - 1; i >= 0; --i) {
int i;
for (i = MLX5_MAX_MAC_ADDRESSES - 1; i >= 0; --i) {
- struct ether_addr *m = &dev->data->mac_addrs[i];
+ struct
rte_
ether_addr *m = &dev->data->mac_addrs[i];
if (BITFIELD_ISSET(priv->mac_own, i))
mlx5_nl_mac_addr_remove(dev, m, i);
if (BITFIELD_ISSET(priv->mac_own, i))
mlx5_nl_mac_addr_remove(dev, m, i);