[Midnightbsd-cvs] [MidnightBSD/src] fd60e1: tcp: Add CTLFLAG_VNET flag to some sysctls

Zhenlei Huang noreply at github.com
Tue Dec 16 22:48:46 EST 2025


  Branch: refs/heads/master
  Home:   https://github.com/MidnightBSD/src
  Commit: fd60e16af687b02edd13f6ccdc0c4d79a0175330
      https://github.com/MidnightBSD/src/commit/fd60e16af687b02edd13f6ccdc0c4d79a0175330
  Author: Zhenlei Huang <zlei at FreeBSD.org>
  Date:   2025-12-16 (Tue, 16 Dec 2025)

  Changed paths:
    M sys/netinet/tcp_hostcache.c

  Log Message:
  -----------
  tcp: Add CTLFLAG_VNET flag to some sysctls

The two sysctls net.inet.tcp.hostcache.list and net.inet.tcp.hostcache.histo
are readonly and are to operate hostcache of vnet jails. Add CTLFLAG_VNET
flag to them since they are per-vnet sysctls.

This change does not have any impact on reading the two sysctls, but
`sysctl -ANV net.inet.tcp.hostcache` will report them correctly.

Reviewed by:	tuexen, #transport, #network
MFC after:	3 days
Differential Revision:	https://reviews.freebsd.org/D52693

(cherry picked from commit b1f96169cfb50a7b65aee115b2c9ad2f00797bbf)
(cherry picked from commit 032918dfd155936a79847f17ac355439e6b59027)
(cherry picked from commit ccbc722a19450df2981049777d4930deae94a840)


  Commit: ef566bc6a199e7b5cb3ec0aa19fcc2a9a21e20e1
      https://github.com/MidnightBSD/src/commit/ef566bc6a199e7b5cb3ec0aa19fcc2a9a21e20e1
  Author: Zhenlei Huang <zlei at FreeBSD.org>
  Date:   2025-12-16 (Tue, 16 Dec 2025)

  Changed paths:
    M sbin/ifconfig/ifconfig.c

  Log Message:
  -----------
  ifconfig: Garbage collect unused parameter swabips

and the macro EN_SWABIPS.

The macro EN_SWABIPS is identical to IFF_LINK0 (also historically
IFF_LLC0) and we already have the parameter link0 to toggle IFF_LINK0.

These were inherited from 386BSD 0.1 and have never been used since
the very first FreeBSD release.

Reviewed by:	adrian, #network
MFC after:	1 week
Differential Revision:	https://reviews.freebsd.org/D51368

(cherry picked from commit 8632e4e73a6934f3f9996a18932e36b04e6a3faf)
(cherry picked from commit 878d3bdb59d70b2ce077f4bbdefea0ec875d6e82)


  Commit: 9a5fd0a1b74e4678319bca03ad21d9a2c0362f25
      https://github.com/MidnightBSD/src/commit/9a5fd0a1b74e4678319bca03ad21d9a2c0362f25
  Author: Zhenlei Huang <zlei at FreeBSD.org>
  Date:   2025-12-16 (Tue, 16 Dec 2025)

  Changed paths:
    M sbin/ifconfig/ifconfig.c

  Log Message:
  -----------
  ifconfig: Fix the display of the IFCAP_MEXTPG capability

Historically this capability is IFCAP_NOMAP but it was renamed to
IFCAP_MEXTPG. Catch up with the change 3f43ada98c89.

This is a direct commit to stable/13.

PR:		289545
Fixes:		3f43ada98c89 Catch up with 6edfd179c86: mechanically rename IFCAP_NOMAP to IFCAP_MEXTPG


  Commit: b1213c21140d628956477126bd0ab3ca7b54d9d2
      https://github.com/MidnightBSD/src/commit/b1213c21140d628956477126bd0ab3ca7b54d9d2
  Author: Zhenlei Huang <zlei at FreeBSD.org>
  Date:   2025-12-16 (Tue, 16 Dec 2025)

  Changed paths:
    M sbin/ifconfig/ifconfig.c

  Log Message:
  -----------
  ifconfig: Display the IFCAP_HWSTATS capability

This follows the commit 4cdc1f5421c5, which introduces the IFCAP_HWSTATS
capability.

This is a direct commit to stable/13.

Fixes:	4cdc1f5421c5 There are some high performance NICs that count statistics in hardware


Compare: https://github.com/MidnightBSD/src/compare/1d2b4f6034f8...b1213c21140d

To unsubscribe from these emails, change your notification settings at https://github.com/MidnightBSD/src/settings/notifications


More information about the Midnightbsd-cvs mailing list