The sample code demonstrates device (ethdev only) management at a multi-process environment. The user can attach/detach a device on primary process and see it is synced on secondary process automatically. How to start? ./hotplug_mp --proc-type=auto Command Line Example: >help >list /* attach a pci device */ > attach 0000:81:00.0 /* detach the pci device */ > detach 0000:81:00.0 /* attach a vdev af_packet device */ > attach net_af_packet,iface=eth0 /* detach the vdev af_packet device */ > detach net_af_packet Signed-off-by: Qi Zhang <qi.z.zhang@intel.com>
19 lines
559 B
Makefile
19 lines
559 B
Makefile
# SPDX-License-Identifier: BSD-3-Clause
|
|
# Copyright(c) 2010-2014 Intel Corporation
|
|
|
|
ifeq ($(RTE_SDK),)
|
|
$(error "Please define RTE_SDK environment variable")
|
|
endif
|
|
|
|
# Default target, can be overridden by command line or environment
|
|
RTE_TARGET ?= x86_64-native-linuxapp-gcc
|
|
|
|
include $(RTE_SDK)/mk/rte.vars.mk
|
|
|
|
DIRS-$(CONFIG_RTE_EXEC_ENV_LINUXAPP) += client_server_mp
|
|
DIRS-$(CONFIG_RTE_EXEC_ENV_LINUXAPP) += simple_mp
|
|
DIRS-$(CONFIG_RTE_EXEC_ENV_LINUXAPP) += symmetric_mp
|
|
DIRS-$(CONFIG_RTE_EXEC_ENV_LINUXAPP) += hotplug_mp
|
|
|
|
include $(RTE_SDK)/mk/rte.extsubdir.mk
|