summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarkus Petri2025-12-04 20:28:51 +0000
committerHauke Mehrtens2025-12-17 21:08:22 +0000
commitd9c5716d1d75e652d57b42a514b20145a24eee18 (patch)
tree72c61160c570faa0ecd0cd8587efbb76ee5e7109
parente382fc552a5afaa18e98b8971cf515c1e7ef5248 (diff)
downloadopenwrt-d9c5716d1d75e652d57b42a514b20145a24eee18.tar.gz
vrx518_tc: fix rx_len_adj
Fix rx_len_adj to avoid leaking the ethernet FCS into the actual frame data in single line mode (the default) Fixes: https://github.com/openwrt/openwrt/issues/20983 Signed-off-by: Markus Petri <devel@isjunk.org> Link: https://github.com/openwrt/openwrt/pull/21045 Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de> (cherry picked from commit 487178f8b003bf2e06b9f989b46f8b5c36181910)
-rw-r--r--package/kernel/lantiq/vrx518_tc/patches/208-dcdp-ptm_tc-fix-rx_len_adj.patch14
1 files changed, 14 insertions, 0 deletions
diff --git a/package/kernel/lantiq/vrx518_tc/patches/208-dcdp-ptm_tc-fix-rx_len_adj.patch b/package/kernel/lantiq/vrx518_tc/patches/208-dcdp-ptm_tc-fix-rx_len_adj.patch
new file mode 100644
index 0000000000..855da162c3
--- /dev/null
+++ b/package/kernel/lantiq/vrx518_tc/patches/208-dcdp-ptm_tc-fix-rx_len_adj.patch
@@ -0,0 +1,14 @@
+Fixes leaking the ethernet FCS into the frame payload on the RX
+path.
+
+--- a/dcdp/ptm_tc.c
++++ b/dcdp/ptm_tc.c
+@@ -923,7 +923,7 @@ static void ptm_fw_init(struct ptm_ep_pr
+ rx_gitf_cfg.rx_inserted_bytes_1h = 0;
+ rx_gitf_cfg.rx_inserted_bytes_2l = 0;
+ rx_gitf_cfg.rx_inserted_bytes_2h = 0;
+- rx_gitf_cfg.rx_len_adj = -2;
++ rx_gitf_cfg.rx_len_adj = is_bonding ? -2 : -6;
+ for (i = 0; i < 4; i++) {
+ dst_addr = __RX_GIF0_CFG_STATS_CFG +
+ (i * DW_SZ(rx_gitf_cfg));