Created attachment 266610 [details] non-working rc.conf (14.3 and 15.0) I have a Honeycomb LX2 board running with multiple jails. It was running fine with dpni0 having an IP and the bridge associating between the dpni0 and the epair devices. However, this no longer works with 15.0-RELEASE, the bridge must be assigned the IP address, and everything fall from that. With net.link.bridge.inherit_mac=1, I can access the system remotely, but can't access any of the vnet jails connected to the bridge. I'm attaching 2 trimmed rc.conf's, one working (rc.conf.up_good) on 14.3-RELEASE, the other non-working on both 14.3 and 15.0 (rc.conf). If I simply s/dpni0/ue0/g on the config, it works correctly with a USB ethernet adapter, which led to this bug report.
Created attachment 266611 [details] working rc.conf (14.3)
(In reply to Justin Hibbits from comment #0) Could you try replacing this: ifconfig_dpni0="up -tso -vlanhwtso -rxcsum -txcsum -rxcsum6 -txcsum6" with this: ifconfig_dpni0="up -tso -vlanhwtso" in your rc.conf for 15.0-RELEASE? epair was modified in https://reviews.freebsd.org/rG39d4094173f9a49ff52f5f4408e4dbd5d6ef0409 which caused a regression I fixed in https://reviews.freebsd.org/D53436. It landed before 15.0-RELEASE. It isn't available for 14.3 though (and I _must not_ forget to MFC the fix to stable/14).
(In reply to Dmitry Salychev from comment #2) If you want to track L3/L4 chekcums validation/generation status, look for "L3/L4 checksum validation enabled/disabled" in dmesg.
Hmmm... it looks like either of stable/14 and stable/15 didn't have my patch. I've MFC'ed to the both already. Workaround is to disable and enable checksums generation/validation in runtime with ifconfig: ifconfig dpniX -rxcsum -txcsum -rxcsum6 -txcsum6 and ifconfig dpniX rxcsum txcsum rxcsum6 txcsum6 Try to verbose boot and you should see checksums disabled/enabled in dmesg after those two commands above. You should be able to communicate with your jails after that.
(In reply to Dmitry Salychev from comment #4) I did this, and your suggestion in comment #2, but no change. I can access the jails from the host, but not remotely, and the jails cannot access beyond the host, with errors including openvpn connections to a remote gateway failing. I also set debug.bootverbose after booting, before I did the checksum disable/enable dance, and didn't see any messages.
Are we sure this is related to dpni and not to the entire bridge rework? Adding ivy@ just as the extra pair of eyes on the bridge setup.
(In reply to Bjoern A. Zeeb from comment #6) I'm pretty certain. Replacing `dpni0` with `ue0` (axge driver) in the rc.conf gets the machine working correctly.
(In reply to Justin Hibbits from comment #7) Can you tcpdump a little bit of TCP and UDP traffic to/from jails? If my assumption is correct, checksums of the packets coming to the host from jails should be incorrect at least.
(In reply to Bjoern A. Zeeb from comment #6) i'm on contact with Justin about this privately, and from what we've tested so far, it doesn't appear to be an issue with bridge(4) specifically. Justin: sorry, i haven't had time to follow up on this the last few days, but i'll try to have a look today.
(In reply to Dmitry Salychev from comment #8) I did a little testing, and trying to ssh out from a jail to my desktop did show invalid checksums. I verified ARP entries are in the cache on my desktop and tried fetching files from the web server on one of my jails, and didn't see any activity to it while watching dpni0, which seemed odd. One other odd datapoint, pings over the vlan work fine, I'm able to ping other devices on that vlan, but pings on the main LAN aren't working, so vlans work, but epairs don't it appears. I haven't tried building a new kernel with your recent MFC, so will try to give that a shot in the next few days when I have time. I'll also have to check how to build kernel packages now, so I can install it as a package, and it gets managed in the NWO.
Ok, so now we are on epairs. Adding tuexen. Given it's date I assume 39d4094173f9a and the ones before made it into 15.0. Can you disable checksum offloading on epairs and see if things start to work then? I haven't followed this closely and we still don't know if it's dpni(4) which is at fault here but if we find the actual change which causes the trouble, it would certainly help to know what to look for in dpni to fix ;-)
(In reply to Bjoern A. Zeeb from comment #11) It would be very good to know if things work if you disable txcsum and rxcsum on the epair before adding it to the bridge. Justin: It is also useful to capture traffic on the remote host when the communication with a jail does not work. This allows us to determine if it is a problem related to checksums.
I have no access to such a hardware, just looked at the code in sys/dev/dpaa2. I also looked again at D53436. Is hardware checksum offloading actually working? I do not see any modification of hwassist and non of the constants like CSUM_TCP or CSUM_UDP. Just wondering...
(In reply to Michael Tuexen from comment #13) It does for sure. I checked https://reviews.freebsd.org/D53436 on my Honeycomb before submitting.
(In reply to Michael Tuexen from comment #12) When I attempt to SSH from a jail to my desktop I do see incorrect checksums from tcpdump running on my desktop. When I ping from the jail to my desktop, with tcpdump on the desktop side I see both ICMP echo requests and ICMP echo replies. However, when I tcpdump on bridge0 or dpni0, I only see the echo requests, not any replies. I verified ARP entries are in my desktop's ARP cache, and the ARP entry for my desktop is in my jail's ARP cache.
(In reply to Justin Hibbits from comment #15) This is running with 22f8973d1 cherry-picked to 15.0-RELEASE as well.
(In reply to Dmitry Salychev from comment #14) Great. Could you point me to the code which sets the if_hwassist flags? The code is complex and I failed to find it...
(In reply to Michael Tuexen from comment #17) https://cgit.freebsd.org/src/tree/sys/dev/dpaa2/dpaa2_ni.c#n562
(In reply to Dmitry Salychev from comment #18) That sets if_capabilities, but not if_hwassist. if_hwassist is what the network stack looks at. That is why I am looking how that is set.
(In reply to Michael Tuexen from comment #19) I don't set if_hwassist at all. What's the logic behind these flags?
(In reply to Dmitry Salychev from comment #20) Let us focus on TCP/IPv4 checksum offloading on the sending side. To enable this you would set IFCAP_TXCSUM in if_capabilities. This can be controlled by the user via ifconfig. The semantic is that the interface has enabled some sort of transmit checksum offloading. What this exactly means is controlled by if_hwassist. This if_hwassist contains CSUM_IP_TCP, then transmit checksum for TCP/IPv4 is supported, CSUM_IP means support for IPv4 header checksum offloading, CSUM_IP_UDP means UDP/IPv4 transmit checksum offloading and CSUM_IP_SCTP mean checksum offloading for SCTP/IPv4. Then TCP/IPv4 packets are sent by the local stack CSUM_IP_TCP | CSUM_IP is set in the m_pkthdr.csum_flags and the pseudo header checksum is computed. When the IPv4 layer determines the outgoing interface, it compares the if_hwassist of the outgoing interface with the m_pkthdr.csum_flags whether the interface supports the requested computation in hardware or not. If the hardware does not support the requested operation, it will be performed in software. The driver is requested to keep if_capabilities semantically in sync with if_hwassist. So in your case where you added IFCAP_TXCSUM to if_capabilities but keep if_hwassist 0, all checksum operations will be performed in software. When adding an interface to a bridge, IFCAP_TXCSUM will be synced in the sense that it will be turned off, if at least one interface has it turned off. For testing dpni, I would suggest to add CSUM_IP_UDP | CSUM_IP_TCP | CSUM_IP to if_hwassist when adding IFCAP_TXCSUM. Then test if UDP and TCP works from the host to external hosts via a dpni interface. No bridge involved. Once that is working, we can focus on the interaction between dpni and bridge.
(In reply to Michael Tuexen from comment #21) I haven't disappeared, just struggling to find time. Thanks for the detailed explanation. I'll try and get back here.
(In reply to Dmitry Salychev from comment #22) I have a patch for fixing TXCSUM, trying to create one for the RXCSUM side. I fail to find the information for a received frame whether a L3/L4 checksum validation was performed and what the result is. Could you provide any hint?
Created attachment 267339 [details] Fix for transmit checksum offloading
Dmitry, could you have a look at review D54805? Just a cleanup to make the patch for fixing the TXCSUM shorter.
(In reply to Michael Tuexen from comment #23) Generally, L3/L4 checksums validation/generation is completely transparent to the driver and DPAA2 doesn't differentiate between v4 and v6: https://cgit.freebsd.org/src/tree/sys/dev/dpaa2/dpaa2_ni.c#n1592. I simply send a command to the DPAA2 HW (DPNI object in its terms) to enable or disable L3 and L4 checksums validation (on RX): https://cgit.freebsd.org/src/tree/sys/dev/dpaa2/dpaa2_ni.c#n1615 and generation (on TX): https://cgit.freebsd.org/src/tree/sys/dev/dpaa2/dpaa2_ni.c#n1631. i.e. if any of the IFCAP_RXCSUM or IFCAP_RXCSUM_IPV6 is set -> I enable checksums validation for both L3/L4 and v4/v6. Same logic is applicable to the IFCAP_TXCSUM or IFCAP_TXCSUM_IPV6.
(In reply to Dmitry Salychev from comment #26) I understand. For the transmit side: we need to let the network stack know, which checksum can be offloaded. If it doesn't know, it computes the checksums and there is no performance gain. See review D54809 for a fix. For the receive side: we need to let the network stack know, that the checksum was checked. If we don't, the network stack does the check in software again and we don't gain anything. So we need something like: diff --git a/sys/dev/dpaa2/dpaa2_ni.c b/sys/dev/dpaa2/dpaa2_ni.c index eda5bab78bde..df29ee9e639f 100644 --- a/sys/dev/dpaa2/dpaa2_ni.c +++ b/sys/dev/dpaa2/dpaa2_ni.c @@ -3178,6 +3178,16 @@ dpaa2_ni_rx(struct dpaa2_channel *ch, struct dpaa2_ni_fq *fq, struct dpaa2_fd *f mtx_unlock(&bch->dma_mtx); m->m_flags |= M_PKTHDR; + if ((fas_status & DPAA2_NI_FAS_L3CV) != 0) { + m->m_flags |= CSUM_IP_CHECKED; + if ((fas_status & DPAA2_NI_FAS_L3CE) == 0) + m->m_flags |= CSUM_IP_VALID; + } + if ((fas_status & DPAA2_NI_FAS_L4CV) != 0 && + (fas_status & DPAA2_NI_FAS_L4CE) == 0) { + m->m_flags |= CSUM_DATA_VALID | CSUM_PSEUDO_HDR; + m->m_pkthdr.csum_data = 0xffff; + } I just have not figured out how to get the fas_status... I expect it in the HW or SW annotation frame. But I don't know which one, how to access it and what the layout is. Could you point me to a spec? I use DPAA2 User Manual, but that is missing this information (or at least I don't find it there).
(In reply to Michael Tuexen from comment #27) The patch should be: diff --git a/sys/dev/dpaa2/dpaa2_ni.c b/sys/dev/dpaa2/dpaa2_ni.c index eda5bab78bde..8ee8f2718972 100644 --- a/sys/dev/dpaa2/dpaa2_ni.c +++ b/sys/dev/dpaa2/dpaa2_ni.c @@ -3178,6 +3178,16 @@ dpaa2_ni_rx(struct dpaa2_channel *ch, struct dpaa2_ni_fq *fq, struct dpaa2_fd *f mtx_unlock(&bch->dma_mtx); m->m_flags |= M_PKTHDR; + if ((fas_status & DPAA2_NI_FAS_L3CV) != 0) { + m->m_pkthdr.csum_flags |= CSUM_IP_CHECKED; + if ((fas_status & DPAA2_NI_FAS_L3CE) == 0) + m->m_pkthdr.csum_flags |= CSUM_IP_VALID; + } + if ((fas_status & DPAA2_NI_FAS_L4CV) != 0 && + (fas_status & DPAA2_NI_FAS_L4CE) == 0) { + m->m_pkthdr.csum_flags |= CSUM_DATA_VALID | CSUM_PSEUDO_HDR; + m->m_pkthdr.csum_data = 0xffff; + } m->m_data = buf_data; m->m_len = buf_len; m->m_pkthdr.len = buf_len;
(In reply to Michael Tuexen from comment #27) You need LX2160A Family Data Path Acceleration Architecture, Second Generation (DPAA2) Low-Level Hardware Reference Manual (LX2160ADPAA2RM, Rev. 0, 06/2020) from NXP. It is not possible to download it for free. You've to create an account which is free, but could take a couple of days to confirm. I'd share my copy if you prefer. What you're asking for is located in the hardware (in this case Wire rate IO Processor, WRIOP) frame annotation which is a part of the Frame Annotation located at FD[ADDRESS], i.e. there static int dpaa2_ni_rx(struct dpaa2_channel *ch, struct dpaa2_ni_fq *fq, struct dpaa2_fd *fd, struct dpaa2_ni_rx_ctx *ctx) { bus_addr_t paddr = (bus_addr_t)fd->addr; struct dpaa2_fa *fa = (struct dpaa2_fa *)PHYS_TO_DMAP(paddr); // <---- struct dpaa2_buf *buf = fa->buf; struct dpaa2_channel *bch = (struct dpaa2_channel *)buf->opt; struct dpaa2_ni_softc *sc = device_get_softc(bch->ni_dev); struct dpaa2_bp_softc *bpsc; struct mbuf *m; device_t bpdev; bus_addr_t released[DPAA2_SWP_BUFS_PER_CMD]; void *buf_data; int buf_len, error, released_n = 0; However, dpaa2_fa describes a 64-bytes software annotation which is not touched by the WRIOP anyhow. If you want HW annotation, you'd need to extend dpaa2_fa according to "7.34 WRIOP Frame Annotation (FA)" and "Figure 7-22. WRIOP hardware frame annotation offsets in single buffer frame" in particular as we're receiving anything in the single buffer frames at the moment.
A commit in branch main references this bug: URL: https://cgit.FreeBSD.org/src/commit/?id=f31336b3e3146fed9cc517fef8e877c17496f9e0 commit f31336b3e3146fed9cc517fef8e877c17496f9e0 Author: Michael Tuexen <tuexen@FreeBSD.org> AuthorDate: 2026-01-23 07:59:57 +0000 Commit: Michael Tuexen <tuexen@FreeBSD.org> CommitDate: 2026-01-23 07:59:57 +0000 dpnaa2: announce transmit checksum support Let the network stack know that the NIC supports checksum offloading for the IPv4 header checksum and the TCP and UDP transport checksum. This avoids the computation in software and therefore provides the expected performance gain. PR: 292006 Reviewed by: dsl, Timo Völker MFC after: 3 days Differential Revision: https://reviews.freebsd.org/D54809 sys/dev/dpaa2/dpaa2_ni.c | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-)
(In reply to Dmitry Salychev from comment #29) Thank you for the reference. I could create an account and download the spec. Will try to implement it. There is one additional issue I observed. I use the ten64 board and when I ssh into it, start building a kernel, I observe TCP payload corruption. I think building world is not relevant, it is more that the system is under load. This happens: (a) If TXCSUM is disabled, the software computes the TCP checksum based on the correct payload, the TCP segment is sent to the external peer and the peer detects the payload corruption via a TCP checksum error. Retransmissions will fix it. The application will only see uncorrupted payload and if the payload is SSH, the SSH session will work perfectly. (b) If TXCSUM is enabled, the hardware computes the TCP checksum based on the corrupted payload and the TCP peer will accept it, since the checksum is correct for the corrupted payload. In case the payload is SSH, the SSH session detects this and will terminate the connection. So it looks like the memory handling on the transmit side is missing a boundary or so, which only shows up under load. Does this ring a bell?
(In reply to Michael Tuexen from comment #31) Yes, it definitely does. I noticed it about 3 months ago, but had hoped that DPAA2 drivers have nothing to do with it. It seems not.
(In reply to Michael Tuexen from comment #31) https://reviews.freebsd.org/D56144 should fix it. It looks like we're consistent with the TX path, aren't we?
A commit in branch main references this bug: URL: https://cgit.FreeBSD.org/src/commit/?id=968164eb650fd986f293512a3faac5c1c9e4d51f commit 968164eb650fd986f293512a3faac5c1c9e4d51f Author: Dmitry Salychev <dsl@FreeBSD.org> AuthorDate: 2026-03-28 18:57:45 +0000 Commit: Dmitry Salychev <dsl@FreeBSD.org> CommitDate: 2026-03-29 18:23:51 +0000 dpaa2: Perform bus_dma pre-write sync before enqueue operation Without a proper synchronization payload of the egress TCP segments can be corrupted as tuexen@ described in https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=292006#c31. This patch is indirectly related to 292006 because a properly enabled and announced support for the TX checksum offloading hides potentially corrupted frame payload. PR: 292006 Reported by: tuexen@ Reviewed by: ... Tested by: dsl@ Differential Revision: <https://reviews.freebsd.org/D###> MFC after: 3 days sys/dev/dpaa2/dpaa2_ni.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)
A commit in branch main references this bug: URL: https://cgit.FreeBSD.org/src/commit/?id=5812415bee55a9063508b02fda9418b0eadb0bb4 commit 5812415bee55a9063508b02fda9418b0eadb0bb4 Author: Dmitry Salychev <dsl@FreeBSD.org> AuthorDate: 2026-03-28 18:57:45 +0000 Commit: Dmitry Salychev <dsl@FreeBSD.org> CommitDate: 2026-03-29 18:34:09 +0000 dpaa2: Perform bus_dma pre-write sync before enqueue operation Without a proper synchronization payload of the egress TCP segments can be corrupted as tuexen@ described in https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=292006#c31. This patch is indirectly related to 292006 because a properly enabled and announced support for the TX checksum offloading hides potentially corrupted frame payload. NOTE: Returned back with updated placeholders. PR: 292006 Reported by: tuexen@ Reviewed by: tuexen@ Tested by: dsl@, tuexen@ Differential Revision: https://reviews.freebsd.org/D56144 MFC after: 3 days sys/dev/dpaa2/dpaa2_ni.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)
A commit in branch stable/15 references this bug: URL: https://cgit.FreeBSD.org/src/commit/?id=26b27a82880347828205700a5d54a0516a3f15b1 commit 26b27a82880347828205700a5d54a0516a3f15b1 Author: Dmitry Salychev <dsl@FreeBSD.org> AuthorDate: 2026-03-28 18:57:45 +0000 Commit: Dmitry Salychev <dsl@FreeBSD.org> CommitDate: 2026-04-04 09:28:09 +0000 dpaa2: Perform bus_dma pre-write sync before enqueue operation Without a proper synchronization payload of the egress TCP segments can be corrupted as tuexen@ described in https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=292006#c31. This patch is indirectly related to 292006 because a properly enabled and announced support for the TX checksum offloading hides potentially corrupted frame payload. PR: 292006 Reported by: tuexen@ Reviewed by: tuexen@ Tested by: dsl@, tuexen@ Differential Revision: https://reviews.freebsd.org/D56144 MFC after: 3 days (cherry picked from commit 5812415bee55a9063508b02fda9418b0eadb0bb4) sys/dev/dpaa2/dpaa2_ni.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)
A commit in branch stable/14 references this bug: URL: https://cgit.FreeBSD.org/src/commit/?id=c417ed80fd2fed7ae0561a5bf772408c910f2fec commit c417ed80fd2fed7ae0561a5bf772408c910f2fec Author: Dmitry Salychev <dsl@FreeBSD.org> AuthorDate: 2026-03-28 18:57:45 +0000 Commit: Dmitry Salychev <dsl@FreeBSD.org> CommitDate: 2026-04-04 09:44:07 +0000 dpaa2: Perform bus_dma pre-write sync before enqueue operation Without a proper synchronization payload of the egress TCP segments can be corrupted as tuexen@ described in https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=292006#c31. This patch is indirectly related to 292006 because a properly enabled and announced support for the TX checksum offloading hides potentially corrupted frame payload. PR: 292006 Reported by: tuexen@ Reviewed by: tuexen@ Tested by: dsl@, tuexen@ Differential Revision: https://reviews.freebsd.org/D56144 MFC after: 3 days (cherry picked from commit 5812415bee55a9063508b02fda9418b0eadb0bb4) sys/dev/dpaa2/dpaa2_ni.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)
A commit in branch main references this bug: URL: https://cgit.FreeBSD.org/src/commit/?id=8e994533806d8aa0ae4582a52d811ede2b19bb26 commit 8e994533806d8aa0ae4582a52d811ede2b19bb26 Author: Dmitry Salychev <dsl@FreeBSD.org> AuthorDate: 2026-01-25 16:53:57 +0000 Commit: Dmitry Salychev <dsl@FreeBSD.org> CommitDate: 2026-04-08 19:48:11 +0000 dpaa2: Extract frame-specific routines to dpaa2_frame.[h,c] As soon as we need information from the hardware frame annotation to make sure that checksums of the ingress frames were verified by the DPAA2 HW, I've decided to make a preparation and extracted all of the frame related routines into the separate dpaa2_frame.[h,c] along with some clean up and improvements, e.g. no more dpaa2_fa, but dpaa2_swa and dpaa2_hwa structures to describe software and hardware frame annotations respectively, dpaa2_fa_get_swa/dpaa2_fa_get_hwa to obtain those annotations from the frame descriptor. The next step is to implement dpaa2_fa_get_hwa. PR: 292006 Approved by: tuexen MFC after: 1 week Differential Revision: https://reviews.freebsd.org/D56315 sys/conf/files.arm64 | 1 + sys/dev/dpaa2/dpaa2_buf.c | 9 +- sys/dev/dpaa2/dpaa2_buf.h | 2 + sys/dev/dpaa2/dpaa2_frame.c (new) | 165 ++++++++++++++++++++++++++++++ sys/dev/dpaa2/dpaa2_frame.h (new) | 174 +++++++++++++++++++++++++++++++ sys/dev/dpaa2/dpaa2_ni.c | 210 ++++++++++++-------------------------- sys/dev/dpaa2/dpaa2_ni.h | 3 +- sys/dev/dpaa2/dpaa2_swp.h | 51 +-------- sys/dev/dpaa2/dpaa2_types.h | 5 + sys/modules/dpaa2/Makefile | 1 + 10 files changed, 420 insertions(+), 201 deletions(-)
A commit in branch main references this bug: URL: https://cgit.FreeBSD.org/src/commit/?id=4a6d7fc1a00b69925b3edc39acef0391487a8e3e commit 4a6d7fc1a00b69925b3edc39acef0391487a8e3e Author: Dmitry Salychev <dsl@FreeBSD.org> AuthorDate: 2026-04-13 12:46:49 +0000 Commit: Dmitry Salychev <dsl@FreeBSD.org> CommitDate: 2026-04-19 18:11:41 +0000 dpaa2: Extract checksum statuses on ingress In order to enable RX checksum offloading we need to check the meta-information for the (good) frames to see if the L3/4 checksums were calculated and if there was an error. The way the buffere are setup, the needed frame meta-information is already requested. All we have to do is make sure it is really part of the RX frame, that it is valid, and if the respective bits are set. Also do not forget to set the (dummy) csum_data as otherwise upper layers will just be cranky. An artefact of the past which likely should disappear. PR: 292006 Reviewed by: bz, tuexen Tested by: bz, tuexen Approved by: tuexen Obtained from: bz (initial version, D55320) MFC after: 3 days Sponsored by: Traverse Technologies (providing Ten64 HW for testing) Differential Revision: https://reviews.freebsd.org/D56383 sys/dev/dpaa2/dpaa2_frame.c | 100 ++++++++++++++++++++++++++++++++++++++------ sys/dev/dpaa2/dpaa2_frame.h | 63 +++++++++++++++++++++++++++- sys/dev/dpaa2/dpaa2_ni.c | 76 ++++++++++++++++++++++++++++++++- sys/dev/dpaa2/dpaa2_ni.h | 6 ++- 4 files changed, 227 insertions(+), 18 deletions(-)
(In reply to Justin Hibbits from comment #0) Could you give it a try once again? With 4a6d7fc1a00b69925b3edc39acef0391487a8e3e landed, we've both Tx and Rx paths fixed.
(In reply to Dmitry Salychev from comment #40) Awesome. I'll give it a shot in the next couple weeks when I get some time to test.
A commit in branch stable/15 references this bug: URL: https://cgit.FreeBSD.org/src/commit/?id=f241c07ca87c58ffb36b5069c6e2f1381d5ef9bc commit f241c07ca87c58ffb36b5069c6e2f1381d5ef9bc Author: Dmitry Salychev <dsl@FreeBSD.org> AuthorDate: 2026-01-25 16:53:57 +0000 Commit: Dmitry Salychev <dsl@FreeBSD.org> CommitDate: 2026-04-22 08:06:12 +0000 dpaa2: Extract frame-specific routines to dpaa2_frame.[h,c] As soon as we need information from the hardware frame annotation to make sure that checksums of the ingress frames were verified by the DPAA2 HW, I've decided to make a preparation and extracted all of the frame related routines into the separate dpaa2_frame.[h,c] along with some clean up and improvements, e.g. no more dpaa2_fa, but dpaa2_swa and dpaa2_hwa structures to describe software and hardware frame annotations respectively, dpaa2_fa_get_swa/dpaa2_fa_get_hwa to obtain those annotations from the frame descriptor. The next step is to implement dpaa2_fa_get_hwa. PR: 292006 Approved by: tuexen MFC after: 1 week Differential Revision: https://reviews.freebsd.org/D56315 (cherry picked from commit 8e994533806d8aa0ae4582a52d811ede2b19bb26) sys/conf/files.arm64 | 1 + sys/dev/dpaa2/dpaa2_buf.c | 9 +- sys/dev/dpaa2/dpaa2_buf.h | 2 + sys/dev/dpaa2/dpaa2_frame.c (new) | 165 ++++++++++++++++++++++++++++++ sys/dev/dpaa2/dpaa2_frame.h (new) | 174 +++++++++++++++++++++++++++++++ sys/dev/dpaa2/dpaa2_ni.c | 210 ++++++++++++-------------------------- sys/dev/dpaa2/dpaa2_ni.h | 3 +- sys/dev/dpaa2/dpaa2_swp.h | 51 +-------- sys/dev/dpaa2/dpaa2_types.h | 5 + sys/modules/dpaa2/Makefile | 1 + 10 files changed, 420 insertions(+), 201 deletions(-)
A commit in branch stable/15 references this bug: URL: https://cgit.FreeBSD.org/src/commit/?id=150ac95e4a56855e7ffaa1014d7a82e9eda89f65 commit 150ac95e4a56855e7ffaa1014d7a82e9eda89f65 Author: Dmitry Salychev <dsl@FreeBSD.org> AuthorDate: 2026-04-13 12:46:49 +0000 Commit: Dmitry Salychev <dsl@FreeBSD.org> CommitDate: 2026-04-22 08:06:26 +0000 dpaa2: Extract checksum statuses on ingress In order to enable RX checksum offloading we need to check the meta-information for the (good) frames to see if the L3/4 checksums were calculated and if there was an error. The way the buffere are setup, the needed frame meta-information is already requested. All we have to do is make sure it is really part of the RX frame, that it is valid, and if the respective bits are set. Also do not forget to set the (dummy) csum_data as otherwise upper layers will just be cranky. An artefact of the past which likely should disappear. PR: 292006 Reviewed by: bz, tuexen Tested by: bz, tuexen Approved by: tuexen Obtained from: bz (initial version, D55320) MFC after: 3 days Sponsored by: Traverse Technologies (providing Ten64 HW for testing) Differential Revision: https://reviews.freebsd.org/D56383 (cherry picked from commit 4a6d7fc1a00b69925b3edc39acef0391487a8e3e) sys/dev/dpaa2/dpaa2_frame.c | 100 ++++++++++++++++++++++++++++++++++++++------ sys/dev/dpaa2/dpaa2_frame.h | 63 +++++++++++++++++++++++++++- sys/dev/dpaa2/dpaa2_ni.c | 76 ++++++++++++++++++++++++++++++++- sys/dev/dpaa2/dpaa2_ni.h | 6 ++- 4 files changed, 227 insertions(+), 18 deletions(-)
A commit in branch stable/14 references this bug: URL: https://cgit.FreeBSD.org/src/commit/?id=e27255a7f9e45dab9935b916d759498a093e36e5 commit e27255a7f9e45dab9935b916d759498a093e36e5 Author: Dmitry Salychev <dsl@FreeBSD.org> AuthorDate: 2026-04-13 12:46:49 +0000 Commit: Dmitry Salychev <dsl@FreeBSD.org> CommitDate: 2026-04-22 08:13:07 +0000 dpaa2: Extract checksum statuses on ingress In order to enable RX checksum offloading we need to check the meta-information for the (good) frames to see if the L3/4 checksums were calculated and if there was an error. The way the buffere are setup, the needed frame meta-information is already requested. All we have to do is make sure it is really part of the RX frame, that it is valid, and if the respective bits are set. Also do not forget to set the (dummy) csum_data as otherwise upper layers will just be cranky. An artefact of the past which likely should disappear. PR: 292006 Reviewed by: bz, tuexen Tested by: bz, tuexen Approved by: tuexen Obtained from: bz (initial version, D55320) MFC after: 3 days Sponsored by: Traverse Technologies (providing Ten64 HW for testing) Differential Revision: https://reviews.freebsd.org/D56383 (cherry picked from commit 4a6d7fc1a00b69925b3edc39acef0391487a8e3e) sys/dev/dpaa2/dpaa2_frame.c | 100 ++++++++++++++++++++++++++++++++++++++------ sys/dev/dpaa2/dpaa2_frame.h | 63 +++++++++++++++++++++++++++- sys/dev/dpaa2/dpaa2_ni.c | 76 ++++++++++++++++++++++++++++++++- sys/dev/dpaa2/dpaa2_ni.h | 6 ++- 4 files changed, 227 insertions(+), 18 deletions(-)
A commit in branch stable/14 references this bug: URL: https://cgit.FreeBSD.org/src/commit/?id=2b3799b6608e27e91a123c784c6c88b191892fcc commit 2b3799b6608e27e91a123c784c6c88b191892fcc Author: Dmitry Salychev <dsl@FreeBSD.org> AuthorDate: 2026-01-25 16:53:57 +0000 Commit: Dmitry Salychev <dsl@FreeBSD.org> CommitDate: 2026-04-22 08:12:57 +0000 dpaa2: Extract frame-specific routines to dpaa2_frame.[h,c] As soon as we need information from the hardware frame annotation to make sure that checksums of the ingress frames were verified by the DPAA2 HW, I've decided to make a preparation and extracted all of the frame related routines into the separate dpaa2_frame.[h,c] along with some clean up and improvements, e.g. no more dpaa2_fa, but dpaa2_swa and dpaa2_hwa structures to describe software and hardware frame annotations respectively, dpaa2_fa_get_swa/dpaa2_fa_get_hwa to obtain those annotations from the frame descriptor. The next step is to implement dpaa2_fa_get_hwa. PR: 292006 Approved by: tuexen MFC after: 1 week Differential Revision: https://reviews.freebsd.org/D56315 (cherry picked from commit 8e994533806d8aa0ae4582a52d811ede2b19bb26) sys/conf/files.arm64 | 1 + sys/dev/dpaa2/dpaa2_buf.c | 9 +- sys/dev/dpaa2/dpaa2_buf.h | 2 + sys/dev/dpaa2/dpaa2_frame.c (new) | 165 ++++++++++++++++++++++++++++++ sys/dev/dpaa2/dpaa2_frame.h (new) | 174 +++++++++++++++++++++++++++++++ sys/dev/dpaa2/dpaa2_ni.c | 210 ++++++++++++-------------------------- sys/dev/dpaa2/dpaa2_ni.h | 3 +- sys/dev/dpaa2/dpaa2_swp.h | 51 +-------- sys/dev/dpaa2/dpaa2_types.h | 5 + sys/modules/dpaa2/Makefile | 1 + 10 files changed, 420 insertions(+), 201 deletions(-)
A commit in branch stable/15 references this bug: URL: https://cgit.FreeBSD.org/src/commit/?id=b9446b22bcf61500a628f42bf04a7a4d6fcbee76 commit b9446b22bcf61500a628f42bf04a7a4d6fcbee76 Author: Michael Tuexen <tuexen@FreeBSD.org> AuthorDate: 2026-01-23 07:59:57 +0000 Commit: Michael Tuexen <tuexen@FreeBSD.org> CommitDate: 2026-04-24 12:29:06 +0000 dpnaa2: announce transmit checksum support Let the network stack know that the NIC supports checksum offloading for the IPv4 header checksum and the TCP and UDP transport checksum. This avoids the computation in software and therefore provides the expected performance gain. PR: 292006 Reviewed by: dsl, Timo Völker Differential Revision: https://reviews.freebsd.org/D54809 (cherry picked from commit f31336b3e3146fed9cc517fef8e877c17496f9e0) sys/dev/dpaa2/dpaa2_ni.c | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-)
A commit in branch stable/14 references this bug: URL: https://cgit.FreeBSD.org/src/commit/?id=e820964dc7c4626a9f51f534434109418caa3acb commit e820964dc7c4626a9f51f534434109418caa3acb Author: Michael Tuexen <tuexen@FreeBSD.org> AuthorDate: 2026-01-23 07:59:57 +0000 Commit: Michael Tuexen <tuexen@FreeBSD.org> CommitDate: 2026-04-24 11:17:23 +0000 dpnaa2: announce transmit checksum support Let the network stack know that the NIC supports checksum offloading for the IPv4 header checksum and the TCP and UDP transport checksum. This avoids the computation in software and therefore provides the expected performance gain. PR: 292006 Reviewed by: dsl, Timo Völker Differential Revision: https://reviews.freebsd.org/D54809 (cherry picked from commit f31336b3e3146fed9cc517fef8e877c17496f9e0) sys/dev/dpaa2/dpaa2_ni.c | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-)
I still see the same behavior, unfortunately. I can't ping my jails from outside my NAS, and in the jails rtsold won't resolve. Moving back to ue0 lets things work just fine.
(In reply to Justin Hibbits from comment #48) Hi Justin, thanks for testing. I guess we have to reproduce it locally. Could you tell us how you configure the networking in one of you jails (I guess you use an epair) and, in particular, how you use the VLAN. I guess we are missing something we are not aware of now. Thanks for the patience. Best regards Michael
(In reply to Michael Tuexen from comment #49) Sure, my jail configs are pretty simple: The network snippet is: vnet; vnet.interface = "${epair}b" $bridge = "bridge0"; $epair = "epair${if}"; $ip4_addr = "192.168.1.${if}/24"; $gateway = "192.168.1.1"; exec.prestart = "/sbin/ifconfig ${epair} create up"; exec.prestart += "/sbin/ifconfig ${epair}a up descr jail:${name}"; exec.prestart += "/sbin/ifconfig ${epair}a link ${epair_mac_a}"; exec.prestart += "/sbin/ifconfig ${epair}b link ${epair_mac_b}"; exec.prestart += "/sbin/ifconfig ${bridge} addm ${epair}a up"; exec.start += "/sbin/ifconfig ${epair}b inet6 accept_rtadv autoconf auto_linklocal up"; exec.start += "if [ x${ip6_addr} != x ]; then /sbin/ifconfig ${epair}b inet6 ${ip6_addr}; fi"; exec.start += "/sbin/ifconfig ${epair}b inet ${ip4_addr}"; exec.start += "/sbin/route add -4 -net default ${gateway}"; And each jail just defines: $if = "N"; (epair number) $epair_mac_a = "..." $epair_mac_b = "..." and optionally $ip6_addr = ".../64"; In the jail's rc.conf, I have rtsold_enable="YES" With my most recent test I didn't check checksums or anything with tcpdump, I simply booted the kernel and watched things not work.
(In reply to Justin Hibbits from comment #50) Thanks. And how are you using the VLAN?
(In reply to Michael Tuexen from comment #51) Oops, sorry, missed the VLAN part. The vlan is created on one of my jails only as: $vlan_id = <number>; vnet.interface += $vlan_interface; ... exec.prestart += "/sbin/ifconfig vlan${if} create vlandev ${bridge} vlan ${vlan_id} up name ${vlan_interface}" I have 7 jails, and use vlan in only one of them, alongside the regular epair interface.
(In reply to Justin Hibbits from comment #52) OK. And connectivity in the VLAN is OK, but on the LAN it is not. Is that correct?
(In reply to Michael Tuexen from comment #53) That was the case before, yes. I will have to re-verify with the new new build to be sure. Might take a couple days to make the time to do that.
I created a small test network that looks like this: Router *--------* Host 192.168.1.1 dpni3 \ | bridge0 192.168.1.5 | epair10a | | | epair10b 192.168.1.10 Jail On Router, I did a ping 192.168.1.10. On Jail, I did an ssh 192.168.1.1. Both worked. Justin, do you have an idea what the relevant differences are between my setup and yours? Here are the commands I used and the output of ifconfig on Host. ifconfig bridge0 create ifconfig bridge0 addm dpni3 ifconfig bridge0 inet 192.168.1.5/24 up ifconfig dpni3 up ifconfig epair10 create up ifconfig epair10a up descr jail:j1 ifconfig bridge0 addm epair10a up jail -c name=j1 host.hostname=j1 persist vnet vnet.interface=epair10b jexec j1 ifconfig epair10b inet 192.168.1.10/24 jexec j1 route add -4 -net default 192.168.1.1 ifconfig dpni3 dpni3: flags=1008943<UP,BROADCAST,RUNNING,PROMISC,SIMPLEX,MULTICAST,LOWER_UP> metric 0 mtu 1500 options=68002b<RXCSUM,TXCSUM,VLAN_MTU,JUMBO_MTU,LINKSTATE,RXCSUM_IPV6,TXCSUM_IPV6> ether 00:0a:fa:24:2f:c8 media: Ethernet autoselect (1000baseT <full-duplex,master>) status: active nd6 options=829<PERFORMNUD,IFDISABLED,AUTO_LINKLOCAL,STABLEADDR> ifconfig bridge0 bridge0: flags=1008843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST,LOWER_UP> metric 0 mtu 1500 options=10<VLAN_HWTAGGING> ether 58:9c:fc:10:d5:8a inet 192.168.1.5 netmask 0xffffff00 broadcast 192.168.1.255 id 00:00:00:00:00:00 priority 32768 hellotime 2 fwddelay 15 maxage 20 holdcnt 6 proto rstp maxaddr 2000 timeout 1200 root id 00:00:00:00:00:00 priority 32768 ifcost 0 port 0 bridge flags=0<> member: epair10a flags=143<LEARNING,DISCOVER,AUTOEDGE,AUTOPTP> port 13 priority 128 path cost 2000 vlan protocol 802.1q member: dpni3 flags=143<LEARNING,DISCOVER,AUTOEDGE,AUTOPTP> port 4 priority 128 path cost 20000 vlan protocol 802.1q groups: bridge nd6 options=809<PERFORMNUD,IFDISABLED,STABLEADDR> ifconfig epair10a epair10a: flags=1008943<UP,BROADCAST,RUNNING,PROMISC,SIMPLEX,MULTICAST,LOWER_UP> metric 0 mtu 1500 description: jail:j1 options=60001b<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING,RXCSUM_IPV6,TXCSUM_IPV6> ether 58:9c:fc:10:18:6a groups: epair media: Ethernet 10Gbase-T (10Gbase-T <full-duplex>) status: active nd6 options=829<PERFORMNUD,IFDISABLED,AUTO_LINKLOCAL,STABLEADDR> jexec j1 ifconfig epair10b epair10b: flags=1008843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST,LOWER_UP> metric 0 mtu 1500 options=60001b<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING,RXCSUM_IPV6,TXCSUM_IPV6> ether 58:9c:fc:10:f9:58 inet 192.168.1.10 netmask 0xffffff00 broadcast 192.168.1.255 groups: epair media: Ethernet 10Gbase-T (10Gbase-T <full-duplex>) status: active nd6 options=829<PERFORMNUD,IFDISABLED,AUTO_LINKLOCAL,STABLEADDR>
For the test, I compiled and installed the current version of the kernel on Host.
(In reply to Timo Voelker from comment #56) Hi Timo, sorry for the very very late reply. Unfortunately I haven't had time to test ($REAL_LIFE gets in the way too much), but one thing that I notice is that some of my jails have ethernet addresses generated from my USB ethernet, and some have them generated from the dpni0 base. These addresses were generated by iocage, and I haven't bothered to remove them, but maybe I should, if that's the problem.
(In reply to Justin Hibbits from comment #57) I'm not sure what you mean with "ethernet addresses generated from...". Each interface has a unique ethernet address, right? Can you post the outputs of ifconfig on the host and in each jail?
Hi Timo: Here's the ifconfig from the host (`ifconfig | grep -B3 -A1 ether` to get just the relevant bits for what I mean): dpni0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500 options=8002b<RXCSUM,TXCSUM,VLAN_MTU,JUMBO_MTU,LINKSTATE> ether ee:31:06:c8:00:11 -- nd6 options=21<PERFORMNUD,AUTO_LINKLOCAL> ue0: flags=1008943<UP,BROADCAST,RUNNING,PROMISC,SIMPLEX,MULTICAST,LOWER_UP> metric 0 mtu 1500 options=8000b<RXCSUM,TXCSUM,VLAN_MTU,LINKSTATE> ether d8:eb:97:b6:3e:3c -- nd6 options=29<PERFORMNUD,IFDISABLED,AUTO_LINKLOCAL> bridge0: flags=1008843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST,LOWER_UP> metric 0 mtu 1500 options=10<VLAN_HWTAGGING> ether d8:eb:97:b6:3e:3c inet 192.168.1.5 netmask 0xffffff00 broadcast 192.168.1.255 -- epair7a: flags=1008943<UP,BROADCAST,RUNNING,PROMISC,SIMPLEX,MULTICAST,LOWER_UP> metric 0 mtu 1500 description: jail:XXXX options=20000b<RXCSUM,TXCSUM,VLAN_MTU,RXCSUM_IPV6> ether d8:eb:97:97:d3:6b <<<< This is what I mean (follows ue0's ether) hwaddr 58:9c:fc:10:7e:45 -- epair6a: flags=1008943<UP,BROADCAST,RUNNING,PROMISC,SIMPLEX,MULTICAST,LOWER_UP> metric 0 mtu 1500 description: jail:XXXXX options=20000b<RXCSUM,TXCSUM,VLAN_MTU,RXCSUM_IPV6> ether d8:eb:97:07:4c:d6 hwaddr 58:9c:fc:10:ca:b0 -- epair12a: flags=1008943<UP,BROADCAST,RUNNING,PROMISC,SIMPLEX,MULTICAST,LOWER_UP> metric 0 mtu 1500 description: jail:XXXXX options=20000b<RXCSUM,TXCSUM,VLAN_MTU,RXCSUM_IPV6> ether ee:31:06:2a:9b:22 <<<<< Based off dpni0's ethernet hwaddr 58:9c:fc:10:f6:86 -- epair9a: flags=1008943<UP,BROADCAST,RUNNING,PROMISC,SIMPLEX,MULTICAST,LOWER_UP> metric 0 mtu 1500 description: jail:XXXX options=20000b<RXCSUM,TXCSUM,VLAN_MTU,RXCSUM_IPV6> ether d8:eb:97:6b:d3:8c hwaddr 58:9c:fc:10:86:85 -- epair8a: flags=1008943<UP,BROADCAST,RUNNING,PROMISC,SIMPLEX,MULTICAST,LOWER_UP> metric 0 mtu 1500 description: jail:XXXX options=20000b<RXCSUM,TXCSUM,VLAN_MTU,RXCSUM_IPV6> ether d8:eb:97:65:29:a8 hwaddr 58:9c:fc:10:d6:62 -- epair11a: flags=1008943<UP,BROADCAST,RUNNING,PROMISC,SIMPLEX,MULTICAST,LOWER_UP> metric 0 mtu 1500 description: jail:XXXXX options=20000b<RXCSUM,TXCSUM,VLAN_MTU,RXCSUM_IPV6> ether ee:31:06:98:17:55 hwaddr 58:9c:fc:10:04:63 -- epair14a: flags=1008943<UP,BROADCAST,RUNNING,PROMISC,SIMPLEX,MULTICAST,LOWER_UP> metric 0 mtu 1500 description: jail:XXXX options=20000b<RXCSUM,TXCSUM,VLAN_MTU,RXCSUM_IPV6> ether ee:31:06:94:c7:2c hwaddr 58:9c:fc:10:00:7a This is taken with the USB ethernet as the bridge base. I don't know of hwaddr has anything to do, but I explicitly set the ethernet address (`ifconfig epairNa ${epair_mac_a}`, same with epairNb)
^Triage: reassign to most recent committer. Is there anything further that needs to be done with this Problem Report?
(In reply to Mark Linimon from comment #60) Not sure. I still don't have working bridge setup using dpni on my Honeycomb LX2 system now upgraded to 15.1-RELEASE. It might be pilot error, but things work if I simply swap `ue0` for `dpni0` in my rc.conf.
Timo: I found the missing piece. The `ifconfig ${epair}a link ${epair_mac_a}` in my jail.conf, to change the link address, messes things up for dpni. If I get rid of those from my jail.conf, I am able to ping from other machines. But, the question becomes, why does this break for dpni?
Apparently I was wrong. Restarting the machine after removing the relevant `exec.prestart` lines from my jail.conf, jails still aren't working right. I ran tcpdump on my desktop filtering by the jail's MAC address. * When I ping my desktop from the jail, the desktop receives the pings and replies, but the jail doesn't see the replies. * I then tried to ssh from the jail into my desktop. tcpdump shows received checksums are correct and ssh is responding, but the jail shows no response. jail.conf is the same as what's in comment #50, and rc.conf is the "non-working" one in the attachments.
(In reply to Justin Hibbits from comment #63) and if you tcpdump on dpni based on the ip address of your desktop, do you see the packets arriving at the dpni at least? If you dump the dpni statistics by sysctl, do you see any dropped packets (though I am not sure if the stats updates are in 15.1; worth checking).
A commit in branch main references this bug: URL: https://cgit.FreeBSD.org/src/commit/?id=dc12e3e0e72a73f1ad1a14d8d0fa4e2147151720 commit dc12e3e0e72a73f1ad1a14d8d0fa4e2147151720 Author: Nick Price <nick@spun.io> AuthorDate: 2026-07-19 02:27:36 +0000 Commit: Adrian Chadd <adrian@FreeBSD.org> CommitDate: 2026-07-19 03:09:30 +0000 dpaa2: Apply if_flags and MAC filters in dpaa2_ni_init() dpaa2_ni_init() only enabled the DPNI object; it never pushed the promiscuous/allmulti state or the multicast filter table to the MC firmware. The SIOCSIFFLAGS handler ignores flag changes that arrive while the interface is down, yet still latches them into sc->if_flags, so a promiscuous mode request made before the first up was silently lost and could never be applied afterwards: the up path runs dpaa2_ni_init(), which did not read the flags, and every later SIOCSIFFLAGS compares against the already-latched value and sees no change. This is exactly what happens when if_bridge adds a dpni member while the dpni is still down, e.g. rc.conf's create_args_bridge0="... addm dpni0" running at bridge clone time, before ifconfig_dpni0="up" is processed. bridge_ioctl_add() puts the member into promiscuous mode at addm time; the request never reaches the firmware, so the DPNI continues to hardware-filter unicast destined to other MACs. ifconfig still reports PROMISC (a stack-level flag), which makes the failure invisible: the host stays reachable only via the DPNI's own MAC address (e.g. with net.link.bridge.inherit_mac=1), while bridged epair/vnet jail traffic is silently dropped on RX. Reapply both pieces of administrative state after enabling the DPNI, as other NIC drivers do in their init path. This also restores multicast memberships joined while the interface was down. PR: 292006 Reported by: jhibbits Signed-off-by: Nick Price <nick@spun.io> Reviewed by: jhibbits Differential Revision: https://reviews.freebsd.org/D58330 sys/dev/dpaa2/dpaa2_ni.c | 11 +++++++++++ 1 file changed, 11 insertions(+)
(In reply to Bjoern A. Zeeb from comment #64) https://reviews.freebsd.org/D58330 appears to fix the problem for me. I was able to boot a HEAD kernel with that patch successfully, all my jails are working fine now.
Closing this, since it seems to be fixed. Please reopen otherwise.
A commit in branch stable/15 references this bug: URL: https://cgit.FreeBSD.org/src/commit/?id=7fd3c8d6028827b5becb2010baf43923841b3029 commit 7fd3c8d6028827b5becb2010baf43923841b3029 Author: Nick Price <nprice@FreeBSD.org> AuthorDate: 2026-07-19 02:27:36 +0000 Commit: Nick Price <nprice@FreeBSD.org> CommitDate: 2026-08-13 02:00:13 +0000 dpaa2: Apply if_flags and MAC filters in dpaa2_ni_init() make sure interface flags and filters are reprogrammed during init(). The config isn't pushed into the hardware when the interface is down but the flags are still being set, so we need to do the initial programming ourselves. This fixes bridge and multicast behavior. PR: 292006 Reported by: jhibbits Approved by: adrian Reviewed by: jhibbits Differential Revision: https://reviews.freebsd.org/D58330 (cherry picked from commit dc12e3e0e72a73f1ad1a14d8d0fa4e2147151720) Signed-off-by: Nick Price <nprice@FreeBSD.org> sys/dev/dpaa2/dpaa2_ni.c | 11 +++++++++++ 1 file changed, 11 insertions(+)