]> git.baikalelectronics.ru Git - kernel.git/commit
net/mlx4_en: Remove BUG_ON assert when checking if ring is full
authorIdo Shamay <idos@mellanox.com>
Wed, 22 Jul 2015 13:53:49 +0000 (16:53 +0300)
committerDavid S. Miller <davem@davemloft.net>
Sun, 26 Jul 2015 23:29:26 +0000 (16:29 -0700)
commitacb5324051f3d2e688a937a06a3b6cfe27debdf9
treef207e6c0cacee520294a871112b886e0bb9410d4
parent8d86b5b912c9df49cc3f3651af63aa24b1dcb316
net/mlx4_en: Remove BUG_ON assert when checking if ring is full

In mlx4_en_is_ring_empty we check if ring surpassed its size.
Since the prod and cons indicators are u32, there might be a state where
prod wrapped around and cons, making this assert false, although no
actual bug exists (other code segment can cope with this state).

Signed-off-by: Ido Shamay <idos@mellanox.com>
Signed-off-by: Eugenia Emantayev <eugenia@mellanox.com>
Signed-off-by: Or Gerlitz <ogerlitz@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mellanox/mlx4/en_rx.c