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/format.c | |
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/format.c')
-rw-r--r-- | src/plugins/dpdk/device/format.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/plugins/dpdk/device/format.c b/src/plugins/dpdk/device/format.c index fdc2850e7e0..bbc61e38fc9 100644 --- a/src/plugins/dpdk/device/format.c +++ b/src/plugins/dpdk/device/format.c @@ -157,6 +157,9 @@ format_dpdk_device_name (u8 * s, va_list * args) struct rte_pci_device *pci_dev; u8 *ret; + if (xd->name) + return format (s, "%s", xd->name); + if (dm->conf->interface_name_format_decimal) devname_format = "%s%d/%d/%d"; else |