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/mlx5: fix handling link status event
[dpdk.git]
/
drivers
/
net
/
failsafe
/
failsafe.c
diff --git
a/drivers/net/failsafe/failsafe.c
b/drivers/net/failsafe/failsafe.c
index
6006bef
..
b767352
100644
(file)
--- a/
drivers/net/failsafe/failsafe.c
+++ b/
drivers/net/failsafe/failsafe.c
@@
-37,7
+37,7
@@
#include <rte_ethdev_vdev.h>
#include <rte_devargs.h>
#include <rte_kvargs.h>
#include <rte_ethdev_vdev.h>
#include <rte_devargs.h>
#include <rte_kvargs.h>
-#include <rte_vdev.h>
+#include <rte_
bus_
vdev.h>
#include "failsafe_private.h"
#include "failsafe_private.h"
@@
-46,7
+46,7
@@
static const struct rte_eth_link eth_link = {
.link_speed = ETH_SPEED_NUM_10G,
.link_duplex = ETH_LINK_FULL_DUPLEX,
.link_status = ETH_LINK_UP,
.link_speed = ETH_SPEED_NUM_10G,
.link_duplex = ETH_LINK_FULL_DUPLEX,
.link_status = ETH_LINK_UP,
- .link_autoneg = ETH_LINK_
SPEED_
AUTONEG,
+ .link_autoneg = ETH_LINK_AUTONEG,
};
static int
};
static int
@@
-55,6
+55,7
@@
fs_sub_device_alloc(struct rte_eth_dev *dev,
{
uint8_t nb_subs;
int ret;
{
uint8_t nb_subs;
int ret;
+ int i;
ret = failsafe_args_count_subdevice(dev, params);
if (ret)
ret = failsafe_args_count_subdevice(dev, params);
if (ret)
@@
-72,6
+73,10
@@
fs_sub_device_alloc(struct rte_eth_dev *dev,
ERROR("Could not allocate sub_devices");
return -ENOMEM;
}
ERROR("Could not allocate sub_devices");
return -ENOMEM;
}
+ /* Initiate static sub devices linked list. */
+ for (i = 1; i < nb_subs; i++)
+ PRIV(dev)->subs[i - 1].next = PRIV(dev)->subs + i;
+ PRIV(dev)->subs[i - 1].next = PRIV(dev)->subs;
return 0;
}
return 0;
}