net: hns3: fix incorrect handling of sctp6 rss tuple
For DEVICE_VERSION_V2, the hardware only supports src-ip, dst-ip and verification-tag for rss tuple set of sctp6 packet. For DEVICE_VERSION_V3, the hardware supports src-port and dst-port as well. Currently, when user queries the sctp6 rss tuples info, some unsupported information will be showed on V2. So add a check for hardware version when initializing and queries sctp6 rss tuple to fix this issue. Fixes: 46a3df9f ("net: hns3: Add HNS3 Acceleration Engine & Compatibility Layer Support") Signed-off-by:Jian Shen <shenjian15@huawei.com> Signed-off-by:
Huazhong Tan <tanhuazhong@huawei.com> Signed-off-by:
David S. Miller <davem@davemloft.net>
Showing
- drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c 4 additions, 2 deletionsdrivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
- drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.h 2 additions, 0 deletionsdrivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.h
- drivers/net/ethernet/hisilicon/hns3/hns3vf/hclgevf_main.c 6 additions, 3 deletionsdrivers/net/ethernet/hisilicon/hns3/hns3vf/hclgevf_main.c
- drivers/net/ethernet/hisilicon/hns3/hns3vf/hclgevf_main.h 2 additions, 0 deletionsdrivers/net/ethernet/hisilicon/hns3/hns3vf/hclgevf_main.h
Loading
Please register or sign in to comment