From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 750BC429D0; Mon, 24 Apr 2023 04:45:39 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 40C9D410EC; Mon, 24 Apr 2023 04:45:39 +0200 (CEST) Received: from mga07.intel.com (mga07.intel.com [134.134.136.100]) by mails.dpdk.org (Postfix) with ESMTP id 2231F410DE for ; Mon, 24 Apr 2023 04:45:37 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1682304338; x=1713840338; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=rPGJiudZaoe1msSbFpU0LETpRWDKI+3sQK3hICKhC1U=; b=mIErBm/iDgRk32um+j34ZqwZTWMLYLp6ejwcV4EI3RZFbbpV448eDmFl 5evQeddTA8XgjTLL5sJJJ184dZ5UiFeEbGfFvrPjlFY4C53VOsXysyK3n SzkW1AHHoyYf7uF93JcbwJYNvAxK+nJ83RZ9N6094HOtAj/QkTk8T4ovo TEaFcIhkIi4UP5icHTRHKpMQlkI74QjqDeaSGtBi6J4LX2w8y6WzlIddD MtfkUrssTRQm7zT3zRzgTDZP60qx+NmOlLXf3Sx+gYxSXpps8luVUWEG6 hlAPvU2F8rMQ9zvRQjvlxLpX5q+uOBsSpXujM2sraJQxsGfFb9x93S6WI g==; X-IronPort-AV: E=McAfee;i="6600,9927,10689"; a="411619985" X-IronPort-AV: E=Sophos;i="5.99,221,1677571200"; d="scan'208";a="411619985" Received: from orsmga006.jf.intel.com ([10.7.209.51]) by orsmga105.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 23 Apr 2023 19:45:37 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10689"; a="670347096" X-IronPort-AV: E=Sophos;i="5.99,221,1677571200"; d="scan'208";a="670347096" Received: from unknown (HELO localhost.localdomain) ([10.239.252.96]) by orsmga006-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 23 Apr 2023 19:45:36 -0700 From: Jiale Song To: dts@dpdk.org Cc: Jiale Song Subject: [dts] [PATCH V1] tests/vf_pmd_bonded: optimize scripts Date: Mon, 24 Apr 2023 11:02:07 +0000 Message-Id: <20230424110207.114437-1-songx.jiale@intel.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: dts@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: test suite reviews and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dts-bounces@dpdk.org when vf cancels trust, it will clear the function of spoofchk and need to be reset. Signed-off-by: Jiale Song --- tests/TestSuite_vf_pmd_bonded.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tests/TestSuite_vf_pmd_bonded.py b/tests/TestSuite_vf_pmd_bonded.py index ca3b2823..821eba7b 100644 --- a/tests/TestSuite_vf_pmd_bonded.py +++ b/tests/TestSuite_vf_pmd_bonded.py @@ -2151,6 +2151,9 @@ UDP(sport=srcport, dport=destport)/Raw(load="\x50"*%s)], iface="%s", count=%d, v self.dut.send_expect( "ip link set %s vf 0 trust off" % (self.dport_ifaces0), "# " ) + self.dut.send_expect( + "ip link set %s vf 0 spoofchk off" % (self.dport_ifaces0), "# " + ) def tear_down_all(self): """ -- 2.25.1