net/bnxt: fix crash during NAT configuration
authorKishore Padmanabha <kishore.padmanabha@broadcom.com>
Tue, 22 Sep 2020 07:06:32 +0000 (12:36 +0530)
committerFerruh Yigit <ferruh.yigit@intel.com>
Wed, 30 Sep 2020 17:19:10 +0000 (19:19 +0200)
commit6f744ddef543ef1dca7a65866c666e97e1f8f294
tree743e5f110dc7c357d068309af17ec2a751ded0ea
parent1f1f4f53654a12d5b42de4591fb4fb3d04ebd473
net/bnxt: fix crash during NAT configuration

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>
drivers/net/bnxt/tf_ulp/bnxt_ulp.c