Skip to content

Commit

Permalink
tuntap: multiqueue support
Browse files Browse the repository at this point in the history
This patch converts tun/tap to a multiqueue devices and expose the multiqueue
queues as multiple file descriptors to userspace. Internally, each tun_file were
abstracted as a queue, and an array of pointers to tun_file structurs were
stored in tun_structure device, so multiple tun_files were allowed to be
attached to the device as multiple queues.

When choosing txq, we first try to identify a flow through its rxhash, if it
does not have such one, we could try recorded rxq and then use them to choose
the transmit queue. This policy may be changed in the future.

Signed-off-by: Jason Wang <jasowang@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
Jason Wang authored and David S. Miller committed Nov 1, 2012
1 parent bbb0099 commit c8d68e6
Showing 1 changed file with 220 additions and 88 deletions.
Loading

0 comments on commit c8d68e6

Please sign in to comment.