Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 203958
b: refs/heads/master
c: 0fc48c3
h: refs/heads/master
v: v3
  • Loading branch information
Ajit Khaparde authored and David S. Miller committed Jul 31, 2010
1 parent 7a4a05e commit ead51c6
Show file tree
Hide file tree
Showing 4 changed files with 6 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: 48e9989e033966fd738d062ea9730fe10085fdd1
refs/heads/master: 0fc48c37ff3969dde71a43fa7c8f176d4bd90a3e
1 change: 1 addition & 0 deletions trunk/drivers/net/benet/be.h
Original file line number Diff line number Diff line change
Expand Up @@ -289,6 +289,7 @@ struct be_adapter {
u32 rx_fc; /* Rx flow control */
u32 tx_fc; /* Tx flow control */
bool ue_detected;
bool stats_ioctl_sent;
int link_speed;
u8 port_type;
u8 transceiver;
Expand Down
2 changes: 2 additions & 0 deletions trunk/drivers/net/benet/be_cmds.c
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,7 @@ static int be_mcc_compl_process(struct be_adapter *adapter,
be_dws_le_to_cpu(&resp->hw_stats,
sizeof(resp->hw_stats));
netdev_stats_update(adapter);
adapter->stats_ioctl_sent = false;
}
} else if ((compl_status != MCC_STATUS_NOT_SUPPORTED) &&
(compl->tag0 != OPCODE_COMMON_NTWK_MAC_QUERY)) {
Expand Down Expand Up @@ -951,6 +952,7 @@ int be_cmd_get_stats(struct be_adapter *adapter, struct be_dma_mem *nonemb_cmd)
sge->len = cpu_to_le32(nonemb_cmd->size);

be_mcc_notify(adapter);
adapter->stats_ioctl_sent = true;

err:
spin_unlock_bh(&adapter->mcc_lock);
Expand Down
3 changes: 2 additions & 1 deletion trunk/drivers/net/benet/be_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -1801,7 +1801,8 @@ static void be_worker(struct work_struct *work)
struct be_adapter *adapter =
container_of(work, struct be_adapter, work.work);

be_cmd_get_stats(adapter, &adapter->stats.cmd);
if (!adapter->stats_ioctl_sent)
be_cmd_get_stats(adapter, &adapter->stats.cmd);

/* Set EQ delay */
be_rx_eqd_update(adapter);
Expand Down

0 comments on commit ead51c6

Please sign in to comment.