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 Fri, Mar 7, 2025 at 10:35 AM Jakub Kicinski <kuba@xxxxxxxxxx> wrote:
>

Hi Jakub,
Thanks a lot for the review!

> 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.

You're right, it's pretty heavy. I didn't think about the total size of
the shared_info.

>
> Can we update agg_bufs = sinfo->nr_frags after calling
> bnxt_rx_xdp(), and otherwise go back to something like you v1?

Okay, I will update agg_bufs with stored sinfo->nr_frags.

> Sorry if I mislead you.

It was my intention, no problem :)

Thanks a lot!
Taehee Yoo

> --
> 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