aboutsummaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
...
* | Avoid using single quotes in arguments to logger.Warner Losh2020-10-091-12/+12
| | | | | | | | | | | | | | | | | | | | | | | | | | Single quotes interfere with the workaround put in with r335753 and aren't necessary in this case. I believe that all the underling issues with r335753 have been corrected, but need to do more extensive followup before reverting it as a bad idea. PR: 240411 MFC After: 2 days (to give it time to get into 12.2) Notes: svn path=/head/; revision=366578
* | col(1): Fix a couple of bugsMark Johnston2020-10-099-15/+127
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - When flushing extra lines after all input has been processed, make sure that local state is reinitialized correctly. - When -f is specified, make sure to end output with a full newline. - Fix some style issues and update comments. - Add some regression tests. PR: 249308 Submitted by: Yang Zhong <yzhong@freebsdfoundation.org> MFC after: 3 weeks Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D26536 Notes: svn path=/head/; revision=366577
* | syslogd: Avoid trimming host names in RFC 5424 modeMark Johnston2020-10-091-2/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | RFC 5424 says that implementations should log hostnames in FQDN format. Only trim host names in RFC 3164 mode. PR: 250014 Submitted by: Dmitry Wagin <dmitry.wagin@ya.ru> MFC after: 1 month Differential Revision: https://reviews.freebsd.org/D26644 Notes: svn path=/head/; revision=366576
* | Fix a few mandoc issuesGordon Bergling2020-10-0910-76/+92
| | | | | | | | | | | | | | | | | | | | | | | | - whitespace at end of input line - skipping paragraph macro: Pp at the end of Sh - new sentence, new line - consider using OS macro: Fx - AUTHORS section without An macro - skipping paragraph macro: Pp before Ss Notes: svn path=/head/; revision=366575
* | RISC-V LINT kernel configMitchell Horne2020-10-092-0/+100
| | | | | | | | | | | | | | | | | | | | | | Create the RISC-V NOTES and LINT files. As of r366559, LINT configs are no longer generated but checked in to the tree. Reviewed by: imp Differential Revision: https://reviews.freebsd.org/D26502 Notes: svn path=/head/; revision=366574
* | Add DSCP support for network QoS to iscsi initiator.Richard Scheffenegger2020-10-098-3/+111
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Allow the DSCP codepoint also to be configurable for the traffic in the direction from the initiator to the target, such that writes and any requests are also treated in the appropriate QoS class. Reviewed by: mav MFC after: 2 weeks Sponsored by: NetApp, Inc. Differential Revision: https://reviews.freebsd.org/D26714 Notes: svn path=/head/; revision=366573
* | Fix a few mandoc issuesGordon Bergling2020-10-0915-140/+172
| | | | | | | | | | | | | | | | | | | | | | - no blank before trailing delimiter - whitespace at end of input line - sections out of conventional order - normalizing date format - AUTHORS section without An macro Notes: svn path=/head/; revision=366572
* | Add iommu_get_dev_ctx() helper that allows to instantiate an iommu contextRuslan Bukin2020-10-092-7/+18
| | | | | | | | | | | | | | | | | | | | | | for a given device_t. Submitted by: andrew Reviewed by: kib Sponsored by: DARPA, AFRL Notes: svn path=/head/; revision=366571
* | Stop sending tiny new data segments during SACK recoveryRichard Scheffenegger2020-10-092-4/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Consider the currently in-use TCP options when calculating the amount of new data to be injected during SACK loss recovery. That addresses the effect that very small (new) segments could be injected on partial ACKs while still performing a SACK loss recovery. Reported by: Liang Tian Reviewed by: tuexen, chengc_netapp.com MFC after: 2 weeks Sponsored by: NetApp, Inc. Differential Revision: https://reviews.freebsd.org/D26446 Notes: svn path=/head/; revision=366570
* | Add IP(V6)_VLAN_PCP to set 802.1 priority per-flow.Richard Scheffenegger2020-10-096-0/+109
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This adds a new IP_PROTO / IPV6_PROTO setsockopt (getsockopt) option IP(V6)_VLAN_PCP, which can be set to -1 (interface default), or explicitly to any priority between 0 and 7. Note that for untagged traffic, explicitly adding a priority will insert a special 801.1Q vlan header with vlan ID = 0 to carry the priority setting Reviewed by: gallatin, rrs MFC after: 2 weeks Sponsored by: NetApp, Inc. Differential Revision: https://reviews.freebsd.org/D26409 Notes: svn path=/head/; revision=366569
* | Fix EINVAL message when CPU binding information is requested for IRQ.Andrey V. Elsukov2020-10-091-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | `cpuset -g -x N` along with requested information always prints message `cpuset: getdomain: Invalid argument'. The EINVAL is returned from kern_cpuset_getdomain(), since it doesn't expect CPU_LEVEL_WHICH and CPU_WHICH_IRQ parameters. To fix the error, do not call cpuset_getdomain() when `-x' is specified. MFC after: 1 week Notes: svn path=/head/; revision=366568
* | Extend netstat to display TCP stack and detailed congestion state (2)Richard Scheffenegger2020-10-092-1/+14
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Extend netstat to display TCP stack and detailed congestion state Adding the "-c" option used to show detailed per-connection congestion control state for TCP sessions. This is one summary patch, which adds the relevant variables into xtcpcb. As previous "spare" space is used, these changes are ABI compatible. Reviewed by: tuexen MFC after: 2 weeks Sponsored by: NetApp, Inc. Differential Revision: https://reviews.freebsd.org/D26518 Notes: svn path=/head/; revision=366567
* | Extend netstat to display TCP stack and detailed congestion stateRichard Scheffenegger2020-10-094-10/+67
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Adding the "-c" option used to show detailed per-connection congestion control state for TCP sessions. This is one summary patch, which adds the relevant variables into xtcpcb. As previous "spare" space is used, these changes are ABI compatible. Reviewed by: tuexen MFC after: 2 weeks Sponsored by: NetApp, Inc. Differential Revision: https://reviews.freebsd.org/D26518 Notes: svn path=/head/; revision=366566
* | MFV: r366539Jung-uk Kim2020-10-0933-108/+516
|\ \ | | | | | | | | | | | | | | | | | | Merge ACPICA 20200925. Notes: svn path=/head/; revision=366562
| * | Import ACPICA 20200925.vendor/acpica/20200925Jung-uk Kim2020-10-0838-114/+523
| | | | | | | | | | | | | | | Notes: svn path=/vendor-sys/acpica/dist/; revision=366539 svn path=/vendor-sys/acpica/20200925/; revision=366540; tag=vendor/acpica/20200925
* | | Correct the primary to find(1)Li-Wen Hsu2020-10-091-1/+1
| | | | | | | | | | | | | | | | | | | | | Sponsored by: The FreeBSD Foundation Notes: svn path=/head/; revision=366561
* | | Remove now-unused filesWarner Losh2020-10-092-73/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | makeLINT.mk isn't needed or used anymore, remove it and all the files it uses. Reviewed by: kevans Differential Revision: https://reviews.freebsd.org/D26540 Notes: svn path=/head/; revision=366560
* | | Create in-tree LINT filesWarner Losh2020-10-0918-27/+114
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Now that config(8) has supported include for 19 years, transition to including the NOTES files. include support didn't exist at the time, nor did the envvar stuff recently added. Now that it does, eliminate the building of LINT files by just including everything you need. Note: This may cause conflicts with updating in some cases. find sys -name LINT\* -rm is suggested across this commit to remove the generated LINT files. Reviewed by: kevans Differential Revision: https://reviews.freebsd.org/D26540 Notes: svn path=/head/; revision=366559
* | | Make vn_generic_copy_file_range() interruptible via a signal.Rick Macklem2020-10-091-3/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Without this patch, when vn_generic_copy_file_range() is doing a large copy, it will remain in the function for a considerable amount of time, delaying handling of any outstanding signals until the copy completes. This patch adds checks for signals that need to be processed after each successful data copy cycle. When sig_intr() returns non-zero, vn_generic_copy_file_range() will return. The check "if (len < savlen)" ensures that some data has been copied, so that progress will be made. Note that, since copy_file_range(2) is allowed to return fewer bytes copied than requested, it will never return EINTR/ERESTART when sig_intr() returns non-zero. Reviewed by: kib, asomers Differential Revision: https://reviews.freebsd.org/D26620 Notes: svn path=/head/; revision=366557
* | | Stop ignoring makeLINT generated filesWarner Losh2020-10-091-16/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | We're going to check these files in shortly since we don't need to generate them anymore. Generated files cause issues for different work flows anyway. Reviewed by: kevans Differential Revision: https://reviews.freebsd.org/D26540 Notes: svn path=/head/; revision=366556
* | | Eliminate building LINT makefilesWarner Losh2020-10-091-10/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | LINT config files are about to be checked in directly. Eliminate building them by hand here from NOTES files. Reviewed by: kevans Differential Revision: https://reviews.freebsd.org/D26540 Notes: svn path=/head/; revision=366555
* | | Initial support for implementing the bootXXX.efi workaroundWarner Losh2020-10-091-0/+24
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Too many version of UEFI firmware (so far only confirmed on amd64) don't really support efibootmgr selection of boot. That's the most reliable, when it works, since there's no guesswork. However, many do not save, unmolested, the variables that efibootmgr sets, so as a fallback we also install loader.efi as bootXXX.efi (where XXX is either aa64 or x64) if it doesn't already exist in /efi/boot on the ESP. The standard only defines this for removable devices, but it's almost ubiquitously used as a fallback. Many BIOSes implement a drive selection feature that takes over the efibootmgr protocol, rendinering it useless (either generally, or for those vendors not on the short list). bootxxx.efi works around this. However, we don't install it unconditionally there, as that breaks some popular multi-boot setups. MFC After: 1 week Differential Revision: https://reviews.freebsd.org/D26428 Notes: svn path=/head/; revision=366554
* | | vm_page_dump_index_to_pa(): Add braces to the expression involving + and &.Konstantin Belousov2020-10-081-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The precedence of the '&' operator is less than of '+'. Added braces do change the order of evaluation into the natural one, in my opinion. On the other hand, the value of the expression should not change since all elements should have page-aligned values. This fixes a gcc warning reported. Reported by: adrian Sponsored by: The FreeBSD Foundation MFC after: 1 week Notes: svn path=/head/; revision=366552
* | | Do not leak B_BARRIER.Konstantin Belousov2020-10-081-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Normally when a buffer with B_BARRIER is written, the flag is cleared by g_vfs_strategy() when creating bio. But in some cases FFS buffer might not reach g_vfs_strategy(), for instance when copy-on-write reports an error like ENOSPC. In this case buffer is returned to dirty queue and might be written later by other means. Among then bdwrite() reasonably asserts that B_BARRIER is not set. In fact, the only current use of B_BARRIER is for lazy inode block initialization, where write of the new inode block is fenced against cylinder group write to mark inode as used. The situation could be seen that we break dependency by updating cg without written out inode. Practically since CoW was not able to find space for a copy of inode block, for the same reason cg group block write should fail. Reported by: pho Discussed with: chs, imp, mckusick Sponsored by: The FreeBSD Foundation MFC after: 1 week Differential revision: https://reviews.freebsd.org/D26511 Notes: svn path=/head/; revision=366551
* | | sig_intr(9): return early if AST is not scheduled.Konstantin Belousov2020-10-081-0/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Check td_flags for relevant AST requests lock-less. This opens the race slightly wider where sig_intr() returns false negative, but might be it is worth it. Requested by: mjg Sponsored by: The FreeBSD Foundation MFC after: 1 week Notes: svn path=/head/; revision=366550
* | | Do not allow to use O_BENEATH as an oracle.Konstantin Belousov2020-10-081-1/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Specifically, if lookup() returned any error and the topping directory was not latched, which means that (non-existent) path did not returned to the topping location, give ENOTCAPABLE a priority over the lookup() error. PR: 249960 Reviewed by: emaste, ngie Sponsored by: The FreeBSD Foundation MFC after: 1 week Differential revision: https://reviews.freebsd.org/D26695 Notes: svn path=/head/; revision=366549
* | | [PowerPC] add machdep.uprintf_signal sysctlAlfredo Dal'Ava Junior2020-10-081-0/+13
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add support for sysctl 'machdep.uprintf_signal' that prints debugging information on trap signal. Reviewed by: jhibbits, luporl, bdragon Sponsored by: Eldorado Research Institute (eldorado.org.br) Differential Revision: https://reviews.freebsd.org/D26004 Notes: svn path=/head/; revision=366548
* | | timer_restore is now unused, remove itWarner Losh2020-10-082-21/+0
| | | | | | | | | | | | | | | | | | | | | | | | apm was the only consumer of timer_restore. Now that it's gone, this can be removed. Notes: svn path=/head/; revision=366547
* | | Remove APM BIOS supportWarner Losh2020-10-086-1684/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | APM BIOS was relevant only to early laptops (approximately P166 or P200 and slower). These have not been relevant for a long time, and this code has been untested for a long time (as far as I can tell). The APM compat code in ACPI and the apm(8) command is not being retired. Both of these items are still in use (apm(8) is more scriptable than the replacement acpiconf, for the most part). This has been commented out of i386 GENERIC since 2002. This code is not relevant to any other port. Discussed on: arch@ Notes: svn path=/head/; revision=366546
* | | Remove apm screen saver.Warner Losh2020-10-084-16/+1
| | | | | | | | | | | | | | | | | | | | | | | | APM BIOS support is about to be removed. Remove the apm screen saver and its module. They are about to be irrelevant. Notes: svn path=/head/; revision=366545
* | | Remove apm moduleWarner Losh2020-10-082-14/+0
| | | | | | | | | | | | | | | | | | | | | | | | The apm code is about to be removed. Remove the module since it's about to be useless. Notes: svn path=/head/; revision=366544
* | | Fix a loop conditionMitchell Horne2020-10-081-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The correct way to identify the end of the metadata is two adjacent entries set to zero/MODINFO_END. I made a typo and this was checking the first entry twice. Reported by: rpokala Sponsored by: NetApp, Inc. Sponsored by: Klara, Inc. Notes: svn path=/head/; revision=366543
* | | Add a routine to dump boot metadataMitchell Horne2020-10-086-0/+289
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The boot metadata (also referred to as modinfo, or preload metadata) provides information about the size and location of the kernel, pre-loaded modules, and other metadata (e.g. the EFI framebuffer) to be consumed during by the kernel during early boot. It is encoded as a series of type-length-value entries and is usually constructed by loader(8) and passed to the kernel. It is also faked on some architectures when booted by other means. Although much of the module information is available via kldstat(8), there is no easy way to debug the metadata in its entirety. Add some routines to parse this data and allow it to be printed to the console during early boot or output via a sysctl. Since the output can be lengthly, printing to the console is gated behind the debug.dump_modinfo_at_boot kenv variable as well as the BOOTVERBOSE flag. The sysctl to print the metadata is named debug.dump_modinfo. Reviewed by: tsoome Sponsored by: NetApp, Inc. Sponsored by: Klara, Inc. Differential Revision: https://reviews.freebsd.org/D26687 Notes: svn path=/head/; revision=366542
* | | Race in 32-bit fixedWarner Losh2020-10-081-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | Use install insteald of install.sh for 32-bit builds to fight races there. Reviewed by: markj Notes: svn path=/head/; revision=366541
* | | [pf] /etc/rc.d/pf should REQUIRE routingPawel Biernacki2020-10-081-2/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | When a system with pf_enable="YES" in /etc/rc.conf uses hostnames in /etc/pf.conf, these hostnames cannot be resolved via external nameservers because the default route is not yet set. This results in an empty (all open) ruleset. Since r195026 already put netif back to REQUIRE, this change does not affect the issue that the firewall should rather have been setup before any network traffic can occur. PR: 211928 Submitted by: Robert Schulze Reported by: Robert Schulze Tested by: Mateusz Kwiatkowski No objections from: kp MFC after: 3 days Notes: svn path=/head/; revision=366537
* | | Try a bit harder to get the USB device descriptor in case the initial read ↵Hans Petter Selasky2020-10-081-3/+17
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | fails. MFC after: 1 week Sponsored by: Mellanox Technologies // NVIDIA Networking Notes: svn path=/head/; revision=366536
* | | The ethernet header structure is read-only. Add const keyword.Hans Petter Selasky2020-10-081-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | (This is a diff reduction towards D26254) MFC after: 1 week Sponsored by: Mellanox Technologies // NVIDIA Networking Notes: svn path=/head/; revision=366535
* | | Remove yet another useless assignment, adding a KASSERT just in case.Edward Tomasz Napierala2020-10-081-6/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | Reviewed by: kp Sponsored by: DARPA Differential Revision: https://reviews.freebsd.org/D26698 Notes: svn path=/head/; revision=366534
* | | Allow evdev's rcpt_mask and sysmouse_t_axis parameters to be specified inHans Petter Selasky2020-10-081-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | /boot/loader.conf . MFC after: 1 week Sponsored by: Mellanox Technologies // NVIDIA Networking Notes: svn path=/head/; revision=366533
* | | cxgbe(4): knobs to drop various kinds of undesirable frames on ingress.Navdeep Parhar2020-10-082-2/+89
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | These kind of drops come for free in the sense that they do not use the filter TCAM or any other resource that wouldn't normally be used during rx. Frames dropped by the hardware get counted in the MAC's rx stats but are not delivered to the driver. hw.cxgbe.attack_filter Set to 1 to enable the "attack filter". Default is 0. The attack filter will drop an incoming frame if any of these conditions is true: src ip/ip6 == dst ip/ip6; tcp and src/dst ip is not unicast; src/dst ip is loopback (127.x.y.z); src ip6 is not unicast; src/dst ip6 is loopback (::1/128) or unspecified (::/128); tcp and src/dst ip6 is mcast (ff00::/8). hw.cxgbe.drop_ip_fragments Set to 1 to drop all incoming IP fragments. Default is 0. Note that this drops valid frames. hw.cxgbe.drop_pkts_with_l2_errors Set to 1 to drop incoming frames with Layer 2 length or checksum errors. Default is 1. hw.cxgbe.drop_pkts_with_l3_errors Set to 1 to drop incoming frames with IP version, length, or checksum errors. Default is 0. hw.cxgbe.drop_pkts_with_l4_errors Set to 1 to drop incoming frames with Layer 4 length, checksum, or other errors. Default is 0. MFC after: 2 weeks Sponsored by: Chelsio Communications Notes: svn path=/head/; revision=366532
* | | Import tzdata 2020bPhilip Paeps2020-10-0818-315/+521
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Changes: https://github.com/eggert/tz/blob/2020b/NEWS MFC after: 3 days Notes: svn path=/head/; revision=366529
| * | | Import tzdata 2020bvendor/tzdata/tzdata2020bPhilip Paeps2020-10-0818-315/+521
| | | | | | | | | | | | | | | | | | | | Notes: svn path=/vendor/tzdata/dist/; revision=366527 svn path=/vendor/tzdata/tzdata2020b/; revision=366528; tag=vendor/tzdata/tzdata2020b
* | | | Handle kmod local relocation failures gracefullyMitchell Horne2020-10-071-6/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | It is possible for elf_reloc_local() to fail in the unlikely case of an unsupported relocation type. If this occurs, do not continue to process the file. Reviewed by: kib, markj (earlier version) MFC after: 1 week Sponsored by: NetApp, Inc. Sponsored by: Klara, Inc. Differential Revision: https://reviews.freebsd.org/D26701 Notes: svn path=/head/; revision=366526
* | | | net80211: whitespaceBjoern A. Zeeb2020-10-071-4/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Fix indentation for the multi-line copies of ieee80211_add_channel_list_5ghz() for the 3 bands. MFC after: 1 week Sponsored by: The FreeBSD Foundation Notes: svn path=/head/; revision=366525
* | | | 80211: ifconfig replace MS() with _IEEE80211_MASKSHIFT()Bjoern A. Zeeb2020-10-071-10/+17
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | As we did in the kernel in r366112 replace the MS() macro with the version(s) added to the kernel: _IEEE80211_MASKSHIFT(). Also provide its counter part. This will later allow use to use other macros defined in net80211 headers here in ifconfig. MFC after: 1 week Sponsored by: The FreeBSD Foundation Notes: svn path=/head/; revision=366524
* | | | LinuxKPI: add a bitfield.h implementation.Bjoern A. Zeeb2020-10-071-0/+105
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This code was iteratively implemented during the work on various WiFi drivers -- from individual functions to a macro-created implementations for the various bit sized needed (and then extended to more for comepleteness). Some of the bit combinations do not seem to make sense so are left out. The __bf_shf(x) was obtained from D26681 [1]. Requested by: manu [1] Reviewed by: hselasky, manu MFC after: 1 week Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D26708 Notes: svn path=/head/; revision=366523
* | | | 80211: non-functional changesBjoern A. Zeeb2020-10-074-10/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Sort a few VHT160 and 80+80 lines, update some comments, and remove a superfluous ','. No functional changes intended. MFC after: 1 week Sponsored by: The FreeBSD Foundation Notes: svn path=/head/; revision=366522
* | | | bhyveload(8): Implement loader_callbacks::diskwriteConrad Meyer2020-10-071-2/+18
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The method was optional prior to r365938, which made it mandatory but did add any test that an implementation provides the method nor implement it for bhyveload. The code path might not be hit unless the user's loader was configured to write to a file on disk, such as with nextboot(8). Reviewed by: grehan, tsoome Approved by: bhyve X-MFC-With: r365938 Differential Revision: https://reviews.freebsd.org/D26710 Notes: svn path=/head/; revision=366521
* | | | Print symbol index for unsupported relocation typesMitchell Horne2020-10-078-40/+45
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | It is unlikely, but possible, that an unrecognized or unsupported relocation type is encountered while trying to load a kernel module. If this occurs we should offer the symbol index as a hint to the user. While here, fix some small style issues. Reviewed by: markj, kib (amd64 part, in D26701) Sponsored by: NetApp, Inc. Sponsored by: Klara, Inc. Notes: svn path=/head/; revision=366519
* | | | Properly cleanup driver during remove_one() in mlx5core.Hans Petter Selasky2020-10-071-3/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Cleanup all host resources, SYSCTLs, MSIX vectors and memory used by the host and only leave the device allocated memory behind, if any, because it may still be in use, when the PCI remove function is called. Else future probe calls may fail due to SYSCTLs already existing. MFC after: 1 week Sponsored by: Mellanox Technologies // NVIDIA Networking Notes: svn path=/head/; revision=366518