mirror of
https://github.com/torvalds/linux.git
synced 2026-05-04 06:22:40 -04:00
Currently, the HNS3 driver reports the rss hash type of each packet based on the rss hash tuples set. It always reports PKT_HASH_TYPE_L4, without checking the type of current packet. It's incorrect. Fixes it by reporting it base on the packet type. Fixes:796640778c("net: hns3: support RXD advanced layout") Fixes:232fc64b6e("net: hns3: Add HW RSS hash information to RX skb") Fixes:ea48586707("net: hns3: handle the BD info on the last BD of the packet") Signed-off-by: Jian Shen <shenjian15@huawei.com> Signed-off-by: Hao Lan <lanhao@huawei.com> Signed-off-by: Paolo Abeni <pabeni@redhat.com>