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:01:28 -0200 |
commit | ebc4a441b04affa351d172e5598485e2536e934b (patch) | |
tree | ba3f76252f14d64d7d861aa87ce3a77325c329e1 /src/etc/inc/pfsense-utils.inc | |
parent | 5ad698557ca70489b34557354d2b2a6a1341135f (diff) | |
download | pfsense-ebc4a441b04affa351d172e5598485e2536e934b.zip pfsense-ebc4a441b04affa351d172e5598485e2536e934b.tar.gz |
Consider the IPv6 checksum options when dealing with "Disable hardware checksum offload".
Ticket #5321
(cherry picked from commit 411d4e6e55475cc66b997ca3e47478dbe10b4e1b)
Diffstat (limited to 'src/etc/inc/pfsense-utils.inc')
-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 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'])) { |