aboutsummaryrefslogtreecommitdiff
path: root/sys/dev/hyperv
diff options
context:
space:
mode:
authorJustin Hibbits <jhibbits@FreeBSD.org>2023-10-13 18:29:02 +0000
committerJustin Hibbits <jhibbits@FreeBSD.org>2023-10-13 18:33:31 +0000
commit5e444deec055c495069988dfcba23a1e08b0f0d0 (patch)
treec737226161b1525d59a2a4e740796b0277bd861d /sys/dev/hyperv
parent74e4a8d208f0b3cf2525e3786f3efba71fcdb752 (diff)
Revert "bpf: Add IfAPI analogue for bpf_peers_present()"
This reverts commit c81dd8e5fe72d0c7ec055c8621bb2da3a3627abf. Commit message needs revised.
Diffstat (limited to 'sys/dev/hyperv')
-rw-r--r--sys/dev/hyperv/netvsc/if_hn.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/hyperv/netvsc/if_hn.c b/sys/dev/hyperv/netvsc/if_hn.c
index f6f885873a79..7d8e1914163e 100644
--- a/sys/dev/hyperv/netvsc/if_hn.c
+++ b/sys/dev/hyperv/netvsc/if_hn.c
@@ -3262,7 +3262,7 @@ hn_txpkt(if_t ifp, struct hn_tx_ring *txr, struct hn_txdesc *txd)
int error, send_failed = 0, has_bpf;
again:
- has_bpf = bpf_peers_present_if(ifp);
+ has_bpf = bpf_peers_present(if_getbpf(ifp));
if (has_bpf) {
/*
* Make sure that this txd and any aggregated txds are not
@@ -5972,7 +5972,7 @@ hn_transmit(if_t ifp, struct mbuf *m)
omcast = (m->m_flags & M_MCAST) != 0;
if (sc->hn_xvf_flags & HN_XVFFLAG_ACCBPF) {
- if (bpf_peers_present_if(ifp)) {
+ if (bpf_peers_present(if_getbpf(ifp))) {
m_bpf = m_copypacket(m, M_NOWAIT);
if (m_bpf == NULL) {
/*