net/iavf: check RSS rule queue region size
authorTing Xu <ting.xu@intel.com>
Wed, 11 Nov 2020 06:42:50 +0000 (14:42 +0800)
committerFerruh Yigit <ferruh.yigit@intel.com>
Fri, 13 Nov 2020 18:43:26 +0000 (19:43 +0100)
commitddd63c387e64236751eb8c482cd5ab1d61a1cc07
treee62a45a7062aca13a7b493e422983047c5d1bc92
parent36b8b062885f2b6576818a1c18ffaacb4dccefa5
net/iavf: check RSS rule queue region size

When a rule is set to do RSS to redirect flows to a group of queues, the
queue region size should not be larger than the max RSS queue region
supported by HW. This patch added the step to check the queue region
size, and report failure if the size does not meet the requirement.

Fixes: e436cd43835b ("net/iavf: negotiate large VF and request more queues")
Cc: stable@dpdk.org
Signed-off-by: Ting Xu <ting.xu@intel.com>
Acked-by: Qi Zhang <qi.z.zhang@intel.com>
drivers/net/iavf/iavf_fdir.c