Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 194583
b: refs/heads/master
c: d5ffd75
h: refs/heads/master
i:
  194581: 2051fc3
  194579: b51035e
  194575: 2e53a2a
v: v3
  • Loading branch information
Nicholas Nunley authored and David S. Miller committed Apr 28, 2010
1 parent b69d6f3 commit d6d2492
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 2 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: afe0159d935ab731c682e811356914bb2be9470c
refs/heads/master: d5ffd75a27fade39ba5df3b07290c5a2c297b9bd
4 changes: 4 additions & 0 deletions trunk/drivers/net/ixgbe/ixgbe.h
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,10 @@
#define MAX_EMULATION_MAC_ADDRS 16
#define VMDQ_P(p) ((p) + adapter->num_vfs)

#define IXGBE_SUBDEV_ID_82598AF_MEZZ 0x0049
#define IXGBE_SUBDEV_ID_82598AF_MENLO_Q_MEZZ 0x004a
#define IXGBE_SUBDEV_ID_82598AF_MENLO_E_MEZZ 0x004b

struct vf_data_storage {
unsigned char vf_mac_addresses[ETH_ALEN];
u16 vf_mc_hashes[IXGBE_MAX_VF_MC_ENTRIES];
Expand Down
17 changes: 16 additions & 1 deletion trunk/drivers/net/ixgbe/ixgbe_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -4314,6 +4314,9 @@ static int ixgbe_set_interrupt_capability(struct ixgbe_adapter *adapter)
int err = 0;
int vector, v_budget;

if (!(adapter->flags & IXGBE_FLAG_MSIX_CAPABLE))
goto try_msi;

/*
* It's easy to be greedy for MSI-X vectors, but it really
* doesn't do us much good if we have a lot more vectors
Expand Down Expand Up @@ -4345,7 +4348,7 @@ static int ixgbe_set_interrupt_capability(struct ixgbe_adapter *adapter)
if (adapter->flags & IXGBE_FLAG_MSIX_ENABLED)
goto out;
}

try_msi:
adapter->flags &= ~IXGBE_FLAG_DCB_ENABLED;
adapter->flags &= ~IXGBE_FLAG_RSS_ENABLED;
adapter->flags &= ~IXGBE_FLAG_FDIR_HASH_CAPABLE;
Expand Down Expand Up @@ -4626,6 +4629,18 @@ static int __devinit ixgbe_sw_init(struct ixgbe_adapter *adapter)
adapter->ring_feature[RING_F_RSS].indices = rss;
adapter->flags |= IXGBE_FLAG_RSS_ENABLED;
adapter->ring_feature[RING_F_DCB].indices = IXGBE_MAX_DCB_INDICES;
adapter->flags |= IXGBE_FLAG_MSIX_CAPABLE;
if (adapter->hw.device_id == IXGBE_DEV_ID_82598AF_DUAL_PORT) {
switch (adapter->hw.subsystem_device_id) {
case IXGBE_SUBDEV_ID_82598AF_MEZZ:
case IXGBE_SUBDEV_ID_82598AF_MENLO_Q_MEZZ:
case IXGBE_SUBDEV_ID_82598AF_MENLO_E_MEZZ:
adapter->flags &= ~IXGBE_FLAG_MSIX_CAPABLE;
break;
default:
break;
}
}
if (hw->mac.type == ixgbe_mac_82598EB) {
if (hw->device_id == IXGBE_DEV_ID_82598AT)
adapter->flags |= IXGBE_FLAG_FAN_FAIL_CAPABLE;
Expand Down

0 comments on commit d6d2492

Please sign in to comment.