src/dpdk/drivers/net/e1000/igb_rxtx.c
static inline uint64_t
check_tso_para(uint64_t ol_req, union igb_tx_offload ol_para)
{
	if (!(ol_req & PKT_TX_TCP_SEG))
		return ol_req;
	if ((ol_para.tso_segsz > IGB_TSO_MAX_MSS) || (ol_para.l2_len +
			ol_para.l3_len + ol_para.l4_len > IGB_TSO_MAX_HDRLEN)) {
		ol_req &= ~PKT_TX_TCP_SEG;
		ol_req |= PKT_TX_TCP_CKSUM;
	}
	return ol_req;
}
/*
 *There're some limitations in hardware for TCP segmentation offload. We
 *should check whether the parameters are valid.
 */
There're some limitations in hardware for TCP segmentation offload. We
should check whether the parameters are valid.
There ' re some limitations in hardware for TCP segmentation offload . We should check whether the parameters are valid .
static inline uint64_t
check_tso_para(uint64_t ol_req, union igb_tx_offload ol_para)
{
	if (!(ol_req & PKT_TX_TCP_SEG))
		return ol_req;
	if ((ol_para.tso_segsz > IGB_TSO_MAX_MSS) || (ol_para.l2_len +
			ol_para.l3_len + ol_para.l4_len > IGB_TSO_MAX_HDRLEN)) {
		ol_req &= ~PKT_TX_TCP_SEG;
		ol_req |= PKT_TX_TCP_CKSUM;
	}
	return ol_req;
}
static inline uint64_t check_tso_para ( uint64_t ol_req , union igb_tx_offload ol_para ) { if ( ! ( ol_req & PKT_TX_TCP_SEG ) ) return ol_req ; if ( ( ol_para . tso_segsz > IGB_TSO_MAX_MSS ) || ( ol_para . l2_len + ol_para . l3_len + ol_para . l4_len > IGB_TSO_MAX_HDRLEN ) ) { ol_req &= ~ PKT_TX_TCP_SEG ; ol_req |= PKT_TX_TCP_CKSUM ; } return ol_req ; }
There're some limitations in hardware for TCP segmentation offload.
There ' re some limitations in hardware for TCP segmentation offload .