diff options
author | Daniele Di Proietto <diproiettod@vmware.com> | 2016-04-07 12:54:10 -0700 |
---|---|---|
committer | Daniele Di Proietto <diproiettod@vmware.com> | 2016-05-23 10:10:23 -0700 |
commit | 00873463035be05628df4840f3cb3dbfb29f65c1 (patch) | |
tree | 58f824cf358966ddd9e1d7daaae758d6fb75aa07 /lib/dpif-netdev.c | |
parent | 3186ea467b7494118fea3d4ea68d8b1079a76aa0 (diff) | |
download | openvswitch-00873463035be05628df4840f3cb3dbfb29f65c1.tar.gz |
dpif-netdev: Remove unused 'index' in dp_netdev_pmd_thread.
Signed-off-by: Daniele Di Proietto <diproiettod@vmware.com>
Tested-by: Ilya Maximets <i.maximets@samsung.com>
Acked-by: Ilya Maximets <i.maximets@samsung.com>
Diffstat (limited to 'lib/dpif-netdev.c')
-rw-r--r-- | lib/dpif-netdev.c | 14 |
1 files changed, 5 insertions, 9 deletions
diff --git a/lib/dpif-netdev.c b/lib/dpif-netdev.c index c591ff09b..da003c107 100644 --- a/lib/dpif-netdev.c +++ b/lib/dpif-netdev.c @@ -430,8 +430,6 @@ struct dp_netdev_pmd_thread { struct latch exit_latch; /* For terminating the pmd thread. */ atomic_uint change_seq; /* For reloading pmd ports. */ pthread_t thread; - int index; /* Idx of this pmd thread among pmd*/ - /* threads on same numa node. */ unsigned core_id; /* CPU core id of this pmd thread. */ int numa_id; /* numa node id of this pmd thread. */ atomic_int tx_qid; /* Queue id used by this pmd thread to @@ -485,8 +483,8 @@ static void dp_netdev_recirculate(struct dp_netdev_pmd_thread *, static void dp_netdev_disable_upcall(struct dp_netdev *); static void dp_netdev_pmd_reload_done(struct dp_netdev_pmd_thread *pmd); static void dp_netdev_configure_pmd(struct dp_netdev_pmd_thread *pmd, - struct dp_netdev *dp, int index, - unsigned core_id, int numa_id); + struct dp_netdev *dp, unsigned core_id, + int numa_id); static void dp_netdev_destroy_pmd(struct dp_netdev_pmd_thread *pmd); static void dp_netdev_set_nonpmd(struct dp_netdev *dp); static struct dp_netdev_pmd_thread *dp_netdev_get_pmd(struct dp_netdev *dp, @@ -2797,8 +2795,7 @@ dp_netdev_set_nonpmd(struct dp_netdev *dp) struct dp_netdev_pmd_thread *non_pmd; non_pmd = xzalloc(sizeof *non_pmd); - dp_netdev_configure_pmd(non_pmd, dp, 0, NON_PMD_CORE_ID, - OVS_NUMA_UNSPEC); + dp_netdev_configure_pmd(non_pmd, dp, NON_PMD_CORE_ID, OVS_NUMA_UNSPEC); } /* Caller must have valid pointer to 'pmd'. */ @@ -2839,10 +2836,9 @@ dp_netdev_pmd_get_next(struct dp_netdev *dp, struct cmap_position *pos) /* Configures the 'pmd' based on the input argument. */ static void dp_netdev_configure_pmd(struct dp_netdev_pmd_thread *pmd, struct dp_netdev *dp, - int index, unsigned core_id, int numa_id) + unsigned core_id, int numa_id) { pmd->dp = dp; - pmd->index = index; pmd->core_id = core_id; pmd->numa_id = numa_id; pmd->poll_cnt = 0; @@ -3150,7 +3146,7 @@ dp_netdev_set_pmds_on_numa(struct dp_netdev *dp, int numa_id) for (i = 0; i < can_have; i++) { unsigned core_id = ovs_numa_get_unpinned_core_on_numa(numa_id); pmds[i] = xzalloc(sizeof **pmds); - dp_netdev_configure_pmd(pmds[i], dp, i, core_id, numa_id); + dp_netdev_configure_pmd(pmds[i], dp, core_id, numa_id); } /* Distributes rx queues of this numa node between new pmd threads. */ |