mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-03 06:26:40 +07:00
net: hns: delete redundant macro definition
This patch deletes redundant macro definitions in hns drivers. And change the .h file containing relation to make the layers more clearly Signed-off-by: Qianqian Xie <xieqianqian@huawei.com> Signed-off-by: Weiwei Deng <dengweiwei@huawei.com> Reviewed-by: Yisen Zhuang <yisen.zhuang@huawei.com> Signed-off-by: Salil Mehta <salil.mehta@huawei.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
da2ef1e558
commit
f165e03b94
@ -18,9 +18,6 @@
|
||||
#include "hns_dsaf_rcb.h"
|
||||
|
||||
#define AE_NAME_PORT_ID_IDX 6
|
||||
#define ETH_STATIC_REG 1
|
||||
#define ETH_DUMP_REG 5
|
||||
#define ETH_GSTRING_LEN 32
|
||||
|
||||
static struct hns_mac_cb *hns_get_mac_cb(struct hnae_handle *handle)
|
||||
{
|
||||
|
@ -407,7 +407,7 @@ struct mac_driver {
|
||||
};
|
||||
|
||||
struct mac_stats_string {
|
||||
char desc[64];
|
||||
char desc[ETH_GSTRING_LEN];
|
||||
unsigned long offset;
|
||||
};
|
||||
|
||||
|
@ -314,7 +314,6 @@
|
||||
#define PPE_COM_INTEN_REG 0x110
|
||||
#define PPE_COM_RINT_REG 0x114
|
||||
#define PPE_COM_INTSTS_REG 0x118
|
||||
#define PPE_COM_COMMON_CNT_CLR_CE_REG 0x1120
|
||||
#define PPE_COM_HIS_RX_PKT_QID_DROP_CNT_REG 0x300
|
||||
#define PPE_COM_HIS_RX_PKT_QID_OK_CNT_REG 0x600
|
||||
#define PPE_COM_HIS_TX_PKT_QID_ERR_CNT_REG 0x900
|
||||
|
Loading…
Reference in New Issue
Block a user