numam-dpdk/drivers/net/bnxt/tf_ulp
Somnath Kotur b308d5a2a7 net/bnxt: cleanup and check ULP context allocation
Set ulp_ctx explicitly to NULL in ulp_ctx_deinit() so that representor
init is aborted if parent ulp context is not initialized.
Also check for the same before creation of port default rules.
Additional checks added in VF rep dev ops for proper parent dev
initialization, to avoid null pointer dereference.

Fixes: 322bd6e702 ("net/bnxt: add port representor infrastructure")
Fixes: 313ac35ac7 ("net/bnxt: support ULP session manager init")
Cc: stable@dpdk.org

Signed-off-by: Somnath Kotur <somnath.kotur@broadcom.com>
Reviewed-by: Venkat Duvvuru <venkatkumar.duvvuru@broadcom.com>
Reviewed-by: Ajit Khaparde <ajit.khaparde@broadcom.com>
2020-09-18 18:55:07 +02:00
..
bnxt_tf_common.h net/bnxt: change port config for full offload 2020-07-11 06:18:53 +02:00
bnxt_ulp_flow.c net/bnxt: change port config for full offload 2020-07-11 06:18:53 +02:00
bnxt_ulp.c net/bnxt: cleanup and check ULP context allocation 2020-09-18 18:55:07 +02:00
bnxt_ulp.h net/bnxt: fix port default rule create/destroy 2020-07-30 00:41:23 +02:00
ulp_def_rules.c net/bnxt: cleanup and check ULP context allocation 2020-09-18 18:55:07 +02:00
ulp_fc_mgr.c net/bnxt: fix flow counter query 2020-08-05 21:25:47 +02:00
ulp_fc_mgr.h net/bnxt: avoid hard coded values when reading counters 2020-07-11 06:18:53 +02:00
ulp_flow_db.c net/bnxt: fix port default rule create/destroy 2020-07-30 00:41:23 +02:00
ulp_flow_db.h net/bnxt: fix port default rule create/destroy 2020-07-30 00:41:23 +02:00
ulp_mapper.c net/bnxt: add TCAM table processing for search and alloc 2020-07-30 00:41:23 +02:00
ulp_mapper.h net/bnxt: change port config for full offload 2020-07-11 06:18:53 +02:00
ulp_mark_mgr.c net/bnxt: fix null pointer dereference 2020-07-21 13:54:54 +02:00
ulp_mark_mgr.h net/bnxt: add vfr flag to mark manager 2020-06-30 14:52:30 +02:00
ulp_matcher.c net/bnxt: change port config for full offload 2020-07-11 06:18:53 +02:00
ulp_matcher.h net/bnxt: divide ULP template database to smaller modules 2020-06-30 14:52:30 +02:00
ulp_port_db.c net/bnxt: configure PARIF for egress rules 2020-07-30 00:41:23 +02:00
ulp_port_db.h net/bnxt: configure PARIF for offload miss rules 2020-07-30 00:41:23 +02:00
ulp_rte_parser.c net/bnxt: configure loopback PARIF for egress flows 2020-09-18 18:55:07 +02:00
ulp_rte_parser.h net/bnxt: support decrement TTL action 2020-07-21 13:54:54 +02:00
ulp_template_db_act.c net/bnxt: add templates for search before alloc 2020-07-30 00:41:23 +02:00
ulp_template_db_class.c net/bnxt: lookup default action record PARIF 2020-09-18 18:55:07 +02:00
ulp_template_db_enum.h net/bnxt: configure loopback PARIF for egress flows 2020-09-18 18:55:07 +02:00
ulp_template_db_field.h net/bnxt: support exact match templates 2020-07-21 13:54:54 +02:00
ulp_template_db_tbl.c net/bnxt: fix NAT template 2020-07-30 00:41:23 +02:00
ulp_template_db.c net/bnxt: add vfr flag to mark manager 2020-06-30 14:52:30 +02:00
ulp_template_db.h net/bnxt: add vfr flag to mark manager 2020-06-30 14:52:30 +02:00
ulp_template_field_db.h net/bnxt: support VXLAN encap/decap templates 2020-06-30 14:52:30 +02:00
ulp_template_struct.h net/bnxt: add TCAM table processing for search and alloc 2020-07-30 00:41:23 +02:00
ulp_utils.c net/bnxt: support extracting data from ULP blob 2020-07-21 13:54:53 +02:00
ulp_utils.h net/bnxt: support extracting data from ULP blob 2020-07-21 13:54:53 +02:00