Skip to content

Instantly share code, notes, and snippets.

View seanbruno's full-sized avatar

Sean Bruno seanbruno

View GitHub Profile
Cockatrice Client build:
pkg install cmake \
protobuf \
qt5-buildtools \
qt5-concurrent \
qt5-network \
qt5-qmake \
qt5-websockets \
qt5-widgets \
qt5-gui \
sbruno@admin.cyb:~ % telnet 10.0.31.10 4001
Trying 10.0.31.10...
Connected to 10.0.31.10.
Escape character is '^]'.
root@igw0.cybexit
(igw0.cyb.freebsd.org) (ttyu0)
login: ^]
# tip -s 115200 -8n1 /dev/ttyS0
Connected.
root@igw0.cyb:~ # cat /var/unbound/unbound.conf
# $AdminSVN: clusteradm/site.cyb/unbound.conf 10614 2018-04-27 14:32:25Z sbruno $
server:
username: unbound
directory: /var/unbound
chroot: /var/unbound
pidfile: /var/run/local_unbound.pid
/var/tmp/usr/home/sbruno/bsd/fbsd_head/mips.mips64/tmp/usr/bin/ld: BFD 2.17.50 [FreeBSD] 2007-07-03 assertion fail /usr/home/sbruno/bsd/fbsd_head/gnu/usr.bin/binutils/libbfd/../../../../contrib/binutils/bfd/elfxx-mips.c:2767
/var/tmp/usr/home/sbruno/bsd/fbsd_head/mips.mips64/tmp/usr/bin/ld: BFD 2.17.50 [FreeBSD] 2007-07-03 assertion fail /usr/home/sbruno/bsd/fbsd_head/gnu/usr.bin/binutils/libbfd/../../../../contrib/binutils/bfd/elfxx-mips.c:7455
/var/tmp/usr/home/sbruno/bsd/fbsd_head/mips.mips64/tmp/usr/bin/ld: BFD 2.17.50 [FreeBSD] 2007-07-03 assertion fail /usr/home/sbruno/bsd/fbsd_head/gnu/usr.bin/binutils/libbfd/../../../../contrib/binutils/bfd/elfxx-mips.c:2472
ln.lo: In function `_$$hide$$ ln.lo linkit':
_$$hide$$ ln.lo ln.c:(.text+0x758): relocation truncated to fit: R_MIPS_CALL16 against `dirname'
mkdir.lo: In function `_$$hide$$ mkdir.lo main':
(.text+0x474): relocation truncated to fit: R_MIPS_CALL16 against `dirname'
sh.lo: In function `_$$hide$$ sh.lo bindcmd':
(.text+0xdf20): relocation truncated
Index: sys/net/iflib.c
===================================================================
--- sys/net/iflib.c (revision 321883)
+++ sys/net/iflib.c (working copy)
@@ -4096,8 +4096,8 @@
MPASS(scctx->isc_tx_csum_flags);
#endif
- if_setcapabilities(ifp, scctx->isc_capenable);
- if_setcapenable(ifp, scctx->isc_capenable);
NFS ROOT: 10.12.13.13:/tftpboot/netboot_syssw05
Link state changed to up
em0: link state changed to UP
panic: Assertion m->m_pkthdr.len <= ifp->if_mtu failed at /usr/home/sbruno/fbsd_head_svn/sys/net/iflib.c:2531
time = 1502316540
KDB: stack backtrace:
db_trace_self_wrapper() at db_trace_self_wrapper+0x2b/frame 0xfffffe035105f990
vpanic() at vpanic+0xdd/frame 0xfffffe035105f9c0
kassert_panic() at kassert_panic+0x125/frame 0xfffffe035105fa30
_task_fn_rx() at _task_fn_rx+0x76a/frame 0xfffffe035105fb20
Index: iflib.c
===================================================================
--- iflib.c (revision 321883)
+++ iflib.c (working copy)
@@ -2528,6 +2528,7 @@
/* will advance the cidx on the corresponding free lists */
m = iflib_rxd_pkt_get(rxq, &ri);
+MPASS(m->m_pkthdr.len <= ifp->if_mtu);
if (avail == 0 && budget_left)
[ 5] 0.00-30.00 sec 3.18 GBytes 911 Mbits/sec 0 173 KBytes
igb0 in 0.000 KB/s 223.139 MB/s 130.616 GB
-- Version -- SMP -- ULE -- 4BSD | -- no_tx_batch -- latency --
-- HEAD -- N -- N -- Y | -- Y -- Y --
[ ID] Interval Transfer Bandwidth
[ 5] 0.00-1.00 sec 33.6 MBytes 282 Mbits/sec
[ 5] 1.00-2.00 sec 37.6 MBytes 315 Mbits/sec
[ 5] 2.00-3.00 sec 37.5 MBytes 315 Mbits/sec
-- Version -- SMP -- ULE -- 4BSD | -- no_tx_batch -- latency --
-- HEAD -- N -- N -- Y | -- N -- Y --
[ ID] Interval Transfer Bandwidth
[ 5] 0.00-1.00 sec 33.7 MBytes 283 Mbits/sec
sbruno@alice:~/bsd/fbsd_head/sys % grep -r isc_nrxqsets_max *
dev/e1000/if_em.c: scctx->isc_nrxqsets_max = scctx->isc_ntxqsets_max = em_set_num_queues(ctx);
net/iflib.h: int isc_nrxqsets_max;
net/iflib.c: if (scctx->isc_nrxqsets == 0 || (scctx->isc_nrxqsets_max && scctx->isc_nrxqsets_max < scctx->isc_nrxqsets))
net/iflib.c: scctx->isc_nrxqsets = scctx->isc_nrxqsets_max;
sbruno@alice:~/bsd/fbsd_head/sys % grep -r isc_max_txqsets *
dev/bnxt/if_bnxt.c: scctx->isc_max_txqsets = min(softc->func.max_rx_rings,
dev/ixgbe/if_ixv.c: scctx->isc_max_txqsets = scctx->isc_max_rxqsets = 2;
dev/ixgbe/if_ix.c: scctx->isc_max_txqsets = scctx->isc_max_rxqsets = 32;
net/iflib.h: int isc_max_txqsets;