diff options
author | thesven73@gmail.com <thesven73@gmail.com> | 2018-11-17 10:56:18 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2018-11-18 12:57:59 -0800 |
commit | cddaf02bcb7313a23b06e46683a1381b85840687 (patch) | |
tree | 093edc802db27d252fb51ae4c2b22e4ace9c1127 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | 80cc49507ba48f85929f499734e4dbe2d50ecdf8 (diff) |
tg3: optionally use eth_platform_get_mac_address() to get mac address
This function will try to determine the mac address via the devicetree,
or via an architecture-specific method (e.g. a PROM on SPARC).
The SPARC-specific code in this driver (#ifdef SPARC) did exactly this,
and is therefore removed.
Note that you can now specify the tg3 mac address via the devicetree,
on any platform, not just SPARC:
Devicetree example:
(see Documentation/devicetree/bindings/pci/pci.txt)
&pcie {
host@0 {
#address-cells = <3>;
#size-cells = <2>;
reg = <0 0 0 0 0>;
bcm5778: bcm5778@0 {
reg = <0 0 0 0 0>;
mac-address = [CA 11 AB 1E 10 01];
};
};
};
Signed-off-by: Sven Van Asbroeck <svendev@arcx.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions