diff options
Diffstat (limited to 'drivers/net/s2io.h')
-rw-r--r-- | drivers/net/s2io.h | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/drivers/net/s2io.h b/drivers/net/s2io.h index 3b0bafd273c8..577fa3ad214e 100644 --- a/drivers/net/s2io.h +++ b/drivers/net/s2io.h | |||
@@ -616,10 +616,8 @@ typedef struct ring_info { | |||
616 | */ | 616 | */ |
617 | rx_curr_get_info_t rx_curr_get_info; | 617 | rx_curr_get_info_t rx_curr_get_info; |
618 | 618 | ||
619 | #ifndef CONFIG_S2IO_NAPI | ||
620 | /* Index to the absolute position of the put pointer of Rx ring */ | 619 | /* Index to the absolute position of the put pointer of Rx ring */ |
621 | int put_pos; | 620 | int put_pos; |
622 | #endif | ||
623 | 621 | ||
624 | /* Buffer Address store. */ | 622 | /* Buffer Address store. */ |
625 | buffAdd_t **ba; | 623 | buffAdd_t **ba; |
@@ -738,13 +736,11 @@ typedef struct lro { | |||
738 | /* Structure representing one instance of the NIC */ | 736 | /* Structure representing one instance of the NIC */ |
739 | struct s2io_nic { | 737 | struct s2io_nic { |
740 | int rxd_mode; | 738 | int rxd_mode; |
741 | #ifdef CONFIG_S2IO_NAPI | ||
742 | /* | 739 | /* |
743 | * Count of packets to be processed in a given iteration, it will be indicated | 740 | * Count of packets to be processed in a given iteration, it will be indicated |
744 | * by the quota field of the device structure when NAPI is enabled. | 741 | * by the quota field of the device structure when NAPI is enabled. |
745 | */ | 742 | */ |
746 | int pkts_to_process; | 743 | int pkts_to_process; |
747 | #endif | ||
748 | struct net_device *dev; | 744 | struct net_device *dev; |
749 | mac_info_t mac_control; | 745 | mac_info_t mac_control; |
750 | struct config_param config; | 746 | struct config_param config; |
@@ -775,9 +771,7 @@ struct s2io_nic { | |||
775 | atomic_t rx_bufs_left[MAX_RX_RINGS]; | 771 | atomic_t rx_bufs_left[MAX_RX_RINGS]; |
776 | 772 | ||
777 | spinlock_t tx_lock; | 773 | spinlock_t tx_lock; |
778 | #ifndef CONFIG_S2IO_NAPI | ||
779 | spinlock_t put_lock; | 774 | spinlock_t put_lock; |
780 | #endif | ||
781 | 775 | ||
782 | #define PROMISC 1 | 776 | #define PROMISC 1 |
783 | #define ALL_MULTI 2 | 777 | #define ALL_MULTI 2 |
@@ -985,9 +979,7 @@ static void s2io_tasklet(unsigned long dev_addr); | |||
985 | static void s2io_set_multicast(struct net_device *dev); | 979 | static void s2io_set_multicast(struct net_device *dev); |
986 | static int rx_osm_handler(ring_info_t *ring_data, RxD_t * rxdp); | 980 | static int rx_osm_handler(ring_info_t *ring_data, RxD_t * rxdp); |
987 | static void s2io_link(nic_t * sp, int link); | 981 | static void s2io_link(nic_t * sp, int link); |
988 | #if defined(CONFIG_S2IO_NAPI) | ||
989 | static int s2io_poll(struct net_device *dev, int *budget); | 982 | static int s2io_poll(struct net_device *dev, int *budget); |
990 | #endif | ||
991 | static void s2io_init_pci(nic_t * sp); | 983 | static void s2io_init_pci(nic_t * sp); |
992 | static int s2io_set_mac_addr(struct net_device *dev, u8 * addr); | 984 | static int s2io_set_mac_addr(struct net_device *dev, u8 * addr); |
993 | static void s2io_alarm_handle(unsigned long data); | 985 | static void s2io_alarm_handle(unsigned long data); |