]> git.proxmox.com Git - mirror_ifupdown2.git/commit
addons: Allow to set `max` value in `--set-ring` option
authortomvil <tomas.vilemaitis@gmail.com>
Tue, 11 Apr 2023 12:07:41 +0000 (15:07 +0300)
committertomvil <tomas.vilemaitis@gmail.com>
Tue, 11 Apr 2023 12:07:41 +0000 (15:07 +0300)
commit70bd0e86e776afd0c18c4e077541bd23c48c7bd4
treeb67fdb8885c7c3fd90ed983b4b08188bcdd2ae30
parent5876ad8a0e166fab5f089e2ef28d2b1e99eeecdb
addons: Allow to set `max` value in `--set-ring` option

This makes some automation cases much easier

```
auto eth0
iface eth0 inet dhcp
  ring-rx max
  ring-tx max

Ring parameters for eth0:
Pre-set maximums:
RX: 4096
RX Mini: n/a
RX Jumbo: n/a
TX: 4096
Current hardware settings:
RX: 4096
RX Mini: n/a
RX Jumbo: n/a
TX: 4096
```

Signed-off-by: tomvil <tomas.vilemaitis@gmail.com>
ifupdown2/addons/ethtool.py