ethdev: fix MAC changes when live change not supported
authorAlejandro Lucero <alejandro.lucero@netronome.com>
Fri, 24 Aug 2018 14:25:35 +0000 (15:25 +0100)
committerFerruh Yigit <ferruh.yigit@intel.com>
Tue, 28 Aug 2018 13:27:39 +0000 (15:27 +0200)
commit1e5e3d2e72c6bfdb3553be26015b7ee5bbf745c1
tree35016ac04bc0ead49828695540ff11232809d678
parent4943a290b8956f5ccb56a4a64205b60dc09646ca
ethdev: fix MAC changes when live change not supported

Current code assumes a MAC change can occur when the port has been
started. In fact, there are some NICs which require this port state
for being successful, but other NICs not always support MAC change
in that case.

This patch supports a new device flag for a device advertising this
limitation, and if the flag is set, the MAC is changed before the
port starts.

Fixes: af75078fece3 ("first public release")
Cc: stable@dpdk.org
Signed-off-by: Alejandro Lucero <alejandro.lucero@netronome.com>
Reviewed-by: Ferruh Yigit <ferruh.yigit@intel.com>
doc/guides/rel_notes/release_18_11.rst
lib/librte_ethdev/rte_ethdev.c
lib/librte_ethdev/rte_ethdev.h