Commits

Anonymous committed f646f2c

Add vmxnet3 kernel module.

  • Participants
  • Parent commits da062c6

Comments (0)

Files changed (6)

 - Add rpcinfo utility.
 - Add vmstat utility.
 - Add acpiconf/wake utility.
+- Add vmxnet3 kernel module.
 - Add ability to edit sync property on ZFS dataset and volume.
 - Add ability to edit reservation property on ZFS dataset.
 - Add ability to edit permission on ZFS dataset.

build/ports/vmxnet3/Makefile

+PORTNAME=		vmxnet3
+PORTVERSION=		1.0
+CATEGORIES=		emulators kld
+COMMENT=		vmxnet3 driver (ESXi version)
+MAINTAINER=		aoyama@peach.ne.jp
+DISTFILES=
+WRKSRC=${WRKDIR}/vmxnet3-only
+
+do-extract:
+	@${RM} -rf ${WRKDIR}
+	@${MKDIR} ${WRKDIR}
+	@${TAR} -xf ${FILESDIR}/vmxnet3.tar -C ${WRKDIR}
+
+do-build:
+	@${MAKE} -C ${WRKSRC}
+
+do-install:
+	@${INSTALL_KLD} -v ${WRKDIR}/vmxnet3.ko ${NAS4FREE_ROOTFS}/boot/kernel/
+
+.include <bsd.port.mk>

build/ports/vmxnet3/files/vmxnet3.tar

Binary file added.

build/ports/vmxnet3/pkg-descr

+vmxnet3 driver (ESXi version)

build/ports/vmxnet3/pkg-state

+ON
 	echo "Load vmhgfs module"
 	/sbin/kldload $_kmoddir/vmhgfs.ko >/dev/null 2>&1
     fi
+    if ! /sbin/kldstat -q -m pci/vmxnet3; then
+	echo "Load vmxnet3 module"
+	/sbin/kldload /boot/kernel/vmxnet3.ko >/dev/null 2>&1
+    fi
 }
 
 vmware_kmod_stop()
 	echo "Unload vmmemctl module"
 	/sbin/kldunload $_kmoddir/vmmemctl.ko >/dev/null 2>&1
     fi
+    if /sbin/kldstat -q -m pci/vmxnet3; then
+	echo "Unload vmxnet3 module"
+	/sbin/kldunload /boot/kernel/vmxnet3.ko >/dev/null 2>&1
+    fi
 }
 
 vbox_kmod_start()