]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
bhyve: move common code to net_utils.c
authorvmaffione <vmaffione@FreeBSD.org>
Thu, 13 Jun 2019 17:39:32 +0000 (17:39 +0000)
committervmaffione <vmaffione@FreeBSD.org>
Thu, 13 Jun 2019 17:39:32 +0000 (17:39 +0000)
commit6ca4e46aa6f29a7cc1f17c4b6e19b7a74f17a26e
treeb009a812da7406fb4670351c508118803d6d9041
parent13a313ede7b58992266adf73d04fe77ae25bf300
bhyve: move common code to net_utils.c

Both virtio_net and e82545 network frontends have code to validate and
generate MAC addresses. These functionalities are replicated in the two
files, so we move them in a separate compilation unit.

Reviewed by: rgrimes, bryanv, imp, kevans
MFC after: 2 weeks
Differential Revision: https://reviews.freebsd.org/D20626
usr.sbin/bhyve/Makefile
usr.sbin/bhyve/net_utils.c [new file with mode: 0644]
usr.sbin/bhyve/net_utils.h [new file with mode: 0644]
usr.sbin/bhyve/pci_e82545.c
usr.sbin/bhyve/pci_virtio_net.c