summaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/cisco/enic/vnic_wq.h
diff options
context:
space:
mode:
authorGovindarajulu Varadarajan <_govind@gmx.com>2015-08-16 01:44:54 +0530
committerDavid S. Miller <davem@davemloft.net>2015-08-17 15:25:29 -0700
commit373fb0873d4325a7afa04aec29ced0c122d1f8a9 (patch)
treeb0da4fd30b4dde4e505b3e84339d24a0a85d683f /drivers/net/ethernet/cisco/enic/vnic_wq.h
parentfda3f52bdbbe576d78ca9ea84912b48fa51f0e90 (diff)
downloadtalos-obmc-linux-373fb0873d4325a7afa04aec29ced0c122d1f8a9.tar.gz
talos-obmc-linux-373fb0873d4325a7afa04aec29ced0c122d1f8a9.zip
enic: add devcmd2
devcmd is an interface for driver to communicate with fw/adaptor. It involves writing data to hardware registers and waiting for the result. This mechanism does not scale well. The queuing of "no wait" devcmds is done in firmware memory rather than on the host. Firmware memory is a rather more scarce and valuable resource than host memory. A devcmd storm from one vf can disrupt the service on other pf/vf. The lack of flow control allows for possible denial of server from one VM to another. Devcmd2 uses work queue to post the devcmds, just like tx work queue. This allows better flow control. Initialize devcmd2, if fails we fall back to devcmd1. Also change the driver version. Signed-off-by: N V V Satyanarayana Reddy <nalreddy@cisco.com> Signed-off-by: Govindarajulu Varadarajan <_govind@gmx.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/cisco/enic/vnic_wq.h')
-rw-r--r--drivers/net/ethernet/cisco/enic/vnic_wq.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/drivers/net/ethernet/cisco/enic/vnic_wq.h b/drivers/net/ethernet/cisco/enic/vnic_wq.h
index d5ea706c4975..c9b25d31c4b8 100644
--- a/drivers/net/ethernet/cisco/enic/vnic_wq.h
+++ b/drivers/net/ethernet/cisco/enic/vnic_wq.h
@@ -185,5 +185,11 @@ void vnic_wq_enable(struct vnic_wq *wq);
int vnic_wq_disable(struct vnic_wq *wq);
void vnic_wq_clean(struct vnic_wq *wq,
void (*buf_clean)(struct vnic_wq *wq, struct vnic_wq_buf *buf));
+int vnic_wq_devcmd2_alloc(struct vnic_dev *vdev, struct vnic_wq *wq,
+ unsigned int desc_count, unsigned int desc_size);
+void vnic_wq_init_start(struct vnic_wq *wq, unsigned int cq_index,
+ unsigned int fetch_index, unsigned int posted_index,
+ unsigned int error_interrupt_enable,
+ unsigned int error_interrupt_offset);
#endif /* _VNIC_WQ_H_ */
OpenPOWER on IntegriCloud