Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 189174
b: refs/heads/master
c: e7d481a
h: refs/heads/master
v: v3
  • Loading branch information
Greg Rose authored and David S. Miller committed Mar 27, 2010
1 parent 7e40346 commit 385da1d
Show file tree
Hide file tree
Showing 2 changed files with 22 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: e017b60316468f21a63bdd4affefaf81a7f988fd
refs/heads/master: e7d481a6f3c13041446b7bb8f98ab861460076a3
21 changes: 21 additions & 0 deletions trunk/drivers/net/ixgbe/ixgbe_ethtool.c
Original file line number Diff line number Diff line change
Expand Up @@ -1853,6 +1853,26 @@ static void ixgbe_diag_test(struct net_device *netdev,
if (ixgbe_link_test(adapter, &data[4]))
eth_test->flags |= ETH_TEST_FL_FAILED;

if (adapter->flags & IXGBE_FLAG_SRIOV_ENABLED) {
int i;
for (i = 0; i < adapter->num_vfs; i++) {
if (adapter->vfinfo[i].clear_to_send) {
netdev_warn(netdev, "%s",
"offline diagnostic is not "
"supported when VFs are "
"present\n");
data[0] = 1;
data[1] = 1;
data[2] = 1;
data[3] = 1;
eth_test->flags |= ETH_TEST_FL_FAILED;
clear_bit(__IXGBE_TESTING,
&adapter->state);
goto skip_ol_tests;
}
}
}

if (if_running)
/* indicate we're in test mode */
dev_close(netdev);
Expand Down Expand Up @@ -1908,6 +1928,7 @@ static void ixgbe_diag_test(struct net_device *netdev,

clear_bit(__IXGBE_TESTING, &adapter->state);
}
skip_ol_tests:
msleep_interruptible(4 * 1000);
}

Expand Down

0 comments on commit 385da1d

Please sign in to comment.