pch_gbe: replace private tx ring lock with common netif_tx_lock
authorfrançois romieu <romieu@fr.zoreil.com>
Wed, 27 Apr 2016 21:29:44 +0000 (23:29 +0200)
committerDavid S. Miller <davem@davemloft.net>
Thu, 28 Apr 2016 21:19:58 +0000 (17:19 -0400)
commit222e4d0b13c674b28a562d67c270367d45d0a53d
tree07f19841307886028a50c81894e36d86739874ac
parentbadf3ada60ab8f76f9488dc8f5c0c57f70682f5a
pch_gbe: replace private tx ring lock with common netif_tx_lock

pch_gbe_tx_ring.tx_lock is only used in the hard_xmit handler and
in the transmit completion reaper called from NAPI context.

Compile-tested only. Potential victims Cced.

Someone more knowledgeable may check if pch_gbe_tx_queue could
have some use for a mmiowb.

Signed-off-by: Francois Romieu <romieu@fr.zoreil.com>
Cc: Darren Hart <dvhart@infradead.org>
Cc: Andy Cress <andy.cress@us.kontron.com>
Cc: bryan@fossetcon.org
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/oki-semi/pch_gbe/pch_gbe.h
drivers/net/ethernet/oki-semi/pch_gbe/pch_gbe_main.c