net/bonding: fix RSS key config with extended key length
authorKe Zhang <ke1x.zhang@intel.com>
Mon, 11 Apr 2022 05:40:03 +0000 (05:40 +0000)
committerFerruh Yigit <ferruh.yigit@xilinx.com>
Wed, 4 May 2022 15:54:23 +0000 (17:54 +0200)
commit94d9c7d45b43fd44af718b621fa52e556028aa3d
tree4caebbfb9aaf0fee156041d62d150b86845e2b6c
parenta866966bdf7080ad2bd18465dfd5585e1bc535d6
net/bonding: fix RSS key config with extended key length

When creating a bonding device, if the slave device's
RSS key length = standard_rss_key length + extended_hash_key length,
then bonding device will be same as slave,
in function bond_ethdev_configure(), the default_rss_key length is 40,
it is not matched, so it should calculate a new key for bonding device
if the default key could not be used.

Fixes: 6b1a001ec546 ("net/bonding: fix RSS key length")
Cc: stable@dpdk.org
Signed-off-by: Ke Zhang <ke1x.zhang@intel.com>
Acked-by: Min Hu (Connor) <humin29@huawei.com>
drivers/net/bonding/rte_eth_bond_pmd.c