tests: disable transmit checksum offloading for epair interfaces
When transmit checksum offloading is enabled, if_epair does not compute checksums, it just marks packets that this computation still needs to be done. However, some test cases verify the checksum. Therefore disable this for IPv4 and IPv6. Reviewed by: kp MFC after: 1 week Differential Revision: https://reviews.freebsd.org/D52379
This commit is contained in:
@@ -103,6 +103,7 @@ def create_iface(cls, alias_name: str, iface_name: str) -> List["VnetInterface"]
|
||||
if1 = cls(alias_name, name)
|
||||
ret = [if1]
|
||||
if name.startswith("epair"):
|
||||
run_cmd("/sbin/ifconfig {} -txcsum -txcsum6".format(name))
|
||||
if2 = cls(alias_name, name[:-1] + "b")
|
||||
if1.epairb = if2
|
||||
ret.append(if2);
|
||||
|
||||
Reference in New Issue
Block a user