[PATCH net-next 13/14] net: hns3: modify macro hnae3_dev_stash_supported

From: Guangbin Huang
Date: Fri Sep 23 2022 - 22:34:15 EST


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

Signed-off-by: Guangbin Huang <huangguangbin2@xxxxxxxxxx>
---
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 99140a7617f3..94b71701a74d 100644
--- a/drivers/net/ethernet/hisilicon/hns3/hnae3.h
+++ b/drivers/net/ethernet/hisilicon/hns3/hnae3.h
@@ -140,8 +140,8 @@ enum HNAE3_DEV_CAP_BITS {
#define hnae3_ae_dev_hw_pad_supported(ae_dev) \
test_bit(HNAE3_DEV_SUPPORT_HW_PAD_B, (ae_dev)->caps)

-#define hnae3_dev_stash_supported(hdev) \
- test_bit(HNAE3_DEV_SUPPORT_STASH_B, (hdev)->ae_dev->caps)
+#define hnae3_ae_dev_stash_supported(ae_dev) \
+ test_bit(HNAE3_DEV_SUPPORT_STASH_B, (ae_dev)->caps)

#define hnae3_dev_pause_supported(hdev) \
test_bit(HNAE3_DEV_SUPPORT_PAUSE_B, (hdev)->ae_dev->caps)
--
2.33.0