vkernel/vke: Add missing semicolon.
ifmedia: Port SIOCGIFXMEDIA from FreeBSD- Max # of media type is 255 on DragonFly; additional bit was used.- Description of the media is changed to ###baseXX instead of ###Base-XX; it is more co
ifmedia: Port SIOCGIFXMEDIA from FreeBSD- Max # of media type is 255 on DragonFly; additional bit was used.- Description of the media is changed to ###baseXX instead of ###Base-XX; it is more consistent with what we already have.- Fix some media types in vke(4), e.g. 1000baseT <half-duplex> is actually never deployed anywhere.- Use ULL consistently in bce(4) for the if_baudrate.- Setup if_baudrate properly for re(4).- Fix typo in mii(4).- Handle SIOCGIFXMEDIA in re(4) (for 2500baseT) and vke(4) (for all newly added types).- Bump kernel version.
show more ...
vkernel: Adjust vke(4) for the if_media.h changes (fixes vkernel build).
vkernel - Print mmap() failures in megabytes* Print mmap() failures for vkd* drives in megabytes instead of bytes.
vkernel: Prevent clang optimizing out the traps.Turns out clang removes non volatile null-pointers. Prevent that.
vkernel - Fix races in if_vke.c* Fix races in if_vke.c, several cpu_lfence() calls were in the wrong place.
vkernel - Add COW image capability* Add a copy-on-write disk image feature. This allows a vkernel to mount a disk image RO or R+W but does not try to write changes back to the image file. T
vkernel - Add COW image capability* Add a copy-on-write disk image feature. This allows a vkernel to mount a disk image RO or R+W but does not try to write changes back to the image file. This allows multiple vkernel instances to use the same image file.* Note that when the vkernel operates on an image in this mode, modifications will eat up system memory and swap, so the user should be cognizant of the use-case. Still, the flexiblity of being able to mount the image R+W should not be underestimated.
kernel: Move us to using M_NOWAIT and M_WAITOK for mbuf functions.The main reason is that our having to use the MB_WAIT and MB_DONTWAITflags was a recurring issue when porting drivers from FreeBSD
kernel: Move us to using M_NOWAIT and M_WAITOK for mbuf functions.The main reason is that our having to use the MB_WAIT and MB_DONTWAITflags was a recurring issue when porting drivers from FreeBSD becauseit tended to get forgotten and the code would compile anyway with thewrong constants. And since MB_WAIT and MB_DONTWAIT ended up as ocflagsfor an objcache_get() or objcache_reclaimlist call (which use M_WAITOKand M_NOWAIT), it was just one big converting back and forth with somesanitization in between.This commit allows M_* again for the mbuf functions and keeps thesanitizing as it was before: when M_WAITOK is among the passed flags,objcache functions will be called with M_WAITOK and when it is absent,they will be called with M_NOWAIT. All other flags are scrubbed by theMB_OCFLAG() macro which does the same as the former MBTOM().Approved-by: dillon
inet/inet6: Merge SIOC[ADG]LIFADDR into {in,in6}_control_internalAnd remove the socket parameter from {in,in6}_control APIs.This prepares to make ifnet glbal variable MPSAFE.
vkernel: Add rudimentary media support to if_vke
vkernel - Support BPF for if_vke.* if_vke now supports tcpdump in both directions instead of just one direction.
kernel: make pktinfo and cpuid native to ip_input()In order to remove ether_input_pkt(), switch the prototypeof if_input() and adjust all callers. While there, consolidatethe style of the invoke
kernel: make pktinfo and cpuid native to ip_input()In order to remove ether_input_pkt(), switch the prototypeof if_input() and adjust all callers. While there, consolidatethe style of the invoke.Suggested and reviewed by: sephe
virtual/vcd - Adapt for DEVFS.- disk_setdiskinfo() call to completely configure the device.- This allows vcd(4) to work properly on vkernels.
vkernel - Fix frustrating VKE mac address bug* Fix a very frustrating bug where VKE would sometimes ignore packets. It turns out that the default randomly-generated ether mac address was not be
vkernel - Fix frustrating VKE mac address bug* Fix a very frustrating bug where VKE would sometimes ignore packets. It turns out that the default randomly-generated ether mac address was not being properly zero'd, leaving uninitialized locations in bytes 0 and 1 which would sometimes make the MAC look like a multicast address.Reported-by: Frustrated tuxilo
ifq: Remove the unused parameter 'mpolled' from ifq dequeue interfaceThe ifq_poll() -> ifq_dequeue() model is not MPSAFE, and mpolled hasnot been used, i.e. set to NULL, for years; time to let it
ifq: Remove the unused parameter 'mpolled' from ifq dequeue interfaceThe ifq_poll() -> ifq_dequeue() model is not MPSAFE, and mpolled hasnot been used, i.e. set to NULL, for years; time to let it go.
vke(4) - Use M_ZERO for tx/rx ring allocation.Pointed-out-by: sephe
vke(4) - Add a tunable to set the max number of mbuf clusters per device.* Also cap it to 256 mbuf clusters by default.
vke(4) - Dynamic mbuf cluster allocation.* Calculate the number of mbuf clusters per ring buffer based on the total amount available in the system.* Up to 50% of the total mbuf clusters is shar
vke(4) - Dynamic mbuf cluster allocation.* Calculate the number of mbuf clusters per ring buffer based on the total amount available in the system.* Up to 50% of the total mbuf clusters is shared among all the vke devices configured in a vkernel.
vkd(4) - Announce virtual disks upon initialization.
vke(4) - Show backing tap only if one was used.
vkernel - Settable serial numbers for virtual disks. User can specify now serial numbers for their virtual disks from the command line. Example: ./vkernel -m 128m -r root.img:VKDMYSERNO
vkernel/vke: Comment out 'ifp', just like the code that uses it.
vkernel - Fix if_vke* The vkernel device driver threads are cothreads and do not have any per-cpu data.* Fix recent stat counter changes which attempted to access per-cpu data from a cothread
vkernel - Fix if_vke* The vkernel device driver threads are cothreads and do not have any per-cpu data.* Fix recent stat counter changes which attempted to access per-cpu data from a cothread. This fixes a vkernel SIGILL by virtue of the trap() code being called recursively on trap's own attempt to access mycpu, until its stack runs out.
vkernel - Allow setting MAC addresses from within the command line. In order to be able to specify the MAC address we want to use for every interface within the vkernel, an extra argument has
vkernel - Allow setting MAC addresses from within the command line. In order to be able to specify the MAC address we want to use for every interface within the vkernel, an extra argument has been added to the -I option. Example: ./kernel -r root.img -m 256m -I auto=aa:bb:cc:dd:ee:ff
if: Per-cpu ifnet/ifaddr statistics, step 1/3Wrap ifnet/ifaddr stats updating, setting and extraction into macros;ease upcoming changes.
12