Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 183512
b: refs/heads/master
c: c070395
h: refs/heads/master
v: v3
  • Loading branch information
Amit Kumar Salecha authored and David S. Miller committed Jan 15, 2010
1 parent 3bb3e06 commit e8e0588
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 6 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: a03d2451998e09e87eb573a9e04cc41fde2bb77f
refs/heads/master: c070395009e1e153395837cd256dffc931dd6f98
13 changes: 8 additions & 5 deletions trunk/drivers/net/netxen/netxen_nic_hw.c
Original file line number Diff line number Diff line change
Expand Up @@ -777,17 +777,20 @@ int netxen_p3_nic_set_mac_addr(struct netxen_adapter *adapter, u8 *addr)
int netxen_config_intr_coalesce(struct netxen_adapter *adapter)
{
nx_nic_req_t req;
u64 word;
int rv;
u64 word[6];
int rv, i;

memset(&req, 0, sizeof(nx_nic_req_t));
memset(word, 0, sizeof(word));

req.qhdr = cpu_to_le64(NX_HOST_REQUEST << 23);

word = NETXEN_CONFIG_INTR_COALESCE | ((u64)adapter->portnum << 16);
req.req_hdr = cpu_to_le64(word);
word[0] = NETXEN_CONFIG_INTR_COALESCE | ((u64)adapter->portnum << 16);
req.req_hdr = cpu_to_le64(word[0]);

memcpy(&req.words[0], &adapter->coal, sizeof(adapter->coal));
memcpy(&word[0], &adapter->coal, sizeof(adapter->coal));
for (i = 0; i < 6; i++)
req.words[i] = cpu_to_le64(word[i]);

rv = netxen_send_cmd_descs(adapter, (struct cmd_desc_type0 *)&req, 1);
if (rv != 0) {
Expand Down

0 comments on commit e8e0588

Please sign in to comment.