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:
Jie Deng
2019-04-08 16:22:54 +08:00
committed by wenlingz
parent 3d0992c7bd
commit 00dd26b081
7 changed files with 35 additions and 35 deletions

View File

@@ -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));