Skip to contentSkip to conversation

Question on bulk dequeue support in virtual drivers

DISCUSSION James Yonan 2 participants 2 messages Nov 20, 2014

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

Consider a tunneling driver that receives packets in ndo_start_xmit, encapsulates them in UDP, and forwards via ip_local_out. The ndo_start_xmit implementation can implement bulking by looking at skb->xmit_more. But then how to efficiently transmit the resulting bulked list of encapsulated packets via UDP, so that the packets both enter and leave the driver in bulked form? Is there an ip_local_out alternative for bulked skb lists?

James

#1 lore raw
Quoted 7 lines · James Yonan

Consider a tunneling driver that receives packets in ndo_start_xmit, encapsulates them in UDP, and forwards via ip_local_out. The ndo_start_xmit implementation can implement bulking by looking at skb->xmit_more. But then how to efficiently transmit the resulting bulked list of encapsulated packets via UDP, so that the packets both enter and leave the driver in bulked form? Is there an ip_local_out alternative for bulked skb lists?

There is no such thing. Quite frankly it wont happen. Consider IP stacks and netfilter, there is no provision for batches (other than GSO/TSO)

xmit_more addresses a specific hardware problem, it is not an alternative for batches.

xmit_more will happen in your case in the last step, from qdisc to ethernet device.