1. 09 Mar, 2021 14 commits
    • Kyle Evans's avatar
      wg(4): note the persistent-keepalive ifconfig(8) option · ce53f92e
      Kyle Evans authored
      MFC after:	3 days
      Fixes:	b3dac391
    • Hans Petter Selasky's avatar
      Implement basic support for allocating memory from a specific numa node · ebe5cf35
      Hans Petter Selasky authored
      in the LinuxKPI.
      Differential Revision:	https://reviews.freebsd.org/D29077
      Reviewed by:	markj@ and kib@
      MFC after:	1 week
      Sponsored by:	Mellanox Technologies // NVIDIA Networking
    • Kyle Evans's avatar
      if_wg: export tx_bytes, rx_bytes, and last_handshake · 94dddbfd
      Kyle Evans authored
      The names are self-explanatory; these are currently only used by the
      wg(8) tool, but they are handy data points to have.
      Reviewed by:	grehan
      MFC after:	3 days
      Discussed with:	decke
      Differential Revision:	https://reviews.freebsd.org/D29143
    • Kyle Evans's avatar
      iflib: allow clone detach if not yet init · 0dd691b4
      Kyle Evans authored
      If we hit an error during init, then we'll unwind our state and attempt
      to detach the device -- don't block it.
      This was discovered by creating a wg0 with missing parameters; said
      failure ended up leaving this orphaned device in place and ended up
      panicking the system upon enumeration of the dev.* sysctl space.
      Reviewed by:	gallatin, markj
      MFC after:	3 days
      Differential Revision:	https://reviews.freebsd.org/D29145
    • Kyle Evans's avatar
      if_wg: wg_input: remove a couple locals (NFC) · 299f8977
      Kyle Evans authored
      We have no use for the udphdr or this hlen local, just spell out the
      addition inline.
      MFC after:	3 days
      Reviewed by:	grehan, markj
      Differential Revision:	https://reviews.freebsd.org/D29142
    • Jason A. Harmening's avatar
      amd64 pmap: convert to counter(9), add PV and pagetable page counts · e4b8deb2
      Jason A. Harmening authored
      This change converts most of the counters in the amd64 pmap from
      global atomics to scalable counter(9) counters.  Per discussion
      with kib@, it also removes the handrolled per-CPU PCID save count
      as it isn't considered generally useful.
      The bulk of these counters remain guarded by PV_STATS, as it seems
      unlikely that they will be useful outside of very specific debugging
      scenarios.  However, this change does add two new counters that
      are available without PV_STATS.  pt_page_count and pv_page_count
      track the number of active physical-to-virtual list pages and page
      table pages, respectively.  These will be useful in evaluating
      the memory footprint of pmap structures under various workloads,
      which will help to guide future changes in this area.
      Reviewed by:	kib
      Differential Revision:	https://reviews.freebsd.org/D28923
    • Leandro Lupori's avatar
      ofwfb: fix boot on LE · 043577b7
      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
    • Baptiste Daroussin's avatar
      Revert "rc: implement parallel boot" · f61831d2
      Baptiste Daroussin authored
      This is not ready yet for prime time
      This reverts commit 763db589.
      This reverts commit f1ab7999.
      This reverts commit 6e822e99.
      This reverts commit 77e1ccbe.
    • Kyle Evans's avatar
      ifconfig: allow displaying/setting persistent-keepalive · b3dac391
      Kyle Evans authored
      The kernel-side already accepted a persistent-keepalive-interval, so
      just add a verb to ifconfig(8) for it and start exporting it so that
      ifconfig(8) can view it.
      PR:		253790
      MFC after:	3 days
      Discussed with:	decke
    • Kyle Evans's avatar
      ifconfig: wg: stop requiring peer endpoints · 172a8241
      Kyle Evans authored
      The way that wireguard is designed does not actually require all peers
      to have endpoints. In an architecture that might mimic a traditional
      VPN server <-> client, the wg interface on a server would have a number
      of peers without set endpoints -- the expectation is that the "clients"
      will connect to the "server" peer, which will authenticate the
      connection as a known peer and learn the endpoint from there.
      MFC after:	3 days
      Discussed with:	decke, grehan (independently)
    • Kyle Evans's avatar
      kern: malloc: fix panic on M_WAITOK during THREAD_NO_SLEEPING() · 1ae20f7c
      Kyle Evans authored
      Simple condition flip; we wanted to panic here after epoch_trace_list().
      Reviewed by:	glebius, markj
      MFC after:	3 days
      Differential Revision:	https://reviews.freebsd.org/D29125
    • Kyle Evans's avatar
      if_wg: avoid sleeping under the net epoch · e80e371d
      Kyle Evans authored
      No sleeping allowed here, so avoid it.  Collect the subset of data we
      want inside of the epoch, as we'll need extra allocations when we add
      items to the nvlist.
      Reviewed by:	grehan (earlier version), markj
      MFC after:	3 days
      Differential Revision:	https://reviews.freebsd.org/D29124
    • Kyle Evans's avatar
      if_wg: return to m_defrag() of incoming mbuf, sans leak · bae59285
      Kyle Evans authored
      This partially reverts df554850 but still fixes the leak. It was
      overlooked (sigh) that some packets will exceed MHLEN and cannot be
      physically contiguous without clustering, but we don't actually need
      it to be. m_defrag() should pull up enough for any of the headers that
      we do need to be accessible.
      Fixes:	df554850
      Pointy hat;	kevans
    • Rick Macklem's avatar
      mountd(8): generate a syslog message when the "V4:" line is missing · 09673fc0
      Rick Macklem authored
      Daniel reported that NFSv4 mounts were not working despite having
      set "nfsv4_server_enable=YES" in /etc/rc.conf.  Mountd was logging a
      message that there was no /etc/exports file.
      He noted that creating a /etc/exports file with a "V4:" line in it
      was needed make NFSv4 mounts work.
      At least one "V4:" line in one of the exports(5) file(s) is needed to
      make NFSv4 mounts work. This patch fixes mountd.c so that it logs a
      message indicting that there is no "V4:" line in any exports(5)
      file when NFSv4 mounts are enabled.
      To avoid this message being generated erroneously, /etc/rc.d/mountd
      is updated to make sure vfs.nfsd.server_max_nfsvers is properly set
      before mountd(8) is started.
      Reported by:	debdrup
      PR:	253901
      MFC after:	2 weeks
  2. 08 Mar, 2021 26 commits