kernel-hacking-2024-linux-s.../arch/powerpc
Michal Sekletar ea02f9411d net: introduce SO_BPF_EXTENSIONS
For user space packet capturing libraries such as libpcap, there's
currently only one way to check which BPF extensions are supported
by the kernel, that is, commit aa1113d9f8 ("net: filter: return
-EINVAL if BPF_S_ANC* operation is not supported"). For querying all
extensions at once this might be rather inconvenient.

Therefore, this patch introduces a new option which can be used as
an argument for getsockopt(), and allows one to obtain information
about which BPF extensions are supported by the current kernel.

As David Miller suggests, we do not need to define any bits right
now and status quo can just return 0 in order to state that this
versions supports SKF_AD_PROTOCOL up to SKF_AD_PAY_OFFSET. Later
additions to BPF extensions need to add their bits to the
bpf_tell_extensions() function, as documented in the comment.

Signed-off-by: Michal Sekletar <msekleta@redhat.com>
Cc: David Miller <davem@davemloft.net>
Reviewed-by: Daniel Borkmann <dborkman@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2014-01-18 19:08:58 -08:00
..
boot powerpc/512x: dts: disable MPC5125 usb module 2013-12-20 22:12:07 +01:00
configs powerpc/52xx: Re-enable bestcomm driver in defconfigs 2013-12-10 11:25:08 +11:00
crypto
include net: introduce SO_BPF_EXTENSIONS 2014-01-18 19:08:58 -08:00
kernel Merge branch 'merge' of git://git.kernel.org/pub/scm/linux/kernel/git/benh/powerpc 2014-01-13 10:59:05 +07:00
kvm KVM: PPC: Book3S HV: Don't drop low-order page address bits 2013-12-18 11:30:35 +01:00
lib powerpc: Make 64-bit non-VMX __copy_tofrom_user bi-endian 2013-12-30 14:02:30 +11:00
math-emu
mm powerpc/booke: Only check for hugetlb in flush if vma != NULL 2013-11-22 16:57:29 -06:00
net bpf: do not use reciprocal divide 2014-01-15 17:02:08 -08:00
oprofile
perf
platforms powernv/eeh: Add buffer for P7IOC hub error data 2013-12-30 14:02:32 +11:00
sysdev powerpc/44x: Fix ocm_block allocation 2013-12-10 11:25:04 +11:00
xmon
Kconfig Kconfig cleanups for v3.13 2013-11-15 14:05:15 -08:00
Kconfig.debug
Makefile powerpc: Fix error when cross building TAGS & cscope 2013-11-25 11:49:11 +11:00
relocs_check.pl