diff options
author | Greg Rose | 2011-09-07 07:59:35 +0200 |
---|---|---|
committer | Jeff Kirsher | 2011-10-13 07:45:24 +0200 |
commit | 83c61fa97a7d4ef16506a760f9e52b3144978346 (patch) | |
tree | 470c146ce7a19da9836a16b9bc454941b2b9a428 /drivers/net/ethernet/intel/ixgbe/ixgbe.h | |
parent | Merge branch 'for-davem' of git://git.infradead.org/users/linville/wireless-next (diff) | |
download | kernel-qcow2-linux-83c61fa97a7d4ef16506a760f9e52b3144978346.tar.gz kernel-qcow2-linux-83c61fa97a7d4ef16506a760f9e52b3144978346.tar.xz kernel-qcow2-linux-83c61fa97a7d4ef16506a760f9e52b3144978346.zip |
ixgbe: Add protection from VF invalid target DMA
It is possible for a VF to set an invalid target DMA address in its
Tx/Rx descriptor buffer pointers. The workarounds in this patch
will guard against such an event and issue a VFLR to the VF in response.
The VFLR will shut down the VF until an administrator can take action
to investigate the event and correct the problem.
Signed-off-by: Greg Rose <gregory.v.rose@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
Diffstat (limited to 'drivers/net/ethernet/intel/ixgbe/ixgbe.h')
-rw-r--r-- | drivers/net/ethernet/intel/ixgbe/ixgbe.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/net/ethernet/intel/ixgbe/ixgbe.h b/drivers/net/ethernet/intel/ixgbe/ixgbe.h index 38940d72991d..c1f76aaf8774 100644 --- a/drivers/net/ethernet/intel/ixgbe/ixgbe.h +++ b/drivers/net/ethernet/intel/ixgbe/ixgbe.h @@ -116,6 +116,8 @@ #define MAX_EMULATION_MAC_ADDRS 16 #define IXGBE_MAX_PF_MACVLANS 15 #define VMDQ_P(p) ((p) + adapter->num_vfs) +#define IXGBE_82599_VF_DEVICE_ID 0x10ED +#define IXGBE_X540_VF_DEVICE_ID 0x1515 struct vf_data_storage { unsigned char vf_mac_addresses[ETH_ALEN]; @@ -512,6 +514,8 @@ struct ixgbe_adapter { struct hlist_head fdir_filter_list; union ixgbe_atr_input fdir_mask; int fdir_filter_count; + u32 timer_event_accumulator; + u32 vferr_refcount; }; struct ixgbe_fdir_filter { |