Check for IPV6 TCP/UDP CSUM offload in pkt header during transmits.
Submitted by:Shminderjit.Singh@cavium.com
This commit is contained in:
parent
25ba95ba2f
commit
6a1a6ac5c4
@ -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…
x
Reference in New Issue
Block a user