[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20210112150530.0598a518@kicinski-fedora-pc1c0hjn.dhcp.thefacebook.com>
Date: Tue, 12 Jan 2021 15:05:30 -0800
From: Jakub Kicinski <kuba@...nel.org>
To: rohit maheshwari <rohitm@...lsio.com>
Cc: netdev@...r.kernel.org, davem@...emloft.net, secdev@...lsio.com,
ast@...nel.org, bjorn.topel@...el.com, daniel@...earbox.net,
andriin@...com, tariqt@...dia.com, edumazet@...gle.com,
xiyou.wangcong@...il.com, ap420073@...il.com, jiri@...lanox.com,
borisp@...dia.com
Subject: Re: [net] net: feature check mandating HW_CSUM is wrong
On Wed, 13 Jan 2021 02:47:51 +0530 rohit maheshwari wrote:
> On 07/01/21 12:47 AM, Jakub Kicinski wrote:
> > On Wed, 6 Jan 2021 23:23:27 +0530 Rohit Maheshwari wrote:
> >> Mandating NETIF_F_HW_CSUM to enable TLS offload feature is wrong.
> >> And it broke tls offload feature for the drivers, which are still
> >> using NETIF_F_IP_CSUM or NETIF_F_IPV6_CSUM. We should use
> >> NETIF_F_CSUM_MASK instead.
> >>
> >> Fixes: ae0b04b238e2 ("net: Disable NETIF_F_HW_TLS_TX when HW_CSUM is disabled")
> >> Signed-off-by: Rohit Maheshwari <rohitm@...lsio.com>
> > Please use Tariq's suggestion.
> HW_TLS_TX feature is for both IPv4/v6. And If one device is limited to
> support only IPv4 checksum offload, TLS offload should be allowed for
> that too. So I think putting a check of CSUM_MASK is enough.
If Tariq does not disagree please repost.
Powered by blists - more mailing lists