net/nfp: support MAC address change
authorAlejandro Lucero <alejandro.lucero@netronome.com>
Tue, 17 Apr 2018 09:16:53 +0000 (10:16 +0100)
committerFerruh Yigit <ferruh.yigit@intel.com>
Fri, 27 Apr 2018 14:54:55 +0000 (15:54 +0100)
commit2fe669f4bcd2d3ed4fd165a721c0af749f23b2c9
treebd08d7940a00a5a9ab5c2ab2956f6a5224f72a39
parent687790cf9a59add341b0271703638b1e4dad565e
net/nfp: support MAC address change

This patch allows to use another MAC address than the one coming
with the NIC by default.

The change requires to tell the vNIC after writing into the port
BAR space. The change will fail if the port is enabled and the
vNIC does not support a live address change.

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