trap.h (0d3c24e936feefeca854073ccb40613cd6eba9a9) trap.h (a0040c8c935548e1efb1a28f07f15d7ec7918055)
1/*
2 * drivers/net/ethernet/mellanox/mlxsw/trap.h
3 * Copyright (c) 2015 Mellanox Technologies. All rights reserved.
4 * Copyright (c) 2015 Elad Raz <eladr@mellanox.com>
5 * Copyright (c) 2015 Jiri Pirko <jiri@mellanox.com>
6 * Copyright (c) 2015 Ido Schimmel <idosch@mellanox.com>
7 *
8 * Redistribution and use in source and binary forms, with or without

--- 48 unchanged lines hidden (view full) ---

57 MLXSW_TRAP_ID_PKT_SAMPLE = 0x38,
58 MLXSW_TRAP_ID_FID_MISS = 0x3D,
59 MLXSW_TRAP_ID_ARPBC = 0x50,
60 MLXSW_TRAP_ID_ARPUC = 0x51,
61 MLXSW_TRAP_ID_MTUERROR = 0x52,
62 MLXSW_TRAP_ID_TTLERROR = 0x53,
63 MLXSW_TRAP_ID_LBERROR = 0x54,
64 MLXSW_TRAP_ID_IPV4_OSPF = 0x55,
1/*
2 * drivers/net/ethernet/mellanox/mlxsw/trap.h
3 * Copyright (c) 2015 Mellanox Technologies. All rights reserved.
4 * Copyright (c) 2015 Elad Raz <eladr@mellanox.com>
5 * Copyright (c) 2015 Jiri Pirko <jiri@mellanox.com>
6 * Copyright (c) 2015 Ido Schimmel <idosch@mellanox.com>
7 *
8 * Redistribution and use in source and binary forms, with or without

--- 48 unchanged lines hidden (view full) ---

57 MLXSW_TRAP_ID_PKT_SAMPLE = 0x38,
58 MLXSW_TRAP_ID_FID_MISS = 0x3D,
59 MLXSW_TRAP_ID_ARPBC = 0x50,
60 MLXSW_TRAP_ID_ARPUC = 0x51,
61 MLXSW_TRAP_ID_MTUERROR = 0x52,
62 MLXSW_TRAP_ID_TTLERROR = 0x53,
63 MLXSW_TRAP_ID_LBERROR = 0x54,
64 MLXSW_TRAP_ID_IPV4_OSPF = 0x55,
65 MLXSW_TRAP_ID_IPV4_PIM = 0x58,
66 MLXSW_TRAP_ID_RPF = 0x5C,
65 MLXSW_TRAP_ID_IP2ME = 0x5F,
66 MLXSW_TRAP_ID_IPV6_UNSPECIFIED_ADDRESS = 0x60,
67 MLXSW_TRAP_ID_IPV6_LINK_LOCAL_DEST = 0x61,
68 MLXSW_TRAP_ID_IPV6_LINK_LOCAL_SRC = 0x62,
69 MLXSW_TRAP_ID_IPV6_ALL_NODES_LINK = 0x63,
70 MLXSW_TRAP_ID_IPV6_OSPF = 0x64,
71 MLXSW_TRAP_ID_IPV6_MLDV12_LISTENER_QUERY = 0x65,
72 MLXSW_TRAP_ID_IPV6_MLDV1_LISTENER_REPORT = 0x66,

--- 11 unchanged lines hidden (view full) ---

84 MLXSW_TRAP_ID_L3_IPV6_REDIRECTION = 0x8E,
85 MLXSW_TRAP_ID_HOST_MISS_IPV4 = 0x90,
86 MLXSW_TRAP_ID_IPV6_MC_LINK_LOCAL_DEST = 0x91,
87 MLXSW_TRAP_ID_HOST_MISS_IPV6 = 0x92,
88 MLXSW_TRAP_ID_IPIP_DECAP_ERROR = 0xB1,
89 MLXSW_TRAP_ID_ROUTER_ALERT_IPV4 = 0xD6,
90 MLXSW_TRAP_ID_ROUTER_ALERT_IPV6 = 0xD7,
91 MLXSW_TRAP_ID_ACL0 = 0x1C0,
67 MLXSW_TRAP_ID_IP2ME = 0x5F,
68 MLXSW_TRAP_ID_IPV6_UNSPECIFIED_ADDRESS = 0x60,
69 MLXSW_TRAP_ID_IPV6_LINK_LOCAL_DEST = 0x61,
70 MLXSW_TRAP_ID_IPV6_LINK_LOCAL_SRC = 0x62,
71 MLXSW_TRAP_ID_IPV6_ALL_NODES_LINK = 0x63,
72 MLXSW_TRAP_ID_IPV6_OSPF = 0x64,
73 MLXSW_TRAP_ID_IPV6_MLDV12_LISTENER_QUERY = 0x65,
74 MLXSW_TRAP_ID_IPV6_MLDV1_LISTENER_REPORT = 0x66,

--- 11 unchanged lines hidden (view full) ---

86 MLXSW_TRAP_ID_L3_IPV6_REDIRECTION = 0x8E,
87 MLXSW_TRAP_ID_HOST_MISS_IPV4 = 0x90,
88 MLXSW_TRAP_ID_IPV6_MC_LINK_LOCAL_DEST = 0x91,
89 MLXSW_TRAP_ID_HOST_MISS_IPV6 = 0x92,
90 MLXSW_TRAP_ID_IPIP_DECAP_ERROR = 0xB1,
91 MLXSW_TRAP_ID_ROUTER_ALERT_IPV4 = 0xD6,
92 MLXSW_TRAP_ID_ROUTER_ALERT_IPV6 = 0xD7,
93 MLXSW_TRAP_ID_ACL0 = 0x1C0,
94 /* Multicast trap used for routes with trap action */
95 MLXSW_TRAP_ID_ACL1 = 0x1C1,
96 /* Multicast trap used for routes with trap-and-forward action */
97 MLXSW_TRAP_ID_ACL2 = 0x1C2,
92
93 MLXSW_TRAP_ID_MAX = 0x1FF
94};
95
96enum mlxsw_event_trap_id {
97 /* Port Up/Down event generated by hardware */
98 MLXSW_TRAP_ID_PUDE = 0x8,
99};
100
101#endif /* _MLXSW_TRAP_H */
98
99 MLXSW_TRAP_ID_MAX = 0x1FF
100};
101
102enum mlxsw_event_trap_id {
103 /* Port Up/Down event generated by hardware */
104 MLXSW_TRAP_ID_PUDE = 0x8,
105};
106
107#endif /* _MLXSW_TRAP_H */