Initialize the global parameters structure to avoid segmentation fault
in the TRUFLOW global configuration set API.
Fixes:
0a58be6f7c1e ("net/bnxt: add access to NAT global register")
Cc: stable@dpdk.org
Signed-off-by: Kishore Padmanabha <kishore.padmanabha@broadcom.com>
Reviewed-by: Mike Baucom <michael.baucom@broadcom.com>
Reviewed-by: Ajit Khaparde <ajit.khaparde@broadcom.com>
{
uint32_t global_cfg = 0;
int rc;
- struct tf_global_cfg_parms parms;
+ struct tf_global_cfg_parms parms = { 0 };
/* Initialize the params */
parms.dir = dir,