[Oisf-devel] Linux af-packet::mmap enhancement

Victor Julien victor at inliniac.net
Mon Jun 27 07:12:40 UTC 2011


On 06/26/2011 06:39 PM, chetan loke wrote:
> We should introduce a new function called 'steer_packets' which will
> implement the
> above 'hash+load_balance' steering logic. rx_hash field could be null
> for receiver's who don't yet
> export rx_hash in the packet descriptor. So if the rx_hash field is
> null then it should
> operate in current mode. This also implies struct Packet should
> introduce a new field
> called rx_hash.

A side note on passing on this hash value from the kernel. We could
probably use it to prevent calculating a flow hash value for each
packet. That would save us some cycles.

-- 
---------------------------------------------
Victor Julien
http://www.inliniac.net/
PGP: http://www.inliniac.net/victorjulien.asc
---------------------------------------------




More information about the Oisf-devel mailing list