Netdev List
 help / color / mirror / Atom feed
From: Ben Hutchings <bhutchings@solarflare.com>
To: Rasesh Mody <rmody@brocade.com>
Cc: davem@davemloft.net, netdev@vger.kernel.org,
	adapter_linux_open_src_team@brocade.com,
	Gurunatha Karaje <gkaraje@brocade.com>
Subject: Re: [PATCH 06/14] bna: TX Path and RX Path Changes
Date: Tue, 16 Aug 2011 22:45:55 +0100	[thread overview]
Message-ID: <1313531155.2725.61.camel@bwh-desktop> (raw)
In-Reply-To: <1313529591-3718-7-git-send-email-rmody@brocade.com>

On Tue, 2011-08-16 at 14:19 -0700, Rasesh Mody wrote:
> Change details:
>  - Disable and enable interrupts from the same polling context to prevent
>    reordering in Rx path.
>  - Add Rx NAPI debug counters.
>  - Make NAPI budget check more generic
>  - Add a macro bnad_dim_timer_stop for DIM(Dynamic Interrupt Moderation)
>    timer stop
>  - Handle reduced MSI-X vectors case in bnad_enable_msix
>  - Replace existing checks with macros and add more checks for illegal skbs
>    in transmit path. Add more tx_skb counters for dropped skbs.
>  - Check for single frame TSO skbs and send them out as non-TSO.
>  - Put memory barrier after bna_txq_prod_indx_doorbell()
> 
> Signed-off-by: Gurunatha Karaje <gkaraje@brocade.com>
> Signed-off-by: Rasesh Mody <rmody@brocade.com>
> ---
>  drivers/net/ethernet/brocade/bna/bnad.c |  207 +++++++++++++++++--------------
>  drivers/net/ethernet/brocade/bna/bnad.h |   33 +++++-
>  2 files changed, 148 insertions(+), 92 deletions(-)
> 
> diff --git a/drivers/net/ethernet/brocade/bna/bnad.c b/drivers/net/ethernet/brocade/bna/bnad.c
> index 64e2106..0faa8a1 100644
> --- a/drivers/net/ethernet/brocade/bna/bnad.c
> +++ b/drivers/net/ethernet/brocade/bna/bnad.c
> @@ -532,7 +532,7 @@ bnad_poll_cq(struct bnad *bnad, struct bna_ccb *ccb, int budget)
>  		      (flags & BNA_CQ_EF_L4_CKSUM_OK)))
>  			skb->ip_summed = CHECKSUM_UNNECESSARY;
>  		else
> -			skb_checksum_none_assert(skb);
> +			skb->ip_summed = CHECKSUM_NONE;
>  
>  		rcb->rxq->rx_packets++;
>  		rcb->rxq->rx_bytes += skb->len;
[...]

This is reverting part of:

commit bc8acf2c8c3e43fcc192762a9f964b3e9a17748b
Author: Eric Dumazet <eric.dumazet@gmail.com>
Date:   Thu Sep 2 13:07:41 2010 -0700

    drivers/net: avoid some skb->ip_summed initializations

and I don't see any justification for that.

Ben.

-- 
Ben Hutchings, Staff Engineer, Solarflare
Not speaking for my employer; that's the marketing department's job.
They asked us to note that Solarflare product names are trademarked.


  reply	other threads:[~2011-08-16 21:46 UTC|newest]

Thread overview: 26+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-08-16 21:19 [PATCH 00/14] bna: Update bna driver version to 3.0.2.1 Rasesh Mody
2011-08-16 21:19 ` [PATCH 01/14] bna: Naming Change and Minor Macro Fix Rasesh Mody
2011-08-16 21:19 ` [PATCH 02/14] bna: PCI Probe Fix Rasesh Mody
2011-08-16 21:19 ` [PATCH 03/14] bna: Interrupt Polling and NAPI Init Changes Rasesh Mody
2011-08-16 21:19 ` [PATCH 04/14] bna: Add Multiple Tx Queue Support Rasesh Mody
2011-08-16 21:48   ` Ben Hutchings
2011-08-16 23:32     ` Rasesh Mody
2011-08-16 23:43       ` Ben Hutchings
2011-08-17  0:17         ` John Fastabend
2011-08-17  2:14           ` Rasesh Mody
2011-08-17  5:47             ` John Fastabend
2011-08-17 21:24               ` Rasesh Mody
2011-08-16 21:19 ` [PATCH 05/14] bna: SKB Check and Drop Macros Rasesh Mody
2011-08-16 21:19 ` [PATCH 06/14] bna: TX Path and RX Path Changes Rasesh Mody
2011-08-16 21:45   ` Ben Hutchings [this message]
2011-08-16 23:28     ` Rasesh Mody
2011-08-16 21:19 ` [PATCH 07/14] bna: Formatting and Code Cleanup Rasesh Mody
2011-08-16 21:19 ` [PATCH 08/14] bna: Initialization and Locking Fix Rasesh Mody
2011-08-16 21:19 ` [PATCH 09/14] bna: Ethtool Enhancements and Fix Rasesh Mody
2011-08-16 21:43   ` Ben Hutchings
2011-08-16 23:26     ` Rasesh Mody
2011-08-16 21:19 ` [PATCH 10/14] bna: Async Mode Tx Rx Init Fix Rasesh Mody
2011-08-16 21:19 ` [PATCH 11/14] bna: MBOX IRQ Flag Check after Locking Rasesh Mody
2011-08-16 21:19 ` [PATCH 12/14] bna: Queue Depth and SKB Unmap Array Fix Rasesh Mody
2011-08-16 21:19 ` [PATCH 13/14] bna: SKB PCI UNMAP Fix Rasesh Mody
2011-08-16 21:19 ` [PATCH 14/14] bna: Driver Version changed to 3.0.2.1 Rasesh Mody

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1313531155.2725.61.camel@bwh-desktop \
    --to=bhutchings@solarflare.com \
    --cc=adapter_linux_open_src_team@brocade.com \
    --cc=davem@davemloft.net \
    --cc=gkaraje@brocade.com \
    --cc=netdev@vger.kernel.org \
    --cc=rmody@brocade.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox