mbuf: remove UDP tunnel flag
Since previous commit, the flag PKT_TX_UDP_TUNNEL_PKT is not used by any PMD, remove it from mbuf API and from csumonly (testpmd). In csumonly, the PKT_TX_OUTER_IP_CKSUM flag is already set for vxlan checksum, providing enough information to the underlying driver. Signed-off-by: Olivier Matz <olivier.matz@6wind.com> Acked-by: Jijiang Liu <jijiang.liu@intel.com>
This commit is contained in:
parent
59cfa76a22
commit
c9433176b3
@ -255,9 +255,6 @@ process_outer_cksums(void *outer_l3_hdr, uint16_t outer_ethertype,
|
||||
struct udp_hdr *udp_hdr;
|
||||
uint64_t ol_flags = 0;
|
||||
|
||||
if (testpmd_ol_flags & TESTPMD_TX_OFFLOAD_VXLAN_CKSUM)
|
||||
ol_flags |= PKT_TX_UDP_TUNNEL_PKT;
|
||||
|
||||
if (outer_ethertype == _htons(ETHER_TYPE_IPv4)) {
|
||||
ipv4_hdr->hdr_checksum = 0;
|
||||
ol_flags |= PKT_TX_OUTER_IPV4;
|
||||
@ -473,7 +470,6 @@ pkt_burst_checksum_forward(struct fwd_stream *fs)
|
||||
{ PKT_TX_UDP_CKSUM, PKT_TX_L4_MASK },
|
||||
{ PKT_TX_TCP_CKSUM, PKT_TX_L4_MASK },
|
||||
{ PKT_TX_SCTP_CKSUM, PKT_TX_L4_MASK },
|
||||
{ PKT_TX_UDP_TUNNEL_PKT, PKT_TX_UDP_TUNNEL_PKT },
|
||||
{ PKT_TX_IPV4, PKT_TX_IPV4 },
|
||||
{ PKT_TX_IPV6, PKT_TX_IPV6 },
|
||||
{ PKT_TX_OUTER_IP_CKSUM, PKT_TX_OUTER_IP_CKSUM },
|
||||
|
@ -240,7 +240,6 @@ const char *rte_get_tx_ol_flag_name(uint64_t mask)
|
||||
case PKT_TX_SCTP_CKSUM: return "PKT_TX_SCTP_CKSUM";
|
||||
case PKT_TX_UDP_CKSUM: return "PKT_TX_UDP_CKSUM";
|
||||
case PKT_TX_IEEE1588_TMST: return "PKT_TX_IEEE1588_TMST";
|
||||
case PKT_TX_UDP_TUNNEL_PKT: return "PKT_TX_UDP_TUNNEL_PKT";
|
||||
case PKT_TX_TCP_SEG: return "PKT_TX_TCP_SEG";
|
||||
case PKT_TX_IPV4: return "PKT_TX_IPV4";
|
||||
case PKT_TX_IPV6: return "PKT_TX_IPV6";
|
||||
|
@ -117,11 +117,8 @@ extern "C" {
|
||||
* and set it in the TCP header. Refer to rte_ipv4_phdr_cksum() and
|
||||
* rte_ipv6_phdr_cksum() that can be used as helpers.
|
||||
*/
|
||||
#define PKT_TX_TCP_SEG (1ULL << 49)
|
||||
#define PKT_TX_TCP_SEG (1ULL << 50)
|
||||
|
||||
/** TX packet is an UDP tunneled packet. It must be specified when using
|
||||
* outer checksum offload (PKT_TX_OUTER_IP_CKSUM) */
|
||||
#define PKT_TX_UDP_TUNNEL_PKT (1ULL << 50) /**< TX packet is an UDP tunneled packet */
|
||||
#define PKT_TX_IEEE1588_TMST (1ULL << 51) /**< TX IEEE1588 packet to timestamp. */
|
||||
|
||||
/**
|
||||
|
@ -482,7 +482,7 @@ i40e_txd_enable_checksum(uint64_t ol_flags,
|
||||
}
|
||||
|
||||
/* UDP tunneling packet TX checksum offload */
|
||||
if (unlikely(ol_flags & PKT_TX_OUTER_IP_CKSUM)) {
|
||||
if (ol_flags & PKT_TX_OUTER_IP_CKSUM) {
|
||||
|
||||
*td_offset |= (outer_l2_len >> 1)
|
||||
<< I40E_TX_DESC_LENGTH_MACLEN_SHIFT;
|
||||
|
Loading…
Reference in New Issue
Block a user