* Notification from the BPF framework that the free buffer has been been * rotated out of the held position to the free position. This happens when * the user acknowledges the held buffer. */
| 404 | * the user acknowledges the held buffer. |
| 405 | */ |
| 406 | void |
| 407 | bpf_zerocopy_buf_reclaimed(struct bpf_d *d) |
| 408 | { |
| 409 | struct zbuf *zb; |
| 410 | |
| 411 | KASSERT(d->bd_bufmode == BPF_BUFMODE_ZBUF, |
| 412 | ("bpf_zerocopy_reclaim_buf: not in zbuf mode")); |
| 413 | |
| 414 | KASSERT(d->bd_fbuf != NULL, |
| 415 | ("bpf_zerocopy_buf_reclaimed: NULL free buf")); |
| 416 | zb = (struct zbuf *)d->bd_fbuf; |
| 417 | zb->zb_flags &= ~ZBUF_FLAG_ASSIGNED; |
| 418 | } |
| 419 | |
| 420 | /* |
| 421 | * Query from the BPF framework regarding whether the buffer currently in the |