diff options
author | Damjan Marion <damarion@cisco.com> | 2018-11-27 13:41:02 +0100 |
---|---|---|
committer | Marco Varlese <marco.varlese@suse.de> | 2018-11-28 14:12:22 +0000 |
commit | 940d1c8a18d672c37c6545ffdabd090d29f09850 (patch) | |
tree | 6e8c0f9dfa5cc1d2a14c2e28bab36d1a2a613815 /src/plugins/dpdk/device/dpdk.h | |
parent | 8ebd7929bdfd3ce6e9648abb76b7289056ea5114 (diff) |
dpdk: allow interface name to be specified from startup.conf
Example:
dpdk {
dev 0000:01:00.0 { name eth0 }
dev 0000:02:00.0 { name eth1 }
}
Change-Id: I11e60e969a7e3548c99ac0c0c3531767819cb157
Signed-off-by: Damjan Marion <damarion@cisco.com>
Diffstat (limited to 'src/plugins/dpdk/device/dpdk.h')
-rw-r--r-- | src/plugins/dpdk/device/dpdk.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/plugins/dpdk/device/dpdk.h b/src/plugins/dpdk/device/dpdk.h index 0e5851dcbc6..4c45e875933 100644 --- a/src/plugins/dpdk/device/dpdk.h +++ b/src/plugins/dpdk/device/dpdk.h @@ -218,6 +218,7 @@ typedef struct u16 nb_tx_desc; CLIB_CACHE_LINE_ALIGN_MARK (cacheline1); + u8 *name; u8 *interface_name_suffix; /* number of sub-interfaces */ @@ -332,6 +333,7 @@ void dpdk_hqos_metadata_set (dpdk_device_hqos_per_worker_thread_t * hqos, typedef struct { vlib_pci_addr_t pci_addr; + u8 *name; u8 is_blacklisted; u8 vlan_strip_offload; #define DPDK_DEVICE_VLAN_STRIP_DEFAULT 0 |