From: Wei Zhao <wei.zhao1@intel.com>
To: dev@dpdk.org
Cc: stable@dpdk.org, qi.z.zhang@intel.com, wei zhao <wei.zhao1@intel.com>
Subject: [dpdk-dev] [PATCH v3] net/ixgbe: fix Reta size for VF
Date: Fri, 26 Jul 2019 09:38:28 +0800 [thread overview]
Message-ID: <1564105108-71045-1-git-send-email-wei.zhao1@intel.com> (raw)
In-Reply-To: <1563855198-11568-1-git-send-email-wei.zhao1@intel.com>
Filling correct reta table size at ixgbevf_dev_info_get,
so reta table update will be supported for VF port.
For X540_vf and 82599_vf, since they don't support
reta table update, set reta size to 0.
Cc: stable@dpdk.org
Fixes: 2144f6630fca ("ixgbe: add redirection table size in device info")
Signed-off-by: wei zhao <wei.zhao1@intel.com>
---
v2:
--add more git log
v3:
--change headline and update git log
---
drivers/net/ixgbe/ixgbe_ethdev.c | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/drivers/net/ixgbe/ixgbe_ethdev.c b/drivers/net/ixgbe/ixgbe_ethdev.c
index 22c5b2c..773f667 100644
--- a/drivers/net/ixgbe/ixgbe_ethdev.c
+++ b/drivers/net/ixgbe/ixgbe_ethdev.c
@@ -3927,6 +3927,8 @@ ixgbevf_dev_info_get(struct rte_eth_dev *dev,
dev_info->rx_queue_offload_capa);
dev_info->tx_queue_offload_capa = ixgbe_get_tx_queue_offloads(dev);
dev_info->tx_offload_capa = ixgbe_get_tx_port_offloads(dev);
+ dev_info->hash_key_size = IXGBE_HKEY_MAX_INDEX * sizeof(uint32_t);
+ dev_info->reta_size = ixgbe_reta_size_get(hw->mac.type);
dev_info->default_rxconf = (struct rte_eth_rxconf) {
.rx_thresh = {
@@ -7438,6 +7440,9 @@ ixgbe_reta_size_get(enum ixgbe_mac_type mac_type) {
case ixgbe_mac_X550EM_x_vf:
case ixgbe_mac_X550EM_a_vf:
return ETH_RSS_RETA_SIZE_64;
+ case ixgbe_mac_X540_vf:
+ case ixgbe_mac_82599_vf:
+ return 0;
default:
return ETH_RSS_RETA_SIZE_128;
}
--
2.7.5
next prev parent reply other threads:[~2019-07-26 2:09 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-07-22 6:04 [dpdk-dev] [PATCH] net/ixgbe: fix x550 reta set fail error Wei Zhao
2019-07-23 3:20 ` Zhao1, Wei
2019-07-23 3:21 ` Zhao1, Wei
2019-07-23 4:11 ` [dpdk-dev] [PATCH v2] net/ixgbe: fix x550 Reta " Wei Zhao
2019-07-23 4:13 ` Wei Zhao
2019-07-23 7:30 ` Zhang, Qi Z
2019-07-23 22:15 ` Ye Xiaolong
2019-07-26 1:38 ` Wei Zhao [this message]
2019-07-26 4:54 ` [dpdk-dev] [PATCH v3] net/ixgbe: fix Reta size for VF Zhang, Qi Z
2019-07-26 5:52 ` Zhao1, Wei
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1564105108-71045-1-git-send-email-wei.zhao1@intel.com \
--to=wei.zhao1@intel.com \
--cc=dev@dpdk.org \
--cc=qi.z.zhang@intel.com \
--cc=stable@dpdk.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).