svn commit: r319451 - stable/10/sys/dev/qlnx/qlnxe
David C Somayajulu
davidcs at FreeBSD.org
Thu Jun 1 18:37:10 UTC 2017
Author: davidcs
Date: Thu Jun 1 18:37:08 2017
New Revision: 319451
URL: https://svnweb.freebsd.org/changeset/base/319451
Log:
MFC r318676
Check for IPV6 TCP/UDP CSUM offload in pkt header during transmits.
Submitted by:Shminderjit.Singh at cavium.com
Modified:
stable/10/sys/dev/qlnx/qlnxe/qlnx_os.c
Directory Properties:
stable/10/ (props changed)
Modified: stable/10/sys/dev/qlnx/qlnxe/qlnx_os.c
==============================================================================
--- stable/10/sys/dev/qlnx/qlnxe/qlnx_os.c Thu Jun 1 18:36:52 2017 (r319450)
+++ stable/10/sys/dev/qlnx/qlnxe/qlnx_os.c Thu Jun 1 18:37:08 2017 (r319451)
@@ -2946,7 +2946,8 @@ qlnx_send(qlnx_host_t *ha, struct qlnx_fastpath *fp, s
(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-stable
mailing list