[PATCH] wireguard-tools: allow compiling with MIPS16 instructions
Rosen Penev
rosenp at gmail.com
Fri Jul 24 04:32:04 EDT 2020
> On Jul 24, 2020, at 1:14 AM, Jason A. Donenfeld <Jason at zx2c4.com> wrote:
>
> On Fri, Jul 24, 2020 at 10:03 AM Rui Salvaterra <rsalvaterra at gmail.com> wrote:
>>
>> The wg utility compiles and runs without issues in MIPS16 mode, despite setting
>> PKG_USE_MIPS16:=0 in the makefile. Let's remove this, allowing for a substantial
>> size reduction of the wg executable. Since wg is a just a configuration utility,
>> it shouldn't be performance-critical, as the crypto heavy-lifting is done on the
>> kernel side.
>>
>> wg sizes for both modes:
>>
>> MIPS32: 64309 bytes
>> MIPS16: 42501 bytes
>
> Seems probably fine to me, but would you let me know if the
> performance of `wg pubkey` suffers as a result?
Of course. I imagine it’s very tiny. Logging in to the router with ssh is much slower.
> I'm far from home at
> the moment without any access to MIPS hardware to test myself.
>
> Jason
>
> _______________________________________________
> openwrt-devel mailing list
> openwrt-devel at lists.openwrt.org
> https://lists.openwrt.org/mailman/listinfo/openwrt-devel
More information about the openwrt-devel
mailing list