Loading
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: 2768b2e2 ("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>