shithub: riscv

Download patch

ref: e4191b8d11ae31efe758abfa5b48bf0b99c912a4
parent: 9d09242bee8489b6cdee246489063488bb52b1fb
author: cinap_lenrek <cinap_lenrek@felloff.net>
date: Sat Dec 9 12:32:07 EST 2023

devether: handle bypass case for dmat

--- a/sys/src/9/port/devether.c
+++ b/sys/src/9/port/devether.c
@@ -273,8 +273,11 @@
 	if((*from)->bridge == 0)
 		memmove(((Etherpkt*)bp->rp)->s, ether->ea, Eaddrlen);
 
-	if((*from)->bypass)
+	if((*from)->bypass){
+		if(ether->dmat != nil)
+			dmatproxy(bp, 0, ether->ea, ether->dmat);
 		from = nil;
+	}
 
 	bp = ethermux(ether, bp, from);
 	if(bp == nil)