Skip to content

Commit 487178f

Browse files
noxghhauke
authored andcommitted
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: openwrt/openwrt#20983 Signed-off-by: Markus Petri <[email protected]> Link: openwrt/openwrt#21045 Signed-off-by: Hauke Mehrtens <[email protected]>
1 parent 7bfe778 commit 487178f

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
Fixes leaking the ethernet FCS into the frame payload on the RX
2+
path.
3+
4+
--- a/dcdp/ptm_tc.c
5+
+++ b/dcdp/ptm_tc.c
6+
@@ -923,7 +923,7 @@ static void ptm_fw_init(struct ptm_ep_pr
7+
rx_gitf_cfg.rx_inserted_bytes_1h = 0;
8+
rx_gitf_cfg.rx_inserted_bytes_2l = 0;
9+
rx_gitf_cfg.rx_inserted_bytes_2h = 0;
10+
- rx_gitf_cfg.rx_len_adj = -2;
11+
+ rx_gitf_cfg.rx_len_adj = is_bonding ? -2 : -6;
12+
for (i = 0; i < 4; i++) {
13+
dst_addr = __RX_GIF0_CFG_STATS_CFG +
14+
(i * DW_SZ(rx_gitf_cfg));

0 commit comments

Comments
 (0)