mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-17 10:26:15 +00:00
Check for IPV6 TCP/UDP CSUM offload in pkt header during transmits.
Submitted by:Shminderjit.Singh@cavium.com
This commit is contained in:
parent
5423d0917e
commit
9f4ec0869b
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=318676
@ -2946,7 +2946,8 @@ qlnx_send(qlnx_host_t *ha, struct qlnx_fastpath *fp, struct mbuf **m_headp)
|
||||
(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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user