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/memif: fix overwriting of head segment
[dpdk.git]
/
drivers
/
net
/
e1000
/
igb_pf.c
diff --git
a/drivers/net/e1000/igb_pf.c
b/drivers/net/e1000/igb_pf.c
index
9d74c08
..
3f3fd0d
100644
(file)
--- a/
drivers/net/e1000/igb_pf.c
+++ b/
drivers/net/e1000/igb_pf.c
@@
-16,7
+16,7
@@
#include <rte_debug.h>
#include <rte_eal.h>
#include <rte_ether.h>
#include <rte_debug.h>
#include <rte_eal.h>
#include <rte_ether.h>
-#include <
rte_
ethdev_driver.h>
+#include <ethdev_driver.h>
#include <rte_memcpy.h>
#include <rte_malloc.h>
#include <rte_random.h>
#include <rte_memcpy.h>
#include <rte_malloc.h>
#include <rte_random.h>
@@
-88,7
+88,7
@@
void igb_pf_host_init(struct rte_eth_dev *eth_dev)
if (*vfinfo == NULL)
rte_panic("Cannot allocate memory for private VF data\n");
if (*vfinfo == NULL)
rte_panic("Cannot allocate memory for private VF data\n");
- RTE_ETH_DEV_SRIOV(eth_dev).active = ETH_8_POOLS;
+ RTE_ETH_DEV_SRIOV(eth_dev).active =
RTE_
ETH_8_POOLS;
RTE_ETH_DEV_SRIOV(eth_dev).nb_q_per_pool = nb_queue;
RTE_ETH_DEV_SRIOV(eth_dev).def_vmdq_idx = vf_num;
RTE_ETH_DEV_SRIOV(eth_dev).def_pool_q_idx = (uint16_t)(vf_num * nb_queue);
RTE_ETH_DEV_SRIOV(eth_dev).nb_q_per_pool = nb_queue;
RTE_ETH_DEV_SRIOV(eth_dev).def_vmdq_idx = vf_num;
RTE_ETH_DEV_SRIOV(eth_dev).def_pool_q_idx = (uint16_t)(vf_num * nb_queue);
@@
-155,7
+155,7
@@
int igb_pf_host_configure(struct rte_eth_dev *eth_dev)
else
E1000_WRITE_REG(hw, E1000_DTXSWC, E1000_DTXSWC_VMDQ_LOOPBACK_EN);
else
E1000_WRITE_REG(hw, E1000_DTXSWC, E1000_DTXSWC_VMDQ_LOOPBACK_EN);
- /* clear VMDq map to perment rar 0 */
+ /* clear VMDq map to perm
an
ent rar 0 */
rah = E1000_READ_REG(hw, E1000_RAH(0));
rah &= ~ (0xFF << E1000_RAH_POOLSEL_SHIFT);
E1000_WRITE_REG(hw, E1000_RAH(0), rah);
rah = E1000_READ_REG(hw, E1000_RAH(0));
rah &= ~ (0xFF << E1000_RAH_POOLSEL_SHIFT);
E1000_WRITE_REG(hw, E1000_RAH(0), rah);