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 16:05:26 +0200 |
commit | 8039d70d94162da8db69902e4972c12ba0e883a6 (patch) | |
tree | 5a1462862f4b38328fc5e4e5c42d0299dd2fc9b6 /rtemsbsd/sys/dev | |
parent | if_atsam: Do not use rtems_bsdnet_newproc() (diff) | |
download | rtems-libbsd-8039d70d94162da8db69902e4972c12ba0e883a6.tar.bz2 |
if_atsam: Support transmit bpf
Update #4652.
Diffstat (limited to 'rtemsbsd/sys/dev')
-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); } |