Home
last modified time | relevance | path

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

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