> From: John DiMarco <[email protected]>
> Date: Mon, 20 Sep 2021 09:34:25 -0400
>
> In message <[email protected]>I wrote:
> >I dug out my old cubieboard (the original Allwinner A10 version) and put
> >openbsd 6.9 on it. It works fine except for one thing: the network card
> >(sxie0) doesn't seem to be able to see any broadcast packets. This breaks
> >arp: nothing can talk to the cubieboard over the network until the cubieboard
> >first talks to it.
> >
> >"tcpdump -i sxie0 broadcast" shows nothing despite plenty of broadcast
> >packets on the network.
>
> I tried a realtek USB to ethernet adapter, just to see if the problem is
> specific to the sxie driver. The realtek works (broadcasts are visible,
> arp works) so I suspect it is an sxie driver issue.
Hi John,
This doesn't surprise me; sxie(4) isn't in great shape and has lots of
XXX comments. Does the diff below help?
Cheers,
Mark
Index: arch/armv7/sunxi/sxie.c
===================================================================
RCS file: /cvs/src/sys/arch/armv7/sunxi/sxie.c,v
retrieving revision 1.32
diff -u -p -r1.32 sxie.c
--- arch/armv7/sunxi/sxie.c 25 Mar 2021 04:12:01 -0000 1.32
+++ arch/armv7/sunxi/sxie.c 20 Sep 2021 13:52:29 -0000
@@ -347,6 +347,7 @@ sxie_setup_interface(struct sxie_softc *
SXIE_RXPCRCE | SXIE_RXPLE | SXIE_RXMHF | SXIE_RXSAF |
SXIE_RXSAIF;
set_m = SXIE_RXPOR | SXIE_RXUCAD | SXIE_RXDAF | SXIE_RXBCO;
+ set_m |= SXI_RXMCO;
SXICMS4(sc, SXIE_RXCR, clr_m, set_m);
/* configure MAC */