setting up 2 netronome agilio 2x10GbE cards on same PC

108 views
Skip to first unread message

Soumya Kanta Rana

unread,
Aug 29, 2022, 1:37:47 AM8/29/22
to open-nfp
Hi
I am trying to setup 2 netronome agilio 2x10GbE cards on my PC and operate them independently ( by 2 different p4-compiled firmware files ). 

Can someone please help me out with this? Currently I use the following commands for p4 compilation and firmware upload

  1. sudo modprobe -r -v nfp && sudo modprobe nfp nfp_pf_netdev=0 nfp_dev_cpp=1
  2. sudo /opt/netronome/p4/bin/nfp4build -o basic.nffw -p out -4 basic.p4 -l lithium --nfp4c_p4_version 16 --nfp4c_I /opt/netronome/p4/include/16/p4include/
  3. sudo systemctl start nfp-sdk6-rte.service
  4. sudo /opt/netronome/p4/bin/rtecli design-unload
  5. sudo /opt/netronome/bin/nfp-nffw unload
  6. sudo /opt/netronome/p4/bin/rtecli design-load -f basic.nffw -p out/pif_design.json
  7. sudo /opt/netronome/p4/bin/rtecli config-reload -c user_config.json
the terminal logs show pcie0 as the interface where it works (thats where my first card is installed). I need to know what should I do in order to use another card (slotted at pcie1, say) to flash a separate firmware to it.


Thanks in advance,
Soumya

Octavio Herrera-Ruiz

unread,
Sep 26, 2022, 11:08:29 AM9/26/22
to open-nfp
   I do not have a dual-card system setup at the moment, but from the output of 'rtecli -h' I would suggest testing using the following options
1)   -d DEVICE_ID, --device-id DEVICE_ID    # 0 = first device and so on, but there is a note about grpc, so if it does not work try:
2)   -r RTE_HOST, --rte-host RTE_HOST
                        rte host, default localhost
       -p RTE_PORT, --rte-port RTE_PORT
                        rte port, default 20206
   where host would not be needed (localhost by default) but you can specify the RTE_PORT that is being used by each RTE instance (to communicate with each card).

   Have a nice day!
Reply all
Reply to author
Forward
0 new messages