~ubuntu-branches/debian/wheezy/linux-2.6/wheezy

« back to all changes in this revision

Viewing changes to drivers/net/ixgbe/ixgbe.h

  • Committer: Bazaar Package Importer
  • Author(s): Ben Hutchings, Ben Hutchings, Aurelien Jarno
  • Date: 2011-06-07 12:14:05 UTC
  • mfrom: (43.1.9 sid)
  • Revision ID: james.westby@ubuntu.com-20110607121405-i3h1rd7nrnd2b73h
Tags: 2.6.39-2
[ Ben Hutchings ]
* [x86] Enable BACKLIGHT_APPLE, replacing BACKLIGHT_MBP_NVIDIA
  (Closes: #627492)
* cgroups: Disable memory resource controller by default. Allow it
  to be enabled using kernel parameter 'cgroup_enable=memory'.
* rt2800usb: Enable support for more USB devices including
  Linksys WUSB600N (Closes: #596626) (this change was accidentally
  omitted from 2.6.39-1)
* [x86] Remove Celeron from list of processors supporting PAE. Most
  'Celeron M' models do not.
* Update debconf template translations:
  - Swedish (Martin Bagge) (Closes: #628932)
  - French (David Prévot) (Closes: #628191)
* aufs: Update for 2.6.39 (Closes: #627837)
* Add stable 2.6.39.1, including:
  - ext4: dont set PageUptodate in ext4_end_bio()
  - pata_cmd64x: fix boot crash on parisc (Closes: #622997, #622745)
  - ext3: Fix fs corruption when make_indexed_dir() fails
  - netfilter: nf_ct_sip: validate Content-Length in TCP SIP messages
  - sctp: fix race between sctp_bind_addr_free() and
    sctp_bind_addr_conflict()
  - sctp: fix memory leak of the ASCONF queue when free asoc
  - md/bitmap: fix saving of events_cleared and other state
  - cdc_acm: Fix oops when Droids MuIn LCD is connected
  - cx88: Fix conversion from BKL to fine-grained locks (Closes: #619827)
  - keys: Set cred->user_ns in key_replace_session_keyring (CVE-2011-2184)
  - tmpfs: fix race between truncate and writepage
  - nfs41: Correct offset for LAYOUTCOMMIT
  - xen/mmu: fix a race window causing leave_mm BUG()
  - ext4: fix possible use-after-free in ext4_remove_li_request()
  For the complete list of changes, see:
   http://www.kernel.org/pub/linux/kernel/v2.6/ChangeLog-2.6.39.1
* Bump ABI to 2
* netfilter: Enable IP_SET, IP_SET_BITMAP_IP, IP_SET_BITMAP_IPMAC,
  IP_SET_BITMAP_PORT, IP_SET_HASH_IP, IP_SET_HASH_IPPORT,
  IP_SET_HASH_IPPORTIP, IP_SET_HASH_IPPORTNET, IP_SET_HASH_NET,
  IP_SET_HASH_NETPORT, IP_SET_LIST_SET, NETFILTER_XT_SET as modules
  (Closes: #629401)

[ Aurelien Jarno ]
* [mipsel/loongson-2f] Disable_SCSI_LPFC to workaround GCC ICE.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/*******************************************************************************
2
2
 
3
3
  Intel 10 Gigabit PCI Express Linux driver
4
 
  Copyright(c) 1999 - 2010 Intel Corporation.
 
4
  Copyright(c) 1999 - 2011 Intel Corporation.
5
5
 
6
6
  This program is free software; you can redistribute it and/or modify it
7
7
  under the terms and conditions of the GNU General Public License,
118
118
        bool pf_set_mac;
119
119
        u16 pf_vlan; /* When set, guest VLAN config not allowed. */
120
120
        u16 pf_qos;
 
121
        u16 tx_rate;
121
122
};
122
123
 
123
124
/* wrapper around a pointer to a socket buffer,
209
210
                                         * associated with this ring, which is
210
211
                                         * different for DCB and RSS modes
211
212
                                         */
 
213
        u8 dcb_tc;
212
214
 
213
215
        u16 work_limit;                 /* max work per interrupt */
214
216
 
243
245
        RING_F_ARRAY_SIZE      /* must be last in enum set */
244
246
};
245
247
 
246
 
#define IXGBE_MAX_DCB_INDICES   8
 
248
#define IXGBE_MAX_DCB_INDICES  64
247
249
#define IXGBE_MAX_RSS_INDICES  16
248
250
#define IXGBE_MAX_VMDQ_INDICES 64
249
251
#define IXGBE_MAX_FDIR_INDICES 64
334
336
        u16 bd_number;
335
337
        struct work_struct reset_task;
336
338
        struct ixgbe_q_vector *q_vector[MAX_MSIX_Q_VECTORS];
 
339
 
 
340
        /* DCB parameters */
 
341
        struct ieee_pfc *ixgbe_ieee_pfc;
 
342
        struct ieee_ets *ixgbe_ieee_ets;
337
343
        struct ixgbe_dcb_config dcb_cfg;
338
344
        struct ixgbe_dcb_config temp_dcb_cfg;
339
345
        u8 dcb_set_bitmap;
 
346
        u8 dcbx_cap;
340
347
        enum ixgbe_fc_mode last_lfc_mode;
341
348
 
342
349
        /* Interrupt Throttle Rate */
462
469
        DECLARE_BITMAP(active_vfs, IXGBE_MAX_VF_FUNCTIONS);
463
470
        unsigned int num_vfs;
464
471
        struct vf_data_storage *vfinfo;
 
472
        int vf_rate_link_speed;
465
473
};
466
474
 
467
475
enum ixbge_state_t {
521
529
extern void ixgbe_alloc_rx_buffers(struct ixgbe_ring *, u16);
522
530
extern void ixgbe_write_eitr(struct ixgbe_q_vector *);
523
531
extern int ethtool_ioctl(struct ifreq *ifr);
524
 
extern u8 ixgbe_dcb_txq_to_tc(struct ixgbe_adapter *adapter, u8 index);
525
532
extern s32 ixgbe_reinit_fdir_tables_82599(struct ixgbe_hw *hw);
526
533
extern s32 ixgbe_init_fdir_signature_82599(struct ixgbe_hw *hw, u32 pballoc);
527
534
extern s32 ixgbe_init_fdir_perfect_82599(struct ixgbe_hw *hw, u32 pballoc);
538
545
extern void ixgbe_clear_rscctl(struct ixgbe_adapter *adapter,
539
546
                               struct ixgbe_ring *ring);
540
547
extern void ixgbe_set_rx_mode(struct net_device *netdev);
 
548
extern int ixgbe_setup_tc(struct net_device *dev, u8 tc);
541
549
#ifdef IXGBE_FCOE
542
550
extern void ixgbe_configure_fcoe(struct ixgbe_adapter *adapter);
543
551
extern int ixgbe_fso(struct ixgbe_adapter *adapter,
549
557
                          struct sk_buff *skb);
550
558
extern int ixgbe_fcoe_ddp_get(struct net_device *netdev, u16 xid,
551
559
                              struct scatterlist *sgl, unsigned int sgc);
 
560
extern int ixgbe_fcoe_ddp_target(struct net_device *netdev, u16 xid,
 
561
                                 struct scatterlist *sgl, unsigned int sgc);
552
562
extern int ixgbe_fcoe_ddp_put(struct net_device *netdev, u16 xid);
553
563
extern int ixgbe_fcoe_enable(struct net_device *netdev);
554
564
extern int ixgbe_fcoe_disable(struct net_device *netdev);