Skip to content

Commit

Permalink
net/tls: Provide {__,}tls_driver_ctx() unconditionally
Browse files Browse the repository at this point in the history
Having the definitions of {__,}tls_driver_ctx() under an #if
guard means code referencing them also needs to rely on the
preprocessor. The protection doesn't appear needed so make the
definitions unconditional.

Fixes: db37bc1 ("net/funeth: add the data path")
Reported-by: Randy Dunlap <rdunlap@infradead.org>
Reported-by: kernel test robot <lkp@intel.com>
Suggested-by: Jakub Kicinski <kuba@kernel.org>
Signed-off-by: Dimitris Michailidis <dmichail@fungible.com>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
  • Loading branch information
Dimitris Michailidis authored and Jakub Kicinski committed Mar 10, 2022
1 parent 4a5eaa2 commit 77f09e6
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions include/net/tls.h
Original file line number Diff line number Diff line change
Expand Up @@ -626,7 +626,6 @@ tls_offload_ctx_rx(const struct tls_context *tls_ctx)
return (struct tls_offload_context_rx *)tls_ctx->priv_ctx_rx;
}

#if IS_ENABLED(CONFIG_TLS_DEVICE)
static inline void *__tls_driver_ctx(struct tls_context *tls_ctx,
enum tls_offload_ctx_dir direction)
{
Expand All @@ -641,7 +640,6 @@ tls_driver_ctx(const struct sock *sk, enum tls_offload_ctx_dir direction)
{
return __tls_driver_ctx(tls_get_ctx(sk), direction);
}
#endif

#define RESYNC_REQ BIT(0)
#define RESYNC_REQ_ASYNC BIT(1)
Expand Down

0 comments on commit 77f09e6

Please sign in to comment.