]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Fix MAC address configuration for VNIC
authorZbigniew Bodek <zbb@FreeBSD.org>
Thu, 31 Mar 2016 13:13:38 +0000 (13:13 +0000)
committerZbigniew Bodek <zbb@FreeBSD.org>
Thu, 31 Mar 2016 13:13:38 +0000 (13:13 +0000)
commit316e15b4cc17d077e423dd6e7ce8bf0046b27f2f
tree9937f80a6981a315f4abe1e73778e4c643b809e3
parent7c617ace705d43e2e2fd55031d0749c6eda96a22
Fix MAC address configuration for VNIC

The FDT description is as follows:
- phy-handle, reg, qlm-mode, mac-address are under nodes in bgx0/1 node
- phy nodes (pointed by phy-handle) are under MDIO even though they may
  not be connected through to MDIO. In those nodes they do not contain
  MAC address or etc.

This commit changes parsing of the FDT nodes for BGX so that it can
obtain correct MAC address for a given PHY.

Reviewed by:   wma
Obtained from: Semihalf
Sponsored by:  Cavium
Differential Revision: https://reviews.freebsd.org/D5781
sys/dev/vnic/thunder_bgx_fdt.c