kni: support MAC address change
authorHemant Agrawal <hemant.agrawal@nxp.com>
Thu, 18 Jan 2018 06:12:58 +0000 (11:42 +0530)
committerThomas Monjalon <thomas@monjalon.net>
Thu, 1 Feb 2018 00:02:50 +0000 (01:02 +0100)
commit1cfe212ed17a505be53d09845554cd51607dd2a6
tree4d493049d9fb870e0ed2513922d8fa1f54e72ce7
parentfc29c712dd6758877bb10166d9a7866ee1fa6875
kni: support MAC address change

This patch adds following:
1. Option to configure the mac address during create. Generate random
   address only if the user has not provided any valid address.
2. Inform usespace, if mac address is being changed in linux.
3. Implement default handling of mac address change in the corresponding
   ethernet device.

Signed-off-by: Hemant Agrawal <hemant.agrawal@nxp.com>
Acked-by: Ferruh Yigit <ferruh.yigit@intel.com>
doc/guides/sample_app_ug/kernel_nic_interface.rst
examples/kni/main.c
lib/librte_eal/linuxapp/eal/include/exec-env/rte_kni_common.h
lib/librte_eal/linuxapp/kni/kni_misc.c
lib/librte_eal/linuxapp/kni/kni_net.c
lib/librte_kni/rte_kni.c
lib/librte_kni/rte_kni.h
test/test/test_kni.c