1. 23 Mar, 2021 6 commits
    • Hans Petter Selasky's avatar
      MFC dfb33cb0: · 3e4fe9ca
      Hans Petter Selasky authored
      Allocating the LinuxKPI current structure from a software interrupt thread
      must be done using the M_NOWAIT flag after 1ae20f7c .
      
      Sponsored by:	Mellanox Technologies // NVIDIA Networking
      
      (cherry picked from commit dfb33cb0)
      3e4fe9ca
    • Hans Petter Selasky's avatar
      MFC d1cbe790: · 093204e2
      Hans Petter Selasky authored
      Allocating the LinuxKPI current structure from an interrupt thread must be
      done using the M_NOWAIT flag after 1ae20f7c .
      
      Sponsored by:	Mellanox Technologies // NVIDIA Networking
      
      (cherry picked from commit d1cbe790)
      093204e2
    • Hans Petter Selasky's avatar
      MFC 6eb60f5b: · dd426d67
      Hans Petter Selasky authored
      Use the word "LinuxKPI" instead of "Linux compatibility", to not confuse with
      user-space Linux compatibility support. No functional change.
      
      Sponsored by:	Mellanox Technologies // NVIDIA Networking
      
      (cherry picked from commit 6eb60f5b)
      dd426d67
    • Hans Petter Selasky's avatar
      MFC ebe5cf35: · 77381150
      Hans Petter Selasky authored
      Implement basic support for allocating memory from a specific numa node
      in the LinuxKPI.
      
      Differential Revision:	https://reviews.freebsd.org/D29077
      Reviewed by:	markj@ and kib@
      Sponsored by:	Mellanox Technologies // NVIDIA Networking
      
      (cherry picked from commit ebe5cf35)
      77381150
    • Hans Petter Selasky's avatar
      MFC c743a6bd: · 7d7ed022
      Hans Petter Selasky authored
      Implement mallocarray_domainset(9) variant of mallocarray(9).
      
      Reviewed by:	kib @
      Sponsored by:	Mellanox Technologies // NVIDIA Networking
      
      (cherry picked from commit c743a6bd)
      7d7ed022
    • Mark Johnston's avatar
      stand: Load INIT_ARRAY and FINI_ARRAY sections · 7cde0b06
      Mark Johnston authored
      This is required for preloading modules into a KASAN-configured kernel.
      
      Sponsored by:	The FreeBSD Foundation
      
      (cherry picked from commit 7b1b5aad)
      7cde0b06
  2. 22 Mar, 2021 8 commits
    • John Baldwin's avatar
      nlmrsa: Mark deprecated for 14. · 30e25f93
      John Baldwin authored
      This is the only in-tree driver for the asymmetric crypto support in
      OCF that is already marked deprecated for 14.
      
      Sponsored by:	Chelsio Communications
      
      (cherry picked from commit 096a8472)
      30e25f93
    • John Baldwin's avatar
      iscsi: Mark iSCSI CAM sims as non-pollable. · 6a1dbc8b
      John Baldwin authored
      Previously, iscsi_poll() just panicked.  This meant if you got a panic
      on a box when using the iSCSI initiator, the attempt to shutdown would
      trigger a nested panic and never write out a core.  Now, CCB's sent to
      iSCSI devices (such as the sychronize-cache request in dashutdown())
      just fail with a timeout during a panic shutdown.
      
      Sponsored by:	Chelsio
      
      (cherry picked from commit 47769bc5)
      6a1dbc8b
    • John Baldwin's avatar
      cam: Don't permit crashdumps on non-pollable devices. · 9df8f5a9
      John Baldwin authored
      If a disk's SIM doesn't support polling, then it can't be used to
      store crashdumps.  Leave d_dump NULL in that case so that dumpon(8)
      fails gracefully rather than having dumps fail at crash time.
      
      Sponsored by:	Chelsio
      
      (cherry picked from commit e07ac3f2)
      9df8f5a9
    • John Baldwin's avatar
      cam: Permit non-pollable sims. · 444aff36
      John Baldwin authored
      Some CAM sim drivers do not support polling (notably iscsi(4)).
      Rather than using a no-op poll routine that always times out requests,
      permit a SIM to set a NULL poll callback.  cam_periph_runccb() will
      fail polled requests non-pollable sims immediately as if they had
      timed out.
      
      Sponsored by:	Chelsio
      
      (cherry picked from commit 447b3557)
      (cherry picked from commit e6405c8c)
      444aff36
    • Mitchell Horne's avatar
      armv8crypto: note derivation in armv8_crypto_wrap.c · b3598ed4
      Mitchell Horne authored
      This file inherits some boilerplate and structure from the analogous
      file in aesni(4), aesni_wrap.c. Note the derivation and the copyright
      holders of that file.
      
      For example, the AES-XTS bits added in 4979620e were ported from
      aesni(4).
      
      Requested by:	jmg
      Reviewed by:	imp, gnn
      
      (cherry picked from commit da45b462)
      b3598ed4
    • Mark Johnston's avatar
      iflib: Make if_shared_ctx_t a pointer to const · 46f44865
      Mark Johnston authored
      This structure is shared among multiple instances of a driver, so we
      should ensure that it doesn't somehow get treated as if there's a
      separate instance per interface.  This is especially important for
      software-only drivers like wg.
      
      DEVICE_REGISTER() still returns a void * and so the per-driver sctx
      structures are not yet defined with the const qualifier.
      
      Reviewed by:	gallatin, erj
      Sponsored by:	The FreeBSD Foundation
      Differential Revision:	https://reviews.freebsd.org/D29102
      
      (cherry picked from commit ffe3def9)
      46f44865
    • Leandro Lupori's avatar
      ofwfb: fix boot on LE · 3aa6cc00
      Leandro Lupori authored
      Some framebuffer properties obtained from the device tree were not being
      properly converted to host endian.
      Replace OF_getprop calls by OF_getencprop where needed to fix this.
      
      This fixes boot on PowerPC64 LE, when using ofwfb as the system console.
      
      Reviewed by:    bdragon
      Sponsored by:   Eldorado Research Institute (eldorado.org.br)
      MFC after:      1 week
      Differential Revision:  https://reviews.freebsd.org/D27475
      
      (cherry picked from commit 043577b7)
      3aa6cc00
    • Alexander Motin's avatar
      Include ccompile.h after opt_global.h. · 0cb06bcc
      Alexander Motin authored
      This restores INVARIANTS enabling ZFS_DEBUG when built as module.
      
      Discussed with:	freqlabs
      MFC after:	1 week
      
      (cherry picked from commit 8ea35c45)
      0cb06bcc
  3. 21 Mar, 2021 6 commits
    • Mike Karels's avatar
      genet: Fix problem with forwarding some TCP/IPv6 packets · 35e7b6bf
      Mike Karels authored
      TCP/IPv6 packets to be forwarded can be laid out with only the Ethernet
      header in the first mbuf, and these packets are lost.  There was a
      previous hack to pullup ICMPv6 packets with such a layout for the
      same reason.  Generalize, and pullup any IPv6 packets with only the
      Ethernet header in the first mbuf.  Possibly this should also include
      IPv4, but that situation has not been observed to fail.
      
      PR:		254060
      Reported by:	denis at h3q.com
      MFC after:	3 days
      
      (cherry picked from commit 2bdcf623)
      35e7b6bf
    • Stefan Eßer's avatar
      Vendor import of bc 3.3.4 · cd0355bd
      Stefan Eßer authored
      This update performs an implicit flush of the output when a script
      calls read() in case a prompt is to be displayed in line-buffered
      output mode.
      
      (cherry picked from commit 893ecb52)
      cd0355bd
    • Dmitry Chagin's avatar
      Merge tcsh 6.22.03-ceccc7f · ea1f0ecc
      Dmitry Chagin authored
      PR:		252663
      
      (cherry picked from commit 5224c2a3)
      ea1f0ecc
    • Alan Somers's avatar
      Speed up geom_stats_resync in the presence of many devices · 2d1c1645
      Alan Somers authored
      The old code had a O(n) loop, where n is the size of /dev/devstat.
      Multiply that by another O(n) loop in devstat_mmap for a total of
      O(n^2).
      
      This change adds DIOCGMEDIASIZE support to /dev/devstat so userland can
      quickly determine the right amount of memory to map, eliminating the
      O(n) loop in userland.
      
      This change decreases the time to run "gstat -bI0.001" with 16,384 md
      devices from 29.7s to 4.2s.
      
      Also, fix a memory leak first reported as PR 203097.
      
      Sponsored by:	Axcient
      Reviewed by:	mav, imp
      Differential Revision:	https://reviews.freebsd.org/D28968
      
      (cherry picked from commit ab63da35)
      2d1c1645
    • Alan Somers's avatar
      fortune: add a tip about gstat · aa9ff8f7
      Alan Somers authored
      (cherry picked from commit 60a632f0)
      aa9ff8f7
    • Alan Somers's avatar
      fusefs: set d_off during VOP_READDIR · dc559c84
      Alan Somers authored
      This allows d_off to be used with lseek to position the file so that
      getdirentries(2) will return the next entry.  It is not used by
      readdir(3).
      
      PR:		253411
      Reported by:	John Millikin <jmillikin@gmail.com>
      Reviewed by:	cem
      Differential Revision:	https://reviews.freebsd.org/D28605
      
      (cherry picked from commit 71befc35)
      dc559c84
  4. 20 Mar, 2021 8 commits
  5. 19 Mar, 2021 11 commits
  6. 18 Mar, 2021 1 commit