Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 156363
b: refs/heads/master
c: e0cff5e
h: refs/heads/master
i:
  156361: b2f2f7c
  156359: 54f3e0f
v: v3
  • Loading branch information
Alexander Duyck authored and David S. Miller committed Aug 4, 2009
1 parent 8f54f29 commit da45851
Show file tree
Hide file tree
Showing 2 changed files with 5 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: 0cb13536c3382004bd9b833565e2af33f26ed1fb
refs/heads/master: e0cff5ed27acd355264b210d9622da801a431e19
4 changes: 4 additions & 0 deletions trunk/drivers/net/igbvf/vf.c
Original file line number Diff line number Diff line change
Expand Up @@ -274,6 +274,8 @@ static s32 e1000_set_vfta_vf(struct e1000_hw *hw, u16 vid, bool set)

err = mbx->ops.read_posted(hw, msgbuf, 2);

msgbuf[0] &= ~E1000_VT_MSGTYPE_CTS;

/* if nacked the vlan was rejected */
if (!err && (msgbuf[0] == (E1000_VF_SET_VLAN | E1000_VT_MSGTYPE_NACK)))
err = -E1000_ERR_MAC_INIT;
Expand Down Expand Up @@ -317,6 +319,8 @@ static void e1000_rar_set_vf(struct e1000_hw *hw, u8 * addr, u32 index)
if (!ret_val)
ret_val = mbx->ops.read_posted(hw, msgbuf, 3);

msgbuf[0] &= ~E1000_VT_MSGTYPE_CTS;

/* if nacked the address was rejected, use "perm_addr" */
if (!ret_val &&
(msgbuf[0] == (E1000_VF_SET_MAC_ADDR | E1000_VT_MSGTYPE_NACK)))
Expand Down

0 comments on commit da45851

Please sign in to comment.