Searched refs:tun_attr (Results 1 – 1 of 1) sorted by relevance
87 struct mlx5_rx_tun_attr *tun_attr; in mlx5e_tc_set_attr_rx_tun() local91 tun_attr = kvzalloc(sizeof(*tun_attr), GFP_KERNEL); in mlx5e_tc_set_attr_rx_tun()92 if (!tun_attr) in mlx5e_tc_set_attr_rx_tun()95 esw_attr->rx_tun_attr = tun_attr; in mlx5e_tc_set_attr_rx_tun()103 tun_attr->dst_ip.v4 = *(__be32 *)daddr; in mlx5e_tc_set_attr_rx_tun()104 tun_attr->src_ip.v4 = *(__be32 *)saddr; in mlx5e_tc_set_attr_rx_tun()105 if (!tun_attr->dst_ip.v4 || !tun_attr->src_ip.v4) in mlx5e_tc_set_attr_rx_tun()116 memcpy(&tun_attr->dst_ip.v6, daddr, ipv6_size); in mlx5e_tc_set_attr_rx_tun()117 memcpy(&tun_attr->src_ip.v6, saddr, ipv6_size); in mlx5e_tc_set_attr_rx_tun()118 if (ipv6_addr_any(&tun_attr->dst_ip.v6) || in mlx5e_tc_set_attr_rx_tun()[all …]