Commit 8f497dc
i40e: fix registering XDP RxQ info
Current way of handling XDP RxQ info in i40e has a problem, where frag_size
is not updated when xsk_buff_pool is detached or when MTU is changed, this
leads to growing tail always failing for multi-buffer packets.
Couple XDP RxQ info registering with buffer allocations and unregistering
with cleaning the ring.
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 e142dc4 commit 8f497dc
2 files changed
Lines changed: 22 additions & 17 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3583 | 3583 | | |
3584 | 3584 | | |
3585 | 3585 | | |
3586 | | - | |
3587 | | - | |
3588 | | - | |
3589 | | - | |
3590 | | - | |
3591 | | - | |
3592 | | - | |
3593 | | - | |
3594 | | - | |
3595 | 3586 | | |
3596 | 3587 | | |
3597 | | - | |
3598 | 3588 | | |
3599 | 3589 | | |
3600 | 3590 | | |
| |||
3606 | 3596 | | |
3607 | 3597 | | |
3608 | 3598 | | |
3609 | | - | |
| 3599 | + | |
3610 | 3600 | | |
3611 | 3601 | | |
3612 | 3602 | | |
3613 | 3603 | | |
3614 | 3604 | | |
| 3605 | + | |
| 3606 | + | |
| 3607 | + | |
| 3608 | + | |
| 3609 | + | |
| 3610 | + | |
3615 | 3611 | | |
3616 | 3612 | | |
3617 | 3613 | | |
3618 | 3614 | | |
3619 | | - | |
| 3615 | + | |
3620 | 3616 | | |
3621 | 3617 | | |
3622 | 3618 | | |
| |||
3654 | 3650 | | |
3655 | 3651 | | |
3656 | 3652 | | |
3657 | | - | |
| 3653 | + | |
| 3654 | + | |
3658 | 3655 | | |
3659 | 3656 | | |
3660 | 3657 | | |
| |||
3663 | 3660 | | |
3664 | 3661 | | |
3665 | 3662 | | |
3666 | | - | |
| 3663 | + | |
| 3664 | + | |
3667 | 3665 | | |
3668 | 3666 | | |
3669 | 3667 | | |
3670 | 3668 | | |
3671 | 3669 | | |
3672 | 3670 | | |
3673 | 3671 | | |
3674 | | - | |
| 3672 | + | |
| 3673 | + | |
3675 | 3674 | | |
3676 | 3675 | | |
3677 | 3676 | | |
| |||
3701 | 3700 | | |
3702 | 3701 | | |
3703 | 3702 | | |
| 3703 | + | |
| 3704 | + | |
| 3705 | + | |
| 3706 | + | |
| 3707 | + | |
3704 | 3708 | | |
3705 | 3709 | | |
3706 | 3710 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1470 | 1470 | | |
1471 | 1471 | | |
1472 | 1472 | | |
| 1473 | + | |
| 1474 | + | |
| 1475 | + | |
1473 | 1476 | | |
1474 | 1477 | | |
1475 | 1478 | | |
| |||
1527 | 1530 | | |
1528 | 1531 | | |
1529 | 1532 | | |
1530 | | - | |
1531 | | - | |
1532 | 1533 | | |
1533 | 1534 | | |
1534 | 1535 | | |
| |||
0 commit comments