net/iavf: fix flow API error logs
authorJeff Guo <jia.guo@intel.com>
Fri, 8 May 2020 20:58:30 +0000 (16:58 -0400)
committerFerruh Yigit <ferruh.yigit@intel.com>
Mon, 11 May 2020 20:27:39 +0000 (22:27 +0200)
commitba37f7bf11fbca2a54fcdeeff74e308e8bfdf3d5
treebdc020521b069c943d2a8405df7683de69f38268
parentd70a869db27871db90f86e108fdbb9a22fc6d8c7
net/iavf: fix flow API error logs

When processing a rte flow, such as creating a parse engine, or
creating or destroying a RSS rule, if they are failed, they all
need to construct the flow error structure before return the error
message back to app. If not so, it will cause app crash when
app printing the message out of a flow error.

Fixes: 7be10c3004be ("net/iavf: add RSS configuration for VF")
Fixes: ff2d0c345c3b ("net/iavf: support generic flow API")

Signed-off-by: Jeff Guo <jia.guo@intel.com>
Acked-by: Qi Zhang <qi.z.zhang@intel.com>
drivers/net/iavf/iavf_generic_flow.c
drivers/net/iavf/iavf_hash.c