net/nfp: fix live MAC changes not supported
authorAlejandro Lucero <alejandro.lucero@netronome.com>
Fri, 24 Aug 2018 14:25:36 +0000 (15:25 +0100)
committerFerruh Yigit <ferruh.yigit@intel.com>
Tue, 28 Aug 2018 13:27:39 +0000 (15:27 +0200)
commit7712a1c660661005225c3f7ccbca09a6296e2751
tree31ec912c0f6335ea3e1decab9c2e616becb2b46f
parent1e5e3d2e72c6bfdb3553be26015b7ee5bbf745c1
net/nfp: fix live MAC changes not supported

Some NFP firmwares support live changes to the MAC address, but
this is not always true and the firmware advertises it accordingly.

This patch checks if firmware does not support live changes and
sets RTE_ETH_DEV_NOLIVE_MAC_ADDR in that case.

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