Home
last modified time | relevance | path

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

/Linux-v4.19/drivers/net/ethernet/intel/i40evf/
Di40e_txrx.c419 unsigned int avg_wire_size, packets, bytes, itr; in i40e_update_itr() local
540 avg_wire_size = bytes / packets; in i40e_update_itr()
557 if (avg_wire_size <= 60) { in i40e_update_itr()
559 avg_wire_size = 4096; in i40e_update_itr()
560 } else if (avg_wire_size <= 380) { in i40e_update_itr()
562 avg_wire_size *= 40; in i40e_update_itr()
563 avg_wire_size += 1696; in i40e_update_itr()
564 } else if (avg_wire_size <= 1084) { in i40e_update_itr()
566 avg_wire_size *= 15; in i40e_update_itr()
567 avg_wire_size += 11452; in i40e_update_itr()
[all …]
/Linux-v4.19/drivers/net/ethernet/intel/fm10k/
Dfm10k_main.c1351 unsigned int avg_wire_size, packets, itr_round; in fm10k_update_itr() local
1361 avg_wire_size = ring_container->total_bytes / packets; in fm10k_update_itr()
1378 if (avg_wire_size <= 360) { in fm10k_update_itr()
1380 avg_wire_size *= 8; in fm10k_update_itr()
1381 avg_wire_size += 376; in fm10k_update_itr()
1382 } else if (avg_wire_size <= 1152) { in fm10k_update_itr()
1384 avg_wire_size *= 3; in fm10k_update_itr()
1385 avg_wire_size += 2176; in fm10k_update_itr()
1386 } else if (avg_wire_size <= 1920) { in fm10k_update_itr()
1388 avg_wire_size += 4480; in fm10k_update_itr()
[all …]
/Linux-v4.19/drivers/net/ethernet/intel/i40e/
Di40e_txrx.c1033 unsigned int avg_wire_size, packets, bytes, itr; in i40e_update_itr() local
1154 avg_wire_size = bytes / packets; in i40e_update_itr()
1171 if (avg_wire_size <= 60) { in i40e_update_itr()
1173 avg_wire_size = 4096; in i40e_update_itr()
1174 } else if (avg_wire_size <= 380) { in i40e_update_itr()
1176 avg_wire_size *= 40; in i40e_update_itr()
1177 avg_wire_size += 1696; in i40e_update_itr()
1178 } else if (avg_wire_size <= 1084) { in i40e_update_itr()
1180 avg_wire_size *= 15; in i40e_update_itr()
1181 avg_wire_size += 11452; in i40e_update_itr()
[all …]
/Linux-v4.19/drivers/net/ethernet/intel/ixgbe/
Dixgbe_main.c2510 unsigned int avg_wire_size, packets, bytes; in ixgbe_update_itr() local
2600 avg_wire_size = bytes / packets; in ixgbe_update_itr()
2617 if (avg_wire_size <= 60) { in ixgbe_update_itr()
2619 avg_wire_size = 5120; in ixgbe_update_itr()
2620 } else if (avg_wire_size <= 316) { in ixgbe_update_itr()
2622 avg_wire_size *= 40; in ixgbe_update_itr()
2623 avg_wire_size += 2720; in ixgbe_update_itr()
2624 } else if (avg_wire_size <= 1084) { in ixgbe_update_itr()
2626 avg_wire_size *= 15; in ixgbe_update_itr()
2627 avg_wire_size += 11452; in ixgbe_update_itr()
[all …]
/Linux-v4.19/drivers/net/ethernet/intel/igb/
Digb_main.c5490 int avg_wire_size = 0; in igb_update_ring_itr() local
5504 avg_wire_size = q_vector->rx.total_bytes / packets; in igb_update_ring_itr()
5508 avg_wire_size = max_t(u32, avg_wire_size, in igb_update_ring_itr()
5512 if (!avg_wire_size) in igb_update_ring_itr()
5516 avg_wire_size += 24; in igb_update_ring_itr()
5519 avg_wire_size = min(avg_wire_size, 3000); in igb_update_ring_itr()
5522 if ((avg_wire_size > 300) && (avg_wire_size < 1200)) in igb_update_ring_itr()
5523 new_val = avg_wire_size / 3; in igb_update_ring_itr()
5525 new_val = avg_wire_size / 2; in igb_update_ring_itr()