<div dir="ltr"><div class="gmail_default" style="font-family:tahoma,sans-serif">Hi Stephen,</div><div class="gmail_default" style="font-family:tahoma,sans-serif"><br></div><div class="gmail_default" style="font-family:tahoma,sans-serif">To reiterate, this happened for V2 as well. I remember seeing a warning about the size of the patch, and that being the reason it was dropped.</div><div class="gmail_default" style="font-family:tahoma,sans-serif"><br></div><div class="gmail_default" style="font-family:tahoma,sans-serif">Could you please explain why this happens? How can I ensure that this doesnt happen again?</div><div class="gmail_default" style="font-family:tahoma,sans-serif"><br></div><div class="gmail_default" style="font-family:tahoma,sans-serif">Thanks a lot!</div><div class="gmail_default" style="font-family:tahoma,sans-serif"><br></div></div><br><div class="gmail_quote gmail_quote_container"><div dir="ltr" class="gmail_attr">On Wed, Oct 15, 2025 at 1:52 PM Ajit Khaparde <<a href="mailto:ajit.khaparde@broadcom.com">ajit.khaparde@broadcom.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">On Wed, Oct 15, 2025 at 10:43 AM Stephen Hemminger<br>
<<a href="mailto:stephen@networkplumber.org" target="_blank">stephen@networkplumber.org</a>> wrote:<br>
><br>
> On Wed, 15 Oct 2025 04:59:30 -0400<br>
> Manish Kurup <<a href="mailto:manish.kurup@broadcom.com" target="_blank">manish.kurup@broadcom.com</a>> wrote:<br>
><br>
> > Apart from bug fixes, this patchset adds the following<br>
> > functionality:<br>
> ><br>
> > 1. Add the data, defines and enums for applications targeting<br>
> > Wh+, P5, P7 product families.<br>
> > 2. Update HSI files (HWRM API defintions, enums, version number)<br>
> > 3. Dynamic UPAR support for THOR2.<br>
> > 4. Add support to allow multiple instances of applications to<br>
> > exist at the same time.<br>
> > 5. Add hot upgrade support for applications.<br>
> > 6. Add MPLS packet offload support.<br>
> > 7. Improve backing store debug capabilities.<br>
> > 8. Add truflow global table scope support.<br>
> > 9. ULP parser support to handle GRE key.<br>
> ><br>
> > v1->v2:<br>
> > 1. Fixed typos in commit messages<br>
> > 2. Removed incorrect tabs in meson.build<br>
> > 3. Fixed ENODATA return value for BSD<br>
> > 4. Removed unused function bnxt_mpc_bds_in_hw()<br>
> > 5. Fixed questionable pointer cast warning<br>
> > 6. Ignoring function argument mispelling warnings<br>
> ><br>
> > v2->v3:<br>
> > 1. Fixed all sprintf format string warnings.<br>
> > 2. Fixed additional pointer size warnings.<br>
> ><br>
> > Please apply.<br>
> ><br>
> > Farah Smith (8):<br>
> > net/bnxt/tf_core: thor2 TF table scope sizing adjustments<br>
> > net/bnxt/tf_core: tcam manager logical id free<br>
> > net/bnxt/tf_core: thor2 hot upgrade ungraceful quit crash<br>
> > net/bnxt/tf_core: truflow global table scope<br>
> > net/bnxt/tf_ulp: socket direct enable<br>
> > net/bnxt: fix adding udp_tunnel_port<br>
> > net/bnxt: thor2 truflow memory manager bug<br>
> > net/bnxt/tf_core: fix truflow PF init failure on sriov disabled<br>
> ><br>
> > Jay Ding (4):<br>
> > net/bnxt: fix a NULL pointer dereference in bnxt_rep funcs<br>
> > net/bnxt/tf_ulp: add meter stats support for Thor2<br>
> > net/bnxt/tf_core: fix the miscalculation of the lkup table pool<br>
> > next/bnxt/tf_ulp: truflow fixes for meter and mac_addr cache<br>
> ><br>
> > Kishore Padmanabha (18):<br>
> > net/bnxt: enable vector mode processing<br>
> > net/bnxt/tf_ulp: add support for global identifiers<br>
> > net/bnxt/tf_core: add support for multi instance<br>
> > net/bnxt/tf_core: fix table scope free<br>
> > net/bnxt/tf_core: fix vfr clean up and stats lockup<br>
> > net/bnxt/tf_ulp: increase shared pool size to 32<br>
> > net/bnxt/tf_ulp: add support for tcam priority update<br>
> > net/bnxt/tf_ulp: hot upgrade support<br>
> > net/bnxt/tf_ulp: fix stats counter memory initialization<br>
> > net/bnxt: fix max VFs count for thor2<br>
> > net/bnxt/tf_ulp: enable support for global index table<br>
> > net/bnxt/tf_ulp: optimize template enums<br>
> > net/bnxt/tf_ulp: add non vfr mode capability<br>
> > net/bnxt: fix stats collection when rx queue is not set<br>
> > net/bnxt: fix rss configuration when set to none<br>
> > net/bnxt: packet drop after port stop and start<br>
> > net/bnxt/tf_ulp: add support for unicast only feature<br>
> > net/bnxt: add support for truflow promiscuous mode<br>
> ><br>
> > Manish Kurup (6):<br>
> > net/bnxt/tf_ulp: add bnxt app data for 25.11<br>
> > net/bnxt/tf_core: dynamic UPAR support for THOR2<br>
> > net/bnxt: add meson build options for TruFlow<br>
> > net/bnxt: truflow HSI struct fixes<br>
> > net/bnxt/tf_ulp: fixes to enable TF functionality<br>
> > net/bnxt/tf_ulp: remove Truflow DEBUG code<br>
> ><br>
> > Peter Spreadborough (6):<br>
> > net/bnxt/tf_ulp: ovs-dpdk packet drop observed with thor2<br>
> > net/bnxt/tf_core: add backing store debug to dpdk<br>
> > net/bnxt/tf_core: handle out of order MPC completions<br>
> > net/bnxt: avoid potential segfault in VFR handling<br>
> > net/bnxt/tf_core: fix truflow crash on memory allocation failure<br>
> > net/bnxt/tf_core: remove excessive debug logging<br>
> ><br>
> > Sangtani Parag Satishbhai (3):<br>
> > net/bnxt/tf_ulp: fix seg fault when devargs argument missing<br>
> > net/bnxt: truflow remove redundant code for mpc init<br>
> > net/bnxt: truflow remove RTE devarg processing for mpc=1<br>
> ><br>
> > Shahaji Bhosle (4):<br>
> > net/bnxt/tf_ulp: ulp parser support to handle gre key<br>
> > net/bnxt/tf_ulp: change rte_mem_virt2iova to rte_mem_virt2phys<br>
> > net/bnxt/tf_ulp: truflow add pf action handler<br>
> > net/bnxt/tf_ulp: add feature bit rx miss handling<br>
> ><br>
> > Shuanglin Wang (2):<br>
> > net/bnxt/tf_core: fix build failure with flow scale option<br>
> > net/bnxt/tf_ulp: support MPLS packets<br>
> ><br>
> > Smitha Pisupati (1):<br>
> > net/bnxt/tf_ulp: add support for special vxlan<br>
> ><br>
> > Sriharsha Basavapatna (2):<br>
> > net/bnxt: fix default rss config<br>
> > net/bnxt: avoid iova range check when external memory is used<br>
> ><br>
> > drivers/net/bnxt/bnxt.h | 7 +<br>
> > drivers/net/bnxt/bnxt_ethdev.c | 256 +-<br>
> > drivers/net/bnxt/bnxt_hwrm.c | 25 +-<br>
> > drivers/net/bnxt/bnxt_mpc.c | 26 +-<br>
> > drivers/net/bnxt/bnxt_mpc.h | 7 +-<br>
> > drivers/net/bnxt/bnxt_reps.c | 37 +-<br>
> > drivers/net/bnxt/bnxt_stats.c | 5 +<br>
> > drivers/net/bnxt/bnxt_txr.c | 5 +-<br>
> > drivers/net/bnxt/bnxt_vnic.c | 21 +-<br>
> > .../bnxt/hcapi/cfa_v3/include/cfa_resources.h | 33 +-<br>
> > .../net/bnxt/hcapi/cfa_v3/include/cfa_types.h | 10 +<br>
> > drivers/net/bnxt/hcapi/cfa_v3/mm/cfa_mm.c | 83 +-<br>
> > .../net/bnxt/hcapi/cfa_v3/mm/cfa_mm_priv.h | 2 +-<br>
> > drivers/net/bnxt/hsi_struct_def_dpdk.h | 1123 +-<br>
> > drivers/net/bnxt/tf_core/cfa_tcam_mgr.c | 35 +-<br>
> > .../net/bnxt/tf_core/cfa_tcam_mgr_device.h | 6 +-<br>
> > drivers/net/bnxt/tf_core/cfa_tcam_mgr_p4.c | 2 +-<br>
> > drivers/net/bnxt/tf_core/cfa_tcam_mgr_p58.c | 2 +-<br>
> > drivers/net/bnxt/tf_core/tf_resources.c | 2 +-<br>
> > drivers/net/bnxt/tf_core/tf_util.c | 2 +<br>
> > drivers/net/bnxt/tf_core/v3/meson.build | 4 +-<br>
> > drivers/net/bnxt/tf_core/v3/tfc.h | 238 +-<br>
> > drivers/net/bnxt/tf_core/v3/tfc_act.c | 47 +-<br>
> > drivers/net/bnxt/tf_core/v3/tfc_cpm.c | 13 +<br>
> > drivers/net/bnxt/tf_core/v3/tfc_debug.h | 12 +-<br>
> > drivers/net/bnxt/tf_core/v3/tfc_em.c | 143 +-<br>
> > drivers/net/bnxt/tf_core/v3/tfc_em.h | 105 +-<br>
> > drivers/net/bnxt/tf_core/v3/tfc_global_id.c | 45 +-<br>
> > drivers/net/bnxt/tf_core/v3/tfc_hot_upgrade.c | 142 +<br>
> > drivers/net/bnxt/tf_core/v3/tfc_idx_tbl.c | 51 +-<br>
> > drivers/net/bnxt/tf_core/v3/tfc_mpc_debug.c | 1411 +<br>
> > drivers/net/bnxt/tf_core/v3/tfc_mpc_table.c | 565 -<br>
> > drivers/net/bnxt/tf_core/v3/tfc_msg.c | 363 +-<br>
> > drivers/net/bnxt/tf_core/v3/tfc_msg.h | 41 +-<br>
> > drivers/net/bnxt/tf_core/v3/tfc_resources.c | 12 +-<br>
> > drivers/net/bnxt/tf_core/v3/tfc_tbl_scope.c | 246 +-<br>
> > drivers/net/bnxt/tf_core/v3/tfc_tcam.c | 55 +<br>
> > drivers/net/bnxt/tf_core/v3/tfc_tcam_debug.c | 1875 +<br>
> > drivers/net/bnxt/tf_core/v3/tfc_util.c | 23 +<br>
> > drivers/net/bnxt/tf_core/v3/tfc_util.h | 14 +<br>
> > drivers/net/bnxt/tf_core/v3/tfc_vf2pf_msg.c | 3 +-<br>
> > drivers/net/bnxt/tf_core/v3/tfc_vf2pf_msg.h | 4 +-<br>
> > drivers/net/bnxt/tf_core/v3/tfo.c | 211 +-<br>
> > drivers/net/bnxt/tf_core/v3/tfo.h | 53 +-<br>
> > drivers/net/bnxt/tf_ulp/bnxt_tf_common.h | 5 -<br>
> > drivers/net/bnxt/tf_ulp/bnxt_tf_pmd_shim.c | 6 -<br>
> > drivers/net/bnxt/tf_ulp/bnxt_ulp.h | 6 +<br>
> > drivers/net/bnxt/tf_ulp/bnxt_ulp_flow.c | 10 +<br>
> > drivers/net/bnxt/tf_ulp/bnxt_ulp_meter.c | 55 +-<br>
> > drivers/net/bnxt/tf_ulp/bnxt_ulp_tf.c | 27 +-<br>
> > drivers/net/bnxt/tf_ulp/bnxt_ulp_tfc.c | 147 +-<br>
> > drivers/net/bnxt/tf_ulp/bnxt_ulp_tfc.h | 5 +<br>
> > drivers/net/bnxt/tf_ulp/bnxt_ulp_utils.h | 82 +-<br>
> > .../generic_templates/ulp_template_db_act.c | 6 +-<br>
> > .../generic_templates/ulp_template_db_class.c | 8808 ++--<br>
> > .../generic_templates/ulp_template_db_defs.h | 88 +<br>
> > .../generic_templates/ulp_template_db_field.h | 5 +-<br>
> > .../generic_templates/ulp_template_db_tbl.c | 267 +-<br>
> > .../ulp_template_db_thor2_act.c | 4637 +-<br>
> > .../ulp_template_db_thor2_class.c | 42439 +++++++++-------<br>
> > .../ulp_template_db_thor_act.c | 14 +-<br>
> > .../ulp_template_db_thor_class.c | 13247 ++---<br>
> > .../ulp_template_db_wh_plus_act.c | 2 +-<br>
> > .../ulp_template_db_wh_plus_class.c | 26 +-<br>
> > drivers/net/bnxt/tf_ulp/meson.build | 56 +-<br>
> > drivers/net/bnxt/tf_ulp/ulp_alloc_tbl.c | 4 -<br>
> > drivers/net/bnxt/tf_ulp/ulp_def_rules.c | 38 +-<br>
> > drivers/net/bnxt/tf_ulp/ulp_fc_mgr.c | 50 +-<br>
> > drivers/net/bnxt/tf_ulp/ulp_fc_mgr.h | 11 +<br>
> > drivers/net/bnxt/tf_ulp/ulp_fc_mgr_tf.c | 3 +-<br>
> > drivers/net/bnxt/tf_ulp/ulp_fc_mgr_tfc.c | 64 +-<br>
> > drivers/net/bnxt/tf_ulp/ulp_flow_db.c | 10 +-<br>
> > drivers/net/bnxt/tf_ulp/ulp_flow_db.h | 6 +<br>
> > drivers/net/bnxt/tf_ulp/ulp_gen_hash.c | 2 +-<br>
> > drivers/net/bnxt/tf_ulp/ulp_gen_tbl.c | 24 +<br>
> > drivers/net/bnxt/tf_ulp/ulp_gen_tbl.h | 12 +<br>
> > drivers/net/bnxt/tf_ulp/ulp_mapper.c | 326 +-<br>
> > drivers/net/bnxt/tf_ulp/ulp_mapper.h | 56 +-<br>
> > drivers/net/bnxt/tf_ulp/ulp_mapper_tf.c | 81 +-<br>
> > drivers/net/bnxt/tf_ulp/ulp_mapper_tfc.c | 347 +-<br>
> > drivers/net/bnxt/tf_ulp/ulp_matcher.c | 9 -<br>
> > drivers/net/bnxt/tf_ulp/ulp_rte_handler_tbl.c | 8 +-<br>
> > drivers/net/bnxt/tf_ulp/ulp_rte_parser.c | 141 +-<br>
> > drivers/net/bnxt/tf_ulp/ulp_rte_parser.h | 10 +<br>
> > drivers/net/bnxt/tf_ulp/ulp_sc_mgr.c | 137 +-<br>
> > drivers/net/bnxt/tf_ulp/ulp_sc_mgr.h | 4 +-<br>
> > drivers/net/bnxt/tf_ulp/ulp_sc_mgr_tfc.c | 1 -<br>
> > .../ulp_template_db_enum.h | 333 +-<br>
> > drivers/net/bnxt/tf_ulp/ulp_template_struct.h | 5 +<br>
> > drivers/net/bnxt/tf_ulp/ulp_tfc_ha_mgr.c | 264 +<br>
> > drivers/net/bnxt/tf_ulp/ulp_tfc_ha_mgr.h | 40 +<br>
> > meson_options.txt | 4 +<br>
> > 92 files changed, 48710 insertions(+), 30583 deletions(-)<br>
> > create mode 100644 drivers/net/bnxt/tf_core/v3/tfc_hot_upgrade.c<br>
> > create mode 100644 drivers/net/bnxt/tf_core/v3/tfc_mpc_debug.c<br>
> > delete mode 100644 drivers/net/bnxt/tf_core/v3/tfc_mpc_table.c<br>
> > create mode 100644 drivers/net/bnxt/tf_core/v3/tfc_tcam_debug.c<br>
> > create mode 100644 drivers/net/bnxt/tf_ulp/generic_templates/ulp_template_db_defs.h<br>
> > rename drivers/net/bnxt/tf_ulp/{generic_templates => }/ulp_template_db_enum.h (88%)<br>
> > create mode 100644 drivers/net/bnxt/tf_ulp/ulp_tfc_ha_mgr.c<br>
> > create mode 100644 drivers/net/bnxt/tf_ulp/ulp_tfc_ha_mgr.h<br>
> ><br>
><br>
> I was looking to see if the bug detected with LTO (misuse of rte_free)<br>
> was in this patchset.<br>
Stephen,<br>
I don't see patch [01/54] on patchwork yet.<br>
>From what I am told, that patch adds the ulp_template_db_defs.h<br>
<br>
Thanks<br>
<br>
><br>
> But it fails to build:<br>
> [838/3632] Compiling C object drivers/libtmp_rte_net_bnxt.a.p/net_bnxt_bnxt_cpr.c.o<br>
> FAILED: drivers/libtmp_rte_net_bnxt.a.p/net_bnxt_bnxt_cpr.c.o<br>
> cc -Idrivers/libtmp_rte_net_bnxt.a.p -Idrivers -I../drivers -Idrivers/net/bnxt -I../drivers/net/bnxt -Idrivers/net/bnxt/tf_ulp -I../drivers/net/bnxt/tf_ulp -Idrivers/net/bnxt/tf_ulp/generic_templates -I../drivers/net/bnxt/tf_ulp/generic_templates -Idrivers/net/bnxt/tf_core -I../drivers/net/bnxt/tf_core -Idrivers/net/bnxt/tf_core/v3 -I../drivers/net/bnxt/tf_core/v3 -Idrivers/net/bnxt/hcapi/cfa -I../drivers/net/bnxt/hcapi/cfa -Idrivers/net/bnxt/hcapi/cfa_v3 -I../drivers/net/bnxt/hcapi/cfa_v3 -I../drivers/net/bnxt/hcapi/cfa_v3/include -I../drivers/net/bnxt/hcapi/cfa_v3/include/platform/dpdk -I../drivers/net/bnxt/hcapi/cfa_v3/bld/p70 -I../drivers/net/bnxt/hcapi/cfa_v3/bld/p70/host -I../drivers/net/bnxt/hcapi/cfa_v3/bld/include -I../drivers/net/bnxt/hcapi/cfa_v3/bld/include/host -I../drivers/net/bnxt/hcapi/cfa_v3/bld/include/p70 -I../drivers/net/bnxt/hcapi/cfa_v3/mm/include -I../drivers/net/bnxt/hcapi/cfa_v3/tim/include -I../drivers/net/bnxt/hcapi/cfa_v3/tpm/include -Ilib/ethdev -I../lib/ethdev -Ilib/eal/common -I../lib/eal/common -I. -I.. -Iconfig -I../config -Ilib/eal/include -I../lib/eal/include -Ilib/eal/linux/include -I../lib/eal/linux/include -Ilib/eal/x86/include -I../lib/eal/x86/include -I../kernel/linux -Ilib/eal -I../lib/eal -Ilib/kvargs -I../lib/kvargs -Ilib/log -I../lib/log -Ilib/metrics -I../lib/metrics -Ilib/telemetry -I../lib/telemetry -Ilib/argparse -I../lib/argparse -Ilib/net -I../lib/net -Ilib/mbuf -I../lib/mbuf -Ilib/mempool -I../lib/mempool -Ilib/ring -I../lib/ring -Ilib/meter -I../lib/meter -Idrivers/bus/pci -I../drivers/bus/pci -I../drivers/bus/pci/linux -Ilib/pci -I../lib/pci -Idrivers/bus/vdev -I../drivers/bus/vdev -Ilib/hash -I../lib/hash -Ilib/rcu -I../lib/rcu -I/usr/include/x86_64-linux-gnu -flto=auto -fdiagnostics-color=always -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Wextra -std=c11 -O3 -include rte_config.h -Wvla -Wcast-qual -Wdeprecated -Wformat -Wformat-nonliteral -Wformat-security -Wmissing-declarations -Wmissing-prototypes -Wnested-externs -Wold-style-definition -Wpointer-arith -Wsign-compare -Wstrict-prototypes -Wundef -Wwrite-strings -Wno-packed-not-aligned -Wno-missing-field-initializers -D_GNU_SOURCE -ffat-lto-objects -fPIC -march=native -mrtm -DALLOW_EXPERIMENTAL_API -DALLOW_INTERNAL_API -Wno-format-truncation -Wno-address-of-packed-member -Wno-vla -DBNXT_TF_APP_ID=0 -DSUPPORT_CFA_HW_P70=1 -DCFA_BLD_PRINT_OBJ=1 -DRTE_LOG_DEFAULT_LOGTYPE=pmd.net.bnxt -MD -MQ drivers/libtmp_rte_net_bnxt.a.p/net_bnxt_bnxt_cpr.c.o -MF drivers/libtmp_rte_net_bnxt.a.p/net_bnxt_bnxt_cpr.c.o.d -o drivers/libtmp_rte_net_bnxt.a.p/net_bnxt_bnxt_cpr.c.o -c ../drivers/net/bnxt/bnxt_cpr.c<br>
> In file included from ../drivers/net/bnxt/tf_ulp/bnxt_ulp.h:18,<br>
> from ../drivers/net/bnxt/bnxt.h:28,<br>
> from ../drivers/net/bnxt/bnxt_cpr.c:10:<br>
> ../drivers/net/bnxt/tf_ulp/ulp_template_db_enum.h:9:10: fatal error: ulp_template_db_defs.h: No such file or directory<br>
> 9 | #include "ulp_template_db_defs.h"<br>
> | ^~~~~~~~~~~~~~~~~~~~~~~~<br>
> compilation terminated.<br>
><br>
</blockquote></div><div><br clear="all"></div><div><br></div><span class="gmail_signature_prefix">-- </span><br><div dir="ltr" class="gmail_signature"><div dir="ltr"><font face="tahoma, sans-serif">;) Manish (x1380)</font></div></div>