On Wed, 20 Feb 2019 08:45:21 -0800, Иван Иванов wrote: > I created prog_map in my kern.o and call bpf_tail_call to it. Loaded with ip > link set... Loaded another prog with bpftool. So tried to update map with > bpftool woth id of my second progbut it does not work. Can i use tail calls > only like in sockx3, where all progs are in the same file? If not, can you > give some examples? > And can i use tail_calls not with sock_buff but with xdp_md context?
Do you pin the tail call map? If tail call map is not kept open or pinned it will get flushed by the kernel (latest bpftool will print a warning about it). sockex3 keeps the fd open, that's why it works. When using bpftool you probably want to pin the map in bpffs. -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#1581): https://lists.iovisor.org/g/iovisor-dev/message/1581 Mute This Topic: https://lists.iovisor.org/mt/29942134/21656 Group Owner: iovisor-dev+ow...@lists.iovisor.org Unsubscribe: https://lists.iovisor.org/g/iovisor-dev/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-