mirror of https://gitee.com/openkylin/linux.git
sfc: falcon: don't score irq moderation points for GRO
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>
This commit is contained in:
parent
5e040d4b1a
commit
6727013694
|
@ -424,7 +424,6 @@ ef4_rx_packet_gro(struct ef4_channel *channel, struct ef4_rx_buffer *rx_buf,
|
||||||
unsigned int n_frags, u8 *eh)
|
unsigned int n_frags, u8 *eh)
|
||||||
{
|
{
|
||||||
struct napi_struct *napi = &channel->napi_str;
|
struct napi_struct *napi = &channel->napi_str;
|
||||||
gro_result_t gro_result;
|
|
||||||
struct ef4_nic *efx = channel->efx;
|
struct ef4_nic *efx = channel->efx;
|
||||||
struct sk_buff *skb;
|
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);
|
skb_record_rx_queue(skb, channel->rx_queue.core_index);
|
||||||
|
|
||||||
gro_result = napi_gro_frags(napi);
|
napi_gro_frags(napi);
|
||||||
if (gro_result != GRO_DROP)
|
|
||||||
channel->irq_mod_score += 2;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Allocate and construct an SKB around page fragments */
|
/* Allocate and construct an SKB around page fragments */
|
||||||
|
|
Loading…
Reference in New Issue