Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 291598
b: refs/heads/master
c: 449e39d
h: refs/heads/master
v: v3
  • Loading branch information
Joe Perches authored and David S. Miller committed Mar 19, 2012
1 parent f419738 commit cd35b1d
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 10 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: c81f212450e4d85ed1ed3777316e8355caeb3848
refs/heads/master: 449e39d9d7a889f4467ca7c590390e4a0f610b70
4 changes: 0 additions & 4 deletions trunk/drivers/net/ethernet/intel/igbvf/defines.h
Original file line number Diff line number Diff line change
Expand Up @@ -97,10 +97,6 @@
#define E1000_ERR_MAC_INIT 5
#define E1000_ERR_MBX 15

#ifndef ETH_ADDR_LEN
#define ETH_ADDR_LEN 6
#endif

/* SRRCTL bit definitions */
#define E1000_SRRCTL_BSIZEPKT_SHIFT 10 /* Shift _right_ */
#define E1000_SRRCTL_BSIZEHDRSIZE_MASK 0x00000F00
Expand Down
7 changes: 2 additions & 5 deletions trunk/drivers/net/ethernet/intel/igbvf/vf.c
Original file line number Diff line number Diff line change
Expand Up @@ -246,7 +246,7 @@ static void e1000_update_mc_addr_list_vf(struct e1000_hw *hw,
for (i = 0; i < cnt; i++) {
hash_value = e1000_hash_mc_addr_vf(hw, mc_addr_list);
hash_list[i] = hash_value & 0x0FFFF;
mc_addr_list += ETH_ADDR_LEN;
mc_addr_list += ETH_ALEN;
}

mbx->ops.write_posted(hw, msgbuf, E1000_VFMAILBOX_SIZE);
Expand Down Expand Up @@ -333,10 +333,7 @@ static void e1000_rar_set_vf(struct e1000_hw *hw, u8 * addr, u32 index)
**/
static s32 e1000_read_mac_addr_vf(struct e1000_hw *hw)
{
int i;

for (i = 0; i < ETH_ADDR_LEN; i++)
hw->mac.addr[i] = hw->mac.perm_addr[i];
memcpy(hw->mac.addr, hw->mac.perm_addr, ETH_ALEN);

return E1000_SUCCESS;
}
Expand Down

0 comments on commit cd35b1d

Please sign in to comment.