diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2022-05-11 08:26:59 +0200 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2022-05-11 15:49:05 +0200 |
commit | 4ad09617d030ab9847d98f60dfc85ae29792bc9d (patch) | |
tree | f8678177c679435fd45d9509339d72859c61f6de | |
parent | if_atsam: Do not use rtems_bsdnet_newproc() (diff) | |
download | rtems-libbsd-4ad09617d030ab9847d98f60dfc85ae29792bc9d.tar.bz2 |
if_atsam: Support transmit bpf
Update #4652.
-rw-r--r-- | rtemsbsd/sys/dev/atsam/if_atsam.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/rtemsbsd/sys/dev/atsam/if_atsam.c b/rtemsbsd/sys/dev/atsam/if_atsam.c index 88fe621b..2ed17641 100644 --- a/rtemsbsd/sys/dev/atsam/if_atsam.c +++ b/rtemsbsd/sys/dev/atsam/if_atsam.c @@ -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); } |