aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/ixgb/ixgb_ethtool.c
diff options
context:
space:
mode:
authorJoe Perches <joe@perches.com>2008-03-21 14:06:37 -0400
committerJeff Garzik <jeff@garzik.org>2008-03-26 00:17:45 -0400
commit446490ca44dcc8a1a9f3c082809bdab208626891 (patch)
treec03c43be82866695c6793d9d46c838ed5d1e4457 /drivers/net/ixgb/ixgb_ethtool.c
parentbab2bce7dcea9aaf9374b6c24001d6afcced4ca5 (diff)
ixgb: convert boolean_t to bool
> send me a patch for e1000 and for ixgb and I'll happily apply those :) boolean_t to bool TRUE to true FALSE to false Signed-off-by: Joe Perches <joe@perches.com> Signed-off-by: Auke Kok <auke-jan.h.kok@intel.com> Signed-off-by: Jeff Garzik <jeff@garzik.org>
Diffstat (limited to 'drivers/net/ixgb/ixgb_ethtool.c')
-rw-r--r--drivers/net/ixgb/ixgb_ethtool.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/drivers/net/ixgb/ixgb_ethtool.c b/drivers/net/ixgb/ixgb_ethtool.c
index 75f3a68ee354..5d61c2e210fe 100644
--- a/drivers/net/ixgb/ixgb_ethtool.c
+++ b/drivers/net/ixgb/ixgb_ethtool.c
@@ -33,7 +33,7 @@
33#include <asm/uaccess.h> 33#include <asm/uaccess.h>
34 34
35extern int ixgb_up(struct ixgb_adapter *adapter); 35extern int ixgb_up(struct ixgb_adapter *adapter);
36extern void ixgb_down(struct ixgb_adapter *adapter, boolean_t kill_watchdog); 36extern void ixgb_down(struct ixgb_adapter *adapter, bool kill_watchdog);
37extern void ixgb_reset(struct ixgb_adapter *adapter); 37extern void ixgb_reset(struct ixgb_adapter *adapter);
38extern int ixgb_setup_rx_resources(struct ixgb_adapter *adapter); 38extern int ixgb_setup_rx_resources(struct ixgb_adapter *adapter);
39extern int ixgb_setup_tx_resources(struct ixgb_adapter *adapter); 39extern int ixgb_setup_tx_resources(struct ixgb_adapter *adapter);
@@ -136,7 +136,7 @@ ixgb_set_settings(struct net_device *netdev, struct ethtool_cmd *ecmd)
136 return -EINVAL; 136 return -EINVAL;
137 137
138 if(netif_running(adapter->netdev)) { 138 if(netif_running(adapter->netdev)) {
139 ixgb_down(adapter, TRUE); 139 ixgb_down(adapter, true);
140 ixgb_reset(adapter); 140 ixgb_reset(adapter);
141 ixgb_up(adapter); 141 ixgb_up(adapter);
142 ixgb_set_speed_duplex(netdev); 142 ixgb_set_speed_duplex(netdev);
@@ -185,7 +185,7 @@ ixgb_set_pauseparam(struct net_device *netdev,
185 hw->fc.type = ixgb_fc_none; 185 hw->fc.type = ixgb_fc_none;
186 186
187 if(netif_running(adapter->netdev)) { 187 if(netif_running(adapter->netdev)) {
188 ixgb_down(adapter, TRUE); 188 ixgb_down(adapter, true);
189 ixgb_up(adapter); 189 ixgb_up(adapter);
190 ixgb_set_speed_duplex(netdev); 190 ixgb_set_speed_duplex(netdev);
191 } else 191 } else
@@ -210,7 +210,7 @@ ixgb_set_rx_csum(struct net_device *netdev, uint32_t data)
210 adapter->rx_csum = data; 210 adapter->rx_csum = data;
211 211
212 if(netif_running(netdev)) { 212 if(netif_running(netdev)) {
213 ixgb_down(adapter,TRUE); 213 ixgb_down(adapter, true);
214 ixgb_up(adapter); 214 ixgb_up(adapter);
215 ixgb_set_speed_duplex(netdev); 215 ixgb_set_speed_duplex(netdev);
216 } else 216 } else
@@ -570,7 +570,7 @@ ixgb_set_ringparam(struct net_device *netdev,
570 return -EINVAL; 570 return -EINVAL;
571 571
572 if(netif_running(adapter->netdev)) 572 if(netif_running(adapter->netdev))
573 ixgb_down(adapter,TRUE); 573 ixgb_down(adapter, true);
574 574
575 rxdr->count = max(ring->rx_pending,(uint32_t)MIN_RXD); 575 rxdr->count = max(ring->rx_pending,(uint32_t)MIN_RXD);
576 rxdr->count = min(rxdr->count,(uint32_t)MAX_RXD); 576 rxdr->count = min(rxdr->count,(uint32_t)MAX_RXD);