[PATCH net-next 06/14] net: hns3: modify macro hnae3_dev_int_ql_supported

Guangbin Huang
2022-09-24T02:34:00Z

Redefine macro hnae3_dev_int_ql_supported(hdev) to
hnae3_ae_dev_int_ql_supported(ae_dev), so it can be
used in both hclge and hns3_enet layer.

DTS:
Feature or Bugfix:

Signed-off-by: Guangbin Huang <huangguangbin2@huawei.com>
---
drivers/net/ethernet/hisilicon/hns3/hnae3.h | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/net/ethernet/hisilicon/hns3/hnae3.h b/drivers/net/ethernet/hisilicon/hns3/hnae3.h
index dd2dd085ab3d..ed06f8db2a27 100644
--- a/drivers/net/ethernet/hisilicon/hns3/hnae3.h
+++ b/drivers/net/ethernet/hisilicon/hns3/hnae3.h
@@ -122,8 +122,8 @@ enum HNAE3_DEV_CAP_BITS {
#define hnae3_ae_dev_ptp_supported(ae_dev) \
test_bit(HNAE3_DEV_SUPPORT_PTP_B, (ae_dev)->caps)

-#define hnae3_dev_int_ql_supported(hdev) \
- test_bit(HNAE3_DEV_SUPPORT_INT_QL_B, (hdev)->ae_dev->caps)
+#define hnae3_ae_dev_int_ql_supported(ae_dev) \
+ test_bit(HNAE3_DEV_SUPPORT_INT_QL_B, (ae_dev)->caps)

#define hnae3_dev_hw_csum_supported(hdev) \
test_bit(HNAE3_DEV_SUPPORT_HW_TX_CSUM_B, (hdev)->ae_dev->caps)
--
2.33.0