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/dpaa2: fix getting link status
[dpdk.git]
/
drivers
/
net
/
i40e
/
i40e_vf_representor.c
diff --git
a/drivers/net/i40e/i40e_vf_representor.c
b/drivers/net/i40e/i40e_vf_representor.c
index
083bc1a
..
7ed47c1
100644
(file)
--- a/
drivers/net/i40e/i40e_vf_representor.c
+++ b/
drivers/net/i40e/i40e_vf_representor.c
@@
-7,6
+7,7
@@
#include <rte_pci.h>
#include <rte_malloc.h>
#include <rte_pci.h>
#include <rte_malloc.h>
+#include "ethdev_driver.h"
#include "base/i40e_type.h"
#include "base/virtchnl.h"
#include "i40e_ethdev.h"
#include "base/i40e_type.h"
#include "base/virtchnl.h"
#include "i40e_ethdev.h"
@@
-117,9
+118,10
@@
i40e_vf_representor_dev_start(__rte_unused struct rte_eth_dev *dev)
return 0;
}
return 0;
}
-static
void
+static
int
i40e_vf_representor_dev_stop(__rte_unused struct rte_eth_dev *dev)
{
i40e_vf_representor_dev_stop(__rte_unused struct rte_eth_dev *dev)
{
+ return 0;
}
static int
}
static int
@@
-506,7
+508,8
@@
i40e_vf_representor_init(struct rte_eth_dev *ethdev, void *init_params)
return -ENODEV;
}
return -ENODEV;
}
- ethdev->data->dev_flags |= RTE_ETH_DEV_REPRESENTOR;
+ ethdev->data->dev_flags |= RTE_ETH_DEV_REPRESENTOR |
+ RTE_ETH_DEV_AUTOFILL_QUEUE_XSTATS;
ethdev->data->representor_id = representor->vf_id;
/* Setting the number queues allocated to the VF */
ethdev->data->representor_id = representor->vf_id;
/* Setting the number queues allocated to the VF */