]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitd50022921cecef612431bee69a5225a16212a94e
treeb77b6f0bd0d6ce63210efd9615bb9995f77b7a69
parent050f1e6d0f09c8e87e860a589496c05478b75802
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: 4f105e5ffd1d ("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