Thread (2 messages) flat view 2 messages, 2 authors, 2015-08-25

Re: [PATCH net-next] enic: reduce ioread in devcmd2

From: Govindarajulu Varadarajan <hidden>
Date: 2015-08-25 08:41:26

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.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help