From ebc4a441b04affa351d172e5598485e2536e934b Mon Sep 17 00:00:00 2001 From: Luiz Otavio O Souza Date: Sun, 6 Nov 2016 21:51:13 -0600 Subject: Consider the IPv6 checksum options when dealing with "Disable hardware checksum offload". Ticket #5321 (cherry picked from commit 411d4e6e55475cc66b997ca3e47478dbe10b4e1b) --- src/etc/inc/pfsense-utils.inc | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'src/etc/inc/pfsense-utils.inc') diff --git a/src/etc/inc/pfsense-utils.inc b/src/etc/inc/pfsense-utils.inc index 2b9480f..dcf7c26 100644 --- a/src/etc/inc/pfsense-utils.inc +++ b/src/etc/inc/pfsense-utils.inc @@ -412,6 +412,12 @@ function hardware_offloading_applyflags($iface) { if (isset($options['encaps']['rxcsum'])) { $flags_off |= IFCAP_RXCSUM; } + if (isset($options['encaps']['txcsum6'])) { + $flags_off |= IFCAP_TXCSUM_IPV6; + } + if (isset($options['encaps']['rxcsum6'])) { + $flags_off |= IFCAP_RXCSUM_IPV6; + } } else { if (isset($options['caps']['txcsum'])) { $flags_on |= IFCAP_TXCSUM; @@ -419,6 +425,12 @@ function hardware_offloading_applyflags($iface) { if (isset($options['caps']['rxcsum'])) { $flags_on |= IFCAP_RXCSUM; } + if (isset($options['caps']['txcsum6'])) { + $flags_on |= IFCAP_TXCSUM_IPV6; + } + if (isset($options['caps']['rxcsum6'])) { + $flags_on |= IFCAP_RXCSUM_IPV6; + } } if (isset($config['system']['disablesegmentationoffloading'])) { -- cgit v1.1