Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 340733
b: refs/heads/master
c: 366c109
h: refs/heads/master
i:
  340731: 969be1d
v: v3
  • Loading branch information
Greg Rose authored and David S. Miller committed Nov 13, 2012
1 parent 5a9560a commit e0d5edf
Show file tree
Hide file tree
Showing 3 changed files with 8 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: a5f9337bdc45bb8c13037bdb70d16fd9017bb83a
refs/heads/master: 366c1099123a0084cda581bee632911822748c61
1 change: 1 addition & 0 deletions trunk/drivers/net/ethernet/intel/ixgbevf/ixgbevf.h
Original file line number Diff line number Diff line change
Expand Up @@ -229,6 +229,7 @@ struct ixgbevf_adapter {
*/
u32 flags;
#define IXGBE_FLAG_IN_WATCHDOG_TASK (u32)(1)
#define IXGBE_FLAG_IN_NETPOLL (u32)(1 << 1)

/* OS defined structs */
struct net_device *netdev;
Expand Down
7 changes: 6 additions & 1 deletion trunk/drivers/net/ethernet/intel/ixgbevf/ixgbevf_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -288,7 +288,10 @@ static void ixgbevf_receive_skb(struct ixgbevf_q_vector *q_vector,
if (is_vlan && test_bit(tag & VLAN_VID_MASK, adapter->active_vlans))
__vlan_hwaccel_put_tag(skb, tag);

napi_gro_receive(&q_vector->napi, skb);
if (!(adapter->flags & IXGBE_FLAG_IN_NETPOLL))
napi_gro_receive(&q_vector->napi, skb);
else
netif_rx(skb);
}

/**
Expand Down Expand Up @@ -550,9 +553,11 @@ static int ixgbevf_poll(struct napi_struct *napi, int budget)
else
per_ring_budget = budget;

adapter->flags |= IXGBE_FLAG_IN_NETPOLL;
ixgbevf_for_each_ring(ring, q_vector->rx)
clean_complete &= ixgbevf_clean_rx_irq(q_vector, ring,
per_ring_budget);
adapter->flags &= ~IXGBE_FLAG_IN_NETPOLL;

/* If all work not completed, return budget and keep polling */
if (!clean_complete)
Expand Down

0 comments on commit e0d5edf

Please sign in to comment.