diff options
author | Steven <sluong@cisco.com> | 2017-10-05 00:12:33 -0700 |
---|---|---|
committer | Damjan Marion <dmarion.lists@gmail.com> | 2017-10-06 08:56:59 +0000 |
commit | 4cd257667406d0500a81323ef91f5c7c8c902b25 (patch) | |
tree | 7aff1c653dba995dd02c1bd8643578dd2e572f5f /src/vlib/mc.h | |
parent | b598f1d3d7d4ace9a29c01d93a8d1ba616a91e15 (diff) |
tuntap: Introduce per thread structure to suport multi-threads
https://gerrit.fd.io/r/#/c/8551/ decoupled the global variable,
namely tm->iovecs from TX and RX. However, to support multi-threads,
we have to eliminate the use of this global variable with per thread
variable. I notice that rx_buffers must also be per thread variable.
So, we introduce per thread struct to contain rx_buffers and iovecs.
Each thread will find the per thread struct with thread_index.
Change-Id: I61abf2fdace8d722525a382ac72f0d04a173b9ce
Signed-off-by: Steven <sluong@cisco.com>
Diffstat (limited to 'src/vlib/mc.h')
0 files changed, 0 insertions, 0 deletions