Building the Linux kernel with Clang and LLVM
 help / color / mirror / Atom feed
* Re: [PATCH net-next v2 1/2] netdevsim: add TLS device offload emulation
       [not found] <20261117140642.4008-2-jiayuan.chen@linux.dev>
@ 2026-11-18  8:15 ` kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2026-11-18  8:15 UTC (permalink / raw)
  To: Jiayuan Chen, netdev, kuba
  Cc: llvm, oe-kbuild-all, Jiayuan Chen, Andrew Lunn, Eric Dumazet,
	Paolo Abeni, John Fastabend, Sabrina Dubroca, Shuah Khan,
	linux-kernel, linux-kselftest

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

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2026-11-18  8:16 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <20261117140642.4008-2-jiayuan.chen@linux.dev>
2026-11-18  8:15 ` [PATCH net-next v2 1/2] netdevsim: add TLS device offload emulation kernel test robot

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox