On Thu, 23 Jul 2020 22:32:14 -0700 Ajit Khaparde <ajit.khapa...@broadcom.com> wrote:
> +int > +tf_search_tcam_entry(struct tf *tfp, > + struct tf_search_tcam_entry_parms *parms) > +{ > + int rc; > + struct tf_session *tfs; > + struct tf_dev_info *dev; > + struct tf_tcam_alloc_search_parms sparms; > + > + TF_CHECK_PARMS2(tfp, parms); > + > + memset(&sparms, 0, sizeof(struct tf_tcam_alloc_search_parms)); FYI simpler way to initialize stack variable is: struct tf_tcam_alloc_search_parms sparms = { };