On Tue, 25 Aug 2015, Govindarajulu Varadarajan wrote:
quoted hunk ↗ jump to hunk
posted_index is RO in firmware. We need not do ioread everytime to get
posted index. Store posted index locally.
Signed-off-by: Govindarajulu Varadarajan <redacted>
---
diff --git a/drivers/net/ethernet/cisco/enic/vnic_wq.h b/drivers/net/ethernet/cisco/enic/vnic_wq.h
index 8944af9..0120961 100644
--- a/drivers/net/ethernet/cisco/enic/vnic_wq.h
+++ b/drivers/net/ethernet/cisco/enic/vnic_wq.h
@@ -97,6 +97,7 @@ struct devcmd2_controller { int color;
struct vnic_dev_ring results_ring;
struct vnic_wq wq;
+ u32 posted;
I need to initialize posted in vnic_dev_init_devcmd2. Ignore this patch.
I will send v2.