Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 183493
b: refs/heads/master
c: bdbec4b
h: refs/heads/master
i:
  183491: 84e32d5
v: v3
  • Loading branch information
Greg Rose authored and David S. Miller committed Jan 10, 2010
1 parent b2c8aa4 commit 4477f49
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 1cdd1ec8784399eef55a60887a45f3f46a1c240a
refs/heads/master: bdbec4b86ee99b020e159f9bd604003a3ae3b0ab
11 changes: 11 additions & 0 deletions trunk/drivers/net/ixgbe/ixgbe_ethtool.c
Original file line number Diff line number Diff line change
Expand Up @@ -1867,11 +1867,22 @@ static void ixgbe_diag_test(struct net_device *netdev,
if (ixgbe_intr_test(adapter, &data[2]))
eth_test->flags |= ETH_TEST_FL_FAILED;

/* If SRIOV or VMDq is enabled then skip MAC
* loopback diagnostic. */
if (adapter->flags & (IXGBE_FLAG_SRIOV_ENABLED |
IXGBE_FLAG_VMDQ_ENABLED)) {
DPRINTK(HW, INFO, "Skip MAC loopback diagnostic in VT "
"mode\n");
data[3] = 0;
goto skip_loopback;
}

ixgbe_reset(adapter);
DPRINTK(HW, INFO, "loopback testing starting\n");
if (ixgbe_loopback_test(adapter, &data[3]))
eth_test->flags |= ETH_TEST_FL_FAILED;

skip_loopback:
ixgbe_reset(adapter);

clear_bit(__IXGBE_TESTING, &adapter->state);
Expand Down

0 comments on commit 4477f49

Please sign in to comment.