Re: [PATCH v2 net 1/6] eth: bnxt: fix truesize for mb-xdp-pass case

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Thu,  6 Mar 2025 07:24:17 +0000 Taehee Yoo wrote:
> +	struct skb_shared_info sinfo = {0};

> +		memcpy(&sinfo, xdp_get_shared_info_from_buff(&xdp),
> +		       sizeof(struct skb_shared_info));

This may be a little expensive, struct skb_shared_info
is 320B and we only really need it in a rare occasion
of having multi-buf XDP.

Can we update agg_bufs = sinfo->nr_frags after calling 
bnxt_rx_xdp(), and otherwise go back to something like you v1?
Sorry if I mislead you.
-- 
pw-bot: cr




[Index of Archives]     [Linux Wireless]     [Linux Kernel]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [Share Photos]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Device Mapper]

  Powered by Linux