nfp

229 views
Skip to first unread message

Barry Robinson

unread,
Apr 4, 2019, 11:59:55 AM4/4/19
to open-nfp
Hi 

Is there any documentation for the nfp tool? 


Thanks


Barry 

maksymilia...@codilime.com

unread,
Oct 25, 2022, 5:39:24 AM10/25/22
to open-nfp

Octavio Herrera-Ruiz

unread,
Oct 26, 2022, 3:18:09 PM10/26/22
to open-nfp
Here is some additional info
nfp(8).pdf

Maksymilian Czudziak

unread,
Oct 27, 2022, 7:28:53 AM10/27/22
to open-nfp
Octavio, do you also have information about other nfp BSP tools?
Particularly `nfp-hwinfo` and `nfp-hwinfo-cfg`.

I'm trying to switch Agilio CX 2x25G SFP ports from SFP28 to SFP+ mode, so I'm able to lift the interface in the 10G NIC on the other side of the SFP+ cable.

Octavio Herrera-Ruiz

unread,
Oct 27, 2022, 9:46:22 AM10/27/22
to open-nfp
With regard to changing the media modes on your 2x25G SmartNIC, you could get all the info you need by simply executing "nfp-media --h" and "nfp-media --help-25g". Then, use the options that would apply for your use case (e.g., nfp-media --set-media=phy0=10G phy1=10G)
Alternatively, if you are in a system w/o the BSP tools, you could use ethtool to change the media settings. For instance, if your SmartNIC netdevs are enp3s0np0 and enp3s0np1, use the following sequence of commands:
1- Down interfaces
# ip link set dev  enp3s0np0  down;   ip link set dev  enp3s0np1  down
2- Change media mode
# ethtool -s enp3s0np0 speed 10000; ethtool -s enp3s0np1 speed 10000
3- reload the kernel module (nfp)
# rmmod nfp, modprobe nfp

Here, I am assuming that you are a Netronome firmware package already installed in the system (e.g., BasicNIC or OVS TC) so that the kernel module would load it automatically. In addition, if the kernel module you have installed is the one installed by the SDK, you will need to specify that you want the netdevs instantiated (e.g., "modprobe nfp nfp_pf_netdev=1").

For the other commands you did ask about, you can also use "-h" to get the usage page

Maksymilian Czudziak

unread,
Oct 28, 2022, 7:31:27 AM10/28/22
to open-nfp
Thank you for the answer.
Although it didn't help. The interface still has status "<NO-CARRIER,BROADCAST,MULTICAST,UP>".
I followed your steps + set auto negotiation mode using "nfp-media --set-aneg=phy0=A" .
On the other side of the cable, it plugged into Intel 10G SFP+ NIC.

I'm asking about other nfp bsp commands, because one of them is `nfp-hwinfo-cfg` which requires some binary file and `--help` doesn't give a clue about what is should be.

Octavio Herrera-Ruiz

unread,
Oct 31, 2022, 9:28:54 AM10/31/22
to open-nfp
Hello Maksymilian,

   It may be more efficient at this point if you open a support ticket at Netronome' SmartNIC site: https://help.netronome.com (or by emailing he...@netronome.com) and ask for a remote session to go over your setup. If you can provide in advance your days/times availability to do so it would be great!

Reply all
Reply to author
Forward
0 new messages