link: Add units and fix typo in (Rx|Tx)BufferSize= manpage. Clean up the implementation slightly
This commit is contained in:
@@ -431,18 +431,14 @@ int ethtool_set_nic_buffer_size(int *ethtool_fd, const char *ifname, netdev_ring
|
||||
if (r < 0)
|
||||
return -errno;
|
||||
|
||||
if (ring->rx_pending_set) {
|
||||
if (ecmd.rx_pending != ring->rx_pending) {
|
||||
ecmd.rx_pending = ring->rx_pending;
|
||||
need_update = true;
|
||||
}
|
||||
if (ring->rx_pending_set && ecmd.rx_pending != ring->rx_pending) {
|
||||
ecmd.rx_pending = ring->rx_pending;
|
||||
need_update = true;
|
||||
}
|
||||
|
||||
if (ring->tx_pending_set) {
|
||||
if (ecmd.tx_pending != ring->tx_pending) {
|
||||
ecmd.tx_pending = ring->tx_pending;
|
||||
need_update = true;
|
||||
}
|
||||
if (ring->tx_pending_set && ecmd.tx_pending != ring->tx_pending) {
|
||||
ecmd.tx_pending = ring->tx_pending;
|
||||
need_update = true;
|
||||
}
|
||||
|
||||
if (need_update) {
|
||||
|
||||
Reference in New Issue
Block a user