net/hns3: remove similar macro function definitions
authorChengchang Tang <tangchengchang@huawei.com>
Sat, 9 Oct 2021 07:48:05 +0000 (15:48 +0800)
committerFerruh Yigit <ferruh.yigit@intel.com>
Mon, 11 Oct 2021 15:40:38 +0000 (17:40 +0200)
commitefcaa81e0b5100326928be84cc341f0ac82fc3b2
treefaaf654affb66977683626dbbcb3743f4ac1e206
parentc1ba6c325c4c7c8e0f32d9e96bc25ab172a222ee
net/hns3: remove similar macro function definitions

For different capabilities, we declare different macro functions to
determine whether the capabilities are supported.

This patch declare a unified macro function to judge capabilities.

Signed-off-by: Chengchang Tang <tangchengchang@huawei.com>
Signed-off-by: Min Hu (Connor) <humin29@huawei.com>
drivers/net/hns3/hns3_cmd.c
drivers/net/hns3/hns3_dcb.c
drivers/net/hns3/hns3_ethdev.c
drivers/net/hns3/hns3_ethdev.h
drivers/net/hns3/hns3_ethdev_vf.c
drivers/net/hns3/hns3_flow.c
drivers/net/hns3/hns3_intr.c
drivers/net/hns3/hns3_ptp.c
drivers/net/hns3/hns3_rxtx.c
drivers/net/hns3/hns3_rxtx_vec.c
drivers/net/hns3/hns3_tm.c