mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2026-06-07 17:46:15 +00:00
dm: pass mac seed not to use vm name
Physical NIC mac address is used for generate UOS mac address. This patch uses a new parameters to pass this information instead of vm name. Tracked-On: #1987 Signed-off-by: Jie Deng <jie.deng@intel.com> Acked-by: Yan, Like <like.yan@intel.com> Acked-by: Anthony Xu <anthony.xu@intel.com>
This commit is contained in:
@@ -818,7 +818,7 @@ virtio_net_init(struct vmctx *ctx, struct pci_vdev *dev, char *opts)
|
||||
*/
|
||||
if (!mac_provided) {
|
||||
snprintf(nstr, sizeof(nstr), "%d-%d-%s", dev->slot,
|
||||
dev->func, vmname);
|
||||
dev->func, mac_seed);
|
||||
|
||||
MD5_Init(&mdctx);
|
||||
MD5_Update(&mdctx, nstr, strlen(nstr));
|
||||
|
||||
Reference in New Issue
Block a user