net_dim.h has a rather useful extension to BITS_PER_BYTE to compute the
number of bits in a type (BITS_PER_BYTE * sizeof(T)), so promote the macro
to bitops.h, alongside BITS_PER_BYTE, for wider usage.
Link: http://<email address hidden>
Signed-off-by: Chris Wilson <email address hidden>
Reviewed-by: Jani Nikula <email address hidden>
Cc: Randy Dunlap <email address hidden>
Cc: Andy Gospodarek <email address hidden>
Cc: David S. Miller <email address hidden>
Cc: Thomas Gleixner <email address hidden>
Cc: Ingo Molnar <email address hidden>
Signed-off-by: Andrew Morton <email address hidden>
Signed-off-by: Linus Torvalds <email address hidden>
(backported from commit 9144d75e22cad3c89e6b2ccab551db9ee28d250a)
Signed-off-by: Kamal Mostafa <email address hidden>
There memset is indented incorrectly, remove the extraneous tabs.
Signed-off-by: Colin Ian King <email address hidden>
Signed-off-by: David S. Miller <email address hidden>
(cherry picked from commit 4208966f65f520d7f392dbaa62e39a8fa88ffb95)
Signed-off-by: Kamal Mostafa <email address hidden>
Acked-by: Stefan Bader <email address hidden>
Acked-by: Khaled Elmously <email address hidden>
Signed-off-by: Stefan Bader <email address hidden>
There is a race condition that can occur when calling ena_down().
The ena_clean_tx_irq() - which is a part of the napi handler -
function might wake up the tx queue when the queue is supposed
to be down (during recovery or changing the size of the queues
for example) This causes the ena_start_xmit() function to trigger
and possibly try to access the destroyed queues.