DengSW0423 / calculator

专业实验一, 简易计算器。
0 stars 0 forks source link

test #1

Open DengSW0423 opened 1 year ago

DengSW0423 commented 1 year ago

Hello, Have you done this test on a VMware virtual machine? I did this test on a VMware virtual machine and got the following error message: `dsw@aq:~/t4p4s$ ./t4p4s.sh :l2fwd model=v1model cores=2 ports=2x2 verbose=1 hugepages=512 Parsing variant config file examples.cfg Parsing file opts_dpdk.cfg Parse port is 53762 P4 version is 14 (by the extension of ./examples/p4_14/l2fwd.p4_14 ) Using CC=clang-10, LD=lld-10, PYTHON3=python3.8, DBG=gdb Options: arch=dpdk,cfgfiles,cflags=-DTARGET_V1,choice=l2fwd@std,cmdopts=-p 0x3 --config ""(0,0,0),(0,1,1),(1,0,0),(1,1,1)"",cores=2,ctr=l2fwd,ctrcfg=examples/tables/translate_l2fwd.txt examples/tables/l2fwd.txt,ealopts=-c 0x3 -n 4,example=l2fwd,executable=./build/last/build/l2fwd,hugemb=4096,hugepages=512,include-hdrs=dpdk_nicon.h gen_model.h,include-srcs=hdep/'dpdk/dpdk_nicon.c' xtrn/'dpdk_model_v1model.c' xtrn/'dpdkx_v1model_checksum.c' xtrn/'dpdkx_v1model_clone.c' xtrn/'dpdkx_v1model_digest.c' xtrn/'dpdkx_v1model_hash.c' xtrn/'dpdkx_v1model_random.c' xtrn/'dpdkx_v1model_smem.c' xtrn/'dpdkx_v1model_log.c' srcg/'dpdkx_v1model_log_tuple.c',light=green,yellow,cyan,red,meson_opts,model=v1model,p4opts=--p4incdir=examples/include --p4opt=TARGET_V1,ports=2x2,source=./examples/p4_14/l2fwd.p4_14,variant=std,verbose=1,vsn=14,c,l2fwd,p4,run, Requesting root access... Root access granted, starting... [RUN CONTROLLER] dpdk_l2fwd_controller (default for l2fwd@std) Controller log : /home/dsw/t4p4s/build/l2fwd@std-v1model/log/controller.log Controller opts: examples/tables/translate_l2fwd.txt Controller port is 59010 [COMPILE P4-14] ./examples/p4_14/l2fwd.p4_14 @std P4 compiler options : --p4incdir=examples/include --p4opt=TARGET_V1 ./examples/p4_14/l2fwd.p4_14 --p4v 14 -g ./build/last/srcgen -verbose HLIR (cached: stage hlir_add_attributes) build/last/cache/l2fwd.p4_14.hlir.attributed.cached [COMPILE SWITCH] C compiler options: -DTARGET_V1 [57/57] Linking target l2fwd [RUN SWITCH] ./build/last/build/l2fwd Keeping 1024 hugepages which is more than the requested 512 (1 GB) Options : -c 0x3 -n 4 -- -p 0x3 --config ""(0,0,0),(0,1,1),(1,0,0),(1,1,1)"" EAL: Detected CPU lcores: 4 EAL: Detected NUMA nodes: 1 EAL: Detected shared linkage of DPDK EAL: Multi-process socket /var/run/dpdk/rte/mp_socket EAL: Selected IOVA mode 'PA' EAL: VFIO support initialized EAL: Using IOMMU type 8 (No-IOMMU) EAL: Ignore mapping IO port bar(4) EAL: Probe PCI driver: net_e1000_em (8086:100f) device: 0000:02:05.0 (socket 0) EAL: Ignore mapping IO port bar(4) EAL: Probe PCI driver: net_e1000_em (8086:100f) device: 0000:02:06.0 (socket 0) TELEMETRY: No legacy callbacks, legacy socket not created Ethdev port_id=0 nb_rx_queues=2 > 1 EAL: Error - exiting with code: 1 Cause: Cannot configure device: err=-22, port=0

T₄P₄S switch running ./examples/p4_14/l2fwd.p4_14 exited with error code 1

Runtime options were: -c 0x3 -n 4 -- -p 0x3 --config ""(0,0,0),(0,1,1),(1,0,0),(1,1,1)"" (Terminating controller dpdk_l2fwd_controller) (Terminating the parse helper process, port 53762, pid 21836)`

And the NICs status: `Network devices using DPDK-compatible driver 0000:02:05.0 '82545EM Gigabit Ethernet Controller (Copper) 100f' drv=vfio-pci unused=e1000 0000:02:06.0 '82545EM Gigabit Ethernet Controller (Copper) 100f' drv=vfio-pci unused=e1000

Network devices using kernel driver 0000:02:01.0 '82545EM Gigabit Ethernet Controller (Copper) 100f' if=ens33 drv=e1000 unused=vfio-pci Active`

Do you know what the problem is? Thanks in advance.

DengSW0423 commented 1 year ago

Hello, Have you done this test on a VMware virtual machine? I did this test on a VMware virtual machine and got the following error message:

dsw@aq:~/t4p4s$ ./t4p4s.sh :l2fwd model=v1model cores=2 ports=2x2 verbose=1 hugepages=512
Parsing variant config file examples.cfg
Parsing file opts_dpdk.cfg
Parse port is 53762
P4 version is 14 (by the extension of ./examples/p4_14/l2fwd.p4_14 )
Using CC=clang-10, LD=lld-10, PYTHON3=python3.8, DBG=gdb
Options: arch=dpdk,cfgfiles,cflags=-D__TARGET_V1__,choice=l2fwd@std,cmdopts=-p 0x3 --config ""(0,0,0),(0,1,1),(1,0,0),(1,1,1)"",cores=2,ctr=l2fwd,ctrcfg=examples/tables/translate_l2fwd.txt examples/tables/l2fwd.txt,ealopts=-c 0x3 -n 4,example=l2fwd,executable=./build/last/build/l2fwd,hugemb=4096,hugepages=512,include-hdrs=dpdk_nicon.h gen_model.h,include-srcs=hdep/'dpdk/dpdk_nicon.c' xtrn/'dpdk_model_v1model.c' xtrn/'dpdkx_v1model_checksum.c' xtrn/'dpdkx_v1model_clone.c' xtrn/'dpdkx_v1model_digest.c' xtrn/'dpdkx_v1model_hash.c' xtrn/'dpdkx_v1model_random.c' xtrn/'dpdkx_v1model_smem.c' xtrn/'dpdkx_v1model_log.c' srcg/'dpdkx_v1model_log_tuple.c',light=green,yellow,cyan,red,meson_opts,model=v1model,p4opts=--p4incdir=examples/include --p4opt=TARGET_V1,ports=2x2,source=./examples/p4_14/l2fwd.p4_14,variant=std,verbose=1,vsn=14,c,l2fwd,p4,run,
Requesting root access...
Root access granted, starting...
[RUN CONTROLLER] dpdk_l2fwd_controller (default for l2fwd@std)
Controller log : /home/dsw/t4p4s/build/l2fwd@std-v1model/log/controller.log
Controller opts: examples/tables/translate_l2fwd.txt
Controller port is 59010
[COMPILE P4-14] ./examples/p4_14/l2fwd.p4_14 @std
P4 compiler options : --p4incdir=examples/include --p4opt=TARGET_V1 ./examples/p4_14/l2fwd.p4_14 --p4v 14 -g ./build/last/srcgen -verbose
HLIR (cached: stage hlir_add_attributes) build/last/cache/l2fwd.p4_14.hlir.attributed.cached
[COMPILE SWITCH]
C compiler options: -D__TARGET_V1__
[57/57] Linking target l2fwd
[RUN SWITCH] ./build/last/build/l2fwd
Keeping 1024 hugepages which is more than the requested 512 (1 GB)
Options : -c 0x3 -n 4 -- -p 0x3 --config ""(0,0,0),(0,1,1),(1,0,0),(1,1,1)""
EAL: Detected CPU lcores: 4
EAL: Detected NUMA nodes: 1
EAL: Detected shared linkage of DPDK
EAL: Multi-process socket /var/run/dpdk/rte/mp_socket
EAL: Selected IOVA mode 'PA'
EAL: VFIO support initialized
EAL: Using IOMMU type 8 (No-IOMMU)
EAL: Ignore mapping IO port bar(4)
EAL: Probe PCI driver: net_e1000_em (8086:100f) device: 0000:02:05.0 (socket 0)
EAL: Ignore mapping IO port bar(4)
EAL: Probe PCI driver: net_e1000_em (8086:100f) device: 0000:02:06.0 (socket 0)
TELEMETRY: No legacy callbacks, legacy socket not created
Ethdev port_id=0 nb_rx_queues=2 > 1
EAL: Error - exiting with code: 1
Cause: Cannot configure device: err=-22, port=0

T₄P₄S switch running ./examples/p4_14/l2fwd.p4_14 exited with error code 1

Runtime options were: -c 0x3 -n 4 -- -p 0x3 --config ""(0,0,0),(0,1,1),(1,0,0),(1,1,1)""
(Terminating controller dpdk_l2fwd_controller)
(Terminating the parse helper process, port 53762, pid 21836)

And the NICs status:

Network devices using DPDK-compatible driver
0000:02:05.0 '82545EM Gigabit Ethernet Controller (Copper) 100f' drv=vfio-pci unused=e1000
0000:02:06.0 '82545EM Gigabit Ethernet Controller (Copper) 100f' drv=vfio-pci unused=e1000

Network devices using kernel driver
0000:02:01.0 '82545EM Gigabit Ethernet Controller (Copper) 100f' if=ens33 drv=e1000 unused=vfio-pci Active

Do you know what the problem is? Thanks in advance.