Lines Matching refs:packet_info
391 struct packet_hash_info_t packet_info = {}; in calculate_rss_hash() local
393 err = parse_packet(skb, &packet_info); in calculate_rss_hash()
398 if (packet_info.is_ipv4) { in calculate_rss_hash()
399 if (packet_info.is_tcp && in calculate_rss_hash()
403 &packet_info.in_src, in calculate_rss_hash()
404 sizeof(packet_info.in_src)); in calculate_rss_hash()
406 &packet_info.in_dst, in calculate_rss_hash()
407 sizeof(packet_info.in_dst)); in calculate_rss_hash()
409 &packet_info.src_port, in calculate_rss_hash()
410 sizeof(packet_info.src_port)); in calculate_rss_hash()
412 &packet_info.dst_port, in calculate_rss_hash()
413 sizeof(packet_info.dst_port)); in calculate_rss_hash()
414 } else if (packet_info.is_udp && in calculate_rss_hash()
418 &packet_info.in_src, in calculate_rss_hash()
419 sizeof(packet_info.in_src)); in calculate_rss_hash()
421 &packet_info.in_dst, in calculate_rss_hash()
422 sizeof(packet_info.in_dst)); in calculate_rss_hash()
424 &packet_info.src_port, in calculate_rss_hash()
425 sizeof(packet_info.src_port)); in calculate_rss_hash()
427 &packet_info.dst_port, in calculate_rss_hash()
428 sizeof(packet_info.dst_port)); in calculate_rss_hash()
431 &packet_info.in_src, in calculate_rss_hash()
432 sizeof(packet_info.in_src)); in calculate_rss_hash()
434 &packet_info.in_dst, in calculate_rss_hash()
435 sizeof(packet_info.in_dst)); in calculate_rss_hash()
437 } else if (packet_info.is_ipv6) { in calculate_rss_hash()
438 if (packet_info.is_tcp && in calculate_rss_hash()
441 if (packet_info.is_ipv6_ext_src && in calculate_rss_hash()
445 &packet_info.in6_ext_src, in calculate_rss_hash()
446 sizeof(packet_info.in6_ext_src)); in calculate_rss_hash()
449 &packet_info.in6_src, in calculate_rss_hash()
450 sizeof(packet_info.in6_src)); in calculate_rss_hash()
452 if (packet_info.is_ipv6_ext_dst && in calculate_rss_hash()
456 &packet_info.in6_ext_dst, in calculate_rss_hash()
457 sizeof(packet_info.in6_ext_dst)); in calculate_rss_hash()
460 &packet_info.in6_dst, in calculate_rss_hash()
461 sizeof(packet_info.in6_dst)); in calculate_rss_hash()
464 &packet_info.src_port, in calculate_rss_hash()
465 sizeof(packet_info.src_port)); in calculate_rss_hash()
467 &packet_info.dst_port, in calculate_rss_hash()
468 sizeof(packet_info.dst_port)); in calculate_rss_hash()
469 } else if (packet_info.is_udp && in calculate_rss_hash()
472 if (packet_info.is_ipv6_ext_src && in calculate_rss_hash()
476 &packet_info.in6_ext_src, in calculate_rss_hash()
477 sizeof(packet_info.in6_ext_src)); in calculate_rss_hash()
480 &packet_info.in6_src, in calculate_rss_hash()
481 sizeof(packet_info.in6_src)); in calculate_rss_hash()
483 if (packet_info.is_ipv6_ext_dst && in calculate_rss_hash()
487 &packet_info.in6_ext_dst, in calculate_rss_hash()
488 sizeof(packet_info.in6_ext_dst)); in calculate_rss_hash()
491 &packet_info.in6_dst, in calculate_rss_hash()
492 sizeof(packet_info.in6_dst)); in calculate_rss_hash()
496 &packet_info.src_port, in calculate_rss_hash()
497 sizeof(packet_info.src_port)); in calculate_rss_hash()
499 &packet_info.dst_port, in calculate_rss_hash()
500 sizeof(packet_info.dst_port)); in calculate_rss_hash()
503 if (packet_info.is_ipv6_ext_src && in calculate_rss_hash()
507 &packet_info.in6_ext_src, in calculate_rss_hash()
508 sizeof(packet_info.in6_ext_src)); in calculate_rss_hash()
511 &packet_info.in6_src, in calculate_rss_hash()
512 sizeof(packet_info.in6_src)); in calculate_rss_hash()
514 if (packet_info.is_ipv6_ext_dst && in calculate_rss_hash()
518 &packet_info.in6_ext_dst, in calculate_rss_hash()
519 sizeof(packet_info.in6_ext_dst)); in calculate_rss_hash()
522 &packet_info.in6_dst, in calculate_rss_hash()
523 sizeof(packet_info.in6_dst)); in calculate_rss_hash()