Adds the driver main files. These files implement netdev
registration, netdev functions and state maintenance of the
virtual NIC corresponding to the various events associated
with the Virtual Ethernet IOC (VEx) connection.
Signed-off-by: Ramachandra K [EMAIL PROTECTED]
---
+#ifdef CONFIG_INFINIBAND_VNIC_STATS
+extern cycles_t recv_ref;
+#endif /* CONFIG_INFINIBAND_VNIC_STATS */
put this declaration in a header file somewhere, not inside a function
in a .c file.
Also is it really worth having CONFIG_INFINIBAND_VNIC_STATS? Who
Ramachandra K wrote:
+#include linux/kernel.h
Not needed.
+#include linux/version.h
Not needed.
+#ifdef CONFIG_INFINIBAND_VNIC_STATS
+ if (vnic-statistics.conn_time == 0) {
+ vnic-statistics.conn_time =
+ get_cycles() - vnic-statistics.start_time;
+