CoalescingHWConfigMixin

class lnst.Recipes.ENRT.ConfigMixins.CoalescingHWConfigMixin.CoalescingHWConfigMixin

Bases: BaseHWConfigMixin

This class is an extension to the BaseEnrtRecipe class that enables interrupt coalescing configuration on any device defined in recipe’s device requirements.

Typically the user would disable adaptive interrupt coalescing and configure specific values.

For example the SimpleNetworkRecipe defines host1.eth0 and host2.eth0 device requirements, so to configure the interrupt coalescing you can do:

```python recipe = SimpleNetworkRecipe(

coalescing_settings={
“host1”: {
“eth0”: {

“adaptive-rx”: “off”, “adaptive-tx”: “off”, “rx-usecs”: 16, “rx-frames”: 32, “tx-usecs”: 128, “tx-frames”: 128

}

}, “host2”: {

“eth0”: {

“adaptive-rx”: “off”, “adaptive-tx”: “off”, “rx-usecs”: 16, “rx-frames”: 32, “tx-usecs”: 128, “tx-frames”: 128

}

}

}

)

The keys in the coalescing settings match the ethtool -C command syntax.

param coalescing_settings:

(optional test parameter) dictionary to specify coalescing settings for individual devices, in ‘ethtool -C …’ format