40 lines
1.2 KiB
Diff
40 lines
1.2 KiB
Diff
From 919ea304abf495a7142639e51555508fa1b23a30 Mon Sep 17 00:00:00 2001
|
|
From: test <test@example.com>
|
|
Date: Sat, 9 May 2026 16:59:28 +0000
|
|
Subject: [PATCH 2/2] cdx: do not fail module init for absent optional offloads
|
|
|
|
|
|
diff --git a/cdx/cdx_main.c b/cdx/cdx_main.c
|
|
index ec763cb..641121b 100644
|
|
--- a/cdx/cdx_main.c
|
|
+++ b/cdx/cdx_main.c
|
|
@@ -195,16 +195,17 @@ static int __init cdx_module_init(void)
|
|
#ifdef CFG_WIFI_OFFLOAD
|
|
rc = dpaa_vwd_init();
|
|
if (rc != 0) {
|
|
- printk("%s::vwd_driver_init failed\n", __func__);
|
|
- goto exit;
|
|
+ printk(KERN_WARNING "%s::vwd_driver_init failed rc %d; continuing without wifi offload\n",
|
|
+ __func__, rc);
|
|
+ rc = 0;
|
|
}
|
|
#endif
|
|
- // initialize global fragmentation params
|
|
- if (cdx_init_frag_module()) {
|
|
- printk("%s::cdx_init_frag_module failed\n", __func__);
|
|
- rc = -EIO;
|
|
- goto exit;
|
|
- }
|
|
+ /*
|
|
+ * The vendor fragmentation path assumes its BMan pool/config exists and
|
|
+ * can crash in bman_free_pool() when this board profile does not provide
|
|
+ * it. Keep CDX usable without the optional fragmentation offload path.
|
|
+ */
|
|
+ printk(KERN_WARNING "%s::skipping cdx_init_frag_module on this platform\n", __func__);
|
|
|
|
#ifdef DPA_IPSEC_OFFLOAD
|
|
if (cdx_dpa_ipsec_init()) {
|
|
--
|
|
2.47.3
|
|
|