libxdp: Error attaching XDP program to ifindex 13: Out of memory
calvin2021y opened this issue · comments
xdp-filter load ens1f1v3 -f tcp -v
Current rlimit 16859971584 already >= minimum 1048576
Couldn't open pin directory /sys/fs/bpf/xdp-filter/programs/ens1f1v3: No such file or directory
Looking for eBPF program with features tcp,allow
Found prog 'xdpfilt_alw_tcp.o' matching feature set to be loaded on interface 'ens1f1v3'.
libxdp: Error attaching XDP program to ifindex 13: Out of memory
Couldn't attach XDP program on iface 'ens1f1v3': Out of memory(-12)
kernel is 6.1.27, NIC is BCM57416
This looks like it's a driver error. AFAICT there should be an
accompanying warning in dmesg?
sorry for late replay:
[2262123.636152] BPF: [95420] FUNC
[2262123.636220] BPF: type_id=95452
[2262123.636273] BPF:
[2262123.636320] BPF: Invalid name
[2262123.636372] BPF:
[2262123.636421] failed to validate module [ib_core] BTF: -22
[2262318.585778] bnxt_en 0000:03:03.3 ens1f1v3: Unable to reserve enough TX rings to support XDP.
[2262482.910462] bnxt_en 0000:03:03.3 ens1f1v3: Unable to reserve enough TX rings to support XDP.
[2262546.603495] bnxt_en 0000:03:03.3 ens1f1v3: Unable to reserve enough TX rings to support XDP.
[2262623.720131] bnxt_en 0000:03:03.3 ens1f1v3: Unable to reserve enough TX rings to support XDP.
[2616143.961714] bnxt_en 0000:03:03.2 ens1f1v2: Unable to reserve enough TX rings to support XDP.
Yup, definitely a driver configuration issue! Think you may have to mess around with the "channels" configuration in ethtool? It's not a bug in xdp-tools at least, so closing this issue :)