53 lines
2.1 KiB
Diff
53 lines
2.1 KiB
Diff
--- a/cdx/devoh.c
|
|
+++ b/cdx/devoh.c
|
|
@@ -313,6 +313,7 @@
|
|
uint32_t port_idx;
|
|
uint8_t oh_iface_name[8]="";
|
|
|
|
+ printk(KERN_INFO "%s::adding OH iface name=%s\n", __func__, name);
|
|
|
|
if (sscanf(name, "dpa-fman%d-oh@%d", &fman_idx,
|
|
&port_idx) != 2) {
|
|
@@ -331,6 +332,8 @@
|
|
DPA_ERROR("%s::oh_port_driver_get_port_info failed\n", __func__);
|
|
return FAILURE;
|
|
}
|
|
+ printk(KERN_INFO "%s::OH port info name=%s channel=%u default_fqid=0x%x err_fqid=0x%x\n",
|
|
+ __func__, name, info.channel_id, info.default_fqid, info.err_fqid);
|
|
//ethernet/physical iface type
|
|
iface_info = (struct dpa_iface_info *)
|
|
kzalloc(sizeof(struct dpa_iface_info), GFP_KERNEL);
|
|
@@ -358,6 +361,10 @@
|
|
__func__, name);
|
|
goto err_ret;
|
|
}
|
|
+ printk(KERN_INFO "%s::CDX OH iface config found name=%s fman=%u port_idx=%u portid=%u max_dist=%u\n",
|
|
+ __func__, name,
|
|
+ iface_info->oh_info.fman_idx, iface_info->oh_info.port_idx,
|
|
+ iface_info->oh_info.portid, iface_info->oh_info.max_dist);
|
|
if (cdx_create_dir_in_procfs(&iface_info->pcd_proc_entry, oh_iface_name, PCD_DIR)) {
|
|
DPA_ERROR("%s:: create pcd proc entry failed %s\n",
|
|
__func__, name);
|
|
@@ -581,6 +588,10 @@
|
|
#endif
|
|
}
|
|
//add fqid information into of port list
|
|
+ printk(KERN_INFO "%s::created OH FQs name=%s fman=%u port_idx=%u rx_default_fqid=0x%x rx_err_fqid=0x%x channel=0x%x\n",
|
|
+ __func__, dpa_oh_iface_info->name, iface_info->fman_idx,
|
|
+ iface_info->port_idx, iface_info->fqinfo[RX_DEFA_FQ].fq_base,
|
|
+ iface_info->fqinfo[RX_ERR_FQ].fq_base, iface_info->channel_id);
|
|
port_info->fm_idx = iface_info->fman_idx;
|
|
port_info->ohinfo = iface_info;
|
|
port_info->channel = iface_info->channel_id;
|
|
@@ -600,6 +611,10 @@
|
|
}
|
|
offline_port_info[iface_info->fman_idx][iface_info->port_idx].flags |=
|
|
(OF_FQID_VALID | PORT_VALID);
|
|
+ printk(KERN_INFO "%s::OH port registered name=%s fman=%u port_idx=%u flags=0x%x\n",
|
|
+ __func__, port_info->name, iface_info->fman_idx,
|
|
+ iface_info->port_idx,
|
|
+ offline_port_info[iface_info->fman_idx][iface_info->port_idx].flags);
|
|
return 0;
|
|
}
|
|
|