mirror of
https://github.com/openvswitch/ovs
synced 2025-08-31 06:15:47 +00:00
netdev-dpdk: Fix a typo.
Signed-off-by: Alex Wang <alexw@nicira.com> Acked-by: Daniele Di Proietto <ddiproietto@vmware.com>
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user