diff options
author | Luiz Otavio O Souza <luiz@netgate.com> | 2016-11-06 21:51:13 -0600 |
---|---|---|
committer | Renato Botelho <renato@netgate.com> | 2016-11-10 08:03:35 -0200 |
commit | 09cc19c2798a779791ca0976ba4d281723fc0d3c (patch) | |
tree | 2ac8ebacbaac847ffd791a9b3654084245283061 | |
parent | 1c9bf3960aedc359d1dd3a9d5eb6e332c3595155 (diff) | |
download | pfsense-09cc19c2798a779791ca0976ba4d281723fc0d3c.zip pfsense-09cc19c2798a779791ca0976ba4d281723fc0d3c.tar.gz |
Consider the IPv6 checksum options when dealing with "Disable hardware checksum offload".
Ticket #5321
(cherry picked from commit 411d4e6e55475cc66b997ca3e47478dbe10b4e1b)
-rw-r--r-- | src/etc/inc/pfsense-utils.inc | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/etc/inc/pfsense-utils.inc b/src/etc/inc/pfsense-utils.inc index ab39d40..243595c 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'])) { |