net/dpaa2: support QoS or FS table entry indexing
authorJun Yang <jun.yang@nxp.com>
Tue, 7 Jul 2020 09:22:34 +0000 (14:52 +0530)
committerFerruh Yigit <ferruh.yigit@intel.com>
Sat, 11 Jul 2020 04:18:52 +0000 (06:18 +0200)
commit4ce58f8a182c09dd59331ca64149e3b8b0f26565
tree699cad5b6d468050bd53a94fdbf157e4f954a114
parent627fb636dba8b571b0b8093792f8d4d70f3e2cb2
net/dpaa2: support QoS or FS table entry indexing

Calculate QoS/FS entry index by group and priority of flow.

1)The less index of entry, the higher priority of flow.
2)Verify if the flow with same group and priority has been added before
  creating flow.

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