Searched refs:tun_attr (Results 1 – 1 of 1) sorted by relevance
76 struct mlx5_rx_tun_attr *tun_attr; in mlx5e_tc_set_attr_rx_tun() local80 tun_attr = kvzalloc(sizeof(*tun_attr), GFP_KERNEL); in mlx5e_tc_set_attr_rx_tun()81 if (!tun_attr) in mlx5e_tc_set_attr_rx_tun()84 esw_attr->rx_tun_attr = tun_attr; in mlx5e_tc_set_attr_rx_tun()92 tun_attr->dst_ip.v4 = *(__be32 *)daddr; in mlx5e_tc_set_attr_rx_tun()93 tun_attr->src_ip.v4 = *(__be32 *)saddr; in mlx5e_tc_set_attr_rx_tun()94 if (!tun_attr->dst_ip.v4 || !tun_attr->src_ip.v4) in mlx5e_tc_set_attr_rx_tun()106 memcpy(&tun_attr->dst_ip.v6, daddr, ipv6_size); in mlx5e_tc_set_attr_rx_tun()107 memcpy(&tun_attr->src_ip.v6, saddr, ipv6_size); in mlx5e_tc_set_attr_rx_tun()108 if (!memcmp(&tun_attr->dst_ip.v6, &zerov6, sizeof(zerov6)) || in mlx5e_tc_set_attr_rx_tun()[all …]