66cdfd67c5
The memcpy operation overwrites the device info fields set
by ethdev API and leaves the device field undefined.
Thus, replaces memcpy by only updating the required fields
at the driver layer.
error log: testpmd> show port info 1
**** Infos for port 1 ****
MAC address: 00:00:00:00:00:00
Device name: net_softnic0
Segmentation fault.
port_infos_display (port_id=1) at /dpdk/app/test-pmd/config.c:418
if (dev_info.device->devargs && dev_info.device->devargs->args)
Fixes:
|
||
---|---|---|
.. | ||
conn.c | ||
conn.h | ||
firmware.cli | ||
Makefile | ||
meson.build | ||
parser.c | ||
parser.h | ||
rte_eth_softnic_action.c | ||
rte_eth_softnic_cli.c | ||
rte_eth_softnic_cryptodev.c | ||
rte_eth_softnic_flow.c | ||
rte_eth_softnic_internals.h | ||
rte_eth_softnic_link.c | ||
rte_eth_softnic_mempool.c | ||
rte_eth_softnic_meter.c | ||
rte_eth_softnic_pipeline.c | ||
rte_eth_softnic_swq.c | ||
rte_eth_softnic_tap.c | ||
rte_eth_softnic_thread.c | ||
rte_eth_softnic_tm.c | ||
rte_eth_softnic.c | ||
rte_eth_softnic.h | ||
rte_pmd_softnic_version.map |