From: Jakub Kicinski <jakub.kicin...@netronome.com> Date: Tue, 27 Nov 2018 14:04:11 -0800
> From: John Hurley <john.hur...@netronome.com> > > Calling nfp_compile_flow_metadata both assigns a stats context and > increments a ref counter on (or allocates) a mask id table entry. These > are released by the nfp_modify_flow_metadata call on flow deletion, > however, if a flow add fails after metadata is set then the flow entry > will be deleted but the metadata assignments leaked. > > Add an error path to the flow add offload function to ensure allocated > metadata is released in the event of an offload fail. > > Fixes: 81f3ddf2547d ("nfp: add control message passing capabilities to flower > offloads") > Signed-off-by: John Hurley <john.hur...@netronome.com> > Reviewed-by: Pieter Jansen van Vuuren <pieter.jansenvanvuu...@netronome.com> > Reviewed-by: Jakub Kicinski <jakub.kicin...@netronome.com> Applied.