numam-dpdk/drivers/net/softnic
Jasvinder Singh 66cdfd67c5 net/softnic: fix undefined device info fields
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: cc6d421574 ("net/softnic: add softnic PMD")
Cc: stable@dpdk.org

Signed-off-by: Jasvinder Singh <jasvinder.singh@intel.com>
Reviewed-by: Ferruh Yigit <ferruh.yigit@intel.com>
2018-11-21 16:23:56 +01:00
..
conn.c mk: build with _GNU_SOURCE defined by default 2018-10-22 11:28:27 +02:00
conn.h net/softnic: add connection agent 2018-07-12 13:52:37 +02:00
firmware.cli net/softnic: add firmware script 2018-07-12 13:55:42 +02:00
Makefile net/softnic: add cryptodev 2018-10-26 14:13:45 +02:00
meson.build net/softnic: disable in FreeBSD build with meson 2018-10-27 18:00:17 +02:00
parser.c net/softnic: add command for tmgr shaper profile 2018-07-25 19:27:34 +02:00
parser.h net/softnic: add command for tmgr shaper profile 2018-07-25 19:27:34 +02:00
rte_eth_softnic_action.c net/softnic: add symmetric crypto action 2018-10-26 14:13:45 +02:00
rte_eth_softnic_cli.c net/softnic: fix string copy 2018-11-02 11:23:00 +01:00
rte_eth_softnic_cryptodev.c net/softnic: add cryptodev 2018-10-26 14:13:45 +02:00
rte_eth_softnic_flow.c net/softnic: fix string copy 2018-11-02 11:23:00 +01:00
rte_eth_softnic_internals.h net/softnic: fix mixing enum values 2018-11-02 11:20:57 +01:00
rte_eth_softnic_link.c net/softnic: add link object 2018-07-12 13:49:24 +02:00
rte_eth_softnic_mempool.c net/softnic: add mempool object 2018-07-12 13:49:44 +02:00
rte_eth_softnic_meter.c net/softnic: fix mixing enum values 2018-11-02 11:20:57 +01:00
rte_eth_softnic_pipeline.c net/softnic: configure crypto port 2018-10-26 14:13:45 +02:00
rte_eth_softnic_swq.c net/softnic: fix memory illegal access after free 2018-07-23 23:55:26 +02:00
rte_eth_softnic_tap.c net/softnic: add tap object 2018-07-12 13:50:03 +02:00
rte_eth_softnic_thread.c net/softnic: add symmetric crypto action 2018-10-26 14:13:45 +02:00
rte_eth_softnic_tm.c net/softnic: add command for tmgr create 2018-07-25 19:27:07 +02:00
rte_eth_softnic.c net/softnic: fix undefined device info fields 2018-11-21 16:23:56 +01:00
rte_eth_softnic.h net/softnic: add connection agent 2018-07-12 13:52:37 +02:00
rte_pmd_softnic_version.map net/softnic: add connection agent 2018-07-12 13:52:37 +02:00