diff options
author | Pankaj Gupta <pagupta@redhat.com> | 2015-06-19 19:47:53 +0530 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2015-06-23 06:14:04 -0700 |
commit | dfe816c5e37272f2f3c1311f0e9934e1b4229261 (patch) | |
tree | 2f0a94a5f77102a4a2a2698ebd11aa77ce60a9ea /include/linux/if_macvlan.h | |
parent | 0fb1170ee68a6aa14eca0666e02c4b62cbf1251d (diff) | |
download | linux-stable-dfe816c5e37272f2f3c1311f0e9934e1b4229261.tar.gz linux-stable-dfe816c5e37272f2f3c1311f0e9934e1b4229261.tar.bz2 linux-stable-dfe816c5e37272f2f3c1311f0e9934e1b4229261.zip |
macvtap: Increase limit of macvtap queues
Macvtap should be compatible with tuntap for
maximum number of queues.
commit 'baf71c5c1f80d82e92924050a60b5baaf97e3094 (tuntap:
Increase the number of queues in tun.)' removes
the limitations and increases number of queues in tuntap.
Now, Its safe to increase number of queues in Macvtap as well.
This patch also modifies 'macvtap_del_queues' function
to avoid extra memory allocation in stack.
Changes from v1->v2 :
Michael S. Tsirkin, Jason Wang :
Better way to use linked list to
avoid use of extra memory in stack.
Sergei Shtylyov : Specify dependent commit's summary.
Signed-off-by: Pankaj Gupta <pagupta@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/linux/if_macvlan.h')
-rw-r--r-- | include/linux/if_macvlan.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/if_macvlan.h b/include/linux/if_macvlan.h index 6f6929ea8a0c..a4ccc3122f93 100644 --- a/include/linux/if_macvlan.h +++ b/include/linux/if_macvlan.h @@ -29,7 +29,7 @@ struct macvtap_queue; * Maximum times a macvtap device can be opened. This can be used to * configure the number of receive queue, e.g. for multiqueue virtio. */ -#define MAX_MACVTAP_QUEUES 16 +#define MAX_MACVTAP_QUEUES 256 #define MACVLAN_MC_FILTER_BITS 8 #define MACVLAN_MC_FILTER_SZ (1 << MACVLAN_MC_FILTER_BITS) |