net/failsafe: add timestamp to stats snapshot
authorMatan Azrad <matan@mellanox.com>
Sat, 21 Oct 2017 20:54:46 +0000 (20:54 +0000)
committerFerruh Yigit <ferruh.yigit@intel.com>
Thu, 26 Oct 2017 00:33:01 +0000 (02:33 +0200)
commit9dda3e3393c205af53d83edbfc68eaf06d913f98
treec0def260feae6459bd8c07471aeb82288ac8c628
parent321809bb8c61066f4ec790f4ac17b3c5e0c67178
net/failsafe: add timestamp to stats snapshot

Fail-safe attempts to read an ultimate statistics on removal time; if
that fails, it uses the latest recorded snapshot.

This patch adds timestamp for each stats snapshot to allow a time report
since the last snapshot in case of the above failure.

By this way, the user can estimate the stats read accuracy.

Signed-off-by: Matan Azrad <matan@mellanox.com>
Acked-by: Gaetan Rivet <gaetan.rivet@6wind.com>
drivers/net/failsafe/failsafe_ether.c
drivers/net/failsafe/failsafe_ops.c
drivers/net/failsafe/failsafe_private.h