diff options
author | Vasanthy Kolluri <vkolluri@cisco.com> | 2010-03-18 19:19:44 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2010-03-19 07:22:47 +0300 |
commit | a55a603dae47a1ea4fbfad3a3a428ea7a0900ab6 (patch) | |
tree | e5a0526197efe4afb24443a2b918a8908ce11a43 /drivers/net/enic/enic.h | |
parent | ba7e94a44afbbf4c494e00b844f7bbfb144e7f6d (diff) | |
download | linux-a55a603dae47a1ea4fbfad3a3a428ea7a0900ab6.tar.xz |
enic: Bug Fix: Fix hardware descriptor reads
The last bit written to a completion descriptor by hardware is the color
bit. Driver must read all other descriptor fields only after reading the
color bit to avoid reading stale descriptor fields. There is a rmb() after
reading the color bit to avoid any compiler/cpu reordering of the reads.
The color bit is the generation bit that toggles each pass through the
completion descriptor ring.
Signed-off-by: Scott Feldman <scofeldm@cisco.com>
Signed-off-by: Vasanthy Kolluri <vkolluri@cisco.com>
Signed-off-by: Roopa Prabhu <roprabhu@cisco.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/enic/enic.h')
-rw-r--r-- | drivers/net/enic/enic.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/enic/enic.h b/drivers/net/enic/enic.h index ee01f5a6d0d4..9f5ed3e5e3fe 100644 --- a/drivers/net/enic/enic.h +++ b/drivers/net/enic/enic.h @@ -34,7 +34,7 @@ #define DRV_NAME "enic" #define DRV_DESCRIPTION "Cisco 10G Ethernet Driver" -#define DRV_VERSION "1.1.0.241a" +#define DRV_VERSION "1.3.1.1" #define DRV_COPYRIGHT "Copyright 2008-2009 Cisco Systems, Inc" #define PFX DRV_NAME ": " |