aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/s2io.h
diff options
context:
space:
mode:
authorSivakumar Subramani <Sivakumar.Subramani@neterion.com>2007-01-31 13:28:08 -0500
committerJeff Garzik <jeff@garzik.org>2007-02-05 16:58:51 -0500
commitdb874e65ae93861461f83658fdec08368252cd2e (patch)
tree4e48b384d51a87f937caf4d945b1593a3abd8fef /drivers/net/s2io.h
parent7517c1b78759921daa679f1efba5d5dc0c81930e (diff)
s2io: Making LRO and UFO as module loadable parameter.
This patch adds two load parameters napi and ufo. Previously NAPI was compilation option with these changes wan enable disable NAPI using load parameter. Also we are introducing ufo load parameter to enable/disable ufo feature Signed-off-by: Sivakumar Subramani <sivakumar.subramani@neterion.com> Signed-off-by: Jeff Garzik <jeff@garzik.org>
Diffstat (limited to 'drivers/net/s2io.h')
-rw-r--r--drivers/net/s2io.h8
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 */
739struct s2io_nic { 737struct 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);
985static void s2io_set_multicast(struct net_device *dev); 979static void s2io_set_multicast(struct net_device *dev);
986static int rx_osm_handler(ring_info_t *ring_data, RxD_t * rxdp); 980static int rx_osm_handler(ring_info_t *ring_data, RxD_t * rxdp);
987static void s2io_link(nic_t * sp, int link); 981static void s2io_link(nic_t * sp, int link);
988#if defined(CONFIG_S2IO_NAPI)
989static int s2io_poll(struct net_device *dev, int *budget); 982static int s2io_poll(struct net_device *dev, int *budget);
990#endif
991static void s2io_init_pci(nic_t * sp); 983static void s2io_init_pci(nic_t * sp);
992static int s2io_set_mac_addr(struct net_device *dev, u8 * addr); 984static int s2io_set_mac_addr(struct net_device *dev, u8 * addr);
993static void s2io_alarm_handle(unsigned long data); 985static void s2io_alarm_handle(unsigned long data);