Hi, There are two separate issues here. The first it's updating pkt-gen. This is what I'm trying to do right now ( https://reviews.freebsd.org/D17698). The update will land in HEAD and then after 3 days in 12/stable. I will also update 11/stable later.
The second issue looks like a problem related to the em driver. As far as I know, netmap support for em driver is now provided by iflib (sys/net/iflib.c). Maybe there is an issue in iflib_netmap_txsync() that prevents progress? Or maybe the interface is down while TX is stuck (thus preventing progress)? Cheers, Vincenzo Il giorno lun 5 nov 2018 alle ore 22:21 Lev Serebryakov <l...@freebsd.org> ha scritto: > Hello Freebsd-net, > > Is `pkt-gen' (for netmap) supported on FreeBSD? > > ${SRCTOP}/tools/tools/netmap/pkt-gen.c is very old and could not be built > (I've checked stable/11, stable/12 and head). > > ${PORTS}/net/pkt-gen is not so old, but more than year old + patches > > pkt-gen from github could be built on CURRENT, but can not finish > transmission: > > 236.545902 main_thread [2605] 0 pps (0 pkts 0 bps in 1031501 usec) 0.00 > avg_batch 99999 min_space > 237.000000 sender_body [1687] pending tx tail 446 head 448 on ring 0 > 237.000007 sender_body [1687] pending tx tail 446 head 448 on ring 0 > 237.000011 sender_body [1687] pending tx tail 446 head 448 on ring 0 > 237.000016 sender_body [1687] pending tx tail 446 head 448 on ring 0 > 237.000020 sender_body [1687] pending tx tail 446 head 448 on ring 0 > 237.607508 main_thread [2605] 0 pps (0 pkts 0 bps in 1061606 usec) 0.00 > avg_batch 99999 min_space > 238.000000 sender_body [1687] pending tx tail 446 head 448 on ring 0 > 238.000005 sender_body [1687] pending tx tail 446 head 448 on ring 0 > 238.000009 sender_body [1687] pending tx tail 446 head 448 on ring 0 > 238.000013 sender_body [1687] pending tx tail 446 head 448 on ring 0 > 238.000017 sender_body [1687] pending tx tail 446 head 448 on ring 0 > (forever) > > and can not be used in benchmarking scripts... > > Which one should I use? How could I be sure that transmission of given > number of packets will be finished in finite time no matter what? Is this > problem with tx queue really driver problem or netmap problem? > > > -- > Best regards, > Lev mailto:l...@freebsd.org > > _______________________________________________ > freebsd-net@freebsd.org mailing list > https://lists.freebsd.org/mailman/listinfo/freebsd-net > To unsubscribe, send any mail to "freebsd-net-unsubscr...@freebsd.org" > -- Vincenzo _______________________________________________ freebsd-net@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/freebsd-net To unsubscribe, send any mail to "freebsd-net-unsubscr...@freebsd.org"