1. 01 10月, 2020 1 次提交
    • P
      selftests: forwarding: devlink_lib: Split devlink_..._set() into save & set · 6e0972e0
      Petr Machata 提交于
      Changing pool type from static to dynamic causes reinterpretation of
      threshold values. They therefore need to be saved before pool type is
      changed, then the pool type can be changed, and then the new values need
      to be set up.
      
      For that reason, set cannot subsume save, because it would be saving the
      wrong thing, with possibly a nonsensical value, and restore would then fail
      to restore the nonsensical value.
      
      Thus extract a _save() from each of the relevant _set()'s. This way it is
      possible to save everything up front, then to tweak it, and then restore in
      the required order.
      Signed-off-by: NPetr Machata <petrm@nvidia.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      6e0972e0
  2. 30 9月, 2020 39 次提交