Add the following lines to your /boot/loader.conf
to override the built-in FreeBSD re(4) driver.
if_re_load="YES"
if_re_name="/boot/modules/if_re.ko"
By default, the size of allocated mbufs is enough
to receive the largest Ethernet frame supported
by the card. If your memory is highly fragmented,
trying to allocate contiguous pages (more than
4096 bytes) may result in driver hangs.
For this reason the value is tunable at boot time,
e.g. if you don't need Jumbo frames you can lower
the memory requirements and avoid this issue with:
hw.re.max_rx_mbuf_sz="2048"
To enable Wake on LAN (WoL) support you might need
to set the following tunables:
hw.re.s5wol="1"
hw.re.s0_magic_packet="1"
By default the driver negotiates 802.3x flow
control with the link partner. If a congested
peer throttles your transmit path with pause
frames (e.g. a 2.5GbE card behind a 1GbE switch),
you can disable flow control with:
hw.re.flow_control="0"
The driver programs the PCIe Max Read Request
Size for better transmit performance. On Realtek
SoC platforms this can be disabled with:
hw.re.config_soc_lan="1"
Driver versions before 1102.01 could hang the
RTL8125 transmitter when sending small UDP
packets (e.g. IPv6 DNS queries). This is fixed,
but if you still experience network hangs with
IPv6 enabled, you can disable the checksum
offloading by adding the following parameters to
the related ifconfig line in your /etc/rc.conf
file, and please report the issue:
-rxcsum -txcsum -rxcsum6 -txcsum6
net/realtek-re-kmod: update to 1.102.01 release (add support for 10G cards)
This forked version includes many fixes and performance improvements
over the previous 1.101.00 release. If you previously disabled the
checksum offloading due to crashes, you should now be able to re-add it.
net/realtek-re-kmod: fix build on FreeBSD 15.
I've opted for the simplest patch, the inclusion of if_private.h,
instead of a more invasive switch to IfAPI, to keep minimal changes
to vendor branch, hoping in a next vendor update to it.
Remove WWW entries moved into port Makefiles
Commit b7f05445c00f has added WWW entries to port Makefiles based on
WWW: lines in pkg-descr files.
This commit removes the WWW: lines of moved-over URLs from these
pkg-descr files.
Approved by: portmgr (tcberner)
Add WWW entries to port Makefiles
It has been common practice to have one or more URLs at the end of the
ports' pkg-descr files, one per line and prefixed with "WWW:". These
URLs should point at a project website or other relevant resources.
Access to these URLs required processing of the pkg-descr files, and
they have often become stale over time. If more than one such URL was
present in a pkg-descr file, only the first one was tarnsfered into
the port INDEX, but for many ports only the last line did contain the
port specific URL to further information.
There have been several proposals to make a project URL available as
a macro in the ports' Makefiles, over time.
(Only the first 15 lines of the commit message are shown above )
net/realtek-re-kmod: fix build on -CURRENT
There were several set-but-not-used variables that caused the build on
-CURRENT to fail, since this case is no longer treated as a warning
but as an error.
No port revision bump, since there is no need to rebuild existing
official packages with this patch applied. But it is required for
users that build this port on -CURRENT and 13-STABLE with the
rejection of unused variable that has been enabled there.
Approved by: portmgr (implicit)
net/realtek-re-kmod: allow building for other architectures
Disable dash support on such archs and fix version number.
PR: 258473
Submitted by: Franco Fichtner <franco@opnsense.org>
Style: improve ONLY_FOR_ARCHS_REASON (grammar, markup, etc.)
ONLY_FOR_ARCHS_REASON is used as part of the sentence and thus should
start with lower-case letter and not end with a period which is added
by the framework, similar to other knobs like BROKEN, IGNORE, et al.
While here, remove needless quoting, add missing Oxford comma, expand
contractions and jargonisms, use correct spelling for proper names.
Mark this driver as x86-only: includes x86-specific definitions.
It *appears* that this code and sys/dev/re/if_re.c have common ancestry
but this is not obvious to a casual observer. ISTM there would be a
very significant merge/re-engineering effort to produce a superset.
Approved by: portmgr (tier-2 blanket)