net/hns3: fix PTP capability report
authorChengwen Feng <fengchengwen@huawei.com>
Tue, 13 Apr 2021 11:50:08 +0000 (19:50 +0800)
committerFerruh Yigit <ferruh.yigit@intel.com>
Wed, 14 Apr 2021 17:45:27 +0000 (19:45 +0200)
commit55c038c2db5697576e35e23c9dcf1dee97dcee73
tree828ad8077bbff9e3f41ff197277f90e120fc80d9
parent59dc46043c10cfd4032b27507ea868d9cda0e7b8
net/hns3: fix PTP capability report

The PTP depends on special packet type reported by hardware which
enabled rxd advanced layout, so if the hardware doesn't support rxd
advanced layout, driver should ignore the PTP capability.

Fixes: 438752358158 ("net/hns3: get device capability from firmware")
Cc: stable@dpdk.org
Signed-off-by: Chengwen Feng <fengchengwen@huawei.com>
Signed-off-by: Min Hu (Connor) <humin29@huawei.com>
drivers/net/hns3/hns3_cmd.c