]> git.baikalelectronics.ru Git - kernel.git/commit
Merge branch 'selftests-forwarding-Two-small-changes'
authorDavid S. Miller <davem@davemloft.net>
Sun, 31 May 2020 04:48:24 +0000 (21:48 -0700)
committerDavid S. Miller <davem@davemloft.net>
Sun, 31 May 2020 04:48:24 +0000 (21:48 -0700)
commit94598391c7d563edc67140d9099418875a7d6b4c
treef063063095695deaa42305100380e2402ef779a7
parent9723d1a1b20759882680ed9094eaf400e26a9b7d
parent75922c0a84568626adc8f8f91d6c6633d4e44e6d
Merge branch 'selftests-forwarding-Two-small-changes'

Petr Machata says:

====================
selftests: forwarding: Two small changes

Two unrelated changes in this patchset:

- In patch #1, convert mirror tests from using ping directly to generating
  ICMP packets by mausezahn. Using ping in tests is error-prone, because
  ping is too smart. On a flaky system (notably in a simulator), when
  packets don't come quickly enough, more pings are sent, and that throws
  off counters. This was worked around in the past by just pinging more
  slowly, but using mausezahn avoids the issue as well without making the
  tests unnecessary slow.

- A missing stats_update callback was recently added to act_pedit. Now that
  iproute2 supports JSON dumping for pedit, extend in patch #2 the
  pedit_dsfield selftest with a check that would have caught the fact that
  the callback was missing.
====================

Signed-off-by: David S. Miller <davem@davemloft.net>