Changeset View
Changeset View
Standalone View
Standalone View
sys/net/altq/altq_hfsc.h
Show First 20 Lines • Show All 186 Lines • ▼ Show 20 Lines | |||||
* the raw Pentium TSC (Timestamp Counter) value is used. | * the raw Pentium TSC (Timestamp Counter) value is used. | ||||
* virtual time is also calculated in this time scale. | * virtual time is also calculated in this time scale. | ||||
* y-axis: unit is byte. | * y-axis: unit is byte. | ||||
* | * | ||||
* the service curve parameters are converted to the internal | * the service curve parameters are converted to the internal | ||||
* representation. | * representation. | ||||
* the slope values are scaled to avoid overflow. | * the slope values are scaled to avoid overflow. | ||||
* the inverse slope values as well as the y-projection of the 1st | * the inverse slope values as well as the y-projection of the 1st | ||||
* segment are kept in order to to avoid 64-bit divide operations | * segment are kept in order to avoid 64-bit divide operations | ||||
* that are expensive on 32-bit architectures. | * that are expensive on 32-bit architectures. | ||||
* | * | ||||
* note: Intel Pentium TSC never wraps around in several thousands of years. | * note: Intel Pentium TSC never wraps around in several thousands of years. | ||||
* x-axis doesn't wrap around for 1089 years with 1GHz clock. | * x-axis doesn't wrap around for 1089 years with 1GHz clock. | ||||
* y-axis doesn't wrap around for 4358 years with 1Gbps bandwidth. | * y-axis doesn't wrap around for 4358 years with 1Gbps bandwidth. | ||||
*/ | */ | ||||
/* kernel internal representation of a service curve */ | /* kernel internal representation of a service curve */ | ||||
▲ Show 20 Lines • Show All 116 Lines • Show Last 20 Lines |