Skip to content

Commit 8973ce1

Browse files
Dr. David Alan Gilbertkuba-moo
authored andcommitted
net: hisilicon: hns: Remove unused enums
The enums dsaf_roce_port_mode, dsaf_roce_port_num and dsaf_roce_qos_sl are unused after the removal of the reset code. Remove them. Signed-off-by: Dr. David Alan Gilbert <[email protected]> Reviewed-by: Jijie Shao<[email protected]> Link: https://patch.msgid.link/[email protected] Signed-off-by: Jakub Kicinski <[email protected]>
1 parent 0198b45 commit 8973ce1

File tree

1 file changed

+0
-23
lines changed

1 file changed

+0
-23
lines changed

drivers/net/ethernet/hisilicon/hns/hns_dsaf_main.h

Lines changed: 0 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -42,29 +42,6 @@ struct hns_mac_cb;
4242

4343
#define HNS_MAX_WAIT_CNT 10000
4444

45-
enum dsaf_roce_port_mode {
46-
DSAF_ROCE_6PORT_MODE,
47-
DSAF_ROCE_4PORT_MODE,
48-
DSAF_ROCE_2PORT_MODE,
49-
DSAF_ROCE_CHAN_MODE_NUM,
50-
};
51-
52-
enum dsaf_roce_port_num {
53-
DSAF_ROCE_PORT_0,
54-
DSAF_ROCE_PORT_1,
55-
DSAF_ROCE_PORT_2,
56-
DSAF_ROCE_PORT_3,
57-
DSAF_ROCE_PORT_4,
58-
DSAF_ROCE_PORT_5,
59-
};
60-
61-
enum dsaf_roce_qos_sl {
62-
DSAF_ROCE_SL_0,
63-
DSAF_ROCE_SL_1,
64-
DSAF_ROCE_SL_2,
65-
DSAF_ROCE_SL_3,
66-
};
67-
6845
#define DSAF_STATS_READ(p, offset) (*((u64 *)((u8 *)(p) + (offset))))
6946
#define HNS_DSAF_IS_DEBUG(dev) ((dev)->dsaf_mode == DSAF_MODE_DISABLE_SP)
7047

0 commit comments

Comments
 (0)