Commit Message

The 3rd patch is totally example on ixgbe driver. Pls. doesn't apply
it. It's just for a demo.
﻿
NIC driver could use this capability like below steps:
1) Call ﻿alloc_etherdev_rxtx_mq when probe the NIC to initiate;
In NAPI RX cleanup function:
2) Initiate a local var struct sk_buff_head skb_head;
3) get the cpu number by calling netif_rx_processing_cpu;
4) In the packet collection loop, just calls __skb_queue_tail(skb_head, skb)
to add skb to the list;
5) Before exiting, calls raise_netif_irq to submit the skb list to the specific cpu.
We can add another step after 3) to check input_pkt_alien_queue.qlen. If qlen is
bigger than ﻿netdev_max_backlog, exit the function instead of collecting packets,
so NIC hardware could drop packets. It's better than dropping packets by ﻿software.
Below _SAMPLE_ patch (has some garbage codes) is against the latest IXGBE driver.
---
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html