From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-pf1-f169.google.com (mail-pf1-f169.google.com [209.85.210.169]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 7545631E88F for ; Tue, 23 Sep 2025 09:13:02 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.210.169 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1758618783; cv=none; b=n5n2ztDafAEoQjE9RFS5YeXIrPgfc+hfs3HJ1rLIV3pXSldpL2FCw9a0jH1lNXmRSjr4Blc52xgeVVDXmORjQrtaJ4yWPLj9srX6KeYO9ppPGxoJycD5syUb5euYXyFLzuTjd8vQ3letu8lB35cKIOOCQjKdybLutAheEppKYeQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1758618783; c=relaxed/simple; bh=Z2IWOFXhly7czGdlFGv46kWBB6KEbOpImNkHcKF2Ygc=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=BINYeNU6xLzfi6khp9QdPnjyppuRISsJfTOHpzg1c4kZdAnYiSInh04Usyis1fAtXjdssCqeRG/JngrHtXgmsq7a/yhmAwTnJcVrCmm62OqflyS4B1r0o6CYz4Wf55j5BFUtaz86gpNvjFtD37rTomppINMyZqGnzH2cx5xHjDE= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=JxkKrRYF; arc=none smtp.client-ip=209.85.210.169 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="JxkKrRYF" Received: by mail-pf1-f169.google.com with SMTP id d2e1a72fcca58-77f35113821so1748770b3a.0 for ; Tue, 23 Sep 2025 02:13:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1758618781; x=1759223581; darn=vger.kernel.org; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=k5KSUsAM+a2Guq01/UCd+zY46Lp+YhJNLyp0jhG/Hzg=; b=JxkKrRYFYwO2A6yfsIzpVctoaJL2iGrCn/R9nqUR7HOx4W7ptwFRBO5d1GzqpwiwhF 4lLLvJQvbQJgu4euSlDlLmdzFf7eC+iGw7y86YXYOlCCgsN8ftn9fwrXccpvUzwrHBCN Vv1vY2BDTusVl31p0yU7iBGG4XM+UkGmWiDpI69kROEYNJJnCY6ZCSnkzAFvWgWBUEhT zzZ4rcsDH9cbwqhMqqXlCgAPoroAvkpc5ig+Y2IJp0cOWfW++G2BrqSgJAI/HOo6NN+t sZz7gMFFkgE0k0tw6EyYi2e9X9JxvyYpIjT4I0wDqoZOh33G5g38JgsNxc5q+lGvTqZr dzNQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1758618781; x=1759223581; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=k5KSUsAM+a2Guq01/UCd+zY46Lp+YhJNLyp0jhG/Hzg=; b=oBaJKyjAjJ+iqT5qO173Ej7wcLZeafhwyBbjCYt+f2EgigDa31HfVpCdMZblyPYrdB cWWdlawACQz4GnaXONsdGfFGwO+yTox1lwX1Wht6OgdZgMow9R0dK8N6VBThLg6GkZ1i NbIen6d5iwlaEehzrkaDyTsBKLEFiIBntxRH6a4YnlsfWeHzF19iXZILZdEbXv4u1RtK y0xZJl0EzEEEjxPmMAIVfciYm4gSI+kTYe6iisVP4iC4fsStHRIG74G/Gk79aA2SKuO+ z5reE0JeWIjY6cmmSbtYUi+H6BO/pxWOuf5g5iSnommSOFVfAitBUcSUuNI+9IgtOk/p onjQ== X-Forwarded-Encrypted: i=1; AJvYcCXahnmyfufz3+1HYk0I2GjB0Ab3B0mlolCK1kKTiM3c0WEWeuWZsvNap8oidR9eEm+jq4viOVmSwH/f1g+8rbI=@vger.kernel.org X-Gm-Message-State: AOJu0YztcQ+lDSDAAwQin+meRCX7tbJsznjlPoayZG0BhZGwtJUGXfXF bpN2qcr9As5MOhoEFazZXsBIATKewu1/kLljAz0cta3h8c/3HGjCMnk2 X-Gm-Gg: ASbGnctmPEQg0CCw81Rm8Sw/50BQJb+HzQL84h5PtsXANUFANcfe9OqlH707NmlJExC vTzZXsCD23f5oFcUybbPc9Cz0Sz51meSdlmMhqE1lbcMzrSlZ8ShtJhdhKY24YpZFXbcMGrzGz6 pn8UplQZ+mPiAJCwZ2F9K9WAwyflk13JLXvBvT84RSKycX/j4+egRliVUpFfsncuwMuEBcRKzYa CxTvzaE4dNyIsiGVd+9FXBaGMc73wDhgBSO9LbuZJinI2Z+VtFUB0vgrbL5YIRqHDhfSaiBTKbZ Mjefho2qMvbb42V1awQzDD2uQCYzVkwbAX7RTIbGJm+B2j6kEuFAhdcteV1vn/MXc/xFzffOE4f LTsvkJCHL+92ckmcwA4GH26qDxe9tG3xjzzBA7A== X-Google-Smtp-Source: AGHT+IG4lZcyzKZit/zs68rwxqzDaPk+kvZqWCucgdIMMrCFwODAl/U5RUgZFN3WUiVGtFCWrZc7ww== X-Received: by 2002:a05:6a00:1397:b0:772:7ddd:3fe0 with SMTP id d2e1a72fcca58-77f53855c3bmr2456640b3a.2.1758618781501; Tue, 23 Sep 2025 02:13:01 -0700 (PDT) Received: from fedora ([209.132.188.88]) by smtp.gmail.com with ESMTPSA id d2e1a72fcca58-77f363ed5a0sm5646616b3a.41.2025.09.23.02.12.56 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 23 Sep 2025 02:13:00 -0700 (PDT) Date: Tue, 23 Sep 2025 09:12:53 +0000 From: Hangbin Liu To: Paolo Abeni Cc: netdev@vger.kernel.org, Jay Vosburgh , Andrew Lunn , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Simon Horman , Shuah Khan , Petr Machata , linux-kselftest@vger.kernel.org Subject: Re: [PATCHv2 net 2/2] selftests: bonding: add ipsec offload test Message-ID: References: <20250918020202.440904-1-liuhangbin@gmail.com> <20250918020202.440904-2-liuhangbin@gmail.com> Precedence: bulk X-Mailing-List: linux-kselftest@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: On Tue, Sep 23, 2025 at 10:32:22AM +0200, Paolo Abeni wrote: > > +lib_dir=$(dirname "$0") > > +source "$lib_dir"/../../../net/lib.sh > > +algo="aead rfc4106(gcm(aes)) 0x3132333435363738393031323334353664636261 128" > > +srcip=192.0.2.1 > > +dstip=192.0.2.2 > > +ipsec0=/sys/kernel/debug/netdevsim/netdevsim0/ports/0/ipsec > > +ipsec1=/sys/kernel/debug/netdevsim/netdevsim0/ports/1/ipsec > > +active_slave="" > > + > > +active_slave_changed() > > +{ > > + local old_active_slave=$1 > > + local new_active_slave=$(ip -n ${ns} -d -j link show bond0 | \ > > + jq -r ".[].linkinfo.info_data.active_slave") > > shell check is not super happy about the lack of double quotes around > the variables (above and many places below) and about declaring the > variable and assigning it to a subshell in the same statement. > > I think it's better to address such warnings for consistency. Ah, this is a patch I wrote some times ago. I forgot to re-format it with shellcheck. I will fix the warnings. Thanks hangbin