ng_eth: can't achieve 10G throughput

From: Benoit Chesneau <benoitc_at_enki-multimedia.eu>
Date: Tue, 29 Nov 2022 11:05:33 UTC
hi all ,

I've an issue to achieve goos performance using netgraph thatis not reproduced with a if_bridge interface. I have setup my network using netgraph like this:
https://www.friendpaste.com/4zrXvdx1l5fjDRG1oheHMN

I am using ngeth1 as main port and setup it to 10G connected to a bridge linked to the  main interface ixl2 as the diagram below show:

https://imgur.com/a/5nTHqEi

But I can't get more than 1.5Gb/s throughput (see iperf log below)
```
 iperf3 -c XXXX:10
Connecting to host XXXX::10, port 5201
[  5] local XXXX::11 port 24822 connected to XXXX::10 port 5201
[ ID] Interval           Transfer     Bitrate         Retr  Cwnd
[  5]   0.00-1.00   sec   192 MBytes  1.61 Gbits/sec  141   70.3 KBytes
[  5]   1.00-2.00   sec   193 MBytes  1.62 Gbits/sec  143   64.7 KBytes
[  5]   2.00-3.00   sec   194 MBytes  1.63 Gbits/sec  144   43.6 KBytes
[  5]   3.00-4.00   sec   183 MBytes  1.54 Gbits/sec  144   46.4 KBytes
[  5]   4.00-5.00   sec   196 MBytes  1.64 Gbits/sec  144   23.9 KBytes
[  5]   5.00-6.00   sec   190 MBytes  1.60 Gbits/sec  143   2.81 KBytes
[  5]   6.00-7.00   sec   169 MBytes  1.42 Gbits/sec  146   11.2 KBytes
[  5]   7.00-8.00   sec   164 MBytes  1.38 Gbits/sec  147   73.1 KBytes
[  5]   8.00-9.00   sec   166 MBytes  1.39 Gbits/sec  147   75.9 KBytes
[  5]   9.00-10.00  sec   166 MBytes  1.39 Gbits/sec  147   8.44 KBytes
- - - - - - - - - - - - - - - - - - - - - - - - -
[ ID] Interval           Transfer     Bitrate         Retr
[  5]   0.00-10.00  sec  1.77 GBytes  1.52 Gbits/sec  1446             sender
[  5]   0.00-10.00  sec  1.77 GBytes  1.52 Gbits/sec                  receiver
```

Where with the interface alone I get 9.8 Gb/s. With an if_bridge bridge I get  7Gb/s . Any idea what's wrong in my configuration? Also why an ng_eth interface is set to 1 1000baseT mode while epar is set correctly to 10GbaseT ? 

Benoît