doesn't fit packets into the host's rx buffer until it's full, it keeps
going as long as it has space in its own receive buffer, and then
truncates to fit the usb transfer. The packet descriptors are at the end,
so this means losing all the packets in the buffer. At 32kB, it's fairly
easy to overrun, but 62kB seems fine.
tested by and ok mlarkin@
-/* $OpenBSD: if_uaq.c,v 1.2 2021/12/31 08:15:47 jmatthew Exp $ */
+/* $OpenBSD: if_uaq.c,v 1.3 2022/04/24 00:04:10 jmatthew Exp $ */
/*-
* Copyright (c) 2021 Jonathan Matthew <jonathan@d14n.org>
* All rights reserved.
#define UAQ_RX_BUF_ALIGN 8
#define UAQ_TX_BUFSZ 16384
-#define UAQ_RX_BUFSZ 32768
+#define UAQ_RX_BUFSZ (62 * 1024)
#define UAQ_CTL_READ 1
#define UAQ_CTL_WRITE 2