> 2020/08/06 1:38、David Ahern <dsahern@xxxxxxxxx>のメール: > > On 8/4/20 5:27 AM, Yoshiki Komachi wrote: >> >> I guess that no build errors will occur because the API is allowed when >> CONFIG_BRIDGE is enabled. >> >> I successfully build my kernel applying this patch, and I don’t receive any >> messages from build robots for now. > > If CONFIG_BRIDGE is a module, build should fail: filter.c is built-in > trying to access a symbol from module. When I tried building my kernel with CONFIG_BRIDGE set as a module, I got the following error as you pointed out: ld: net/core/filter.o: in function `____bpf_xdp_fdb_lookup': /root/bpf-next/net/core/filter.c:5108: undefined reference to `br_fdb_find_port_xdp' It may be necessary to fix it to support kernels built with CONFIG_BRIDGE set as a mfodule, so let me make sure if it should be called via netdev ops to get destination port in a bridge again. Thanks & Best regards, — Yoshiki Komachi komachi.yoshiki@xxxxxxxxx