mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2025-09-02 01:16:50 +00:00
dm: remove "acrn_" prefix from tap name
Some projects based on ACRN don't want tap name to contain "acrn_" prefix. This patch removes that prefix. Tracked-On: #2509 Signed-off-by: Jie Deng <jie.deng@intel.com> Reviewed-by: Geoffroy Van Cutsem <geoffroy.vancutsem@intel.com>
This commit is contained in:
@@ -674,7 +674,7 @@ virtio_net_tap_setup(struct virtio_net *net, char *devname)
|
||||
int vhost_fd = -1;
|
||||
int rc;
|
||||
|
||||
rc = snprintf(tbuf, IFNAMSIZ, "acrn_%s", devname);
|
||||
rc = snprintf(tbuf, IFNAMSIZ, "%s", devname);
|
||||
if (rc < 0 || rc >= IFNAMSIZ) /* give warning if error or truncation happens */
|
||||
WPRINTF(("Fail to set tap device name %s\n", tbuf));
|
||||
|
||||
|
Reference in New Issue
Block a user