mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
vtnet: set VNET context in RX handler
The context is required for NIC-level pfil(9) filtering. (cherry picked from commit 3f2b9607756d0f92ca29c844db0718b313a06634)
This commit is contained in:
parent
cc16c3c3cb
commit
8062f37d1c
1 changed files with 2 additions and 0 deletions
|
|
@ -2095,6 +2095,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;
|
||||
|
|
@ -2188,6 +2189,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