1. 03 Dec, 2021 26 commits
  2. 02 Dec, 2021 14 commits
    • Cy Schubert's avatar
      wpa: Redo import wpa_supplicant/hostapd commit 14ab4a816 · 4b72b91a
      Cy Schubert authored
      This is the November update to vendor/wpa committed upstream 2021-11-26.
      
      MFC after:	1 month
      4b72b91a
    • Alexander Motin's avatar
      APEI: Improve multiple error sources handling. · 2dfc1f73
      Alexander Motin authored
      Some AMD systems I have report 8 NMI and 3591 polled error sources.
      Previous code could handle only one NMI source and used separate
      callout for each polled source.  New code can handle multiple NMIs
      and groups polled sources by power of 2 of the polling period.
      
      MFC after:	2 weeks
      2dfc1f73
    • Konstantin Belousov's avatar
      procstat_getfiles_sysctl: do not require non-null ki_fd · 7a9423d6
      Konstantin Belousov authored
      ki_fd is legitimately NULL when 32bit process requests process data
      from 64bit host kernel.  The field is not used by the code for sysctl
      case;  procstat_getfiles_kvm() checks ki_fd.
      
      PR:	260174
      Reported by:	Damjan Jovanovic <damjan.jov@gmail.com>
      Sponsored by:	The FreeBSD Foundation
      MFC after:	1 week
      7a9423d6
    • Konstantin Belousov's avatar
      Style · 0ea3e4a2
      Konstantin Belousov authored
      Sponsored by:	The FreeBSD Foundation
      MFC after:	1 week
      0ea3e4a2
    • Cy Schubert's avatar
      Revert "wpa: Import wpa_supplicant/hostapd commit 14ab4a816" · db0ac6de
      Cy Schubert authored
      This reverts commit 266f97b5, reversing
      changes made to a10253cf.
      
      A mismerge of a merge to catch up to main resulted in files being
      committed which should not have been.
      db0ac6de
    • Cy Schubert's avatar
      wpa: Import wpa_supplicant/hostapd commit 14ab4a816 · 266f97b5
      Cy Schubert authored
      This is the November update to vendor/wpa committed upstream 2021-11-26.
      
      MFC after:      1 month
      266f97b5
    • Warner Losh's avatar
      mps(4): Fix unmatched devq release. · a10253cf
      Warner Losh authored
      Port 9781c28c and a8837c77 to the mps driver.  Before this
      change devq was frozen only if some command was sent to the target after
      reset started, but release was called always.  This change freezes the
      devq immediately, leaving mprsas_action_scsiio() check only to cover
      race condition due to different lock devq use.
      
      This should also avoid unnecessary requeue of the commands, creating
      additional log noise and confusing some broken apps. It also avoids a
      'busy' requeue of I/Os failing when we're doing recovery that takes
      longer than the normal busy timeout. These I/Os failing can lead to
      filesystems being unmounted in the force unmount case for I/O errors.
      
      Sponsored by:		Netflix
      Reviewed by:		mav
      Differential Revision:	https://reviews.freebsd.org/D33228
      a10253cf
    • Gleb Smirnoff's avatar
      ip_input: remove pointless check in INP_RECVIF handling · 3cce6164
      Gleb Smirnoff authored
      An mbuf rcvif pointer is supposed to be valid and doesn't
      need extra checks.  The code appeared in d314ad7b.
      3cce6164
    • Mateusz Piotrowski's avatar
      rc: Hook zfskeys to the build · bfb7a31b
      Mateusz Piotrowski authored
      Reviewed by:	allanjude
      Approved by:	allanjude (src)
      MFC after:	3 days
      Sponsored by:	Modirum MDPay
      Differential Revision:	https://reviews.freebsd.org/D33230
      bfb7a31b
    • Gleb Smirnoff's avatar
      epoch: with EPOCH_TRACE add epoch_where_report() · d96fccc5
      Gleb Smirnoff authored
      which will report where the epoch was entered and also
      mark the tracker, so that exit will also be reported.
      
      Helps to understand epoch entrance/exit scenarios in
      complex cases, like network stack.  As everything else
      under EPOCH_TRACE it is a developer only tool.
      d96fccc5
    • Gleb Smirnoff's avatar
      ifnet: enable & fix if_debug build · 9e93d2b3
      Gleb Smirnoff authored
      Fixes:	ce40632a
      9e93d2b3
    • Gleb Smirnoff's avatar
      tcp_hpts: rewrite inpcb synchronization · 2e27230f
      Gleb Smirnoff authored
      Just trust the pcb database, that if we did in_pcbref(), no way
      an inpcb can go away.  And if we never put a dropped inpcb on
      our queue, and tcp_discardcb() always removes an inpcb to be
      dropped from the queue, then any inpcb on the queue is valid.
      
      Now, to solve LOR between inpcb lock and HPTS queue lock do the
      following trick.  When we are about to process a certain time
      slot, take the full queue of the head list into on stack list,
      drop the HPTS lock and work on our queue.  This of course opens
      a race when an inpcb is being removed from the on stack queue,
      which was already mentioned in comments.  To address this race
      introduce generation count into queues.  If we want to remove
      an inpcb with generation count mismatch, we can't do that, we
      can only mark it with desired new time slot or -1 for remove.
      
      Reviewed by:		rrs
      Differential revision:	https://reviews.freebsd.org/D33026
      2e27230f
    • Gleb Smirnoff's avatar
      tcp_hpts: rename input queue to drop queue and trim dead code · f971e791
      Gleb Smirnoff authored
      The HPTS input queue is in reality used only for "delayed drops".
      When a TCP stack decides to drop a connection on the output path
      it can't do that due to locking protocol between main tcp_output()
      and stacks.  So, rack/bbr utilize HPTS to drop the connection in
      a different context.
      
      In the past the queue could also process input packets in context
      of HPTS thread, but now no stack uses this, so remove this
      functionality.
      
      Reviewed by:		rrs
      Differential revision:	https://reviews.freebsd.org/D33025
      f971e791
    • Gleb Smirnoff's avatar
      tcp_hpts: make struct tcp_hpts_entry private to the module. · b0a7c008
      Gleb Smirnoff authored
      Also, make some of the functions also private to the module. Remove
      unused functions discovered after that.
      
      Reviewed by:		rrs
      Differential revision:	https://reviews.freebsd.org/D33024
      b0a7c008