[DragonFlyBSD - Bug #3089] (Closed) vtnet(4) - disable TCP checksum offload by default
bugtracker-admin at leaf.dragonflybsd.org
bugtracker-admin at leaf.dragonflybsd.org
Sat Jan 7 02:28:18 PST 2023
Issue #3089 has been updated by daftaupe.
Status changed from In Progress to Closed
<pre><code class="shell">
% uname -a
DragonFly dfly 6.5-DEVELOPMENT DragonFly v6.5.0.2.g030731-DEVELOPMENT
% ifconfig vtnet0
vtnet0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
options=2a<TXCSUM,VLAN_MTU,JUMBO_MTU>
</code></pre>
https://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/dddbf4cd54036c88ab90de54668f542d70b771b0?hp=22b7a3dbf6551c308d235ec4c6c793098ee0a61e
RXCSUM is disabled as default on vtnet driver. TXCSUM is advertised as being enabled as default -> manpage displays hw.vtnet_csum_disable default to 0 as a consequence and a CAVEATS section has been added too where this issue is mentionned. This seems to have solved issues about IPv6. The goal of this ticket has been achieved for me.
A new ticket would be a better place to start a discussion about how to improve that situation imo, so closing.
----------------------------------------
Bug #3089: vtnet(4) - disable TCP checksum offload by default
http://bugs.dragonflybsd.org/issues/3089#change-14454
* Author: jlane
* Status: Closed
* Priority: Normal
* Assignee: vadaszi
* Category: Driver
* Target version: 6.4
* Start date: 2017-10-21
----------------------------------------
The existing TCP checksum offset for this driver causes ~95% retransmit rates for TCP IPv6 packets. This makes the driver effectively useless in its current state on IPv6 networks. Fixing the checksum offload code is beyond my expertise at this time, so we should at least disable the offload by default.
Patch for sys/dev/virtual/virtio/net/if_vtnet.c:
166c166
< static int vtnet_csum_disable = 0;
---
> static int vtnet_csum_disable = 1; //broken for IPv6, disable by default
--
You have received this notification because you have either subscribed to it, or are involved in it.
To change your notification preferences, please click here: http://bugs.dragonflybsd.org/my/account
More information about the Bugs
mailing list