p4lang / p4-dpdk-target

P4 driver SW for P4 DPDK target.
Apache License 2.0
57 stars 19 forks source link

An example for ports.json #92

Open AmitDavidi opened 1 year ago

AmitDavidi commented 1 year ago

Hello, I want to run a simple program, however I get a ERROR: bf_device_add failed(2) for dev_id 0 ERROR: bf_switchd_device_add failed(2) for dev_id 0 erros. I suspect it is because ports.json.

I have searched the web for an example but alas, couldn't find any.

I would love a detailed explanation \ guide \ example that works, for how to write my ports.json..

thank you for your time !

Error:

023-01-08 13:29:26.912067 BF_PORT ERROR - port_config_json_parse_ports:507: Failed to add port ens33
2023-01-08 13:29:26.912226 BF_PORT ERROR - parse_port_config_json:586: Failed to parse ports from Port Config JSON
2023-01-08 13:29:26.912395 BF_PORT ERROR - port_mgr_config_import : Error in parsing the port config file
2023-01-08 13:29:26.912580 BF_DVM ERROR - Device add handling failed for dev 0, sts No system resources (2), Client port_mgr 
2023-01-08 13:29:26.912706 BF_DVM ERROR - Device add failed for dev 0, sts No system resources (2)
ERROR: bf_device_add failed(2) for dev_id 0
ERROR: bf_switchd_device_add failed(2) for dev_id 0
swaroopsarma commented 1 year ago

We are enhancing the documentation. For time being you can refer the documentation here https://github.com/Yi-Tseng/p4-dpdk-target-notes#prepare-port-config