lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <CA+mtBx83jRc6c2W7pCNHmbWqLdrjnhPQaq8UUOV1HqyxbHeGig@mail.gmail.com>
Date:	Tue, 26 Nov 2013 15:35:31 -0800
From:	Tom Herbert <therbert@...gle.com>
To:	Ben Hutchings <bhutchings@...arflare.com>
Cc:	David Miller <davem@...emloft.net>,
	Linux Netdev List <netdev@...r.kernel.org>
Subject: Re: [PATCH 15/17] net: sfc calls skb_get_rxhash

On Tue, Nov 26, 2013 at 11:59 AM, Ben Hutchings
<bhutchings@...arflare.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@...gle.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.

Thanks,
Tom

> Ben.
>
>>       skb->ip_summed = ((rx_buf->flags & EFX_RX_PKT_CSUMMED) ?
>>                         CHECKSUM_UNNECESSARY : CHECKSUM_NONE);
>>
>
> --
> 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.
>
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ