diff options
author | Ilya Maximets <i.maximets@samsung.com> | 2016-01-21 17:15:18 +0300 |
---|---|---|
committer | Daniele Di Proietto <diproiettod@vmware.com> | 2016-02-04 17:10:45 -0800 |
commit | a14b8947fd13d4c587addbffd24eedc7bb48ee2b (patch) | |
tree | 8e59ab248b5bc1b075bc5e01f83b7c4bd5cf6bfa /lib/netdev-provider.h | |
parent | 9d2d2b5cd2421369d08422be8a349de974b53301 (diff) | |
download | openvswitch-a14b8947fd13d4c587addbffd24eedc7bb48ee2b.tar.gz |
dpif-netdev: Allow different numbers of rx queues for different ports.
Currently, all of the PMD netdevs can only have the same number of
rx queues, which is specified in other_config:n-dpdk-rxqs.
Fix that by introducing of new option for PMD interfaces: 'n_rxq', which
specifies the maximum number of rx queues to be created for this
interface.
Example:
ovs-vsctl set Interface dpdk0 options:n_rxq=8
Old 'other_config:n-dpdk-rxqs' deleted.
Signed-off-by: Ilya Maximets <i.maximets@samsung.com>
Acked-by: Ben Pfaff <blp@ovn.org>
Acked-by: Flavio Leitner <fbl@sysclose.org>
Signed-off-by: Daniele Di Proietto <diproiettod@vmware.com>
Diffstat (limited to 'lib/netdev-provider.h')
-rw-r--r-- | lib/netdev-provider.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/netdev-provider.h b/lib/netdev-provider.h index a33bb3b3a..d324ffc92 100644 --- a/lib/netdev-provider.h +++ b/lib/netdev-provider.h @@ -52,9 +52,13 @@ struct netdev { * 'netdev''s flags, features, ethernet address, or carrier changes. */ uint64_t change_seq; - /* The following are protected by 'netdev_mutex' (internal to netdev.c). */ + /* The core netdev code initializes these at netdev construction and only + * provide read-only access to its client. Netdev implementations may + * modify them. */ int n_txq; int n_rxq; + /* Number of rx queues requested by user. */ + int requested_n_rxq; int ref_cnt; /* Times this devices was opened. */ struct shash_node *node; /* Pointer to element in global map. */ struct ovs_list saved_flags_list; /* Contains "struct netdev_saved_flags". */ |