Commit c69d22c
i40e: use xdp.frame_sz as XDP RxQ info frag_size
The only user of frag_size field in XDP RxQ info is
bpf_xdp_frags_increase_tail(). It clearly expects whole buffer size instead
of DMA write size. Different assumptions in i40e driver configuration lead
to negative tailroom.
Set frag_size to the same value as frame_sz in shared pages mode, use new
helper to set frag_size when AF_XDP ZC is active.
Fixes: a045d2f ("i40e: set xdp_rxq_info::frag_size")
Reviewed-by: Aleksandr Loktionov <[email protected]>
Signed-off-by: Larysa Zaremba <[email protected]>
Link: https://patch.msgid.link/[email protected]
Signed-off-by: Jakub Kicinski <[email protected]>1 parent 8f497dc commit c69d22c
1 file changed
Lines changed: 6 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3569 | 3569 | | |
3570 | 3570 | | |
3571 | 3571 | | |
| 3572 | + | |
3572 | 3573 | | |
3573 | 3574 | | |
3574 | 3575 | | |
| |||
3578 | 3579 | | |
3579 | 3580 | | |
3580 | 3581 | | |
| 3582 | + | |
3581 | 3583 | | |
3582 | 3584 | | |
3583 | 3585 | | |
3584 | 3586 | | |
3585 | 3587 | | |
3586 | 3588 | | |
3587 | 3589 | | |
| 3590 | + | |
3588 | 3591 | | |
3589 | 3592 | | |
3590 | 3593 | | |
3591 | 3594 | | |
3592 | | - | |
| 3595 | + | |
3593 | 3596 | | |
3594 | 3597 | | |
3595 | 3598 | | |
| |||
3605 | 3608 | | |
3606 | 3609 | | |
3607 | 3610 | | |
3608 | | - | |
| 3611 | + | |
3609 | 3612 | | |
3610 | 3613 | | |
3611 | 3614 | | |
| |||
3616 | 3619 | | |
3617 | 3620 | | |
3618 | 3621 | | |
3619 | | - | |
| 3622 | + | |
3620 | 3623 | | |
3621 | 3624 | | |
3622 | 3625 | | |
| |||
0 commit comments