Home
last modified time | relevance | path

Searched refs:tun_attr (Results 1 – 1 of 1) sorted by relevance

/linux/drivers/net/ethernet/mellanox/mlx5/core/en/
H A Dtc_tun_encap.c87 struct mlx5_rx_tun_attr *tun_attr; in mlx5e_tc_set_attr_rx_tun() local
91 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 …]