will 2 cpu simultaneously process packets which have same hash value on multiqueue nic?
let 's take broadcom 57711 bnx2x_main.c as an example:
will cpu1 and cpu2 execute the function " bnx2x_rx_int" in parallel, to receive packet1 & packet2
or it just depend on smp_affinity setting?
I am scratching my head to understand both the question and your
if cpu1 is handling an interrupt, cpu2 cannot handle an interrupt at the
same time for same queue. It must be for a different queue.
Therefore, packets will be handled in parallel.
Serialization might be done later, at socket layer to queue packets in a
receive queue for example, if both packets must be delivered on same
I was trying to say that since both packets are handled on the same
queue - it is handled one after the other and not by two different CPUs
What do you mean "in parallel"? As you wrote above, only one cpu is
handling the packets from that queue, and since the hash is the same,
Though this is always true, the case of receiving packets on the same
queue is even simpler, is not it?