[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <4E12B5A6.2020802@inliniac.net>
Date: Tue, 05 Jul 2011 08:56:38 +0200
From: Victor Julien <victor@...iniac.net>
To: Eric Dumazet <eric.dumazet@...il.com>
CC: David Miller <davem@...emloft.net>, netdev@...r.kernel.org
Subject: Re: [PATCH 2/2] packet: Add fanout support.
On 07/05/2011 08:21 AM, Eric Dumazet wrote:
> Le lundi 04 juillet 2011 à 21:20 -0700, David Miller a écrit :
>> Fanouts allow packet capturing to be demuxed to a set of AF_PACKET
>> sockets. Two fanout policies are implemented:
>>
>> 1) Hashing based upon skb->rxhash
>
> ...
>
>> +
>> +static struct sock *fanout_demux_hash(struct packet_fanout *f, struct sk_buff *skb)
>> +{
>> + u32 idx, hash = skb->rxhash;
>> +
>> + idx = ((u64)hash * f->num_members) >> 32;
>> +
>> + return f->arr[idx];
>> +}
>> +
>
> rxhash is 0 unless skb_get_rxhash() was called, or some NIC set it in RX
> path.
>
Is this still also true for IP fragments?
--
---------------------------------------------
Victor Julien
http://www.inliniac.net/
PGP: http://www.inliniac.net/victorjulien.asc
---------------------------------------------
--
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