{
if (listener->is_event)
return mlxsw_core_event_listener_register(mlxsw_core,
- &listener->u.event_listener,
+ &listener->event_listener,
priv);
else
return mlxsw_core_rx_listener_register(mlxsw_core,
- &listener->u.rx_listener,
+ &listener->rx_listener,
priv);
}
{
if (listener->is_event)
mlxsw_core_event_listener_unregister(mlxsw_core,
- &listener->u.event_listener,
+ &listener->event_listener,
priv);
else
mlxsw_core_rx_listener_unregister(mlxsw_core,
- &listener->u.rx_listener,
+ &listener->rx_listener,
priv);
}
union {
struct mlxsw_rx_listener rx_listener;
struct mlxsw_event_listener event_listener;
- } u;
+ };
enum mlxsw_reg_hpkt_action action;
enum mlxsw_reg_hpkt_action unreg_action;
u8 trap_group;
_unreg_action) \
{ \
.trap_id = MLXSW_TRAP_ID_##_trap_id, \
- .u.rx_listener = \
+ .rx_listener = \
{ \
.func = _func, \
.local_port = MLXSW_PORT_DONT_CARE, \
#define MLXSW_EVENTL(_func, _trap_id, _trap_group) \
{ \
.trap_id = MLXSW_TRAP_ID_##_trap_id, \
- .u.event_listener = \
+ .event_listener = \
{ \
.func = _func, \
.trap_id = MLXSW_TRAP_ID_##_trap_id, \