Hello,

I am working on XDP_REDIRECT implementation and got a query. Some of the 
ethernet drivers decide the xdp queue index on which xdp packet should be 
redirected based
on smp_processor_id() in their ndo_xdp_xmit() handler, if smp_processor_id() >= 
total_num_xdp_queues, they decide to drop the packets and return error from the 
handler.
I am hitting the same condition where using 8 XDP queues, I get CPU id 8 to 
redirect the XDP packet and I am not sure if it should be dropped or can be 
transmitted on a
queue (= smp_processor_id() % total_num_xdp_queues) safely ?.

freescale/dpaa2 seems to be handling this case by sending the packet on the 
queue (= smp_processor_id() % total_num_xdp_queues) but unsure what should be 
the expected behavior. 

Regards,
Manish Chopra.

Reply via email to