ethmac: use new EndpointDescription API
authorSebastien Bourdeauducq <sb@m-labs.hk>
Fri, 21 Nov 2014 06:32:32 +0000 (22:32 -0800)
committerSebastien Bourdeauducq <sb@m-labs.hk>
Fri, 21 Nov 2014 06:32:32 +0000 (22:32 -0800)
misoclib/ethmac/common.py

index 5e5c129385c8523939a1f82d7386aa05fdd492bc..177943ee536d308f5eceba6d6ece6742ccc5cd2f 100644 (file)
@@ -6,12 +6,9 @@ eth_preamble = 0xD555555555555555
 buffer_depth = 2**log2_int(eth_mtu, need_pow2=False)
 
 def eth_description(dw):
-       parameters = {
-               "packetized": True
-       }
        layout = [
                ("d", dw),
                ("last_be", dw//8),
                ("error", dw//8)
        ]
-       return EndpointDescription(layout, parameters)
+       return EndpointDescription(layout, packetized=True)