Lines Matching refs:p_tun

127 qed_set_pf_update_tunn_mode(struct qed_tunnel_info *p_tun,  in qed_set_pf_update_tunn_mode()  argument
131 p_tun->vxlan.b_mode_enabled = p_src->vxlan.b_mode_enabled; in qed_set_pf_update_tunn_mode()
134 p_tun->l2_gre.b_mode_enabled = p_src->l2_gre.b_mode_enabled; in qed_set_pf_update_tunn_mode()
137 p_tun->ip_gre.b_mode_enabled = p_src->ip_gre.b_mode_enabled; in qed_set_pf_update_tunn_mode()
140 p_tun->l2_geneve.b_mode_enabled = in qed_set_pf_update_tunn_mode()
144 p_tun->ip_geneve.b_mode_enabled = in qed_set_pf_update_tunn_mode()
148 static void qed_set_tunn_cls_info(struct qed_tunnel_info *p_tun, in qed_set_tunn_cls_info() argument
153 p_tun->b_update_rx_cls = p_src->b_update_rx_cls; in qed_set_tunn_cls_info()
154 p_tun->b_update_tx_cls = p_src->b_update_tx_cls; in qed_set_tunn_cls_info()
157 p_tun->vxlan.tun_cls = type; in qed_set_tunn_cls_info()
159 p_tun->l2_gre.tun_cls = type; in qed_set_tunn_cls_info()
161 p_tun->ip_gre.tun_cls = type; in qed_set_tunn_cls_info()
163 p_tun->l2_geneve.tun_cls = type; in qed_set_tunn_cls_info()
165 p_tun->ip_geneve.tun_cls = type; in qed_set_tunn_cls_info()
168 static void qed_set_tunn_ports(struct qed_tunnel_info *p_tun, in qed_set_tunn_ports() argument
171 p_tun->geneve_port.b_update_port = p_src->geneve_port.b_update_port; in qed_set_tunn_ports()
172 p_tun->vxlan_port.b_update_port = p_src->vxlan_port.b_update_port; in qed_set_tunn_ports()
175 p_tun->geneve_port.port = p_src->geneve_port.port; in qed_set_tunn_ports()
178 p_tun->vxlan_port.port = p_src->vxlan_port.port; in qed_set_tunn_ports()
207 struct qed_tunnel_info *p_tun = &p_hwfn->cdev->tunnel; in qed_tunn_set_pf_update_params() local
209 qed_set_pf_update_tunn_mode(p_tun, p_src, false); in qed_tunn_set_pf_update_params()
210 qed_set_tunn_cls_info(p_tun, p_src); in qed_tunn_set_pf_update_params()
211 qed_set_tunn_ports(p_tun, p_src); in qed_tunn_set_pf_update_params()
214 &p_tun->vxlan, in qed_tunn_set_pf_update_params()
217 &p_tun->vxlan_port); in qed_tunn_set_pf_update_params()
220 &p_tun->l2_geneve, in qed_tunn_set_pf_update_params()
223 &p_tun->geneve_port); in qed_tunn_set_pf_update_params()
226 &p_tun->ip_geneve); in qed_tunn_set_pf_update_params()
229 &p_tun->l2_gre); in qed_tunn_set_pf_update_params()
232 &p_tun->ip_gre); in qed_tunn_set_pf_update_params()
234 p_tunn_cfg->update_rx_pf_clss = p_tun->b_update_rx_cls; in qed_tunn_set_pf_update_params()
239 struct qed_tunnel_info *p_tun) in qed_set_hw_tunn_mode() argument
241 qed_set_gre_enable(p_hwfn, p_ptt, p_tun->l2_gre.b_mode_enabled, in qed_set_hw_tunn_mode()
242 p_tun->ip_gre.b_mode_enabled); in qed_set_hw_tunn_mode()
243 qed_set_vxlan_enable(p_hwfn, p_ptt, p_tun->vxlan.b_mode_enabled); in qed_set_hw_tunn_mode()
245 qed_set_geneve_enable(p_hwfn, p_ptt, p_tun->l2_geneve.b_mode_enabled, in qed_set_hw_tunn_mode()
246 p_tun->ip_geneve.b_mode_enabled); in qed_set_hw_tunn_mode()
269 struct qed_tunnel_info *p_tun = &p_hwfn->cdev->tunnel; in qed_tunn_set_pf_start_params() local
274 qed_set_pf_update_tunn_mode(p_tun, p_src, true); in qed_tunn_set_pf_start_params()
275 qed_set_tunn_cls_info(p_tun, p_src); in qed_tunn_set_pf_start_params()
276 qed_set_tunn_ports(p_tun, p_src); in qed_tunn_set_pf_start_params()
279 &p_tun->vxlan, in qed_tunn_set_pf_start_params()
282 &p_tun->vxlan_port); in qed_tunn_set_pf_start_params()
285 &p_tun->l2_geneve, in qed_tunn_set_pf_start_params()
288 &p_tun->geneve_port); in qed_tunn_set_pf_start_params()
291 &p_tun->ip_geneve); in qed_tunn_set_pf_start_params()
294 &p_tun->l2_gre); in qed_tunn_set_pf_start_params()
297 &p_tun->ip_gre); in qed_tunn_set_pf_start_params()