OPNsense Forum

English Forums => General Discussion => Topic started by: normanu on May 30, 2025, 11:51:42 AM

Title: if_pppoe performance on APU2
Post by: normanu on May 30, 2025, 11:51:42 AM
Does anyone know if the "new" if_pppoe from FreeBSD gives a performance boost on APU2's?
If it would give the APU2 the possibility to reach 1GBit (like in Linux) that would be awesome.

I just saw PFsense has switched to it or at least gives you the option to switch to it, will OPNsense do the same?
Title: Re: if_pppoe performance on APU2
Post by: patient0 on June 12, 2025, 06:14:49 AM
The other Sense is on FreeBSD 15-CURRENT and OPNsense on FreeBSD 14. The if_pppoe kernel module is developed by them. For OPnsense to be able to use it, it has to be made available upstream and has to be backported to FreeBSD 14.

Or if upstreamed it may will be available when OPNsense switches to FreeBSD 15-RELEASE (official FreeBSD 15 release schedule: https://www.freebsd.org/releases/15.0R/schedule/).
Title: Re: if_pppoe performance on APU2
Post by: franco on June 13, 2025, 07:30:53 AM
There are no plans that this will be open sourced to my knowledge. I'm still waiting on a word if they copied it from another BSD? ;)
Title: Re: if_pppoe performance on APU2
Post by: grind on June 13, 2025, 06:56:35 PM
Quote from: franco on June 13, 2025, 07:30:53 AMI'm still waiting on a word if they copied it from another BSD? ;)
strings if_pppoe.ko and googling the messages give a hint ;)
Title: Re: if_pppoe performance on APU2
Post by: franco on June 16, 2025, 09:38:42 AM
I don't have a pfSense laying around to chase this, but my guess is it starts with "o" as all good things do ;)
Title: Re: if_pppoe performance on APU2
Post by: Patrick M. Hausen on June 16, 2025, 10:24:17 AM
The OpenBSD driver is originally from NetBSD like many things in OpenBSD are. :-)
Title: Re: if_pppoe performance on APU2
Post by: franco on June 17, 2025, 08:43:51 AM
Just for historic context: OpenBSD is also a NetBSD fork.
Title: Re: if_pppoe performance on APU2
Post by: normanu on June 18, 2025, 04:34:34 PM
As I read it, it is a heavily optimized version of the OpenBSD one.
It seems they are going to keep it only for pfsense
Title: Re: if_pppoe performance on APU2
Post by: franco on June 18, 2025, 06:24:24 PM
Or they just say that for marketing reasons.

My opinion is they've never written a golden piece of code that warrants admiration. Take the WireGuard debacle as a good indicator of quality assurance and/or budget constraint. You get what you pay for.


Cheers,
Franco
Title: Re: if_pppoe performance on APU2
Post by: normanu on June 18, 2025, 09:23:56 PM
Mm I do believe the OpenBSD one is single threaded?
Title: Re: if_pppoe performance on APU2
Post by: franco on June 19, 2025, 10:02:08 AM
¯\_(ツ)_/¯
Title: Re: if_pppoe performance on APU2
Post by: Patrick M. Hausen on June 19, 2025, 10:11:01 AM
Isn't OpenBSD single threaded? :-P
Title: Re: if_pppoe performance on APU2
Post by: franco on June 19, 2025, 11:23:23 AM
I think so. And iflib in FreeBSD allows easy deployment of a multi-threaded driver like the infamously pulled WireGuard implementation.


Cheers,
Franco