[netpfga] Add default action for matching, remove commands.txt

This commit is contained in:
Nico Schottelius 2019-07-17 17:24:34 +02:00
parent ed6c4daec9
commit 87d2db4b5f
3 changed files with 196 additions and 1 deletions

View File

@ -5302,6 +5302,200 @@ My code is +1 too high
*** 2019-07-17: continuing on wrap around issue
*** 2019-07-17: connect new intel card: cable problem
#+BEGIN_CENTER
[ 37.557095] ixgbe 0000:02:00.0: failed to initialize because an unsupported SFP+ module type was detected.
[ 37.557098] ixgbe 0000:02:00.0: Reload the driver after installing a supported module.
[ 37.557336] ixgbe 0000:02:00.0: removed PHC on enp2s0f0
[ 59.424009] ixgbe 0000:02:00.1 enp2s0f1: detected SFP+: 8
[ 59.491323] ixgbe 0000:02:00.1 enp2s0f1: NIC Link is Up 10 Gbps, Flow Control: RX/TX
[ 59.491337] IPv6: ADDRCONF(NETDEV_CHANGE): enp2s0f1: link becomes ready
[ 145.635032] ixgbe 0000:02:00.1 enp2s0f1: NIC Link is Down
[ 150.041118] IPv6: ADDRCONF(NETDEV_UP): enp2s0f1: link is not ready
[ 155.583358] ixgbe 0000:02:00.1: failed to initialize because an unsupported SFP+ module type was detected.
[ 155.583367] ixgbe 0000:02:00.1: Reload the driver after installing a supported module.
[ 155.583615] ixgbe 0000:02:00.1: removed PHC on enp2s0f1
root@ESPRIMO-P956:~# modprobe -r ixgbe
root@ESPRIMO-P956:~# modprobe ixgbe
root@ESPRIMO-P956:~# dmesg
[ 414.079745] ixgbe 0000:02:00.1: complete
[ 414.080294] ixgbe 0000:02:00.0: complete
[ 418.986686] dca service started, version 1.12.1
[ 418.999017] ixgbe: Intel(R) 10 Gigabit PCI Express Network Driver - version 5.1.0-k
[ 418.999018] ixgbe: Copyright (c) 1999-2016 Intel Corporation.
[ 420.175483] ixgbe 0000:02:00.0: Multiqueue Enabled: Rx Queue count = 8, Tx Queue count = 8 XDP Queue count = 0
[ 420.175601] ixgbe 0000:02:00.0: PCI Express bandwidth of 16GT/s available
[ 420.175602] ixgbe 0000:02:00.0: (Speed:5.0GT/s, Width: x4, Encoding Loss:20%)
[ 420.175603] ixgbe 0000:02:00.0: This is not sufficient for optimal performance of this card.
[ 420.175604] ixgbe 0000:02:00.0: For optimal performance, at least 20GT/s of bandwidth is required.
[ 420.175605] ixgbe 0000:02:00.0: A slot with more lanes and/or higher speed is suggested.
[ 420.175906] ixgbe 0000:02:00.0: MAC: 2, PHY: 1, PBA No: G63082-007
[ 420.175907] ixgbe 0000:02:00.0: f8:f2:1e:09:62:d0
[ 420.177427] ixgbe 0000:02:00.0: Intel(R) 10 Gigabit Network Connection
[ 420.177431] ixgbe 0000:02:00.0 enp2s0f0: renamed from eth0
[ 420.240323] IPv6: ADDRCONF(NETDEV_UP): enp2s0f0: link is not ready
[ 420.276463] ixgbe 0000:02:00.0: registered PHC device on enp2s0f0
[ 420.385392] IPv6: ADDRCONF(NETDEV_UP): enp2s0f0: link is not ready
[ 420.393319] IPv6: ADDRCONF(NETDEV_UP): enp2s0f0: link is not ready
[ 420.406500] IPv6: ADDRCONF(NETDEV_UP): enp2s0f0: link is not ready
[ 421.355467] ixgbe 0000:02:00.1: Multiqueue Enabled: Rx Queue count = 8, Tx Queue count = 8 XDP Queue count = 0
[ 421.355586] ixgbe 0000:02:00.1: PCI Express bandwidth of 16GT/s available
[ 421.355587] ixgbe 0000:02:00.1: (Speed:5.0GT/s, Width: x4, Encoding Loss:20%)
[ 421.355588] ixgbe 0000:02:00.1: This is not sufficient for optimal performance of this card.
[ 421.355589] ixgbe 0000:02:00.1: For optimal performance, at least 20GT/s of bandwidth is required.
[ 421.355590] ixgbe 0000:02:00.1: A slot with more lanes and/or higher speed is suggested.
[ 421.355892] ixgbe 0000:02:00.1: MAC: 2, PHY: 1, PBA No: G63082-007
[ 421.355893] ixgbe 0000:02:00.1: f8:f2:1e:09:62:d1
[ 421.357537] ixgbe 0000:02:00.1 enp2s0f1: renamed from eth0
[ 421.388627] ixgbe 0000:02:00.1: Intel(R) 10 Gigabit Network Connection
[ 421.395520] IPv6: ADDRCONF(NETDEV_UP): enp2s0f1: link is not ready
[ 421.432277] ixgbe 0000:02:00.1: registered PHC device on enp2s0f1
[ 421.541402] IPv6: ADDRCONF(NETDEV_UP): enp2s0f1: link is not ready
root@ESPRIMO-P956:~#
[ 466.049782] IPv6: ADDRCONF(NETDEV_UP): enp2s0f0: link is not ready
[ 466.057111] IPv6: ADDRCONF(NETDEV_UP): enp2s0f0: link is not ready
[ 488.265148] ixgbe 0000:02:00.0: failed to initialize because an unsupported SFP+ module type was detected.
[ 488.265157] ixgbe 0000:02:00.0: Reload the driver after installing a supported module.
[ 488.265605] ixgbe 0000:02:00.0: removed PHC on enp2s0f0
#+END_CENTER
*** TODO 2019-07-17: pci-e link speed not enough for 10gbit/s cards: seems ok
eth.nico:
#+BEGIN_CENTER
⚡ root  root grep ixgbe dmesg
[ 0.000000] Command line: BOOT_IMAGE=/vmlinuz-4.15.0-52-generic root=/dev/mapper/ubuntu--vg-root ro net.ifnames=0 biosdevname=0 ixgbe.allow_unsupported_sfp=1 quiet splash vt.handoff=7
[ 0.000000] Kernel command line: BOOT_IMAGE=/vmlinuz-4.15.0-52-generic root=/dev/mapper/ubuntu--vg-root ro net.ifnames=0 biosdevname=0 ixgbe.allow_unsupported_sfp=1 quiet splash vt.handoff=7
[ 0.846649] ixgbe: Intel(R) 10 Gigabit PCI Express Network Driver - version 5.1.0-k
[ 0.846650] ixgbe: Copyright (c) 1999-2016 Intel Corporation.
[ 1.010910] ixgbe 0000:04:00.0: Multiqueue Enabled: Rx Queue count = 8, Tx Queue count = 8 XDP Queue count = 0
[ 1.011030] ixgbe 0000:04:00.0: PCI Express bandwidth of 16GT/s available
[ 1.011031] ixgbe 0000:04:00.0: (Speed:5.0GT/s, Width: x4, Encoding Loss:20%)
[ 1.011031] ixgbe 0000:04:00.0: This is not sufficient for optimal performance of this card.
[ 1.011032] ixgbe 0000:04:00.0: For optimal performance, at least 20GT/s of bandwidth is required.
[ 1.011033] ixgbe 0000:04:00.0: A slot with more lanes and/or higher speed is suggested.
[ 1.011110] ixgbe 0000:04:00.0: MAC: 2, PHY: 15, SFP+: 7, PBA No: E68793-009
[ 1.011111] ixgbe 0000:04:00.0: f8:f2:1e:41:44:9c
[ 1.012491] ixgbe 0000:04:00.0: Intel(R) 10 Gigabit Network Connection
[ 1.162887] ixgbe 0000:04:00.1: Multiqueue Enabled: Rx Queue count = 8, Tx Queue count = 8 XDP Queue count = 0
[ 1.163007] ixgbe 0000:04:00.1: PCI Express bandwidth of 16GT/s available
[ 1.163008] ixgbe 0000:04:00.1: (Speed:5.0GT/s, Width: x4, Encoding Loss:20%)
[ 1.163008] ixgbe 0000:04:00.1: This is not sufficient for optimal performance of this card.
[ 1.163009] ixgbe 0000:04:00.1: For optimal performance, at least 20GT/s of bandwidth is required.
[ 1.163010] ixgbe 0000:04:00.1: A slot with more lanes and/or higher speed is suggested.
[ 1.163086] ixgbe 0000:04:00.1: MAC: 2, PHY: 15, SFP+: 8, PBA No: E68793-009
[ 1.163087] ixgbe 0000:04:00.1: f8:f2:1e:41:44:9d
[ 1.164565] ixgbe 0000:04:00.1: Intel(R) 10 Gigabit Network Connection
#+END_CENTER
eth2.nico:
#+BEGIN_CENTER
dmesg3:[ 573.684999] ixgbe 0000:02:00.0: removed PHC on enp2s0f0
dmesg3:[ 574.024541] ixgbe 0000:02:00.0: complete
dmesg3:[ 576.638199] ixgbe: Intel(R) 10 Gigabit PCI Express Network Driver - version 5.1.0-k
dmesg3:[ 576.638200] ixgbe: Copyright (c) 1999-2016 Intel Corporation.
dmesg3:[ 577.815631] ixgbe 0000:02:00.0: Multiqueue Enabled: Rx Queue count = 8, Tx Queue count = 8 XDP Queue count = 0
dmesg3:[ 577.815750] ixgbe 0000:02:00.0: PCI Express bandwidth of 16GT/s available
dmesg3:[ 577.815752] ixgbe 0000:02:00.0: (Speed:5.0GT/s, Width: x4, Encoding Loss:20%)
dmesg3:[ 577.815753] ixgbe 0000:02:00.0: This is not sufficient for optimal performance of this card.
dmesg3:[ 577.815754] ixgbe 0000:02:00.0: For optimal performance, at least 20GT/s of bandwidth is required.
dmesg3:[ 577.815755] ixgbe 0000:02:00.0: A slot with more lanes and/or higher speed is suggested.
dmesg3:[ 577.816056] ixgbe 0000:02:00.0: MAC: 2, PHY: 1, PBA No: G63082-007
dmesg3:[ 577.816057] ixgbe 0000:02:00.0: f8:f2:1e:09:62:d0
dmesg3:[ 577.817719] ixgbe 0000:02:00.0: Intel(R) 10 Gigabit Network Connection
dmesg3:[ 577.817722] ixgbe 0000:02:00.0 enp2s0f0: renamed from eth0
dmesg3:[ 577.882377] ixgbe 0000:02:00.0: registered PHC device on enp2s0f0
dmesg3:[ 578.995638] ixgbe 0000:02:00.1: Multiqueue Enabled: Rx Queue count = 8, Tx Queue count = 8 XDP Queue count = 0
dmesg3:[ 578.995757] ixgbe 0000:02:00.1: PCI Express bandwidth of 16GT/s available
dmesg3:[ 578.995758] ixgbe 0000:02:00.1: (Speed:5.0GT/s, Width: x4, Encoding Loss:20%)
dmesg3:[ 578.995759] ixgbe 0000:02:00.1: This is not sufficient for optimal performance of this card.
dmesg3:[ 578.995760] ixgbe 0000:02:00.1: For optimal performance, at least 20GT/s of bandwidth is required.
dmesg3:[ 578.995761] ixgbe 0000:02:00.1: A slot with more lanes and/or higher speed is suggested.
dmesg3:[ 578.996063] ixgbe 0000:02:00.1: MAC: 2, PHY: 1, PBA No: G63082-007
dmesg3:[ 578.996064] ixgbe 0000:02:00.1: f8:f2:1e:09:62:d1
dmesg3:[ 578.997411] ixgbe 0000:02:00.1: Intel(R) 10 Gigabit Network Connection
dmesg3:[ 578.998196] ixgbe 0000:02:00.1 enp2s0f1: renamed from eth0
dmesg3:[ 579.058295] ixgbe 0000:02:00.1: registered PHC device on enp2s0f1
dmesg3:[ 587.785222] ixgbe 0000:02:00.1 enp2s0f1: detected SFP+: 8
root@ESPRIMO-P956:~#
#+END_CENTER
Testing using iperf3:
#+BEGIN_CENTER
Time: Wed, 17 Jul 2019 15:07:45 GMT
Connecting to host 2001:db8:42::43, port 5201
Cookie: ESPRIMO-P956.1563376065.223736.3cd5b
TCP MSS: 1428 (default)
[ 4] local 2001:db8:42::42 port 44996 connected to 2001:db8:42::43 port 5201
Starting Test: protocol: TCP, 1 streams, 131072 byte blocks, omitting 0 seconds, 10 second test
[ ID] Interval Transfer Bandwidth Retr Cwnd
[ 4] 0.00-1.00 sec 1.08 GBytes 9.31 Gbits/sec 7 662 KBytes
[ 4] 1.00-2.00 sec 1.08 GBytes 9.28 Gbits/sec 0 672 KBytes
[ 4] 2.00-3.00 sec 1.08 GBytes 9.28 Gbits/sec 0 678 KBytes
[ 4] 3.00-4.00 sec 1.08 GBytes 9.29 Gbits/sec 0 682 KBytes
[ 4] 4.00-5.00 sec 1.08 GBytes 9.28 Gbits/sec 0 703 KBytes
[ 4] 5.00-6.00 sec 1.08 GBytes 9.29 Gbits/sec 0 703 KBytes
[ 4] 6.00-7.00 sec 1.08 GBytes 9.28 Gbits/sec 0 853 KBytes
[ 4] 7.00-8.00 sec 1.08 GBytes 9.29 Gbits/sec 0 853 KBytes
[ 4] 8.00-9.00 sec 1.08 GBytes 9.28 Gbits/sec 0 853 KBytes
[ 4] 9.00-10.00 sec 1.08 GBytes 9.29 Gbits/sec 0 853 KBytes
- - - - - - - - - - - - - - - - - - - - - - - - -
Test Complete. Summary Results:
[ ID] Interval Transfer Bandwidth Retr
[ 4] 0.00-10.00 sec 10.8 GBytes 9.29 Gbits/sec 7 sender
[ 4] 0.00-10.00 sec 10.8 GBytes 9.28 Gbits/sec receiver
CPU Utilization: local/sender 32.7% (1.2%u/31.5%s), remote/receiver 31.4% (2.7%u/28.8%s)
iperf Done.
root@ESPRIMO-P956:~#
#+END_CENTER
server side (netpfga host)
#+BEGIN_CENTER
✘ ⚡ root  root  iperf3 -V -s
iperf 3.0.11
Linux nsg-System 4.15.0-52-generic #56~16.04.1-Ubuntu SMP Thu Jun 6 12:03:31 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux
-----------------------------------------------------------
Server listening on 5201
-----------------------------------------------------------
Time: Wed, 17 Jul 2019 15:07:45 GMT
Accepted connection from 2001:db8:42::42, port 44994
Cookie: ESPRIMO-P956.1563376065.223736.3cd5b
TCP MSS: 1428 (default)
[ 5] local 2001:db8:42::43 port 5201 connected to 2001:db8:42::42 port 44996
Starting Test: protocol: TCP, 1 streams, 131072 byte blocks, omitting 0 seconds, 10 second test
[ ID] Interval Transfer Bandwidth
[ 5] 0.00-1.00 sec 1.04 GBytes 8.92 Gbits/sec
[ 5] 1.00-2.00 sec 1.08 GBytes 9.28 Gbits/sec
[ 5] 2.00-3.00 sec 1.08 GBytes 9.28 Gbits/sec
[ 5] 3.00-4.00 sec 1.08 GBytes 9.28 Gbits/sec
[ 5] 4.00-5.00 sec 1.08 GBytes 9.28 Gbits/sec
[ 5] 5.00-6.00 sec 1.08 GBytes 9.28 Gbits/sec
[ 5] 6.00-7.00 sec 1.08 GBytes 9.28 Gbits/sec
[ 5] 7.00-8.00 sec 1.08 GBytes 9.28 Gbits/sec
[ 5] 8.00-9.00 sec 1.08 GBytes 9.28 Gbits/sec
[ 5] 9.00-10.00 sec 1.08 GBytes 9.28 Gbits/sec
[ 5] 10.00-10.04 sec 43.9 MBytes 9.28 Gbits/sec
- - - - - - - - - - - - - - - - - - - - - - - - -
Test Complete. Summary Results:
[ ID] Interval Transfer Bandwidth Retr
[ 5] 0.00-10.04 sec 10.8 GBytes 9.25 Gbits/sec 7 sender
[ 5] 0.00-10.04 sec 10.8 GBytes 9.25 Gbits/sec receiver
CPU Utilization: local/receiver 31.4% (2.7%u/28.8%s), remote/sender 32.7% (1.2%u/31.5%s)
#+END_CENTER
*** DONE 2019-07-16: understood scapy code
CLOSED: [2019-07-16 Tue 11:25]
meta.v6sum = (bit<16>) ((((tmp>>8) & 0xff)|tmp<<8) & 0xffff) ;

View File

@ -19,7 +19,8 @@ table dummy_table_for_netpfga {
send_to_port1;
}
size = TEST_TABLE_SIZE;
default_action = do_nothing;
// default_action = do_nothing;
default_action = send_to_port1;
}
#endif