Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
FIX: Reworked _FREEBSD_NET_DRIVERS_GREP_STRING again
After @invisnet updated this variable last week, I read that direct wireless devices are incompatible with bhyve. See FAQ question “Why can't I network VMs over a wireless host interface?” https://wiki.freebsd.org/bhyve Removed first “?” in each driver regex to fix issue where just the driver name was accepted without trailing number. Support for VFs for the cxgbe and cxl drivers were added. https://svnweb.freebsd.org/base?view=revision&revision=305549 In total, the following drivers were added in addition to the drivers in GENERIC on 12-CURRENT r305507: lagg - Thanks @invisnet cxgber cxgbev cxl cxlv vmx - Nested VMware guests I used this to get the base set of devices and then form that into a regex grep string (kinda nasty way to inject the additional drivers but ‘eh): grep -B10000 '# Wireless NIC cards' /usr/src/sys/amd64/conf/GENERIC | grep -A10000 '# PCI Ethernet NICs.' | grep -v -E '^$|^#|miibus' | awk '{ print $2,"lagg cxgbe cxgbev cxl cxlv vmx" }' | tr ' ' '\n' | sort | uniq | awk '{ print "^"$0"[0-9][0-9]?$" }' | tr '\n' '|'
- Loading branch information