mirror of
https://github.com/torvalds/linux.git
synced 2026-03-07 23:24:35 +01:00
net: enetc: use truesize 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 truesize instead of DMA
write size. Different assumptions in enetc driver configuration lead to
negative tailroom.
Set frag_size to the same value as frame_sz.
Fixes: 2768b2e2f7 ("net: enetc: register XDP RX queues with frag_size")
Reviewed-by: Aleksandr Loktionov <aleksandr.loktionov@intel.com>
Reviewed-by: Vladimir Oltean <vladimir.oltean@nxp.com>
Signed-off-by: Larysa Zaremba <larysa.zaremba@intel.com>
Link: https://patch.msgid.link/20260305111253.2317394-9-larysa.zaremba@intel.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
This commit is contained in:
parent
75d9228982
commit
f8e18abf18
1 changed files with 1 additions and 1 deletions
|
|
@ -3467,7 +3467,7 @@ static int enetc_int_vector_init(struct enetc_ndev_priv *priv, int i,
|
|||
priv->rx_ring[i] = bdr;
|
||||
|
||||
err = __xdp_rxq_info_reg(&bdr->xdp.rxq, priv->ndev, i, 0,
|
||||
ENETC_RXB_DMA_SIZE_XDP);
|
||||
ENETC_RXB_TRUESIZE);
|
||||
if (err)
|
||||
goto free_vector;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue