1
2
3
4
5
6
7
8
9
10
11
12
13
14 #ifndef _VXGE_ETHTOOL_H
15 #define _VXGE_ETHTOOL_H
16
17 #include "vxge-main.h"
18
19
20 static int vxge_ethtool_get_sset_count(struct net_device *dev, int sset);
21
22 #define VXGE_TITLE_LEN 5
23 #define VXGE_HW_VPATH_STATS_LEN 27
24 #define VXGE_HW_AGGR_STATS_LEN 13
25 #define VXGE_HW_PORT_STATS_LEN 94
26 #define VXGE_HW_VPATH_TX_STATS_LEN 19
27 #define VXGE_HW_VPATH_RX_STATS_LEN 42
28 #define VXGE_SW_STATS_LEN 60
29 #define VXGE_HW_STATS_LEN (VXGE_HW_VPATH_STATS_LEN +\
30 VXGE_HW_AGGR_STATS_LEN +\
31 VXGE_HW_PORT_STATS_LEN +\
32 VXGE_HW_VPATH_TX_STATS_LEN +\
33 VXGE_HW_VPATH_RX_STATS_LEN)
34
35 #define DRIVER_STAT_LEN (sizeof(ethtool_driver_stats_keys)/ETH_GSTRING_LEN)
36 #define STAT_LEN (VXGE_HW_STATS_LEN + DRIVER_STAT_LEN + VXGE_SW_STATS_LEN)
37
38
39 #define VXGE_MAX_FLICKER_TIME (60 * HZ)
40 #define VXGE_FLICKER_ON 1
41 #define VXGE_FLICKER_OFF 0
42
43 #define vxge_add_string(fmt, size, buf, ...) {\
44 snprintf(buf + *size, ETH_GSTRING_LEN, fmt, __VA_ARGS__); \
45 *size += ETH_GSTRING_LEN; \
46 }
47
48 #endif