Home
last modified time | relevance | path

Searched refs:fmsg (Results 1 – 22 of 22) sorted by relevance

/linux-6.6.21/drivers/net/ethernet/mellanox/mlx5/core/en/
Dreporter_rx.c203 struct devlink_fmsg *fmsg) in mlx5e_reporter_icosq_diagnose() argument
207 err = mlx5e_health_fmsg_named_obj_nest_start(fmsg, "ICOSQ"); in mlx5e_reporter_icosq_diagnose()
211 err = devlink_fmsg_u32_pair_put(fmsg, "sqn", icosq->sqn); in mlx5e_reporter_icosq_diagnose()
215 err = devlink_fmsg_u8_pair_put(fmsg, "HW state", hw_state); in mlx5e_reporter_icosq_diagnose()
219 err = devlink_fmsg_u32_pair_put(fmsg, "cc", icosq->cc); in mlx5e_reporter_icosq_diagnose()
223 err = devlink_fmsg_u32_pair_put(fmsg, "pc", icosq->pc); in mlx5e_reporter_icosq_diagnose()
227 err = devlink_fmsg_u32_pair_put(fmsg, "WQE size", in mlx5e_reporter_icosq_diagnose()
232 err = mlx5e_health_fmsg_named_obj_nest_start(fmsg, "CQ"); in mlx5e_reporter_icosq_diagnose()
236 err = devlink_fmsg_u32_pair_put(fmsg, "cqn", icosq->cq.mcq.cqn); in mlx5e_reporter_icosq_diagnose()
240 err = devlink_fmsg_u32_pair_put(fmsg, "cc", icosq->cq.wq.cc); in mlx5e_reporter_icosq_diagnose()
[all …]
Dreporter_tx.c53 static int mlx5e_health_sq_put_sw_state(struct devlink_fmsg *fmsg, struct mlx5e_txqsq *sq) in mlx5e_health_sq_put_sw_state() argument
60 err = mlx5e_health_fmsg_named_obj_nest_start(fmsg, "SW State"); in mlx5e_health_sq_put_sw_state()
65 err = devlink_fmsg_u32_pair_put(fmsg, sq_sw_state_type_name[i], in mlx5e_health_sq_put_sw_state()
71 return mlx5e_health_fmsg_named_obj_nest_end(fmsg); in mlx5e_health_sq_put_sw_state()
224 mlx5e_tx_reporter_build_diagnose_output_sq_common(struct devlink_fmsg *fmsg, in mlx5e_tx_reporter_build_diagnose_output_sq_common() argument
236 err = devlink_fmsg_u32_pair_put(fmsg, "tc", tc); in mlx5e_tx_reporter_build_diagnose_output_sq_common()
240 err = devlink_fmsg_u32_pair_put(fmsg, "txq ix", sq->txq_ix); in mlx5e_tx_reporter_build_diagnose_output_sq_common()
244 err = devlink_fmsg_u32_pair_put(fmsg, "sqn", sq->sqn); in mlx5e_tx_reporter_build_diagnose_output_sq_common()
248 err = devlink_fmsg_u8_pair_put(fmsg, "HW state", state); in mlx5e_tx_reporter_build_diagnose_output_sq_common()
252 err = devlink_fmsg_bool_pair_put(fmsg, "stopped", stopped); in mlx5e_tx_reporter_build_diagnose_output_sq_common()
[all …]
Dhealth.c8 int mlx5e_health_fmsg_named_obj_nest_start(struct devlink_fmsg *fmsg, char *name) in mlx5e_health_fmsg_named_obj_nest_start() argument
12 err = devlink_fmsg_pair_nest_start(fmsg, name); in mlx5e_health_fmsg_named_obj_nest_start()
16 err = devlink_fmsg_obj_nest_start(fmsg); in mlx5e_health_fmsg_named_obj_nest_start()
23 int mlx5e_health_fmsg_named_obj_nest_end(struct devlink_fmsg *fmsg) in mlx5e_health_fmsg_named_obj_nest_end() argument
27 err = devlink_fmsg_obj_nest_end(fmsg); in mlx5e_health_fmsg_named_obj_nest_end()
31 err = devlink_fmsg_pair_nest_end(fmsg); in mlx5e_health_fmsg_named_obj_nest_end()
38 int mlx5e_health_cq_diag_fmsg(struct mlx5e_cq *cq, struct devlink_fmsg *fmsg) in mlx5e_health_cq_diag_fmsg() argument
52 err = mlx5e_health_fmsg_named_obj_nest_start(fmsg, "CQ"); in mlx5e_health_cq_diag_fmsg()
56 err = devlink_fmsg_u32_pair_put(fmsg, "cqn", cq->mcq.cqn); in mlx5e_health_cq_diag_fmsg()
60 err = devlink_fmsg_u8_pair_put(fmsg, "HW status", hw_status); in mlx5e_health_cq_diag_fmsg()
[all …]
Dhealth.h23 int mlx5e_health_cq_diag_fmsg(struct mlx5e_cq *cq, struct devlink_fmsg *fmsg);
24 int mlx5e_health_cq_common_diag_fmsg(struct mlx5e_cq *cq, struct devlink_fmsg *fmsg);
25 int mlx5e_health_eq_diag_fmsg(struct mlx5_eq_comp *eq, struct devlink_fmsg *fmsg);
26 int mlx5e_health_fmsg_named_obj_nest_start(struct devlink_fmsg *fmsg, char *name);
27 int mlx5e_health_fmsg_named_obj_nest_end(struct devlink_fmsg *fmsg);
41 int (*dump)(struct mlx5e_priv *priv, struct devlink_fmsg *fmsg, void *ctx);
56 struct devlink_fmsg *fmsg);
57 int mlx5e_health_queue_dump(struct mlx5e_priv *priv, struct devlink_fmsg *fmsg,
/linux-6.6.21/drivers/net/netdevsim/
Dhealth.c13 struct devlink_fmsg *fmsg, void *priv_ctx, in nsim_dev_empty_reporter_dump() argument
21 struct devlink_fmsg *fmsg, in nsim_dev_empty_reporter_diagnose() argument
63 static int nsim_dev_dummy_fmsg_put(struct devlink_fmsg *fmsg, u32 binary_len) in nsim_dev_dummy_fmsg_put() argument
69 err = devlink_fmsg_bool_pair_put(fmsg, "test_bool", true); in nsim_dev_dummy_fmsg_put()
72 err = devlink_fmsg_u8_pair_put(fmsg, "test_u8", 1); in nsim_dev_dummy_fmsg_put()
75 err = devlink_fmsg_u32_pair_put(fmsg, "test_u32", 3); in nsim_dev_dummy_fmsg_put()
78 err = devlink_fmsg_u64_pair_put(fmsg, "test_u64", 4); in nsim_dev_dummy_fmsg_put()
81 err = devlink_fmsg_string_pair_put(fmsg, "test_string", "somestring"); in nsim_dev_dummy_fmsg_put()
89 err = devlink_fmsg_binary_pair_put(fmsg, "test_binary", binary, binary_len); in nsim_dev_dummy_fmsg_put()
94 err = devlink_fmsg_pair_nest_start(fmsg, "test_nest"); in nsim_dev_dummy_fmsg_put()
[all …]
/linux-6.6.21/net/devlink/
Dhealth.c32 struct devlink_fmsg *fmsg; in devlink_fmsg_alloc() local
34 fmsg = kzalloc(sizeof(*fmsg), GFP_KERNEL); in devlink_fmsg_alloc()
35 if (!fmsg) in devlink_fmsg_alloc()
38 INIT_LIST_HEAD(&fmsg->item_list); in devlink_fmsg_alloc()
40 return fmsg; in devlink_fmsg_alloc()
43 static void devlink_fmsg_free(struct devlink_fmsg *fmsg) in devlink_fmsg_free() argument
47 list_for_each_entry_safe(item, tmp, &fmsg->item_list, list) { in devlink_fmsg_free()
51 kfree(fmsg); in devlink_fmsg_free()
673 static int devlink_fmsg_nest_common(struct devlink_fmsg *fmsg, in devlink_fmsg_nest_common() argument
683 list_add_tail(&item->list, &fmsg->item_list); in devlink_fmsg_nest_common()
[all …]
/linux-6.6.21/drivers/net/ethernet/mellanox/mlx5/core/diag/
Dreporter_vnic.c17 struct devlink_fmsg *fmsg, in mlx5_reporter_vnic_diagnose_counters() argument
32 err = devlink_fmsg_pair_nest_start(fmsg, "vNIC env counters"); in mlx5_reporter_vnic_diagnose_counters()
36 err = devlink_fmsg_obj_nest_start(fmsg); in mlx5_reporter_vnic_diagnose_counters()
41 err = devlink_fmsg_u32_pair_put(fmsg, "total_error_queues", in mlx5_reporter_vnic_diagnose_counters()
46 err = devlink_fmsg_u32_pair_put(fmsg, "send_queue_priority_update_flow", in mlx5_reporter_vnic_diagnose_counters()
54 err = devlink_fmsg_u32_pair_put(fmsg, "comp_eq_overrun", in mlx5_reporter_vnic_diagnose_counters()
59 err = devlink_fmsg_u32_pair_put(fmsg, "async_eq_overrun", in mlx5_reporter_vnic_diagnose_counters()
66 err = devlink_fmsg_u32_pair_put(fmsg, "cq_overrun", in mlx5_reporter_vnic_diagnose_counters()
73 err = devlink_fmsg_u32_pair_put(fmsg, "invalid_command", in mlx5_reporter_vnic_diagnose_counters()
80 err = devlink_fmsg_u32_pair_put(fmsg, "quota_exceeded_command", in mlx5_reporter_vnic_diagnose_counters()
[all …]
Dfw_tracer.c893 mlx5_devlink_fmsg_fill_trace(struct devlink_fmsg *fmsg, in mlx5_devlink_fmsg_fill_trace() argument
898 err = devlink_fmsg_obj_nest_start(fmsg); in mlx5_devlink_fmsg_fill_trace()
902 err = devlink_fmsg_u64_pair_put(fmsg, "timestamp", trace_data->timestamp); in mlx5_devlink_fmsg_fill_trace()
906 err = devlink_fmsg_bool_pair_put(fmsg, "lost", trace_data->lost); in mlx5_devlink_fmsg_fill_trace()
910 err = devlink_fmsg_u8_pair_put(fmsg, "event_id", trace_data->event_id); in mlx5_devlink_fmsg_fill_trace()
914 err = devlink_fmsg_string_pair_put(fmsg, "msg", trace_data->msg); in mlx5_devlink_fmsg_fill_trace()
918 err = devlink_fmsg_obj_nest_end(fmsg); in mlx5_devlink_fmsg_fill_trace()
925 struct devlink_fmsg *fmsg) in mlx5_fw_tracer_get_saved_traces_objects() argument
943 err = devlink_fmsg_arr_pair_nest_start(fmsg, "dump fw traces"); in mlx5_fw_tracer_get_saved_traces_objects()
948 err = mlx5_devlink_fmsg_fill_trace(fmsg, &straces[index]); in mlx5_fw_tracer_get_saved_traces_objects()
[all …]
Dreporter_vnic.h13 struct devlink_fmsg *fmsg,
Dfw_tracer.h202 struct devlink_fmsg *fmsg);
/linux-6.6.21/drivers/net/ethernet/huawei/hinic/
Dhinic_devlink.c318 static int chip_fault_show(struct devlink_fmsg *fmsg, in chip_fault_show() argument
329 err = devlink_fmsg_u32_pair_put(fmsg, "Function level err func_id", in chip_fault_show()
335 err = devlink_fmsg_u8_pair_put(fmsg, "module_id", event->event.chip.node_id); in chip_fault_show()
339 err = devlink_fmsg_u32_pair_put(fmsg, "err_type", (u32)event->event.chip.err_type); in chip_fault_show()
343 err = devlink_fmsg_string_pair_put(fmsg, "err_level", level_str[fault_level]); in chip_fault_show()
347 err = devlink_fmsg_u32_pair_put(fmsg, "err_csr_addr", in chip_fault_show()
352 err = devlink_fmsg_u32_pair_put(fmsg, "err_csr_value", in chip_fault_show()
360 static int fault_report_show(struct devlink_fmsg *fmsg, in fault_report_show() argument
371 err = devlink_fmsg_string_pair_put(fmsg, "Fault type", type_str[fault_type]); in fault_report_show()
375 err = devlink_fmsg_binary_pair_put(fmsg, "Fault raw data", in fault_report_show()
[all …]
/linux-6.6.21/drivers/net/ethernet/marvell/octeontx2/af/
Drvu_devlink.c17 static int rvu_report_pair_start(struct devlink_fmsg *fmsg, const char *name) in rvu_report_pair_start() argument
21 err = devlink_fmsg_pair_nest_start(fmsg, name); in rvu_report_pair_start()
25 return devlink_fmsg_obj_nest_start(fmsg); in rvu_report_pair_start()
28 static int rvu_report_pair_end(struct devlink_fmsg *fmsg) in rvu_report_pair_end() argument
32 err = devlink_fmsg_obj_nest_end(fmsg); in rvu_report_pair_end()
36 return devlink_fmsg_pair_nest_end(fmsg); in rvu_report_pair_end()
282 static int rvu_nix_report_show(struct devlink_fmsg *fmsg, void *ctx, in rvu_nix_report_show() argument
293 err = rvu_report_pair_start(fmsg, "NIX_AF_RVU"); in rvu_nix_report_show()
296 err = devlink_fmsg_u64_pair_put(fmsg, "\tNIX RVU Interrupt Reg ", in rvu_nix_report_show()
301 err = devlink_fmsg_string_put(fmsg, "\n\tUnmap Slot Error"); in rvu_nix_report_show()
[all …]
/linux-6.6.21/drivers/staging/qlge/
Dqlge_devlink.c5 static int qlge_fill_seg_(struct devlink_fmsg *fmsg, in qlge_fill_seg_() argument
14 err = devlink_fmsg_pair_nest_start(fmsg, seg_header->description); in qlge_fill_seg_()
17 err = devlink_fmsg_obj_nest_start(fmsg); in qlge_fill_seg_()
20 err = devlink_fmsg_u32_pair_put(fmsg, "segment", seg_header->seg_num); in qlge_fill_seg_()
23 err = devlink_fmsg_arr_pair_nest_start(fmsg, "values"); in qlge_fill_seg_()
27 err = devlink_fmsg_u32_put(fmsg, *reg_data); in qlge_fill_seg_()
32 err = devlink_fmsg_obj_nest_end(fmsg); in qlge_fill_seg_()
35 err = devlink_fmsg_arr_pair_nest_end(fmsg); in qlge_fill_seg_()
38 err = devlink_fmsg_pair_nest_end(fmsg); in qlge_fill_seg_()
44 err = qlge_fill_seg_(fmsg, &dump->seg_hdr, dump->seg_regs); \
[all …]
/linux-6.6.21/drivers/net/ethernet/mellanox/mlx5/core/
Dhealth.c445 struct devlink_fmsg *fmsg, in mlx5_fw_reporter_diagnose() argument
455 err = devlink_fmsg_u8_pair_put(fmsg, "Syndrome", synd); in mlx5_fw_reporter_diagnose()
458 return devlink_fmsg_string_pair_put(fmsg, "Description", hsynd_str(synd)); in mlx5_fw_reporter_diagnose()
467 mlx5_fw_reporter_ctx_pairs_put(struct devlink_fmsg *fmsg, in mlx5_fw_reporter_ctx_pairs_put() argument
472 err = devlink_fmsg_u8_pair_put(fmsg, "syndrome", in mlx5_fw_reporter_ctx_pairs_put()
476 err = devlink_fmsg_u32_pair_put(fmsg, "fw_miss_counter", in mlx5_fw_reporter_ctx_pairs_put()
485 struct devlink_fmsg *fmsg) in mlx5_fw_reporter_heath_buffer_data_put() argument
496 err = devlink_fmsg_pair_nest_start(fmsg, "health buffer"); in mlx5_fw_reporter_heath_buffer_data_put()
499 err = devlink_fmsg_obj_nest_start(fmsg); in mlx5_fw_reporter_heath_buffer_data_put()
502 err = devlink_fmsg_arr_pair_nest_start(fmsg, "assert_var"); in mlx5_fw_reporter_heath_buffer_data_put()
[all …]
Den_rep.c1364 struct devlink_fmsg *fmsg, in mlx5e_rep_vnic_reporter_diagnose() argument
1370 return mlx5_reporter_vnic_diagnose_counters(rep->esw->dev, fmsg, in mlx5e_rep_vnic_reporter_diagnose()
/linux-6.6.21/drivers/net/ethernet/amd/pds_core/
Ddevlink.c154 struct devlink_fmsg *fmsg, in pdsc_fw_reporter_diagnose() argument
163 err = devlink_fmsg_string_pair_put(fmsg, "Status", "dead"); in pdsc_fw_reporter_diagnose()
165 err = devlink_fmsg_string_pair_put(fmsg, "Status", "unhealthy"); in pdsc_fw_reporter_diagnose()
167 err = devlink_fmsg_string_pair_put(fmsg, "Status", "healthy"); in pdsc_fw_reporter_diagnose()
174 err = devlink_fmsg_u32_pair_put(fmsg, "State", in pdsc_fw_reporter_diagnose()
180 err = devlink_fmsg_u32_pair_put(fmsg, "Generation", in pdsc_fw_reporter_diagnose()
185 return devlink_fmsg_u32_pair_put(fmsg, "Recoveries", in pdsc_fw_reporter_diagnose()
Dcore.h248 struct devlink_fmsg *fmsg,
/linux-6.6.21/drivers/net/ethernet/broadcom/bnxt/
Dbnxt_devlink.c101 struct devlink_fmsg *fmsg, in bnxt_fw_diagnose() argument
110 return devlink_fmsg_string_pair_put(fmsg, "Status", "recovering"); in bnxt_fw_diagnose()
113 return devlink_fmsg_string_pair_put(fmsg, "Status", "unknown"); in bnxt_fw_diagnose()
118 rc = devlink_fmsg_string_pair_put(fmsg, "Status", "initializing"); in bnxt_fw_diagnose()
129 rc = devlink_fmsg_string_pair_put(fmsg, "Status", "error"); in bnxt_fw_diagnose()
132 rc = devlink_fmsg_u32_pair_put(fmsg, "Syndrome", fw_status); in bnxt_fw_diagnose()
136 rc = devlink_fmsg_string_pair_put(fmsg, "Status", "healthy"); in bnxt_fw_diagnose()
141 rc = devlink_fmsg_string_pair_put(fmsg, "Severity", in bnxt_fw_diagnose()
147 rc = devlink_fmsg_string_pair_put(fmsg, "Remedy", in bnxt_fw_diagnose()
152 rc = devlink_fmsg_string_pair_put(fmsg, "Impact", in bnxt_fw_diagnose()
[all …]
/linux-6.6.21/include/net/
Ddevlink.h735 struct devlink_fmsg *fmsg, void *priv_ctx,
738 struct devlink_fmsg *fmsg,
1854 int devlink_fmsg_obj_nest_start(struct devlink_fmsg *fmsg);
1855 int devlink_fmsg_obj_nest_end(struct devlink_fmsg *fmsg);
1857 int devlink_fmsg_pair_nest_start(struct devlink_fmsg *fmsg, const char *name);
1858 int devlink_fmsg_pair_nest_end(struct devlink_fmsg *fmsg);
1860 int devlink_fmsg_arr_pair_nest_start(struct devlink_fmsg *fmsg,
1862 int devlink_fmsg_arr_pair_nest_end(struct devlink_fmsg *fmsg);
1863 int devlink_fmsg_binary_pair_nest_start(struct devlink_fmsg *fmsg,
1865 int devlink_fmsg_binary_pair_nest_end(struct devlink_fmsg *fmsg);
[all …]
/linux-6.6.21/drivers/net/ethernet/mellanox/mlxsw/
Dcore.c1797 struct devlink_fmsg *fmsg) in mlxsw_core_health_fw_fatal_dump_fatal_cause() argument
1803 err = devlink_fmsg_u32_pair_put(fmsg, "cause_id", val); in mlxsw_core_health_fw_fatal_dump_fatal_cause()
1809 err = devlink_fmsg_u8_pair_put(fmsg, "tile_index", val); in mlxsw_core_health_fw_fatal_dump_fatal_cause()
1819 struct devlink_fmsg *fmsg) in mlxsw_core_health_fw_fatal_dump_fw_assert() argument
1825 err = devlink_fmsg_u32_pair_put(fmsg, "var0", val); in mlxsw_core_health_fw_fatal_dump_fw_assert()
1829 err = devlink_fmsg_u32_pair_put(fmsg, "var1", val); in mlxsw_core_health_fw_fatal_dump_fw_assert()
1833 err = devlink_fmsg_u32_pair_put(fmsg, "var2", val); in mlxsw_core_health_fw_fatal_dump_fw_assert()
1837 err = devlink_fmsg_u32_pair_put(fmsg, "var3", val); in mlxsw_core_health_fw_fatal_dump_fw_assert()
1841 err = devlink_fmsg_u32_pair_put(fmsg, "var4", val); in mlxsw_core_health_fw_fatal_dump_fw_assert()
1845 err = devlink_fmsg_u32_pair_put(fmsg, "existptr", val); in mlxsw_core_health_fw_fatal_dump_fw_assert()
[all …]
/linux-6.6.21/Documentation/networking/devlink/
Ddevlink-health.rst60 to fill the data in using the devlink fmsg API.
62 Devlink fmsg is a mechanism to pass descriptors between drivers and devlink, in
67 Driver should use this API to fill the fmsg context in a format which will be
/linux-6.6.21/drivers/net/ethernet/qlogic/qed/
Dqed_devlink.c38 struct devlink_fmsg *fmsg, void *priv_ctx, in qed_fw_fatal_reporter_dump() argument
69 err = devlink_fmsg_binary_pair_put(fmsg, "dump_data", in qed_fw_fatal_reporter_dump()