net/hns3: fix key length when configuring RSS
authorLijun Ou <oulijun@huawei.com>
Fri, 22 May 2020 09:21:18 +0000 (17:21 +0800)
committerFerruh Yigit <ferruh.yigit@intel.com>
Thu, 28 May 2020 15:57:07 +0000 (17:57 +0200)
commit40783b1280e1833615885dc98f3c796ad5addb54
tree8fcdaff99242609af767b2cf3e1cf3261cd2ed9e
parentfdae939696a09b4010df004be06c491d9294e319
net/hns3: fix key length when configuring RSS

When users set the length of RSS hash key greater than the supported
length by hardware, the driver should intercept and can not configure
the wrong key into the hardware.

Fixes: c37ca66f2b27 ("net/hns3: support RSS")
Cc: stable@dpdk.org
Signed-off-by: Lijun Ou <oulijun@huawei.com>
Signed-off-by: Wei Hu (Xavier) <xavier.huwei@huawei.com>
drivers/net/hns3/hns3_flow.c