net/octeontx2: fix VF index in VF action
authorVamsi Attunuru <vattunuru@marvell.com>
Tue, 29 Oct 2019 17:50:59 +0000 (23:20 +0530)
committerFerruh Yigit <ferruh.yigit@intel.com>
Fri, 8 Nov 2019 22:15:04 +0000 (23:15 +0100)
commit25c6855d419cb1c74b50fd22daa5d71163ba47f5
tree5e6ac681365c00b4bdf3146665d46f1fa242d4ef
parent30b170b4a56f313f1668d4f583d9572ce48823c7
net/octeontx2: fix VF index in VF action

VF index needs to be checked against maxvf count
before incrementing it for preparing pf_func.

Fixes: 520270d5184a ("net/octeontx2: support PF and VF action")
Cc: stable@dpdk.org
Signed-off-by: Vamsi Attunuru <vattunuru@marvell.com>
Acked-by: Jerin Jacob <jerinj@marvell.com>
drivers/net/octeontx2/otx2_flow_parse.c