Skip to contentSkip to conversation

axgbe driver does not support 1G Copper 1000BASE-T SFPs (Unsupported AN_CL37)

Bug 99 [email protected] 1 participant 1 message Oct 24, 2018

lore
Share & tools
lore
#0 lore raw

https://bugs.dpdk.org/show_bug.cgi?id=99

Bug ID: 99
Summary: axgbe driver does not support 1G Copper 1000BASE-T
SFPs (Unsupported AN_CL37)
Product: DPDK
Version: 18.02
Hardware: All
OS: All
Status: CONFIRMED
Severity: normal
Priority: Normal
Component: ethdev
Assignee: [email protected]
Reporter: [email protected]
Target Milestone: ---

Overview:

The AXGBE driver does not support 1G Copper 1000BASE-T SFPs. When any of the DPDK test apps (such as: l2fwd, kni etc) are run, the following errors show up:

axgbe_an_init(): Unsupported AN_CL37 axgbe_an_enable_interrupts(): Unsupported AN_MOD_37 axgbe_an_init(): Unsupported AN_CL37 axgbe_an_restart(): Unsupported AN_MODE_CL37

Looking into the AXGBE driver code, it seems like the "Clause 37 Auto-Negotiation (AN_CL37)" protocol being used by these SFPs is not yet-supported/yet-implemented in the DPDK AXGBE Poll Mode Driver.

Steps to Reproduce:

1) Setup DPDK (hugepages, igb_uio, dpdk-devbind):

mkdir -p /mnt/huge
mount -t hugetlbfs nodev /mnt/huge
echo 1024 > /sys/kernel/mm/hugepages/hugepages-2048kB/nr_hugepages modprobe igb_uio
dpdk-devbind -b igb_uio 03:00.4
dpdk-devbind -b igb_uio 03:00.5

2) Run any of the DPDK examples/tests (such as: l2fwd, kni etc) and observe the output:

/usr/share/dpdk/examples/l2fwd/l2fwd -- -p 1 -T 1

Actual Results: (Using 1G Copper 1000BASE-T SFP)

EAL: Multi-process socket /var/run/.rte_unix
EAL: Probing VFIO support...
EAL: VFIO support initialized
EAL: PCI device 0000:03:00.4 on NUMA socket 0
EAL:   probe driver: 1022:1458 net_axgbe
EAL: PCI device 0000:03:00.5 on NUMA socket 0
EAL:   probe driver: 1022:1458 net_axgbe

MAC updating enabled
Notice: odd number of ports in portmask.
Lcore 0: RX port 0
Initializing port 0... axgbe_an_init(): Unsupported AN_CL37 axgbe_an_enable_interrupts(): Unsupported AN_MOD_37 axgbe_an_init(): Unsupported AN_CL37 axgbe_an_restart(): Unsupported AN_MODE_CL37
done:
Port 0, MAC address: 00:00:1A:1C:A4:A5

Skipping disabled port 1

Checking link statusdone
Port0 Link Up. Speed 4294967295 Mbps - half-duplex

L2FWD: lcore 1 has nothing to do
L2FWD: lcore 2 has nothing to do
L2FWD: lcore 3 has nothing to do
L2FWD: lcore 4 has nothing to do
L2FWD: lcore 5 has nothing to do
L2FWD: lcore 6 has nothing to do
L2FWD: lcore 7 has nothing to do
L2FWD: entering main loop on lcore 0
L2FWD: -- lcoreid=0 portid=0
^[[2J^[[1;1H
Port statistics ==================================== Statistics for port 0 ------------------------------

Packets sent:                        0
Packets received:                    0
Packets dropped:                     0
Aggregate statistics ===============================
Total packets sent:                  0
Total packets received:              0
Total packets dropped:               0

====================================================
^[[2J^[[1;1H
Port statistics ==================================== Statistics for port 0 ------------------------------

Packets sent:                        0
Packets received:                    0
Packets dropped:                     0
Aggregate statistics ===============================
Total packets sent:                  0
Total packets received:              0
Total packets dropped:               0

====================================================
^[[2J^[[1;1H
Port statistics ==================================== Statistics for port 0 ------------------------------

Packets sent:                        0
Packets received:                    0
Packets dropped:                     0
Aggregate statistics ===============================
Total packets sent:                  0
Total packets received:              0
Total packets dropped:               0

====================================================
^[[2J^[[1;1H
Port statistics ==================================== Statistics for port 0 ------------------------------

Packets sent:                        0
Packets received:                    0
Packets dropped:                     0
Aggregate statistics ===============================
Total packets sent:                  0
Total packets received:              0
Total packets dropped:               0

====================================================
^[[2J^[[1;1H
Port statistics ==================================== Statistics for port 0 ------------------------------

Packets sent:                        0
Packets received:                    0
Packets dropped:                     0
Aggregate statistics ===============================
Total packets sent:                  0
Total packets received:              0
Total packets dropped:               0

====================================================
^[[2J^[[1;1H
Port statistics ==================================== Statistics for port 0 ------------------------------

Packets sent:                        0
Packets received:                    0
Packets dropped:                     0
Aggregate statistics ===============================
Total packets sent:                  0
Total packets received:              0
Total packets dropped:               0

====================================================
^[[2J^[[1;1H
Port statistics ==================================== Statistics for port 0 ------------------------------

Packets sent:                        0
Packets received:                    0
Packets dropped:                     0
Aggregate statistics ===============================
Total packets sent:                  0
Total packets received:              0
Total packets dropped:               0

====================================================

Expected Results: (Using 10G Optical SFP)

EAL: Multi-process socket /var/run/.rte_unix
EAL: Probing VFIO support...
EAL: VFIO support initialized
EAL: PCI device 0000:03:00.4 on NUMA socket 0
EAL:   probe driver: 1022:1458 net_axgbe
EAL: PCI device 0000:03:00.5 on NUMA socket 0
EAL:   probe driver: 1022:1458 net_axgbe

MAC updating enabled
Notice: odd number of ports in portmask.
Lcore 0: RX port 0
Initializing port 0... done:
Port 0, MAC address: 00:00:1A:1C:A4:A5

Skipping disabled port 1

Checking link statusdone
Port0 Link Up. Speed 10000 Mbps - full-duplex
L2FWD: lcore 1 has nothing to do
L2FWD: lcore 2 has nothing to do
L2FWD: lcore 3 has nothing to do
L2FWD: lcore 4 has nothing to do
L2FWD: lcore 5 has nothing to do
L2FWD: lcore 6 has nothing to do
L2FWD: lcore 7 has nothing to do
L2FWD: entering main loop on lcore 0
L2FWD: -- lcoreid=0 portid=0
^[[2J^[[1;1H
Port statistics ==================================== Statistics for port 0 ------------------------------

Packets sent:                        0
Packets received:                    0
Packets dropped:                     0
Aggregate statistics ===============================
Total packets sent:                  0
Total packets received:              0
Total packets dropped:               0

====================================================
^[[2J^[[1;1H
Port statistics ==================================== Statistics for port 0 ------------------------------

Packets sent:                       15
Packets received:                   15
Packets dropped:                     0
Aggregate statistics ===============================
Total packets sent:                 15
Total packets received:             15
Total packets dropped:               0

====================================================
^[[2J^[[1;1H
Port statistics ==================================== Statistics for port 0 ------------------------------

Packets sent:                       17
Packets received:                   17
Packets dropped:                     0
Aggregate statistics ===============================
Total packets sent:                 17
Total packets received:             17
Total packets dropped:               0

====================================================
^[[2J^[[1;1H
Port statistics ==================================== Statistics for port 0 ------------------------------

Packets sent:                       20
Packets received:                   20
Packets dropped:                     0
Aggregate statistics ===============================
Total packets sent:                 20
Total packets received:             20
Total packets dropped:               0

====================================================
^[[2J^[[1;1H
Port statistics ==================================== Statistics for port 0 ------------------------------

Packets sent:                       22
Packets received:                   22
Packets dropped:                     0
Aggregate statistics ===============================
Total packets sent:                 22
Total packets received:             22
Total packets dropped:               0

====================================================
^[[2J^[[1;1H
Port statistics ==================================== Statistics for port 0 ------------------------------

Packets sent:                       22
Packets received:                   22
Packets dropped:                     0
Aggregate statistics ===============================
Total packets sent:                 22
Total packets received:             22
Total packets dropped:               0

====================================================
^[[2J^[[1;1H
Port statistics ==================================== Statistics for port 0 ------------------------------

Packets sent:                       22
Packets received:                   22
Packets dropped:                     0
Aggregate statistics ===============================
Total packets sent:                 22
Total packets received:             22
Total packets dropped:               0

====================================================

Build Date & Hardware:

root@znver1:~# uname -a
Linux znver1 4.9.21-yocto-standard #1 SMP PREEMPT Mon Sep 24 13:38:24 UTC 2018
x86_64 GNU/Linux
root@znver1:~# 
root@znver1:~# opkg list-installed | grep dpdk                                  
dpdk - 18.02.2-r0.9
dpdk-dev-libibverbs - 1.2.1-3.4-2.0.0.0-r0.3
dpdk-examples - 18.02.2-r0.9
dpdk-test - 18.02.2-r0.9
root@znver1:~# 
root@znver1:~# opkg info dpdk
Package: dpdk
Version: 18.02.2-r0.9
Depends: kernel-module-igb-uio-4.9.21-yocto-standard,
kernel-module-rte-kni-4.9.21-yocto-standard, libc6 (>= 2.27-2018.05-999999),
libcrypto1.0.2 (>= 1.0.2p), python-subprocess, virtual/libibverbs
Status: install ok installed
Architecture: znver1
Installed-Size: 61918937
Installed-Time: 1540281805

Additional Builds and Platforms:

Must be occurring on all builds & platforms since AN_CL37 is not yet implemented in AXGBE PMD.

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.