netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Tariq Toukan <ttoukan.linux@gmail.com>
To: Jakub Kicinski <kuba@kernel.org>, davem@davemloft.net
Cc: netdev@vger.kernel.org, edumazet@google.com, pabeni@redhat.com,
	j.vosburgh@gmail.com, andy@greyhouse.net, rajur@chelsio.com,
	ayush.sawal@chelsio.com, dmichail@fungible.com,
	borisp@nvidia.com, saeedm@nvidia.com, leon@kernel.org,
	simon.horman@corigine.com, john.fastabend@gmail.com,
	anirudh.venkataramanan@intel.com, maxtram95@gmail.com,
	gal@nvidia.com, raeds@nvidia.com, liorna@nvidia.com,
	louis.peens@corigine.com, yinjun.zhang@corigine.com,
	na.wang@corigine.com, linux-rdma@vger.kernel.org,
	oss-drivers@corigine.com, Tariq Toukan <tariqt@nvidia.com>
Subject: Re: [PATCH net-next] net: tls: make the offload check helper take skb not socket
Date: Wed, 14 Jun 2023 14:03:17 +0300	[thread overview]
Message-ID: <d51d742f-5ccf-5a24-0cee-b4467fb83ba1@gmail.com> (raw)
In-Reply-To: <20230613205006.1995873-1-kuba@kernel.org>



On 13/06/2023 23:50, Jakub Kicinski wrote:
> All callers of tls_is_sk_tx_device_offloaded() currently do
> an equivalent of:
> 
>   if (skb->sk && tls_is_skb_tx_device_offloaded(skb->sk))
> 
> Have the helper accept skb and do the skb->sk check locally.
> Two drivers have local static inlines with similar wrappers
> already.
> 
> While at it change the ifdef condition to TLS_DEVICE.
> Only TLS_DEVICE selects SOCK_VALIDATE_XMIT, so the two are
> equivalent. This makes removing the duplicated IS_ENABLED()
> check in funeth more obviously correct.
> 
> Signed-off-by: Jakub Kicinski <kuba@kernel.org>
> ---
> CC: j.vosburgh@gmail.com
> CC: andy@greyhouse.net
> CC: rajur@chelsio.com
> CC: ayush.sawal@chelsio.com
> CC: dmichail@fungible.com
> CC: borisp@nvidia.com
> CC: saeedm@nvidia.com
> CC: leon@kernel.org
> CC: simon.horman@corigine.com
> CC: john.fastabend@gmail.com
> CC: anirudh.venkataramanan@intel.com
> CC: maxtram95@gmail.com
> CC: tariqt@nvidia.com

Acked-by: Tariq Toukan <tariqt@nvidia.com>

Thanks.

  parent reply	other threads:[~2023-06-14 11:03 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-06-13 20:50 [PATCH net-next] net: tls: make the offload check helper take skb not socket Jakub Kicinski
2023-06-14  7:09 ` Maxim Mikityanskiy
2023-06-14 17:46   ` Jakub Kicinski
2023-06-14  7:38 ` Simon Horman
2023-06-14 11:03 ` Tariq Toukan [this message]
2023-06-15  1:54 ` Dimitris Michailidis
2023-06-15  8:10 ` patchwork-bot+netdevbpf

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=d51d742f-5ccf-5a24-0cee-b4467fb83ba1@gmail.com \
    --to=ttoukan.linux@gmail.com \
    --cc=andy@greyhouse.net \
    --cc=anirudh.venkataramanan@intel.com \
    --cc=ayush.sawal@chelsio.com \
    --cc=borisp@nvidia.com \
    --cc=davem@davemloft.net \
    --cc=dmichail@fungible.com \
    --cc=edumazet@google.com \
    --cc=gal@nvidia.com \
    --cc=j.vosburgh@gmail.com \
    --cc=john.fastabend@gmail.com \
    --cc=kuba@kernel.org \
    --cc=leon@kernel.org \
    --cc=linux-rdma@vger.kernel.org \
    --cc=liorna@nvidia.com \
    --cc=louis.peens@corigine.com \
    --cc=maxtram95@gmail.com \
    --cc=na.wang@corigine.com \
    --cc=netdev@vger.kernel.org \
    --cc=oss-drivers@corigine.com \
    --cc=pabeni@redhat.com \
    --cc=raeds@nvidia.com \
    --cc=rajur@chelsio.com \
    --cc=saeedm@nvidia.com \
    --cc=simon.horman@corigine.com \
    --cc=tariqt@nvidia.com \
    --cc=yinjun.zhang@corigine.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).