• Home
  • Raw
  • Download

Lines Matching refs:payload

230 	struct nfp_tun_active_tuns *payload;  in nfp_tunnel_keep_alive()  local
237 payload = nfp_flower_cmsg_get_data(skb); in nfp_tunnel_keep_alive()
238 count = be32_to_cpu(payload->count); in nfp_tunnel_keep_alive()
245 if (pay_len != struct_size(payload, tun_info, count)) { in nfp_tunnel_keep_alive()
252 ipv4_addr = payload->tun_info[i].ipv4; in nfp_tunnel_keep_alive()
253 port = be32_to_cpu(payload->tun_info[i].egress_port); in nfp_tunnel_keep_alive()
272 struct nfp_tun_active_tuns_v6 *payload; in nfp_tunnel_keep_alive_v6() local
279 payload = nfp_flower_cmsg_get_data(skb); in nfp_tunnel_keep_alive_v6()
280 count = be32_to_cpu(payload->count); in nfp_tunnel_keep_alive_v6()
287 if (pay_len != struct_size(payload, tun_info, count)) { in nfp_tunnel_keep_alive_v6()
294 ipv6_add = &payload->tun_info[i].ipv6; in nfp_tunnel_keep_alive_v6()
295 port = be32_to_cpu(payload->tun_info[i].egress_port); in nfp_tunnel_keep_alive_v6()
451 struct nfp_tun_neigh payload; in nfp_tun_write_neigh_v4() local
458 memset(&payload, 0, sizeof(struct nfp_tun_neigh)); in nfp_tun_write_neigh_v4()
459 payload.dst_ipv4 = flow->daddr; in nfp_tun_write_neigh_v4()
463 nfp_tun_del_route_from_cache_v4(app, &payload.dst_ipv4); in nfp_tun_write_neigh_v4()
470 payload.src_ipv4 = flow->saddr; in nfp_tun_write_neigh_v4()
471 ether_addr_copy(payload.src_addr, netdev->dev_addr); in nfp_tun_write_neigh_v4()
472 neigh_ha_snapshot(payload.dst_addr, neigh, netdev); in nfp_tun_write_neigh_v4()
473 payload.port_id = cpu_to_be32(port_id); in nfp_tun_write_neigh_v4()
475 nfp_tun_add_route_to_cache_v4(app, &payload.dst_ipv4); in nfp_tun_write_neigh_v4()
480 (unsigned char *)&payload, flag); in nfp_tun_write_neigh_v4()
487 struct nfp_tun_neigh_v6 payload; in nfp_tun_write_neigh_v6() local
494 memset(&payload, 0, sizeof(struct nfp_tun_neigh_v6)); in nfp_tun_write_neigh_v6()
495 payload.dst_ipv6 = flow->daddr; in nfp_tun_write_neigh_v6()
499 nfp_tun_del_route_from_cache_v6(app, &payload.dst_ipv6); in nfp_tun_write_neigh_v6()
506 payload.src_ipv6 = flow->saddr; in nfp_tun_write_neigh_v6()
507 ether_addr_copy(payload.src_addr, netdev->dev_addr); in nfp_tun_write_neigh_v6()
508 neigh_ha_snapshot(payload.dst_addr, neigh, netdev); in nfp_tun_write_neigh_v6()
509 payload.port_id = cpu_to_be32(port_id); in nfp_tun_write_neigh_v6()
511 nfp_tun_add_route_to_cache_v6(app, &payload.dst_ipv6); in nfp_tun_write_neigh_v6()
516 (unsigned char *)&payload, flag); in nfp_tun_write_neigh_v6()
602 struct nfp_tun_req_route_ipv4 *payload; in nfp_tunnel_request_route_v4() local
609 payload = nfp_flower_cmsg_get_data(skb); in nfp_tunnel_request_route_v4()
612 netdev = nfp_app_dev_get(app, be32_to_cpu(payload->ingress_port), NULL); in nfp_tunnel_request_route_v4()
616 flow.daddr = payload->ipv4_addr; in nfp_tunnel_request_route_v4()
646 struct nfp_tun_req_route_ipv6 *payload; in nfp_tunnel_request_route_v6() local
652 payload = nfp_flower_cmsg_get_data(skb); in nfp_tunnel_request_route_v6()
655 netdev = nfp_app_dev_get(app, be32_to_cpu(payload->ingress_port), NULL); in nfp_tunnel_request_route_v6()
659 flow.daddr = payload->ipv6_addr; in nfp_tunnel_request_route_v6()
690 struct nfp_tun_ipv4_addr payload; in nfp_tun_write_ipv4_list() local
694 memset(&payload, 0, sizeof(struct nfp_tun_ipv4_addr)); in nfp_tun_write_ipv4_list()
704 payload.ipv4_addr[count++] = entry->ipv4_addr; in nfp_tun_write_ipv4_list()
706 payload.count = cpu_to_be32(count); in nfp_tun_write_ipv4_list()
711 &payload, GFP_KERNEL); in nfp_tun_write_ipv4_list()
771 struct nfp_tun_ipv6_addr payload; in nfp_tun_write_ipv6_list() local
774 memset(&payload, 0, sizeof(struct nfp_tun_ipv6_addr)); in nfp_tun_write_ipv6_list()
781 payload.ipv6_addr[count++] = entry->ipv6_addr; in nfp_tun_write_ipv6_list()
784 payload.count = cpu_to_be32(count); in nfp_tun_write_ipv6_list()
788 &payload, GFP_KERNEL); in nfp_tun_write_ipv6_list()
842 struct nfp_tun_mac_addr_offload payload; in __nfp_tunnel_offload_mac() local
844 memset(&payload, 0, sizeof(payload)); in __nfp_tunnel_offload_mac()
847 payload.flags = cpu_to_be16(NFP_TUN_MAC_OFFLOAD_DEL_FLAG); in __nfp_tunnel_offload_mac()
850 payload.count = cpu_to_be16(1); in __nfp_tunnel_offload_mac()
851 payload.index = cpu_to_be16(idx); in __nfp_tunnel_offload_mac()
852 ether_addr_copy(payload.addr, mac); in __nfp_tunnel_offload_mac()
856 &payload, GFP_KERNEL); in __nfp_tunnel_offload_mac()
1277 struct nfp_tun_pre_tun_rule payload; in nfp_flower_xmit_pre_tun_flow() local
1284 memset(&payload, 0, sizeof(struct nfp_tun_pre_tun_rule)); in nfp_flower_xmit_pre_tun_flow()
1287 payload.vlan_tci = flow->pre_tun_rule.vlan_tci; in nfp_flower_xmit_pre_tun_flow()
1288 payload.host_ctx_id = flow->meta.host_ctx_id; in nfp_flower_xmit_pre_tun_flow()
1308 payload.port_idx = cpu_to_be16(mac_entry->index); in nfp_flower_xmit_pre_tun_flow()
1311 flow->pre_tun_rule.vlan_tci = payload.vlan_tci; in nfp_flower_xmit_pre_tun_flow()
1312 flow->pre_tun_rule.port_idx = payload.port_idx; in nfp_flower_xmit_pre_tun_flow()
1316 (unsigned char *)&payload, GFP_KERNEL); in nfp_flower_xmit_pre_tun_flow()
1329 struct nfp_tun_pre_tun_rule payload; in nfp_flower_xmit_pre_tun_del_flow() local
1333 memset(&payload, 0, sizeof(struct nfp_tun_pre_tun_rule)); in nfp_flower_xmit_pre_tun_del_flow()
1336 payload.flags = cpu_to_be32(tmp_flags); in nfp_flower_xmit_pre_tun_del_flow()
1337 payload.vlan_tci = flow->pre_tun_rule.vlan_tci; in nfp_flower_xmit_pre_tun_del_flow()
1338 payload.port_idx = flow->pre_tun_rule.port_idx; in nfp_flower_xmit_pre_tun_del_flow()
1342 (unsigned char *)&payload, GFP_KERNEL); in nfp_flower_xmit_pre_tun_del_flow()