Public bug reported:
'ip link' behaves strangely when trying to set both vlan and mac for a
VF.
Consider the following example:
$ sudo ip link set p2p1 vf 6 mac 36:c3:25:02:65:c4 vlan 300
$ ip link show p2p1
189: p2p1: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN mode DEFAULT
group default qlen 1000
link/ether 0c:c4:7a:1e:ac:0e brd ff:ff:ff:ff:ff:ff
vf 0 MAC 00:00:00:00:00:00, spoof checking on, link-state auto
vf 1 MAC 00:00:00:00:00:00, spoof checking on, link-state auto
vf 2 MAC 00:00:00:00:00:00, spoof checking on, link-state auto
vf 3 MAC 00:00:00:00:00:00, spoof checking on, link-state auto
vf 4 MAC 00:00:00:00:00:00, spoof checking on, link-state auto
vf 5 MAC 00:00:00:00:00:00, spoof checking on, link-state auto
vf 6 MAC 36:c3:25:02:65:c4, spoof checking on, link-state auto
As you can see, it was able to set MAC address, but silently ignored VLAN
setting.
Now comes the interesting part, if I specify vlan first and then mac, things
work:
$ sudo ip link set p2p1 vf 6 vlan 300 mac 36:c3:25:02:65:c5
$ ip link show p2p1
189: p2p1: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN mode DEFAULT
group default qlen 1000
link/ether 0c:c4:7a:1e:ac:0e brd ff:ff:ff:ff:ff:ff
vf 0 MAC 00:00:00:00:00:00, spoof checking on, link-state auto
vf 1 MAC 00:00:00:00:00:00, spoof checking on, link-state auto
vf 2 MAC 00:00:00:00:00:00, spoof checking on, link-state auto
vf 3 MAC 00:00:00:00:00:00, spoof checking on, link-state auto
vf 4 MAC 00:00:00:00:00:00, spoof checking on, link-state auto
vf 5 MAC 00:00:00:00:00:00, spoof checking on, link-state auto
vf 6 MAC 36:c3:25:02:65:c5, vlan 300, spoof checking on, link-state auto
The system is:
$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 14.04.1 LTS
Release: 14.04
Codename: trusty
$ cat /proc/version_signature
Ubuntu 3.13.0-40.69-generic 3.13.11.10
$ ip -V
ip utility, iproute2-ss131122
$
** Affects: linux (Ubuntu)
Importance: Undecided
Status: New
--
You received this bug notification because you are a member of Kernel
Packages, which is subscribed to linux in Ubuntu.
https://bugs.launchpad.net/bugs/1475134
Title:
ixgbe and iproute2: inconsistent behaviour when setting VF mac and
vlan using 'ip link'
Status in linux package in Ubuntu:
New
Bug description:
'ip link' behaves strangely when trying to set both vlan and mac for a
VF.
Consider the following example:
$ sudo ip link set p2p1 vf 6 mac 36:c3:25:02:65:c4 vlan 300
$ ip link show p2p1
189: p2p1: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN mode DEFAULT
group default qlen 1000
link/ether 0c:c4:7a:1e:ac:0e brd ff:ff:ff:ff:ff:ff
vf 0 MAC 00:00:00:00:00:00, spoof checking on, link-state auto
vf 1 MAC 00:00:00:00:00:00, spoof checking on, link-state auto
vf 2 MAC 00:00:00:00:00:00, spoof checking on, link-state auto
vf 3 MAC 00:00:00:00:00:00, spoof checking on, link-state auto
vf 4 MAC 00:00:00:00:00:00, spoof checking on, link-state auto
vf 5 MAC 00:00:00:00:00:00, spoof checking on, link-state auto
vf 6 MAC 36:c3:25:02:65:c4, spoof checking on, link-state auto
As you can see, it was able to set MAC address, but silently ignored VLAN
setting.
Now comes the interesting part, if I specify vlan first and then mac, things
work:
$ sudo ip link set p2p1 vf 6 vlan 300 mac 36:c3:25:02:65:c5
$ ip link show p2p1
189: p2p1: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN mode DEFAULT
group default qlen 1000
link/ether 0c:c4:7a:1e:ac:0e brd ff:ff:ff:ff:ff:ff
vf 0 MAC 00:00:00:00:00:00, spoof checking on, link-state auto
vf 1 MAC 00:00:00:00:00:00, spoof checking on, link-state auto
vf 2 MAC 00:00:00:00:00:00, spoof checking on, link-state auto
vf 3 MAC 00:00:00:00:00:00, spoof checking on, link-state auto
vf 4 MAC 00:00:00:00:00:00, spoof checking on, link-state auto
vf 5 MAC 00:00:00:00:00:00, spoof checking on, link-state auto
vf 6 MAC 36:c3:25:02:65:c5, vlan 300, spoof checking on, link-state auto
The system is:
$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 14.04.1 LTS
Release: 14.04
Codename: trusty
$ cat /proc/version_signature
Ubuntu 3.13.0-40.69-generic 3.13.11.10
$ ip -V
ip utility, iproute2-ss131122
$
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1475134/+subscriptions
--
Mailing list: https://launchpad.net/~kernel-packages
Post to : [email protected]
Unsubscribe : https://launchpad.net/~kernel-packages
More help : https://help.launchpad.net/ListHelp