sfc: falcon: don't score irq moderation points for GRO
authorEdward Cree <ecree@solarflare.com>
Tue, 6 Aug 2019 13:53:31 +0000 (14:53 +0100)
committerDavid S. Miller <davem@davemloft.net>
Fri, 9 Aug 2019 01:22:29 +0000 (18:22 -0700)
Same rationale as for sfc, except that this wasn't performance-tested.

Signed-off-by: Edward Cree <ecree@solarflare.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/sfc/falcon/rx.c

index fd850d3d8ec00456eaffd878213998c458448543..05ea3523890a9347ad30cbf3d50a0bba92316ad4 100644 (file)
@@ -424,7 +424,6 @@ ef4_rx_packet_gro(struct ef4_channel *channel, struct ef4_rx_buffer *rx_buf,
                  unsigned int n_frags, u8 *eh)
 {
        struct napi_struct *napi = &channel->napi_str;
-       gro_result_t gro_result;
        struct ef4_nic *efx = channel->efx;
        struct sk_buff *skb;
 
@@ -460,9 +459,7 @@ ef4_rx_packet_gro(struct ef4_channel *channel, struct ef4_rx_buffer *rx_buf,
 
        skb_record_rx_queue(skb, channel->rx_queue.core_index);
 
-       gro_result = napi_gro_frags(napi);
-       if (gro_result != GRO_DROP)
-               channel->irq_mod_score += 2;
+       napi_gro_frags(napi);
 }
 
 /* Allocate and construct an SKB around page fragments */