fix VXLAN acronym
Each letter must be uppercased: Virtual eXtensible Local Area Network (VXLAN) Signed-off-by: Thomas Monjalon <thomas.monjalon@6wind.com>
This commit is contained in:
parent
9deb1704dd
commit
7e33267d41
@ -294,10 +294,10 @@ static void cmd_help_long_parsed(void *parsed_result,
|
||||
" remove a tunnel filter of a port.\n\n"
|
||||
|
||||
"rx_vxlan_port add (udp_port) (port_id)\n"
|
||||
" Add an UDP port for VxLAN packet filter on a port\n\n"
|
||||
" Add an UDP port for VXLAN packet filter on a port\n\n"
|
||||
|
||||
"rx_vxlan_port rm (udp_port) (port_id)\n"
|
||||
" Remove an UDP port for VxLAN packet filter on a port\n\n"
|
||||
" Remove an UDP port for VXLAN packet filter on a port\n\n"
|
||||
|
||||
"tx_vlan set vlan_id (port_id)\n"
|
||||
" Set hardware insertion of VLAN ID in packets sent"
|
||||
@ -6303,7 +6303,7 @@ cmd_tunnel_filter_parsed(void *parsed_result,
|
||||
if (!strcmp(res->tunnel_type, "vxlan"))
|
||||
tunnel_filter_conf.tunnel_type = RTE_TUNNEL_TYPE_VXLAN;
|
||||
else {
|
||||
printf("Only VxLAN is supported now.\n");
|
||||
printf("Only VXLAN is supported now.\n");
|
||||
return;
|
||||
}
|
||||
|
||||
|
@ -210,7 +210,7 @@ pkt_burst_receive(struct fwd_stream *fs)
|
||||
unsigned char *) + l2_len + l3_len
|
||||
+ l4_len);
|
||||
|
||||
printf(" - VxLAN packet: packet type =%d, "
|
||||
printf(" - VXLAN packet: packet type =%d, "
|
||||
"Destination UDP port =%d, VNI = %d",
|
||||
packet_type, RTE_BE_TO_CPU_16(udp_hdr->dst_port),
|
||||
rte_be_to_cpu_32(vxlan_hdr->vx_vni) >> 8);
|
||||
|
@ -305,7 +305,7 @@ struct vxlan_hdr {
|
||||
#define ETHER_TYPE_1588 0x88F7 /**< IEEE 802.1AS 1588 Precise Time Protocol. */
|
||||
|
||||
#define ETHER_VXLAN_HLEN (sizeof(struct udp_hdr) + sizeof(struct vxlan_hdr))
|
||||
/**< VxLAN tunnel header length. */
|
||||
/**< VXLAN tunnel header length. */
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
|
@ -96,7 +96,7 @@ extern "C" {
|
||||
|
||||
#define PKT_TX_VLAN_PKT (1ULL << 55) /**< TX packet is a 802.1q VLAN packet. */
|
||||
#define PKT_TX_IP_CKSUM (1ULL << 54) /**< IP cksum of TX pkt. computed by NIC. */
|
||||
#define PKT_TX_VXLAN_CKSUM (1ULL << 50) /**< TX checksum of VxLAN computed by NIC */
|
||||
#define PKT_TX_VXLAN_CKSUM (1ULL << 50) /**< TX checksum of VXLAN computed by NIC */
|
||||
#define PKT_TX_IPV4_CSUM PKT_TX_IP_CKSUM /**< Alias of PKT_TX_IP_CKSUM. */
|
||||
#define PKT_TX_IPV4 PKT_RX_IPV4_HDR /**< IPv4 with no IP checksum offload. */
|
||||
#define PKT_TX_IPV6 PKT_RX_IPV6_HDR /**< IPv6 packet */
|
||||
|
@ -4240,7 +4240,7 @@ i40e_add_vxlan_port(struct i40e_pf *pf, uint16_t port)
|
||||
ret = i40e_aq_add_udp_tunnel(hw, port, I40E_AQC_TUNNEL_TYPE_VXLAN,
|
||||
&filter_idx, NULL);
|
||||
if (ret < 0) {
|
||||
PMD_DRV_LOG(ERR, "Failed to add VxLAN UDP port %d", port);
|
||||
PMD_DRV_LOG(ERR, "Failed to add VXLAN UDP port %d", port);
|
||||
return -1;
|
||||
}
|
||||
|
||||
@ -4264,7 +4264,7 @@ i40e_del_vxlan_port(struct i40e_pf *pf, uint16_t port)
|
||||
struct i40e_hw *hw = I40E_PF_TO_HW(pf);
|
||||
|
||||
if (!(pf->flags & I40E_FLAG_VXLAN)) {
|
||||
PMD_DRV_LOG(ERR, "VxLAN UDP port was not configured.");
|
||||
PMD_DRV_LOG(ERR, "VXLAN UDP port was not configured.");
|
||||
return -EINVAL;
|
||||
}
|
||||
|
||||
@ -4276,7 +4276,7 @@ i40e_del_vxlan_port(struct i40e_pf *pf, uint16_t port)
|
||||
}
|
||||
|
||||
if (i40e_aq_del_udp_tunnel(hw, idx, NULL) < 0) {
|
||||
PMD_DRV_LOG(ERR, "Failed to delete VxLAN UDP port %d", port);
|
||||
PMD_DRV_LOG(ERR, "Failed to delete VXLAN UDP port %d", port);
|
||||
return -1;
|
||||
}
|
||||
|
||||
|
@ -249,7 +249,7 @@ struct i40e_pf {
|
||||
uint16_t vf_nb_qps; /* The number of queue pairs of VF */
|
||||
uint16_t fdir_nb_qps; /* The number of queue pairs of Flow Director */
|
||||
|
||||
/* store VxLAN UDP ports */
|
||||
/* store VXLAN UDP ports */
|
||||
uint16_t vxlan_ports[I40E_MAX_PF_UDP_OFFLOAD_PORTS];
|
||||
uint16_t vxlan_bitmap; /* Vxlan bit mask */
|
||||
};
|
||||
|
@ -431,7 +431,7 @@ i40e_txd_enable_checksum(uint64_t ol_flags,
|
||||
return;
|
||||
}
|
||||
|
||||
/* VxLAN packet TX checksum offload */
|
||||
/* VXLAN packet TX checksum offload */
|
||||
if (unlikely(ol_flags & PKT_TX_VXLAN_CKSUM)) {
|
||||
uint8_t l4tun_len;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user