Netdev List
 help / color / mirror / Atom feed
From: Ben Hutchings <bhutchings@solarflare.com>
To: Tom Herbert <therbert@google.com>
Cc: David Miller <davem@davemloft.net>,
	Linux Netdev List <netdev@vger.kernel.org>
Subject: Re: [PATCH 15/17] net: sfc calls skb_get_rxhash
Date: Wed, 27 Nov 2013 00:05:23 +0000	[thread overview]
Message-ID: <1385510723.1586.68.camel@bwh-desktop.uk.level5networks.com> (raw)
In-Reply-To: <CA+mtBx83jRc6c2W7pCNHmbWqLdrjnhPQaq8UUOV1HqyxbHeGig@mail.gmail.com>

On Tue, 2013-11-26 at 15:35 -0800, Tom Herbert wrote:
> On Tue, Nov 26, 2013 at 11:59 AM, Ben Hutchings
> <bhutchings@solarflare.com> wrote:
> > On Mon, 2013-11-25 at 21:57 -0800, Tom Herbert wrote:
> >> Drivers should call skb_get_rxhash to set the rxhash and its type
> >> in an skbuff.
> >>
> >> Signed-off-by: Tom Herbert <therbert@google.com>
> >> ---
> >>  drivers/net/ethernet/sfc/rx.c | 3 ++-
> >>  1 file changed, 2 insertions(+), 1 deletion(-)
> >>
> >> diff --git a/drivers/net/ethernet/sfc/rx.c b/drivers/net/ethernet/sfc/rx.c
> >> index 8f09e68..b51466e 100644
> >> --- a/drivers/net/ethernet/sfc/rx.c
> >> +++ b/drivers/net/ethernet/sfc/rx.c
> >> @@ -439,7 +439,8 @@ efx_rx_packet_gro(struct efx_channel *channel, struct efx_rx_buffer *rx_buf,
> >>       }
> >>
> >>       if (efx->net_dev->features & NETIF_F_RXHASH)
> >> -             skb->rxhash = efx_rx_buf_hash(efx, eh);
> >> +             skb_set_rxhash(skb, efx_rx_buf_hash(efx, eh),
> >> +                            RXHASH_TYPE_L3);
> >
> > This is equivalent to what we do now.  But efx_rx_packet_gro() is only
> > ever called for TCP packets (checked in __efx_rx_packet()) and their
> > hashes include port numbers, so the hash type could be RXHASH_TYPE_L4.
> >
> It would be great for sfc (and more drivers) to provide L4 hash. I
> think we should fix the API first and then fix drivers to return L4.

OK, so:

Acked-by: Ben Hutchings <bhutchings@solarflare.com>

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:[~2013-11-27  0:05 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-11-26  5:57 [PATCH 15/17] net: sfc calls skb_get_rxhash Tom Herbert
2013-11-26 19:59 ` Ben Hutchings
2013-11-26 23:35   ` Tom Herbert
2013-11-27  0:05     ` Ben Hutchings [this message]

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=1385510723.1586.68.camel@bwh-desktop.uk.level5networks.com \
    --to=bhutchings@solarflare.com \
    --cc=davem@davemloft.net \
    --cc=netdev@vger.kernel.org \
    --cc=therbert@google.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