- Navigate to the SDE PATH :
cd ~/bf-sde-8.x.x
- Set the env variables :
. ./set_sde.bash
- Build the p4 program using the command :
./p4_build ddc/ddc.p4
- Load the p4 program, and run the control plane API code using :
"cd ddc/CP"
"./run.sh"
cd ~/bf-sde-8.x.x
. ./set_sde.bash
sudo ./install/bin/bf_kdrv_mod_load $SDE_INSTALL
- Load the nfp kernel module :
sudo modprobe nfp nfp_pf_netdev=0 nfp_dev_cpp=1
- Start the run-time environment :
sudo systemctl start nfp-sdk6-rte
sudo systemctl start nfp-sdk6-rte-debug
- Build the program using the below command :
sudo nfp4build -s AMDA0096-0001:0 -l lithium -o <prog_name>.nffw -p nfp-build -4 <prog_name>.p4
- Load the firmware using the command :
sudo nfp-nffw load -s <prog_name>.nffw
- Load the design on the nic :
sudo rtecli design-load -f <prog_name>.nffw -p nfp-build/pif_design.json -c user_config.json
Now you must see the vf interfaces in ifconfig.