net: consume descriptor on tx

This commit is contained in:
Matheus
2026-09-09 22:39:34 -03:00
parent 8134c00b69
commit daebfd89b5
6 changed files with 9 additions and 14 deletions
+1 -1
View File
@@ -191,7 +191,7 @@ static int rtl8169_sendpacket(netdev_t *internal, netdesc_t desc, mac_t target,
spinlock_release_lower_ipl(&netdev->tx_lock, ipl);
sched_yield();
return 0;
return internal->freedesc(internal, &desc);
}
// requested size doesn't account for ethernet header