[rtems-libbsd commit] if_atsam: Support transmit bpf
Sebastian Huber
sebh at rtems.org
Wed May 11 13:53:52 UTC 2022
Module: rtems-libbsd
Branch: 6-freebsd-12
Commit: 4ad09617d030ab9847d98f60dfc85ae29792bc9d
Changeset: http://git.rtems.org/rtems-libbsd/commit/?id=4ad09617d030ab9847d98f60dfc85ae29792bc9d
Author: Sebastian Huber <sebastian.huber at embedded-brains.de>
Date: Wed May 11 08:26:59 2022 +0200
if_atsam: Support transmit bpf
Update #4652.
---
rtemsbsd/sys/dev/atsam/if_atsam.c | 2 ++
1 file changed, 2 insertions(+)
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);
}
More information about the vc
mailing list