net/pfe: fix misuse of interface index
authorSachin Saxena <sachin.saxena@nxp.com>
Mon, 14 Sep 2020 14:22:17 +0000 (19:52 +0530)
committerFerruh Yigit <ferruh.yigit@intel.com>
Fri, 18 Sep 2020 16:55:10 +0000 (18:55 +0200)
commit3351a1036ecfbf0d1fdf18269c0073543ea69d0c
tree97f947fe8709bb1995744bf822887ca592b96682
parent88e584a60d48b4416ad35649c2468656b514a449
net/pfe: fix misuse of interface index

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

Fixes: fe38ad9ba73e ("net/pfe: add device start/stop")
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/pfe/pfe_ethdev.c