diff options
author | Ben Hutchings <bhutchings@solarflare.com> | 2009-11-23 11:02:40 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2009-11-24 13:58:33 -0500 |
commit | 3eadb7b0ec39d7ee45804d691c96fa2fbc3745ee (patch) | |
tree | d7ca8e9b65da4829fd62010a5baeb8dc84ae766a /drivers/net/sfc/rx.c | |
parent | 1241e951af060c16cd851a83a045ca3a80288383 (diff) |
sfc: Record RX queue number on GRO path
Signed-off-by: Ben Hutchings <bhutchings@solarflare.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/sfc/rx.c')
-rw-r--r-- | drivers/net/sfc/rx.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/drivers/net/sfc/rx.c b/drivers/net/sfc/rx.c index 9e33391db355..9f22d15d3d50 100644 --- a/drivers/net/sfc/rx.c +++ b/drivers/net/sfc/rx.c | |||
@@ -473,6 +473,8 @@ static void efx_rx_packet_lro(struct efx_channel *channel, | |||
473 | skb->ip_summed = | 473 | skb->ip_summed = |
474 | checksummed ? CHECKSUM_UNNECESSARY : CHECKSUM_NONE; | 474 | checksummed ? CHECKSUM_UNNECESSARY : CHECKSUM_NONE; |
475 | 475 | ||
476 | skb_record_rx_queue(skb, channel->channel); | ||
477 | |||
476 | gro_result = napi_gro_frags(napi); | 478 | gro_result = napi_gro_frags(napi); |
477 | } else { | 479 | } else { |
478 | struct sk_buff *skb = rx_buf->skb; | 480 | struct sk_buff *skb = rx_buf->skb; |
@@ -578,6 +580,8 @@ void __efx_rx_packet(struct efx_channel *channel, | |||
578 | * at the ethernet header */ | 580 | * at the ethernet header */ |
579 | rx_buf->skb->protocol = eth_type_trans(rx_buf->skb, | 581 | rx_buf->skb->protocol = eth_type_trans(rx_buf->skb, |
580 | efx->net_dev); | 582 | efx->net_dev); |
583 | |||
584 | skb_record_rx_queue(rx_buf->skb, channel->channel); | ||
581 | } | 585 | } |
582 | 586 | ||
583 | if (likely(checksummed || rx_buf->page)) { | 587 | if (likely(checksummed || rx_buf->page)) { |
@@ -593,8 +597,6 @@ void __efx_rx_packet(struct efx_channel *channel, | |||
593 | /* Set the SKB flags */ | 597 | /* Set the SKB flags */ |
594 | skb->ip_summed = CHECKSUM_NONE; | 598 | skb->ip_summed = CHECKSUM_NONE; |
595 | 599 | ||
596 | skb_record_rx_queue(skb, channel->channel); | ||
597 | |||
598 | /* Pass the packet up */ | 600 | /* Pass the packet up */ |
599 | netif_receive_skb(skb); | 601 | netif_receive_skb(skb); |
600 | 602 | ||