net/octeontx: fix user supplied MAC address index
authorSunil Kumar Kori <skori@marvell.com>
Wed, 29 Jan 2020 06:42:42 +0000 (12:12 +0530)
committerFerruh Yigit <ferruh.yigit@intel.com>
Wed, 5 Feb 2020 08:51:21 +0000 (09:51 +0100)
commit9614459b1eaa31ca074519ace4bbfdadb9b12fde
treed4b19ccc8f2223a8893158404ecb7a44e2a8651a
parent9e399b88ce2f103165512d4005611a1f709deb1d
net/octeontx: fix user supplied MAC address index

Earlier after a successful mac_addr_add operation, index was returned
by underlying layer which was unused but same as provided by DPDK API.

So API is enhanced to use application provided index location to add
MAC address entry.

Fixes: e4373bf1b3f5 ("net/octeontx: add unicast MAC filter")

Signed-off-by: Sunil Kumar Kori <skori@marvell.com>
Acked-by: Harman Kalra <hkalra@marvell.com>
drivers/net/octeontx/base/octeontx_bgx.c
drivers/net/octeontx/base/octeontx_bgx.h
drivers/net/octeontx/octeontx_ethdev.c