enic: feature add: add ethtool -c/C support
[deliverable/linux.git] / drivers / net / enic / vnic_enet.h
index 6332ac9391b89d4eaec6423a914f9995b321547b..8eeb6758491bcb3e065839ccb3b8f4ea7100e77b 100644 (file)
 #ifndef _VNIC_ENIC_H_
 #define _VNIC_ENIC_H_
 
+/* Hardware intr coalesce timer is in units of 1.5us */
+#define INTR_COALESCE_USEC_TO_HW(usec) ((usec) * 2/3)
+#define INTR_COALESCE_HW_TO_USEC(usec) ((usec) * 3/2)
+
 /* Device-specific region: enet configuration */
 struct vnic_enet_config {
        u32 flags;
@@ -30,6 +34,7 @@ struct vnic_enet_config {
        u8 intr_timer_type;
        u8 intr_mode;
        char devname[16];
+       u32 intr_timer_usec;
 };
 
 #define VENETF_TSO             0x1     /* TSO enabled */
This page took 0.028936 seconds and 5 git commands to generate.