[dpdk-dev] [PATCH v3 01/22] net/bnxt: add shadow and search capability to tcam

Stephen Hemminger stephen at networkplumber.org
Fri Jul 24 20:04:50 CEST 2020


On Thu, 23 Jul 2020 22:32:14 -0700
Ajit Khaparde <ajit.khaparde at 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 = { };


More information about the dev mailing list