Comment 0 for bug 1184240

Revision history for this message
shank15217 (shank15217) wrote :

In the latest kernel 3.8.0-22, on ubuntu 13.04 I am seeing that ip route doesn't show the virtual functions properly for igb driver.

Kernel 3.8.0-22

root@captain:~# uname -a
Linux captain 3.8.0-22-generic #33-Ubuntu SMP Thu May 16 15:17:14 UTC 2013 x86_64 x86_64 x86_64 GNU/Linux
root@captain:~# ip link
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN mode DEFAULT
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
2: p9p1: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN mode DEFAULT qlen 1000
    link/ether bc:ae:c5:09:aa:56 brd ff:ff:ff:ff:ff:ff
3: igb0: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN mode DEFAULT qlen 1000
    link/ether 00:1b:21:36:52:80 brd ff:ff:ff:ff:ff:ff
4: p10p1: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP mode DEFAULT qlen 1000
    link/ether bc:ae:c5:09:a9:af brd ff:ff:ff:ff:ff:ff
5: igb1: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN mode DEFAULT qlen 1000
    link/ether 00:1b:21:36:52:81 brd ff:ff:ff:ff:ff:ff
6: virbr0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc noqueue state DOWN mode DEFAULT
    link/ether 82:ad:e7:9a:40:ff brd ff:ff:ff:ff:ff:ff
root@captain:~# ip -V
ip utility, iproute2-ss121211

Kernel 3.8.0-21

root@captain:~# uname -a
Linux captain 3.8.0-21-generic #32-Ubuntu SMP Tue May 14 22:16:46 UTC 2013 x86_64 x86_64 x86_64 GNU/Linux
root@captain:~# ip link
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN mode DEFAULT
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
2: p9p1: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN mode DEFAULT qlen 1000
    link/ether bc:ae:c5:09:aa:56 brd ff:ff:ff:ff:ff:ff
3: igb0: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN mode DEFAULT qlen 1000
    link/ether 00:1b:21:36:52:80 brd ff:ff:ff:ff:ff:ff
    vf 0 MAC 36:ce:75:8d:a3:8f
    vf 1 MAC 72:b9:90:05:be:f7
4: p10p1: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP mode DEFAULT qlen 1000
    link/ether bc:ae:c5:09:a9:af brd ff:ff:ff:ff:ff:ff
5: igb1: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN mode DEFAULT qlen 1000
    link/ether 00:1b:21:36:52:81 brd ff:ff:ff:ff:ff:ff
    vf 0 MAC 46:2b:ef:b2:2d:3b
    vf 1 MAC 5e:70:2a:48:99:0d
6: virbr0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc noqueue state DOWN mode DEFAULT
    link/ether 06:89:e8:61:9e:23 brd ff:ff:ff:ff:ff:ff
root@captain:~# ip -V
ip utility, iproute2-ss121211

lspci output

04:00.0 Ethernet controller: Intel Corporation 82576 Gigabit Network Connection (rev 01)
04:00.1 Ethernet controller: Intel Corporation 82576 Gigabit Network Connection (rev 01)
04:10.0 Ethernet controller: Intel Corporation 82576 Virtual Function (rev 01)
04:10.1 Ethernet controller: Intel Corporation 82576 Virtual Function (rev 01)
04:10.2 Ethernet controller: Intel Corporation 82576 Virtual Function (rev 01)
04:10.3 Ethernet controller: Intel Corporation 82576 Virtual Function (rev 01)

dmesg output, unload and reload driver

[ 191.051841] igb 0000:04:00.1: removed PHC on igb1
[ 192.672593] igb 0000:04:00.1: IOV Disabled
[ 192.672903] igb 0000:04:00.0: removed PHC on igb0
[ 194.293117] igb 0000:04:00.0: IOV Disabled
[ 199.341568] dca service started, version 1.12.1
[ 199.346099] pps_core: LinuxPPS API ver. 1 registered
[ 199.346105] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <email address hidden>
[ 199.350565] PTP clock support registered
[ 199.353579] igb: Intel(R) Gigabit Ethernet Network Driver - version 4.1.2-k
[ 199.353582] igb: Copyright (c) 2007-2012 Intel Corporation.
[ 199.354107] igb 0000:04:00.0: irq 76 for MSI/MSI-X
[ 199.354138] igb 0000:04:00.0: irq 77 for MSI/MSI-X
[ 199.354207] igb 0000:04:00.0: irq 78 for MSI/MSI-X
[ 199.457994] pci 0000:04:10.0: [8086:10ca] type 00 class 0x020000
[ 199.458381] pci 0000:04:10.2: [8086:10ca] type 00 class 0x020000
[ 199.458659] igb 0000:04:00.0: 2 VFs allocated
[ 199.650502] igb 0000:04:00.0: added PHC on eth0
[ 199.650511] igb 0000:04:00.0: Intel(R) Gigabit Ethernet Network Connection
[ 199.650519] igb 0000:04:00.0: eth0: (PCIe:2.5Gb/s:Width x4) 00:1b:21:36:52:80
[ 199.650602] igb 0000:04:00.0: eth0: PBA No: E43709-003
[ 199.650608] igb 0000:04:00.0: Using MSI-X interrupts. 2 rx queue(s), 1 tx queue(s)
[ 199.651061] igb 0000:04:00.1: irq 82 for MSI/MSI-X
[ 199.651087] igb 0000:04:00.1: irq 83 for MSI/MSI-X
[ 199.651111] igb 0000:04:00.1: irq 84 for MSI/MSI-X
[ 199.753323] pci 0000:04:10.1: [8086:10ca] type 00 class 0x020000
[ 199.753538] pci 0000:04:10.3: [8086:10ca] type 00 class 0x020000
[ 199.753672] igb 0000:04:00.1: 2 VFs allocated
[ 199.945839] igb 0000:04:00.1: added PHC on eth0
[ 199.945848] igb 0000:04:00.1: Intel(R) Gigabit Ethernet Network Connection
[ 199.945855] igb 0000:04:00.1: eth0: (PCIe:2.5Gb/s:Width x4) 00:1b:21:36:52:81
[ 199.945939] igb 0000:04:00.1: eth0: PBA No: E43709-003
[ 199.945945] igb 0000:04:00.1: Using MSI-X interrupts. 2 rx queue(s), 1 tx queue(s)