Searched refs:tun_attr (Results 1 – 1 of 1) sorted by relevance
78 struct mlx5_rx_tun_attr *tun_attr; in mlx5e_tc_set_attr_rx_tun() local82 tun_attr = kvzalloc(sizeof(*tun_attr), GFP_KERNEL); in mlx5e_tc_set_attr_rx_tun()83 if (!tun_attr) in mlx5e_tc_set_attr_rx_tun()86 esw_attr->rx_tun_attr = tun_attr; in mlx5e_tc_set_attr_rx_tun()94 tun_attr->dst_ip.v4 = *(__be32 *)daddr; in mlx5e_tc_set_attr_rx_tun()95 tun_attr->src_ip.v4 = *(__be32 *)saddr; in mlx5e_tc_set_attr_rx_tun()96 if (!tun_attr->dst_ip.v4 || !tun_attr->src_ip.v4) in mlx5e_tc_set_attr_rx_tun()107 memcpy(&tun_attr->dst_ip.v6, daddr, ipv6_size); in mlx5e_tc_set_attr_rx_tun()108 memcpy(&tun_attr->src_ip.v6, saddr, ipv6_size); in mlx5e_tc_set_attr_rx_tun()109 if (ipv6_addr_any(&tun_attr->dst_ip.v6) || in mlx5e_tc_set_attr_rx_tun()[all …]