[ovs-dev] [PATCH 1/2] netdev-dpdk: Fix a typo.
Alex Wang
alexw at nicira.com
Fri Sep 19 17:57:11 UTC 2014
Signed-off-by: Alex Wang <alexw at nicira.com>
---
lib/netdev-dpdk.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/lib/netdev-dpdk.c b/lib/netdev-dpdk.c
index f2a42e8..ed39b9c 100644
--- a/lib/netdev-dpdk.c
+++ b/lib/netdev-dpdk.c
@@ -472,11 +472,11 @@ netdev_dpdk_set_txq(struct netdev_dpdk *netdev, unsigned int n_txqs)
/* Each index is considered as a cpu core id, since there should
* be one tx queue for each cpu core. */
for (i = 0; i < n_txqs; i++) {
- int core_id = ovs_numa_get_numa_id(i);
+ int numa_id = ovs_numa_get_numa_id(i);
/* If the corresponding core is not on the same numa node
* as 'netdev', flags the 'flush_tx'. */
- netdev->tx_q[i].flush_tx = netdev->socket_id == core_id;
+ netdev->tx_q[i].flush_tx = netdev->socket_id == numa_id;
}
}
--
1.7.9.5
More information about the dev
mailing list