aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/sfc/net_driver.h
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/net/sfc/net_driver.h')
-rw-r--r--drivers/net/sfc/net_driver.h36
1 files changed, 18 insertions, 18 deletions
diff --git a/drivers/net/sfc/net_driver.h b/drivers/net/sfc/net_driver.h
index 6369f9253c7b..1b92186bec5a 100644
--- a/drivers/net/sfc/net_driver.h
+++ b/drivers/net/sfc/net_driver.h
@@ -137,8 +137,8 @@ struct efx_tx_buffer {
137 struct efx_tso_header *tsoh; 137 struct efx_tso_header *tsoh;
138 dma_addr_t dma_addr; 138 dma_addr_t dma_addr;
139 unsigned short len; 139 unsigned short len;
140 unsigned char continuation; 140 bool continuation;
141 unsigned char unmap_single; 141 bool unmap_single;
142 unsigned short unmap_len; 142 unsigned short unmap_len;
143}; 143};
144 144
@@ -162,7 +162,7 @@ struct efx_tx_buffer {
162 * @txd: The hardware descriptor ring 162 * @txd: The hardware descriptor ring
163 * @read_count: Current read pointer. 163 * @read_count: Current read pointer.
164 * This is the number of buffers that have been removed from both rings. 164 * This is the number of buffers that have been removed from both rings.
165 * @stopped: Stopped flag. 165 * @stopped: Stopped count.
166 * Set if this TX queue is currently stopping its port. 166 * Set if this TX queue is currently stopping its port.
167 * @insert_count: Current insert pointer 167 * @insert_count: Current insert pointer
168 * This is the number of buffers that have been added to the 168 * This is the number of buffers that have been added to the
@@ -265,7 +265,7 @@ struct efx_rx_buffer {
265struct efx_rx_queue { 265struct efx_rx_queue {
266 struct efx_nic *efx; 266 struct efx_nic *efx;
267 int queue; 267 int queue;
268 int used; 268 bool used;
269 struct efx_channel *channel; 269 struct efx_channel *channel;
270 struct efx_rx_buffer *buffer; 270 struct efx_rx_buffer *buffer;
271 struct efx_special_buffer rxd; 271 struct efx_special_buffer rxd;
@@ -359,13 +359,13 @@ struct efx_channel {
359 int evqnum; 359 int evqnum;
360 int channel; 360 int channel;
361 int used_flags; 361 int used_flags;
362 int enabled; 362 bool enabled;
363 int irq; 363 int irq;
364 unsigned int has_interrupt; 364 bool has_interrupt;
365 unsigned int irq_moderation; 365 unsigned int irq_moderation;
366 struct net_device *napi_dev; 366 struct net_device *napi_dev;
367 struct napi_struct napi_str; 367 struct napi_struct napi_str;
368 int work_pending; 368 bool work_pending;
369 struct efx_special_buffer eventq; 369 struct efx_special_buffer eventq;
370 unsigned int eventq_read_ptr; 370 unsigned int eventq_read_ptr;
371 unsigned int last_eventq_read_ptr; 371 unsigned int last_eventq_read_ptr;
@@ -388,7 +388,7 @@ struct efx_channel {
388 * access with prefetches. 388 * access with prefetches.
389 */ 389 */
390 struct efx_rx_buffer *rx_pkt; 390 struct efx_rx_buffer *rx_pkt;
391 int rx_pkt_csummed; 391 bool rx_pkt_csummed;
392 392
393}; 393};
394 394
@@ -401,8 +401,8 @@ struct efx_channel {
401 */ 401 */
402struct efx_blinker { 402struct efx_blinker {
403 int led_num; 403 int led_num;
404 int state; 404 bool state;
405 int resubmit; 405 bool resubmit;
406 struct timer_list timer; 406 struct timer_list timer;
407}; 407};
408 408
@@ -430,8 +430,8 @@ struct efx_board {
430 * have a separate init callback that happens later than 430 * have a separate init callback that happens later than
431 * board init. */ 431 * board init. */
432 int (*init_leds)(struct efx_nic *efx); 432 int (*init_leds)(struct efx_nic *efx);
433 void (*set_fault_led) (struct efx_nic *efx, int state); 433 void (*set_fault_led) (struct efx_nic *efx, bool state);
434 void (*blink) (struct efx_nic *efx, int start); 434 void (*blink) (struct efx_nic *efx, bool start);
435 void (*fini) (struct efx_nic *nic); 435 void (*fini) (struct efx_nic *nic);
436 struct efx_blinker blinker; 436 struct efx_blinker blinker;
437 struct i2c_client *hwmon_client, *ioexp_client; 437 struct i2c_client *hwmon_client, *ioexp_client;
@@ -714,11 +714,11 @@ struct efx_nic {
714 struct falcon_nic_data *nic_data; 714 struct falcon_nic_data *nic_data;
715 715
716 struct mutex mac_lock; 716 struct mutex mac_lock;
717 int port_enabled; 717 bool port_enabled;
718 718
719 int port_initialized; 719 bool port_initialized;
720 struct net_device *net_dev; 720 struct net_device *net_dev;
721 int rx_checksum_enabled; 721 bool rx_checksum_enabled;
722 722
723 atomic_t netif_stop_count; 723 atomic_t netif_stop_count;
724 spinlock_t netif_stop_lock; 724 spinlock_t netif_stop_lock;
@@ -734,13 +734,13 @@ struct efx_nic {
734 struct efx_phy_operations *phy_op; 734 struct efx_phy_operations *phy_op;
735 void *phy_data; 735 void *phy_data;
736 struct mii_if_info mii; 736 struct mii_if_info mii;
737 unsigned tx_disabled; 737 bool tx_disabled;
738 738
739 int link_up; 739 bool link_up;
740 unsigned int link_options; 740 unsigned int link_options;
741 unsigned int n_link_state_changes; 741 unsigned int n_link_state_changes;
742 742
743 int promiscuous; 743 bool promiscuous;
744 union efx_multicast_hash multicast_hash; 744 union efx_multicast_hash multicast_hash;
745 enum efx_fc_type flow_control; 745 enum efx_fc_type flow_control;
746 struct work_struct reconfigure_work; 746 struct work_struct reconfigure_work;