[openib-general] [PATCH 1/10] Driver Main files - netdev functions and corresponding state maintenance

2006-10-02 Thread Ramachandra K
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] ---

Re: [openib-general] [PATCH 1/10] Driver Main files - netdev functions and corresponding state maintenance

2006-10-02 Thread Roland Dreier
+#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

Re: [openib-general] [PATCH 1/10] Driver Main files - netdev functions and corresponding state maintenance

2006-10-02 Thread Bryan O'Sullivan
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; +