]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
infiniband: Convert BPF handling for IfAPI
authorJustin Hibbits <jhibbits@FreeBSD.org>
Thu, 9 Feb 2023 02:32:47 +0000 (21:32 -0500)
committerJustin Hibbits <jhibbits@FreeBSD.org>
Tue, 14 Mar 2023 19:51:32 +0000 (15:51 -0400)
commitadf62e83631571e74caf3d78ddb091870b9d6ecf
tree202adf2c1ee4230e0a2e583c65fb5dcc335d1fbd
parent19aba210e1a1b5999bff10cccab5a277060c4d46
infiniband: Convert BPF handling for IfAPI

Summary:
All callers of infiniband_bpf_mtap() call it through the wrapper macro,
which checks the if_bpf member explicitly.  Since this is getting
hidden, move this check into the internal function and remove the
wrapper macro.

Reviewed by: hselasky
Sponsored by: Juniper Networks, Inc.
Differential Revision: https://reviews.freebsd.org/D39024
sys/net/if_infiniband.c
sys/net/if_lagg.c
sys/net/infiniband.h
sys/ofed/drivers/infiniband/ulp/ipoib/ipoib_main.c