net/nfp: write PF MAC to config BAR
authorAlejandro Lucero <alejandro.lucero@netronome.com>
Wed, 13 Sep 2017 20:55:45 +0000 (21:55 +0100)
committerFerruh Yigit <ferruh.yigit@intel.com>
Fri, 6 Oct 2017 00:49:48 +0000 (02:49 +0200)
commitedbe47001e02ef57a56550f75038acb5ed087f6f
tree2ecb264643e8e395a44b6359a8a3a8307541ced4
parent517e9c26ff5efa68ded5677cbab28e797c62bb47
net/nfp: write PF MAC to config BAR

VFs rely on config BAR for getting the MAC address, although a
random one is created a valid address is not found.

A PF port has a fixed MAC which is currently acquired using the NSPU
interface. Some NFP firmwares require the MAC being writing back
to the config BAR for doing proper MAC filtering.

Signed-off-by: Alejandro Lucero <alejandro.lucero@netronome.com>
drivers/net/nfp/nfp_net.c