mirror of
https://github.com/freebsd/freebsd-src
synced 2024-10-15 04:43:53 +00:00
vtnet: set VNET context in RX handler
The context is required for NIC-level pfil(9) filtering.
This commit is contained in:
parent
1bfe195143
commit
3f2b960775
|
@ -2086,6 +2086,7 @@ vtnet_rxq_eof(struct vtnet_rxq *rxq)
|
|||
|
||||
VTNET_RXQ_LOCK_ASSERT(rxq);
|
||||
|
||||
CURVNET_SET_QUIET(if_getvnet(ifp));
|
||||
while (count-- > 0) {
|
||||
struct mbuf *m;
|
||||
uint32_t len, nbufs, adjsz;
|
||||
|
@ -2179,6 +2180,7 @@ vtnet_rxq_eof(struct vtnet_rxq *rxq)
|
|||
#endif
|
||||
virtqueue_notify(vq);
|
||||
}
|
||||
CURVNET_RESTORE();
|
||||
|
||||
return (count > 0 ? 0 : EAGAIN);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue