net/mlx5e: Remove WARN_ONCE from adaptive moderation code
authorGil Rockah <gilr@mellanox.com>
Tue, 10 Jan 2017 20:33:38 +0000 (22:33 +0200)
committerDavid S. Miller <davem@davemloft.net>
Wed, 11 Jan 2017 02:34:01 +0000 (21:34 -0500)
commit0bbcc0a8fc394d01988fe0263ccf7fddb77a12c3
treeb77b6f0bd0d6ce63210efd9615bb9995f77b7a69
parent3deef8cea3efcaeeae240bb00541de66abb9bfa0
net/mlx5e: Remove WARN_ONCE from adaptive moderation code

When trying to do interface down or changing interface configuration
under heavy traffic, some of the adaptive moderation corner cases can
occur and leave a WARN_ONCE call trace in the kernel log.

Those WARN_ONCE are meant for debug only, and should have been inserted
only under debug. We avoid such call traces by removing those WARN_ONCE.

Fixes: cb3c7fd4f839 ("net/mlx5e: Support adaptive RX coalescing")
Signed-off-by: Gil Rockah <gilr@mellanox.com>
Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mellanox/mlx5/core/en_rx_am.c