diff options
author | Sivakumar Subramani <Sivakumar.Subramani@neterion.com> | 2007-02-24 01:57:32 -0500 |
---|---|---|
committer | Jeff Garzik <jeff@garzik.org> | 2007-02-27 04:27:11 -0500 |
commit | 9fc93a41a1ad11da128f37e60cac01b67990cfb4 (patch) | |
tree | 78dea73a8eef69ccc6c9e7bcc8ded29bea8633c2 /drivers/net/s2io.h | |
parent | fb6a825b09a2311624e9cac20e643d9d7ef602dc (diff) |
S2IO: Optimized the delay to wait for command completion
- Optimized delay to wait for command completion so as to reduce the
initialization wait time.
- Disable differentiated services steering. By default RMAC is configured to
steer traffic with certain DS codes to other queues. Driver must initialize
the DS memory to 0 to make sure that DS steering will not be used by default.
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.h | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/drivers/net/s2io.h b/drivers/net/s2io.h index 0de0c65f945a..d23a50f3b70d 100644 --- a/drivers/net/s2io.h +++ b/drivers/net/s2io.h | |||
@@ -32,7 +32,8 @@ | |||
32 | #define FAILURE -1 | 32 | #define FAILURE -1 |
33 | #define S2IO_MINUS_ONE 0xFFFFFFFFFFFFFFFFULL | 33 | #define S2IO_MINUS_ONE 0xFFFFFFFFFFFFFFFFULL |
34 | #define S2IO_MAX_PCI_CONFIG_SPACE_REINIT 100 | 34 | #define S2IO_MAX_PCI_CONFIG_SPACE_REINIT 100 |
35 | 35 | #define S2IO_BIT_RESET 1 | |
36 | #define S2IO_BIT_SET 2 | ||
36 | #define CHECKBIT(value, nbit) (value & (1 << nbit)) | 37 | #define CHECKBIT(value, nbit) (value & (1 << nbit)) |
37 | 38 | ||
38 | /* Maximum time to flicker LED when asked to identify NIC using ethtool */ | 39 | /* Maximum time to flicker LED when asked to identify NIC using ethtool */ |
@@ -1005,7 +1006,8 @@ static int s2io_set_swapper(struct s2io_nic * sp); | |||
1005 | static void s2io_card_down(struct s2io_nic *nic); | 1006 | static void s2io_card_down(struct s2io_nic *nic); |
1006 | static int s2io_card_up(struct s2io_nic *nic); | 1007 | static int s2io_card_up(struct s2io_nic *nic); |
1007 | static int get_xena_rev_id(struct pci_dev *pdev); | 1008 | static int get_xena_rev_id(struct pci_dev *pdev); |
1008 | static int wait_for_cmd_complete(void __iomem *addr, u64 busy_bit); | 1009 | static int wait_for_cmd_complete(void __iomem *addr, u64 busy_bit, |
1010 | int bit_state); | ||
1009 | static int s2io_add_isr(struct s2io_nic * sp); | 1011 | static int s2io_add_isr(struct s2io_nic * sp); |
1010 | static void s2io_rem_isr(struct s2io_nic * sp); | 1012 | static void s2io_rem_isr(struct s2io_nic * sp); |
1011 | 1013 | ||
@@ -1019,6 +1021,7 @@ static void queue_rx_frame(struct sk_buff *skb); | |||
1019 | static void update_L3L4_header(struct s2io_nic *sp, struct lro *lro); | 1021 | static void update_L3L4_header(struct s2io_nic *sp, struct lro *lro); |
1020 | static void lro_append_pkt(struct s2io_nic *sp, struct lro *lro, | 1022 | static void lro_append_pkt(struct s2io_nic *sp, struct lro *lro, |
1021 | struct sk_buff *skb, u32 tcp_len); | 1023 | struct sk_buff *skb, u32 tcp_len); |
1024 | static int rts_ds_steer(struct s2io_nic *nic, u8 ds_codepoint, u8 ring); | ||
1022 | 1025 | ||
1023 | #define s2io_tcp_mss(skb) skb_shinfo(skb)->gso_size | 1026 | #define s2io_tcp_mss(skb) skb_shinfo(skb)->gso_size |
1024 | #define s2io_udp_mss(skb) skb_shinfo(skb)->gso_size | 1027 | #define s2io_udp_mss(skb) skb_shinfo(skb)->gso_size |