Browse Source

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>
Jon Mason 14 years ago
parent
commit
8424e00dfd
2 changed files with 323 additions and 480 deletions
  1. 322 480
      drivers/net/vxge/vxge-config.c
  2. 1 0
      drivers/net/vxge/vxge-config.h

File diff suppressed because it is too large
+ 322 - 480
drivers/net/vxge/vxge-config.c


+ 1 - 0
drivers/net/vxge/vxge-config.h

@@ -641,6 +641,7 @@ struct __vxge_hw_virtualpath {
 	struct vxge_hw_vpath_stats_hw_info	*hw_stats;
 	struct vxge_hw_vpath_stats_hw_info	*hw_stats_sav;
 	struct vxge_hw_vpath_stats_sw_info	*sw_stats;
+	spinlock_t lock;
 };
 
 /*

Some files were not shown because too many files changed in this diff