git.droids-corp.org
/
dpdk.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
net/hns3: fix configuring RSS hash when rules are flushed
[dpdk.git]
/
drivers
/
net
/
hns3
/
hns3_rss.c
diff --git
a/drivers/net/hns3/hns3_rss.c
b/drivers/net/hns3/hns3_rss.c
index
737d5f1
..
95a637d
100644
(file)
--- a/
drivers/net/hns3/hns3_rss.c
+++ b/
drivers/net/hns3/hns3_rss.c
@@
-261,6
+261,9
@@
hns3_dev_rss_hash_update(struct rte_eth_dev *dev,
uint8_t *key = rss_conf->rss_key;
int ret;
+ if (hw->rss_dis_flag)
+ return -EINVAL;
+
rte_spinlock_lock(&hw->lock);
ret = hns3_set_rss_tuple_by_rss_hf(hw, tuple, rss_hf);
if (ret)