diff options
author | Alexander Duyck <alexander.h.duyck@redhat.com> | 2015-02-25 12:45:54 -0500 |
---|---|---|
committer | Jeff Kirsher <jeffrey.t.kirsher@intel.com> | 2015-03-13 18:41:01 -0400 |
commit | 856f606ea9756d1222bbd137641024e29d9d6b43 (patch) | |
tree | 221b370ee6fd2e8c09a6d4142f26ef27998f04f9 | |
parent | 887012e80aeaf36968456e8085abf41aee907707 (diff) |
ixgbe: Remove IXGBE_FLAG_IN_NETPOLL since it doesn't do anything
This patch removes some dead code from the cleanup path for ixgbe.
Setting and clearing the flag doesn't do anything since all we are
doing is setting the flag, scheduling NAPI, clearing the flag and
then letting netpoll do the polling cleanup. As such it doesn't
make much sense to have it there.
This patch also removes one minor white-space error.
CC: <kernel-team@fb.com>
Signed-off-by: Alexander Duyck <alexander.h.duyck@redhat.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
-rw-r--r-- | drivers/net/ethernet/intel/ixgbe/ixgbe.h | 1 | ||||
-rw-r--r-- | drivers/net/ethernet/intel/ixgbe/ixgbe_main.c | 18 |
2 files changed, 4 insertions, 15 deletions
diff --git a/drivers/net/ethernet/intel/ixgbe/ixgbe.h b/drivers/net/ethernet/intel/ixgbe/ixgbe.h index 7dcbbec09a70..7068e9c3691d 100644 --- a/drivers/net/ethernet/intel/ixgbe/ixgbe.h +++ b/drivers/net/ethernet/intel/ixgbe/ixgbe.h | |||
@@ -613,7 +613,6 @@ struct ixgbe_adapter { | |||
613 | #define IXGBE_FLAG_RX_1BUF_CAPABLE (u32)(1 << 4) | 613 | #define IXGBE_FLAG_RX_1BUF_CAPABLE (u32)(1 << 4) |
614 | #define IXGBE_FLAG_RX_PS_CAPABLE (u32)(1 << 5) | 614 | #define IXGBE_FLAG_RX_PS_CAPABLE (u32)(1 << 5) |
615 | #define IXGBE_FLAG_RX_PS_ENABLED (u32)(1 << 6) | 615 | #define IXGBE_FLAG_RX_PS_ENABLED (u32)(1 << 6) |
616 | #define IXGBE_FLAG_IN_NETPOLL (u32)(1 << 7) | ||
617 | #define IXGBE_FLAG_DCA_ENABLED (u32)(1 << 8) | 616 | #define IXGBE_FLAG_DCA_ENABLED (u32)(1 << 8) |
618 | #define IXGBE_FLAG_DCA_CAPABLE (u32)(1 << 9) | 617 | #define IXGBE_FLAG_DCA_CAPABLE (u32)(1 << 9) |
619 | #define IXGBE_FLAG_IMIR_ENABLED (u32)(1 << 10) | 618 | #define IXGBE_FLAG_IMIR_ENABLED (u32)(1 << 10) |
diff --git a/drivers/net/ethernet/intel/ixgbe/ixgbe_main.c b/drivers/net/ethernet/intel/ixgbe/ixgbe_main.c index 581015b03175..395dc6bb5d82 100644 --- a/drivers/net/ethernet/intel/ixgbe/ixgbe_main.c +++ b/drivers/net/ethernet/intel/ixgbe/ixgbe_main.c | |||
@@ -1619,14 +1619,10 @@ static void ixgbe_process_skb_fields(struct ixgbe_ring *rx_ring, | |||
1619 | static void ixgbe_rx_skb(struct ixgbe_q_vector *q_vector, | 1619 | static void ixgbe_rx_skb(struct ixgbe_q_vector *q_vector, |
1620 | struct sk_buff *skb) | 1620 | struct sk_buff *skb) |
1621 | { | 1621 | { |
1622 | struct ixgbe_adapter *adapter = q_vector->adapter; | ||
1623 | |||
1624 | if (ixgbe_qv_busy_polling(q_vector)) | 1622 | if (ixgbe_qv_busy_polling(q_vector)) |
1625 | netif_receive_skb(skb); | 1623 | netif_receive_skb(skb); |
1626 | else if (!(adapter->flags & IXGBE_FLAG_IN_NETPOLL)) | ||
1627 | napi_gro_receive(&q_vector->napi, skb); | ||
1628 | else | 1624 | else |
1629 | netif_rx(skb); | 1625 | napi_gro_receive(&q_vector->napi, skb); |
1630 | } | 1626 | } |
1631 | 1627 | ||
1632 | /** | 1628 | /** |
@@ -6172,7 +6168,6 @@ static void ixgbe_check_hang_subtask(struct ixgbe_adapter *adapter) | |||
6172 | 6168 | ||
6173 | /* Cause software interrupt to ensure rings are cleaned */ | 6169 | /* Cause software interrupt to ensure rings are cleaned */ |
6174 | ixgbe_irq_rearm_queues(adapter, eics); | 6170 | ixgbe_irq_rearm_queues(adapter, eics); |
6175 | |||
6176 | } | 6171 | } |
6177 | 6172 | ||
6178 | /** | 6173 | /** |
@@ -7505,14 +7500,9 @@ static void ixgbe_netpoll(struct net_device *netdev) | |||
7505 | if (test_bit(__IXGBE_DOWN, &adapter->state)) | 7500 | if (test_bit(__IXGBE_DOWN, &adapter->state)) |
7506 | return; | 7501 | return; |
7507 | 7502 | ||
7508 | adapter->flags |= IXGBE_FLAG_IN_NETPOLL; | 7503 | /* loop through and schedule all active queues */ |
7509 | if (adapter->flags & IXGBE_FLAG_MSIX_ENABLED) { | 7504 | for (i = 0; i < adapter->num_q_vectors; i++) |
7510 | for (i = 0; i < adapter->num_q_vectors; i++) | 7505 | ixgbe_msix_clean_rings(0, adapter->q_vector[i]); |
7511 | ixgbe_msix_clean_rings(0, adapter->q_vector[i]); | ||
7512 | } else { | ||
7513 | ixgbe_intr(adapter->pdev->irq, netdev); | ||
7514 | } | ||
7515 | adapter->flags &= ~IXGBE_FLAG_IN_NETPOLL; | ||
7516 | } | 7506 | } |
7517 | 7507 | ||
7518 | #endif | 7508 | #endif |