svn commit: r318676 - head/sys/dev/qlnx/qlnxe
David C Somayajulu
davidcs at FreeBSD.org
Mon May 22 19:57:30 UTC 2017
Author: davidcs
Date: Mon May 22 19:57:28 2017
New Revision: 318676
URL: https://svnweb.freebsd.org/changeset/base/318676
Log:
Check for IPV6 TCP/UDP CSUM offload in pkt header during transmits.
Submitted by:Shminderjit.Singh at cavium.com
Modified:
head/sys/dev/qlnx/qlnxe/qlnx_os.c
Modified: head/sys/dev/qlnx/qlnxe/qlnx_os.c
==============================================================================
--- head/sys/dev/qlnx/qlnxe/qlnx_os.c Mon May 22 19:57:20 2017 (r318675)
+++ head/sys/dev/qlnx/qlnxe/qlnx_os.c Mon May 22 19:57:28 2017 (r318676)
@@ -2946,7 +2946,8 @@ qlnx_send(qlnx_host_t *ha, struct qlnx_f
(1 << ETH_TX_1ST_BD_FLAGS_IP_CSUM_SHIFT);
}
- if (m_head->m_pkthdr.csum_flags & (CSUM_UDP | CSUM_TCP)) {
+ if (m_head->m_pkthdr.csum_flags &
+ (CSUM_UDP | CSUM_TCP | CSUM_TCP_IPV6 | CSUM_UDP_IPV6)) {
first_bd->data.bd_flags.bitfields |=
(1 << ETH_TX_1ST_BD_FLAGS_L4_CSUM_SHIFT);
}
More information about the svn-src-head
mailing list