]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
tuntap: multiqueue support
authorJason Wang <jasowang@redhat.com>
Wed, 31 Oct 2012 19:46:00 +0000 (19:46 +0000)
committerDavid S. Miller <davem@davemloft.net>
Thu, 1 Nov 2012 15:14:08 +0000 (11:14 -0400)
commitc8d68e6be1c3b242f1c598595830890b65cea64a
treec3e3de9051548b119743e5c3ae1ecf62bd32f40e
parentbbb009941efaece3898910a862f6d23aa55d6ba8
tuntap: multiqueue support

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>
drivers/net/tun.c