net/dpaa2: add flow data sanity check
authorJun Yang <jun.yang@nxp.com>
Tue, 7 Jul 2020 09:22:40 +0000 (14:52 +0530)
committerFerruh Yigit <ferruh.yigit@intel.com>
Sat, 11 Jul 2020 04:18:52 +0000 (06:18 +0200)
commitbac4a29663fd387e86c2033254da51db304c1c71
tree518ba81937527670bf327bf4303ed8d4d63f3771
parentcf707c0ffdb22e0ca0f1e6dee394998fc27bd632
net/dpaa2: add flow data sanity check

Check flow attributions and actions before creating flow.
Otherwise, the QoS table and FS table need to re-build
if checking fails.

Signed-off-by: Jun Yang <jun.yang@nxp.com>
Acked-by: Hemant Agrawal <hemant.agrawal@nxp.com>
drivers/net/dpaa2/dpaa2_flow.c