On Thu, Aug 16, 2018 at 11:34:20AM +0800, Jason Wang wrote:
not following. why do you need a loop to implement macvlan as an xdp prog?Nothing about the topology is hard coded. The idea is to mimic aI may miss something but BPF forbids loop. Without a loop how can we make
hardware pipeline and acknowledging that a port device can have an
arbitrary layers stacked on it - multiple vlan devices, bonds, macvlans, etc
sure all stacked devices is enumerated correctly without knowing the
topology in advance?
if loop is needed, such algorithm is not going to scale whether
it's implemented as bpf program or as in-kernel c code.