vxge: serialize access to steering control register
authorJon Mason <jon.mason@exar.com>
Thu, 11 Nov 2010 04:25:56 +0000 (04:25 +0000)
committerDavid S. Miller <davem@davemloft.net>
Thu, 11 Nov 2010 17:30:20 +0000 (09:30 -0800)
commit8424e00dfd5282026a93996a165fc4079d382169
treec427a353c8859c77b642d683e2911afb3a7d3afd
parentddd62726e0bc1ffe0ab791b647f4178161ab451b
vxge: serialize access to steering control register

It is possible for multiple callers to access the firmware interface for
the same vpath simultaneously, resulting in uncertain output.  Add locks
to serialize access.  Also, make functions only accessed locally static,
thus requiring some movement of code blocks.

Signed-off-by: Jon Mason <jon.mason@exar.com>
Signed-off-by: Ram Vepa <ram.vepa@exar.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/vxge/vxge-config.c
drivers/net/vxge/vxge-config.h