Intel® Acceleration Stack用户指南: Intel FPGA Programmable Acceleration Card N3000

ID 683040
日期 8/17/2020
Public
文档目录

8. 配置以太网接口

Intel® FPGA PAC N3000包含多个Ethernet MAC点,每个点都有特定命名,监控和配置操作。下图显示了每种网络配置的Ethernet数据路径。
图 13. 8x10G配置
图 14. 2x2x25G配置
图 15. 4x25G配置
上图显示了XL710 enp[Y:Z]s0f[3:0]的示例器件命名约定。您的服务器可以有一个不同的命名约定和编号方案。您将需要网络逻辑名称以使用Linux工具进行链路配置和监控。执行以下步骤,在服务器中找到特定 Intel® FPGA PAC N3000的网络逻辑名称:
  1. 使用以下命令列出服务器中的 Intel® FPGA PAC N3000
    $ sudo fpgainfo fme
    样例输出:
    Board Management Controller, 
                   Intel®
                   MAX® 10 NIOS FW version D.2.0.19
    Board Management Controller, 
                   Intel®
                   MAX® 10 Build version D.2.0.6
    //****** FME ******//
    Object Id                     : 0xEF00000
    PCIe s:b:d.f                  : 0000:15:00.0
    Device Id                     : 0x0b30
    Numa Node                     : 0
    Ports Num                     : 01
    Bitstream Id                  : 0x23000410010309
    Bitstream Version             : 0.2.3
    Pr Interface Id               : a5d72a3c-c8b0-4939-912c-f715e5dc10ca
    Boot Page                     : user
  2. 使用下面命令找到该 Intel® FPGA PAC N3000上的Ethernet接口的逻辑名称:
    ls -la /sys/class/net
    样例输出:
    lrwxrwxrwx. 1 root root 0 Nov 20 06:07 enp20s0f0 -> ../../devices/pci0000:11/0000:11:00.0/0000:12:00.0/0000:13:08.0/0000:14:00.0/net/enp20s0f0
    lrwxrwxrwx. 1 root root 0 Nov 20 06:07 enp20s0f1 -> ../../devices/pci0000:11/0000:11:00.0/0000:12:00.0/0000:13:08.0/0000:14:00.1/net/enp20s0f1
    lrwxrwxrwx. 1 root root 0 Nov 20 06:07 enp22s0f0 -> ../../devices/pci0000:11/0000:11:00.0/0000:12:00.0/0000:13:10.0/0000:16:00.0/net/enp22s0f0
    lrwxrwxrwx. 1 root root 0 Nov 20 06:07 enp22s0f1 -> ../../devices/pci0000:11/0000:11:00.0/0000:12:00.0/0000:13:10.0/0000:16:00.1/net/enp22s0f1
    lrwxrwxrwx. 1 root root 0 Nov 20 02:34 lo -> ../../devices/virtual/net/lo
    lrwxrwxrwx. 1 root root 0 Nov 20 22:44 npacf0g0l0 -> ../../devices/pci0000:11/0000:11:00.0/0000:12:00.0/0000:13:09.0/0000:15:00.0/fpga/intel-fpga-dev.0/intel-fpga-fme.0/pac_n3000_net.2.auto/net/npacf0g0l0
    lrwxrwxrwx. 1 root root 0 Nov 20 22:44 npacf0g0l1 -> ../../devices/pci0000:11/0000:11:00.0/0000:12:00.0/0000:13:09.0/0000:15:00.0/fpga/intel-fpga-dev.0/intel-fpga-fme.0/pac_n3000_net.2.auto/net/npacf0g0l1
    lrwxrwxrwx. 1 root root 0 Nov 20 22:44 npacf0g0l2 -> ../../devices/pci0000:11/0000:11:00.0/0000:12:00.0/0000:13:09.0/0000:15:00.0/fpga/intel-fpga-dev.0/intel-fpga-fme.0/pac_n3000_net.2.auto/net/npacf0g0l2
    lrwxrwxrwx. 1 root root 0 Nov 20 22:44 npacf0g0l3 -> ../../devices/pci0000:11/0000:11:00.0/0000:12:00.0/0000:13:09.0/0000:15:00.0/fpga/intel-fpga-dev.0/intel-fpga-fme.0/pac_n3000_net.2.auto/net/npacf0g0l3

例如:

此列表是8x10G网络配置的示例。逻辑器件名称npacf0g0l[3:0]线路侧 Intel® Arria® 10 FPGA上的 Ethernet MAC wrapper 0。逻辑器件名称enp[Y:Z]s0f[1:0]是XL710 Ethernet端口。

pac_n3000_net平台器件驱动程序对每个 Intel® Arria® 10 FPGA Ethernet MAC对创建标准的Linux网络器件接口。它对统一网络状态报告提供C827 re-timer信息。它使能标准Linux工具的使用,进行链路配置和监控。
$ lsmod | grep pac_n3000_net
pac_n3000_net          28483  1 c827_retimer