net/dpaa2: fix misuse of interface index
authorSachin Saxena <sachin.saxena@nxp.com>
Mon, 14 Sep 2020 14:21:18 +0000 (19:51 +0530)
committerFerruh Yigit <ferruh.yigit@intel.com>
Fri, 18 Sep 2020 16:55:10 +0000 (18:55 +0200)
commit88e584a60d48b4416ad35649c2468656b514a449
tree00d53b26e2e881c7418e523e55359380133d653e
parent6abee736abe62e9555672c87e8d1659024489818
net/dpaa2: fix misuse of interface index

Dpaa2 pmd has no need to bound host interface
for which we require if_index field.
Setting it to 0 as unused.

Fixes: 3e5a335d3f88 ("net/dpaa2: add basic operations")
Cc: stable@dpdk.org
Reported-by: Stephen Hemminger <stephen@networkplumber.org>
Signed-off-by: Sachin Saxena <sachin.saxena@nxp.com>
Reviewed-by: Ferruh Yigit <ferruh.yigit@intel.com>
drivers/net/dpaa2/dpaa2_ethdev.c