Skip to content

Commit 90cea91

Browse files
author
Mikhail Iakimenko
committed
ICRC tweak
For ICRC to function properly on send, the IPTX cannot be buffered
1 parent c352b5e commit 90cea91

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

liteeth/core/ip.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -265,8 +265,8 @@ def __init__(self, mac_address, ip_address, with_broadcast=True, dw=8):
265265
# IP -----------------------------------------------------------------------------------------------
266266

267267
class LiteEthIP(LiteXModule):
268-
def __init__(self, mac, mac_address, ip_address, arp_table, with_broadcast=True, dont_fragment=False, dw=8):
269-
self.tx = tx = LiteEthIPTX(mac_address, ip_address, arp_table, dw=dw, dont_fragment=dont_fragment)
268+
def __init__(self, mac, mac_address, ip_address, arp_table, with_broadcast=True, buffer_tx=True, dont_fragment=False, dw=8):
269+
self.tx = tx = LiteEthIPTX(mac_address, ip_address, arp_table, dw=dw, with_buffer=buffer_tx, dont_fragment=dont_fragment)
270270
self.rx = rx = LiteEthIPRX(mac_address, ip_address, with_broadcast, dw=dw)
271271
mac_port = mac.crossbar.get_port(ethernet_type_ip, dw)
272272
self.comb += [

liteeth/core/rocev2/__init__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,7 @@ def __init__(self, phy, mac_address, ip_address, read_port, write_port, clk_freq
6464
with_broadcast = with_ip_broadcast,
6565
dw = dw,
6666
dont_fragment = True,
67+
buffer_tx = False,
6768
)
6869
# ICMP (Optional).
6970
# ----------------

0 commit comments

Comments
 (0)