MCPcopy Create free account
hub / github.com/F-Stack/f-stack / dump_netcfg

Function dump_netcfg

dpdk/drivers/bus/dpaa/base/fman/netcfg_layer.c:31–67  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

29
30#ifdef RTE_LIBRTE_DPAA_DEBUG_DRIVER
31void
32dump_netcfg(struct netcfg_info *cfg_ptr)
33{
34 int i;
35
36 printf(".......... DPAA Configuration ..........\n\n");
37
38 /* Network interfaces */
39 printf("Network interfaces: %d\n", cfg_ptr->num_ethports);
40 for (i = 0; i < cfg_ptr->num_ethports; i++) {
41 struct fman_if_bpool *bpool;
42 struct fm_eth_port_cfg *p_cfg = &cfg_ptr->port_cfg[i];
43 struct fman_if *__if = p_cfg->fman_if;
44
45 printf("\n+ Fman %d, MAC %d (%s);\n",
46 __if->fman_idx, __if->mac_idx,
47 (__if->mac_type == fman_mac_1g) ? "1G" :
48 (__if->mac_type == fman_mac_2_5g) ? "2.5G" : "10G");
49
50 printf("\tmac_addr: " RTE_ETHER_ADDR_PRT_FMT "\n",
51 RTE_ETHER_ADDR_BYTES(&__if->mac_addr));
52
53 printf("\ttx_channel_id: 0x%02x\n",
54 __if->tx_channel_id);
55
56 printf("\tfqid_rx_def: 0x%x\n", p_cfg->rx_def);
57 printf("\tfqid_rx_err: 0x%x\n", __if->fqid_rx_err);
58
59 printf("\tfqid_tx_err: 0x%x\n", __if->fqid_tx_err);
60 printf("\tfqid_tx_confirm: 0x%x\n", __if->fqid_tx_confirm);
61 fman_if_for_each_bpool(bpool, __if)
62 printf("\tbuffer pool: (bpid=%d, count=%"PRId64
63 " size=%"PRId64", addr=0x%"PRIx64")\n",
64 bpool->bpid, bpool->count, bpool->size,
65 bpool->addr);
66 }
67}
68#endif /* RTE_LIBRTE_DPAA_DEBUG_DRIVER */
69
70struct netcfg_info *

Callers 1

rte_dpaa_bus_dev_buildFunction · 0.85

Calls 1

printfFunction · 0.50

Tested by

no test coverage detected