Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

An example for ports.json #92

Open
AmitDavidi opened this issue Jan 8, 2023 · 1 comment
Open

An example for ports.json #92

AmitDavidi opened this issue Jan 8, 2023 · 1 comment

Comments

@AmitDavidi
Copy link

AmitDavidi commented Jan 8, 2023

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
Copy link
Collaborator

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants