net/ice: fix protocol extraction devargs parsing
authorHaiyue Wang <haiyue.wang@intel.com>
Mon, 14 Oct 2019 14:50:05 +0000 (22:50 +0800)
committerFerruh Yigit <ferruh.yigit@intel.com>
Wed, 23 Oct 2019 14:43:09 +0000 (16:43 +0200)
commit83665e492f9daf13aad5647f378df29c3922dc2a
tree714c50078d398a90a23ccaaf36f711a9b9dc0943
parentf93949c3afc39b0f610e0661f7baa21060ada13a
net/ice: fix protocol extraction devargs parsing

If the default dev args 'proto_xtr' is not in the first position, it
will overwrite the parsed queue map value, so use an new variable to
save the default.

And enhance the error message printing to show the right information.

Fixes: 7e124ff12c85 ("net/ice: support protocol extraction per Rx queue")

Signed-off-by: Haiyue Wang <haiyue.wang@intel.com>
Reviewed-by: Xiaolong Ye <xiaolong.ye@intel.com>
drivers/net/ice/ice_ethdev.c
drivers/net/ice/ice_ethdev.h