Issues with epair and netmap require hardware to perform testing (as far as I
can tell). Instead I tested with two hosts I have an 4 igc interfaces. I tested
with pkt-gen to verify that traffic can be sent (it could already) and received
by a netmap application:
dut # ifconfig lagg create lagg0 dut # ifconfig igc1 up dut # ifconfig igc2 up dut # sudo ifconfig lagg0 inet 10.4.100.2/24 laggport igc1 laggport igc2 laggproto lacp up pktgen # ifconfig lagg create lagg0 pktgen # ifconfig igc0 up pktgen # ifconfig igc1 up pktgen # sudo ifconfig lagg0 inet 10.4.100.3/24 laggport igc0 laggport igc1 laggproto lacp up # cd /usr/obj/code/freebsd/worktrees/netmap/amd64.amd64/tools/tools/netmap dut # sudo ./pkt-gen -f rx -i lagg0 pktgen # sudo ./pkt-gen -f tx -i lagg0 -n 1000000000 -l 60 -d 198.19.0.1:2000-198.19.0.100 -D a0:36:9f:1e:28:14 -s 198.18.0.1:2000-198.18.0.20 -w 4