octeontx2-pf: Add check for non zero mcam flows
authorSunil Goutham <sgoutham@marvell.com>
Fri, 20 Aug 2021 08:25:22 +0000 (13:55 +0530)
committerDavid S. Miller <davem@davemloft.net>
Fri, 20 Aug 2021 13:57:59 +0000 (14:57 +0100)
commita515e5b53cc699f1f3b60a5135f50657efa2758b
treea642b3a46dd25f13f45b3b7f354701a6c32b62c4
parentfa16ee77364f03d8565e5adeff1b119b29acca69
octeontx2-pf: Add check for non zero mcam flows

This patch ensures that mcam flows are allocated
before adding or destroying the flows.

Signed-off-by: Sunil Goutham <sgoutham@marvell.com>
Signed-off-by: Subbaraya Sundeep <sbhatta@marvell.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/marvell/octeontx2/nic/otx2_flows.c
drivers/net/ethernet/marvell/octeontx2/nic/otx2_pf.c