enic: reduce ioread in devcmd2
authorGovindarajulu Varadarajan <_govind@gmx.com>
Tue, 25 Aug 2015 08:45:11 +0000 (14:15 +0530)
committerDavid S. Miller <davem@davemloft.net>
Tue, 25 Aug 2015 23:05:48 +0000 (16:05 -0700)
commitdafc21995db9b2ef61a2d613f872a5c565731548
tree4c0865ec610b03682abf74f884bcf63dfe04de25
parent6e85d5ad36a26debc23a9a865c029cbe242b2dc8
enic: reduce ioread in devcmd2

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 <_govind@gmx.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/cisco/enic/vnic_dev.c
drivers/net/ethernet/cisco/enic/vnic_wq.h