mlxsw: core: Add API to set trap action