if_atsam: Support transmit bpf

Update #4651.
This commit is contained in:
Sebastian Huber 2022-05-11 08:26:59 +02:00
parent 2a174be01e
commit c1b15c7558

View File

@ -49,6 +49,7 @@
#include <sys/bus.h>
#include <sys/sysctl.h>
#include <net/bpf.h>
#include <net/if.h>
#include <net/if_dl.h>
#include <net/if_var.h>
@ -674,6 +675,7 @@ if_atsam_tx_enqueue(struct if_atsam_softc *sc, struct ifnet *ifp, struct mbuf *m
desc->status.val = (desc->status.val & ~GMAC_TX_USED_BIT) | status;
_ARM_Data_synchronization_barrier();
sc->Gmac_inst.gGmacd.pHw->GMAC_NCR |= GMAC_NCR_TSTART;
ETHER_BPF_MTAP(ifp, m);
return (0);
}