mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: Jiayuan Chen <jiayuan.chen@linux.dev>,
	netdev@vger.kernel.org, kuba@kernel.org
Cc: llvm@lists.linux.dev, oe-kbuild-all@lists.linux.dev,
	Jiayuan Chen <jiayuan.chen@linux.dev>,
	Andrew Lunn <andrew+netdev@lunn.ch>,
	Eric Dumazet <edumazet@kernel.org>,
	Paolo Abeni <pabeni@redhat.com>,
	John Fastabend <john.fastabend@gmail.com>,
	Sabrina Dubroca <sd@queasysnail.net>,
	Shuah Khan <skhan@linuxfoundation.org>,
	linux-kernel@vger.kernel.org, linux-kselftest@vger.kernel.org
Subject: Re: [PATCH net-next v2 1/2] netdevsim: add TLS device offload emulation
Date: Wed, 18 Nov 2026 16:15:24 +0800	[thread overview]
Message-ID: <202611181558.YOFWJh8M-lkp@intel.com> (raw)
In-Reply-To: <20261117140642.4008-2-jiayuan.chen@linux.dev>

Hi Jiayuan,

kernel test robot noticed the following build errors:

[auto build test ERROR on net-next/main]

url:    https://github.com/intel-lab-lkp/linux/commits/Jiayuan-Chen/netdevsim-add-TLS-device-offload-emulation/20261117-220630
base:   net-next/main
patch link:    https://lore.kernel.org/r/20261117140642.4008-2-jiayuan.chen%40linux.dev
patch subject: [PATCH net-next v2 1/2] netdevsim: add TLS device offload emulation
config: x86_64-randconfig-1004-20261118 (https://download.01.org/0day-ci/archive/20261118/202611181558.YOFWJh8M-lkp@intel.com/config)
compiler: clang version 22.1.8 (https://github.com/llvm/llvm-project ca7933e47d3a3451d81e72ac174dcb5aa28b59d1)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20261118/202611181558.YOFWJh8M-lkp@intel.com/reproduce)

If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <lkp@intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202611181558.YOFWJh8M-lkp@intel.com/

All errors (new ones prefixed by >>):

>> drivers/net/netdevsim/tls.c:298:21: error: no member named 'skc_v6_rcv_saddr' in 'struct sock_common'
     298 |                 conn->laddr = sk->sk_v6_rcv_saddr;
         |                               ~~~~^~~~~~~~~~~~~~~
   include/net/sock.h:404:37: note: expanded from macro 'sk_v6_rcv_saddr'
     404 | #define sk_v6_rcv_saddr __sk_common.skc_v6_rcv_saddr
         |                                     ^
>> drivers/net/netdevsim/tls.c:299:21: error: no member named 'skc_v6_daddr' in 'struct sock_common'
     299 |                 conn->raddr = sk->sk_v6_daddr;
         |                               ~~~~^~~~~~~~~~~
   include/net/sock.h:403:34: note: expanded from macro 'sk_v6_daddr'
     403 | #define sk_v6_daddr             __sk_common.skc_v6_daddr
         |                                             ^
   2 errors generated.


vim +298 drivers/net/netdevsim/tls.c

   274	
   275	static int nsim_tls_dev_add(struct net_device *netdev, struct sock *sk,
   276				    enum tls_offload_ctx_dir direction,
   277				    struct tls_crypto_info *crypto_info,
   278				    u32 start_offload_tcp_sn)
   279	{
   280		struct netdevsim *ns = netdev_priv(netdev);
   281		struct nsim_tls_conn *conn;
   282		int ret = 0;
   283	
   284		/* Mirror the cipher support of a typical offload capable NIC. */
   285		switch (crypto_info->cipher_type) {
   286		case TLS_CIPHER_AES_GCM_128:
   287		case TLS_CIPHER_AES_GCM_256:
   288			break;
   289		default:
   290			return -EOPNOTSUPP;
   291		}
   292	
   293		conn = kzalloc_obj(*conn);
   294		if (!conn)
   295			return -ENOMEM;
   296	
   297		if (sk->sk_family == AF_INET6) {
 > 298			conn->laddr = sk->sk_v6_rcv_saddr;
 > 299			conn->raddr = sk->sk_v6_daddr;
   300		} else {
   301			ipv6_addr_set_v4mapped(sk->sk_rcv_saddr, &conn->laddr);
   302			ipv6_addr_set_v4mapped(sk->sk_daddr, &conn->raddr);
   303		}
   304		conn->family = sk->sk_family;
   305		conn->lport = htons(inet_sk(sk)->inet_num);
   306		conn->rport = sk->sk_dport;
   307		conn->dir = direction;
   308		conn->start_sn = start_offload_tcp_sn;
   309		conn->cipher_type = crypto_info->cipher_type;
   310		conn->tls_ctx = tls_get_ctx(sk);
   311	
   312		spin_lock_bh(&ns->tls.lock);
   313		if (ns->tls.count >= NSIM_TLS_MAX_CONN) {
   314			ret = -ENOSPC;
   315			goto out_unlock;
   316		}
   317		list_add_tail_rcu(&conn->list, &ns->tls.conns);
   318		WRITE_ONCE(ns->tls.count, ns->tls.count + 1);
   319		if (direction == TLS_OFFLOAD_CTX_DIR_TX)
   320			ns->tls.tx_conn++;
   321		else
   322			ns->tls.rx_conn++;
   323	out_unlock:
   324		spin_unlock_bh(&ns->tls.lock);
   325	
   326		if (ret)
   327			kfree(conn);
   328	
   329		return ret;
   330	}
   331	

-- 
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki

  reply	other threads:[~2026-11-18  8:16 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-11-17 14:06 [PATCH net-next v2 0/2] netdevsim: add TLS device offload emulation and test Jiayuan Chen
2026-11-17 14:06 ` [PATCH net-next v2 1/2] netdevsim: add TLS device offload emulation Jiayuan Chen
2026-11-18  8:15   ` kernel test robot [this message]
2026-11-17 14:06 ` [PATCH net-next v2 2/2] selftests: drv-net: run tls_hw_offload on netdevsim Jiayuan Chen

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=202611181558.YOFWJh8M-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=andrew+netdev@lunn.ch \
    --cc=edumazet@kernel.org \
    --cc=jiayuan.chen@linux.dev \
    --cc=john.fastabend@gmail.com \
    --cc=kuba@kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-kselftest@vger.kernel.org \
    --cc=llvm@lists.linux.dev \
    --cc=netdev@vger.kernel.org \
    --cc=oe-kbuild-all@lists.linux.dev \
    --cc=pabeni@redhat.com \
    --cc=sd@queasysnail.net \
    --cc=skhan@linuxfoundation.org \
    /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

all inboxes | Powered by JetHome®