Commit a045d2f
i40e: set xdp_rxq_info::frag_size
i40e support XDP multi-buffer so it is supposed to use
__xdp_rxq_info_reg() instead of xdp_rxq_info_reg() and set the
frag_size. It can not be simply converted at existing callsite because
rx_buf_len could be un-initialized, so let us register xdp_rxq_info
within i40e_configure_rx_ring(), which happen to be called with already
initialized rx_buf_len value.
Commit 5180ff1 ("i40e: use int for i40e_status") converted 'err' to
int, so two variables to deal with return codes are not needed within
i40e_configure_rx_ring(). Remove 'ret' and use 'err' to handle status
from xdp_rxq_info registration.
Fixes: e213ced ("i40e: add support for XDP multi-buffer Rx")
Signed-off-by: Maciej Fijalkowski <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Alexei Starovoitov <[email protected]>1 parent fbadd83 commit a045d2f
2 files changed
+24
-25
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3588 | 3588 | | |
3589 | 3589 | | |
3590 | 3590 | | |
3591 | | - | |
3592 | 3591 | | |
3593 | 3592 | | |
3594 | 3593 | | |
3595 | 3594 | | |
3596 | 3595 | | |
3597 | 3596 | | |
3598 | | - | |
3599 | | - | |
| 3597 | + | |
| 3598 | + | |
| 3599 | + | |
| 3600 | + | |
| 3601 | + | |
| 3602 | + | |
| 3603 | + | |
| 3604 | + | |
| 3605 | + | |
| 3606 | + | |
| 3607 | + | |
| 3608 | + | |
| 3609 | + | |
| 3610 | + | |
3600 | 3611 | | |
3601 | 3612 | | |
3602 | 3613 | | |
3603 | | - | |
3604 | | - | |
3605 | | - | |
| 3614 | + | |
| 3615 | + | |
3606 | 3616 | | |
3607 | 3617 | | |
3608 | | - | |
3609 | | - | |
| 3618 | + | |
| 3619 | + | |
3610 | 3620 | | |
3611 | 3621 | | |
3612 | 3622 | | |
3613 | 3623 | | |
3614 | 3624 | | |
3615 | | - | |
3616 | | - | |
3617 | | - | |
3618 | | - | |
3619 | | - | |
3620 | | - | |
3621 | | - | |
3622 | | - | |
| 3625 | + | |
| 3626 | + | |
| 3627 | + | |
| 3628 | + | |
| 3629 | + | |
3623 | 3630 | | |
3624 | 3631 | | |
| 3632 | + | |
3625 | 3633 | | |
3626 | 3634 | | |
3627 | 3635 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1548 | 1548 | | |
1549 | 1549 | | |
1550 | 1550 | | |
1551 | | - | |
1552 | 1551 | | |
1553 | 1552 | | |
1554 | 1553 | | |
| |||
1569 | 1568 | | |
1570 | 1569 | | |
1571 | 1570 | | |
1572 | | - | |
1573 | | - | |
1574 | | - | |
1575 | | - | |
1576 | | - | |
1577 | | - | |
1578 | | - | |
1579 | | - | |
1580 | 1571 | | |
1581 | 1572 | | |
1582 | 1573 | | |
| |||
0 commit comments