[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <3ba8daec-0e7d-48a8-baf7-837161f9b8bc@yunsilicon.com>
Date: Wed, 12 Mar 2025 17:43:17 +0800
From: "Xin Tian" <tianx@...silicon.com>
To: "Paolo Abeni" <pabeni@...hat.com>, <netdev@...r.kernel.org>
Cc: <leon@...nel.org>, <andrew+netdev@...n.ch>, <kuba@...nel.org>,
<edumazet@...gle.com>, <davem@...emloft.net>,
<jeff.johnson@....qualcomm.com>, <przemyslaw.kitszel@...el.com>,
<weihg@...silicon.com>, <wanry@...silicon.com>, <jacky@...silicon.com>,
<horms@...nel.org>, <parthiban.veerasooran@...rochip.com>,
<masahiroy@...nel.org>, <kalesh-anakkur.purayil@...adcom.com>,
<geert+renesas@...der.be>
Subject: Re: [PATCH net-next v8 12/14] xsc: Add ndo_start_xmit
On 2025/3/11 23:18, Paolo Abeni wrote:
> On 3/7/25 11:08 AM, Xin Tian wrote:
>> +static u16 xsc_tx_get_gso_ihs(struct xsc_sq *sq, struct sk_buff *skb)
>> +{
>> + u16 ihs;
>> +
>> + if (skb->encapsulation) {
>> + ihs = skb_inner_transport_offset(skb) + inner_tcp_hdrlen(skb);
>> + } else {
>> + if (skb_shinfo(skb)->gso_type & SKB_GSO_UDP_L4)
>> + ihs = skb_transport_offset(skb) + sizeof(struct udphdr);
> You have quite a bit of code dealing with features that the driver
> currently does not support (tunnels, SKB_GSO_UDP_L4).
>
> It would be better either enabling such features or not including the
> unused code.
>
> Thanks,
>
> Paolo
Apologies for my oversight. I will thoroughly review and del those code
in next version
Thanks,
Xin
Powered by blists - more mailing lists