Lines Matching refs:raw_packet

89 				    u8 *raw_packet, struct i40e_pf *pf,  in i40e_program_fdir_filter()  argument
116 dma = dma_map_single(dev, raw_packet, in i40e_program_fdir_filter()
143 tx_buf->raw_buf = (void *)raw_packet; in i40e_program_fdir_filter()
180 u8 *raw_packet; in i40e_add_del_fdir_udpv4() local
186 raw_packet = kzalloc(I40E_FDIR_MAX_RAW_PACKET_SIZE, GFP_KERNEL); in i40e_add_del_fdir_udpv4()
187 if (!raw_packet) in i40e_add_del_fdir_udpv4()
189 memcpy(raw_packet, packet, I40E_UDPIP_DUMMY_PACKET_LEN); in i40e_add_del_fdir_udpv4()
191 ip = (struct iphdr *)(raw_packet + IP_HEADER_OFFSET); in i40e_add_del_fdir_udpv4()
192 udp = (struct udphdr *)(raw_packet + IP_HEADER_OFFSET in i40e_add_del_fdir_udpv4()
201 u8 *payload = raw_packet + I40E_UDPIP_DUMMY_PACKET_LEN; in i40e_add_del_fdir_udpv4()
209 ret = i40e_program_fdir_filter(fd_data, raw_packet, pf, add); in i40e_add_del_fdir_udpv4()
215 kfree(raw_packet); in i40e_add_del_fdir_udpv4()
252 u8 *raw_packet; in i40e_add_del_fdir_tcpv4() local
260 raw_packet = kzalloc(I40E_FDIR_MAX_RAW_PACKET_SIZE, GFP_KERNEL); in i40e_add_del_fdir_tcpv4()
261 if (!raw_packet) in i40e_add_del_fdir_tcpv4()
263 memcpy(raw_packet, packet, I40E_TCPIP_DUMMY_PACKET_LEN); in i40e_add_del_fdir_tcpv4()
265 ip = (struct iphdr *)(raw_packet + IP_HEADER_OFFSET); in i40e_add_del_fdir_tcpv4()
266 tcp = (struct tcphdr *)(raw_packet + IP_HEADER_OFFSET in i40e_add_del_fdir_tcpv4()
275 u8 *payload = raw_packet + I40E_TCPIP_DUMMY_PACKET_LEN; in i40e_add_del_fdir_tcpv4()
283 ret = i40e_program_fdir_filter(fd_data, raw_packet, pf, add); in i40e_add_del_fdir_tcpv4()
289 kfree(raw_packet); in i40e_add_del_fdir_tcpv4()
331 u8 *raw_packet; in i40e_add_del_fdir_sctpv4() local
338 raw_packet = kzalloc(I40E_FDIR_MAX_RAW_PACKET_SIZE, GFP_KERNEL); in i40e_add_del_fdir_sctpv4()
339 if (!raw_packet) in i40e_add_del_fdir_sctpv4()
341 memcpy(raw_packet, packet, I40E_SCTPIP_DUMMY_PACKET_LEN); in i40e_add_del_fdir_sctpv4()
343 ip = (struct iphdr *)(raw_packet + IP_HEADER_OFFSET); in i40e_add_del_fdir_sctpv4()
344 sctp = (struct sctphdr *)(raw_packet + IP_HEADER_OFFSET in i40e_add_del_fdir_sctpv4()
353 u8 *payload = raw_packet + I40E_SCTPIP_DUMMY_PACKET_LEN; in i40e_add_del_fdir_sctpv4()
361 ret = i40e_program_fdir_filter(fd_data, raw_packet, pf, add); in i40e_add_del_fdir_sctpv4()
367 kfree(raw_packet); in i40e_add_del_fdir_sctpv4()
404 u8 *raw_packet; in i40e_add_del_fdir_ipv4() local
413 raw_packet = kzalloc(I40E_FDIR_MAX_RAW_PACKET_SIZE, GFP_KERNEL); in i40e_add_del_fdir_ipv4()
414 if (!raw_packet) in i40e_add_del_fdir_ipv4()
416 memcpy(raw_packet, packet, I40E_IP_DUMMY_PACKET_LEN); in i40e_add_del_fdir_ipv4()
417 ip = (struct iphdr *)(raw_packet + IP_HEADER_OFFSET); in i40e_add_del_fdir_ipv4()
424 u8 *payload = raw_packet + I40E_IP_DUMMY_PACKET_LEN; in i40e_add_del_fdir_ipv4()
432 ret = i40e_program_fdir_filter(fd_data, raw_packet, pf, add); in i40e_add_del_fdir_ipv4()
440 kfree(raw_packet); in i40e_add_del_fdir_ipv4()