net/bnxt: do not log error if stats queried before start
authorStephen Hemminger <stephen@networkplumber.org>
Wed, 22 Jan 2020 17:55:13 +0000 (09:55 -0800)
committerFerruh Yigit <ferruh.yigit@intel.com>
Wed, 5 Feb 2020 08:51:19 +0000 (09:51 +0100)
commitd21e0fcc07cdecaaa177f21941bce5be4d333f67
tree58cd0422974163e24a8cc57260be958e0a804f00
parent88ba6cac4a646ff479d9dfcc830e0d650fd0d0af
net/bnxt: do not log error if stats queried before start

When using pktgen lots of unnecessary errors are printed
because pktgen queries statistics before device is started.

Fixes: 3e92fd4e4ec0 ("net/bnxt: use dynamic log type")
Cc: stable@dpdk.org
Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>
Reviewed-by: Ajit Khaparde <ajit.khaparde@broadcom.com>
drivers/net/bnxt/bnxt_stats.c