kni: keep ethernet MAC address when interface goes up
authorIgor Ryzhov <iryzhov@nfware.com>
Thu, 21 Apr 2016 16:27:30 +0000 (19:27 +0300)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Mon, 2 May 2016 10:37:48 +0000 (12:37 +0200)
commit166605b1bf8d34d76466299c8d3198d87a53866d
treeb02bd1e651db1686450bfd6eb945f25197ef8661
parent331c617bfb5e977c79099f6f833fdcd7f628349d
kni: keep ethernet MAC address when interface goes up

Currently every time a KNI interface goes up, its ethernet address
is reassigned.
After this patch ethernet address is assigned only once,
at initialization time.

Suggested-by: Sergey Balabanov <balabanovsv@ecotelecom.ru>
Signed-off-by: Igor Ryzhov <iryzhov@nfware.com>
Acked-by: Helin Zhang <helin.zhang@intel.com>
lib/librte_eal/linuxapp/kni/kni_misc.c
lib/librte_eal/linuxapp/kni/kni_net.c