Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 225391
b: refs/heads/master
c: 8fa7e0f
h: refs/heads/master
i:
  225389: 704e438
  225387: abaa854
  225383: 1d28b30
  225375: 1180e98
v: v3
  • Loading branch information
Greg Rose authored and Jeff Kirsher committed Dec 25, 2010
1 parent f9195cd commit a276991
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 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: b1cdfead0e532d7614b5d5b97044df94cc8945ae
refs/heads/master: 8fa7e0f739b70db14e788efba4960bfc1873d550
8 changes: 4 additions & 4 deletions trunk/drivers/net/igb/igb_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -1654,7 +1654,7 @@ void igb_reset(struct igb_adapter *adapter)
if (adapter->vfs_allocated_count) {
int i;
for (i = 0 ; i < adapter->vfs_allocated_count; i++)
adapter->vf_data[i].flags = 0;
adapter->vf_data[i].flags &= IGB_VF_FLAG_PF_SET_MAC;

/* ping all the active vfs to let them know we are going down */
igb_ping_all_vfs(adapter);
Expand Down Expand Up @@ -4971,8 +4971,8 @@ static int igb_set_vf_vlan(struct igb_adapter *adapter, u32 *msgbuf, u32 vf)

static inline void igb_vf_reset(struct igb_adapter *adapter, u32 vf)
{
/* clear flags */
adapter->vf_data[vf].flags &= ~(IGB_VF_FLAG_PF_SET_MAC);
/* clear flags - except flag that indicates PF has set the MAC */
adapter->vf_data[vf].flags &= IGB_VF_FLAG_PF_SET_MAC;
adapter->vf_data[vf].last_nack = jiffies;

/* reset offloads to defaults */
Expand Down Expand Up @@ -5026,7 +5026,7 @@ static void igb_vf_reset_msg(struct igb_adapter *adapter, u32 vf)
reg = rd32(E1000_VFRE);
wr32(E1000_VFRE, reg | (1 << vf));

adapter->vf_data[vf].flags = IGB_VF_FLAG_CTS;
adapter->vf_data[vf].flags |= IGB_VF_FLAG_CTS;

/* reply to reset with ack and vf mac address */
msgbuf[0] = E1000_VF_RESET | E1000_VT_MSGTYPE_ACK;
Expand Down

0 comments on commit a276991

Please sign in to comment.