Received: by 2002:a05:6a11:4021:0:0:0:0 with SMTP id ky33csp100617pxb; Mon, 13 Sep 2021 14:06:25 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxbRYmXnrvYB8a/K3tskVUzXX/8K2xgKBDaNATSNEjdMXh/4vY7JXGbojcHxN76ZqTlFC8C X-Received: by 2002:a5d:9693:: with SMTP id m19mr10938104ion.72.1631567184809; Mon, 13 Sep 2021 14:06:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1631567184; cv=none; d=google.com; s=arc-20160816; b=MTXMp9LhW4ShvZ3qimAL417/QX1wuCDaYe9/0S2Y81hGJ8vGcrpz/tD3S/Nm+lo0vI BMK/BFbDYhHPK3AnenYt+QoOZmN0nDS8KuGVL1vKUV5XtJ4GHO3FrigzBU3xMT1JzSXH lpkLz0B4YVhwlcqh4AXjhFgAUCU9zX/HZy27lPfhuwDYSAcRvU0255fMHfAskb0hzV82 ZdMDkdd5aep5537fBJPoDzSmS912oR9iYNZBqstFWhn81QpFCWtqNJqKKohHZNve5Yz5 jY551aRBDybXAxcEzI58yluO3HZL8WYiiAvETsr9RtDjhuJ1MYT7XFuXRZyFSRUbNnO6 P6sg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=xbWPcA4ODE2HmNcV25+s/3nJseh3imoDX9woNH6Eais=; b=wv1u65h1VE5TWQCpVVqRrwhnk0gV7b5l2DoD0PN4F56e8xdRmWSwjj9oSgKA+fWNTu uTEPZ22cOMUNSoLyydYFrKDApv9HMwBTVffLmxCQ9/gH8Rs4zNSNZzvjGQdCp3JWQAx3 RWTNY/+nzEBFMEXudwL+VjxJv4fzpz11pzj3OF1RGfb6apzRjN34+x4K2fq9coTdOIkh gcCBS01cQM5ovN9isDhApeNvv2FwUxi5bmT1V4kfFcdqSF2PcO63sZ6XWusCuCRyMpdl evRNSH15VDdVN+sdEosNj1N40lQF0IHgFinc2KHXXdo2CkMVLoDKKxrHD6VXzVgX8YRO mKYQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=2QbPrqpV; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id t1si7546249ioj.70.2021.09.13.14.06.13; Mon, 13 Sep 2021 14:06:24 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=2QbPrqpV; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S243484AbhIMNr5 (ORCPT + 99 others); Mon, 13 Sep 2021 09:47:57 -0400 Received: from mail.kernel.org ([198.145.29.99]:44480 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238030AbhIMNmv (ORCPT ); Mon, 13 Sep 2021 09:42:51 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id D917461407; Mon, 13 Sep 2021 13:30:23 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1631539824; bh=78ojPiQPyowEygpwF1GjuFOvhHMCaKV6fWIha8VPLXU=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=2QbPrqpVYN+Ay3qJccBMsq+gjTcxh+3pXO447Dem6j8N5G0o6nRUh7A7mwpOsLGW3 XeSzuJF2LSLr2hQhjZbW+HNwQFbLr2vGV48QV5ER+MRHD1QR+UgL0IfGg9NxZdns+M IalLQKW4Hnw1kuA2XG6l2/zbNLBPpc/qNs/9olX4= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Jose Blanquicet , Daniel Borkmann , Yonghong Song , Sasha Levin Subject: [PATCH 5.10 132/236] selftests/bpf: Fix bpf-iter-tcp4 test to print correctly the dest IP Date: Mon, 13 Sep 2021 15:13:57 +0200 Message-Id: <20210913131104.852555981@linuxfoundation.org> X-Mailer: git-send-email 2.33.0 In-Reply-To: <20210913131100.316353015@linuxfoundation.org> References: <20210913131100.316353015@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Jose Blanquicet [ Upstream commit 277b134057036df8c657079ca92c3e5e7d10aeaf ] Currently, this test is incorrectly printing the destination port in place of the destination IP. Fixes: 2767c97765cb ("selftests/bpf: Implement sample tcp/tcp6 bpf_iter programs") Signed-off-by: Jose Blanquicet Signed-off-by: Daniel Borkmann Acked-by: Yonghong Song Link: https://lore.kernel.org/bpf/20210805164044.527903-1-josebl@microsoft.com Signed-off-by: Sasha Levin --- tools/testing/selftests/bpf/progs/bpf_iter_tcp4.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/testing/selftests/bpf/progs/bpf_iter_tcp4.c b/tools/testing/selftests/bpf/progs/bpf_iter_tcp4.c index 54380c5e1069..aa96b604b2b3 100644 --- a/tools/testing/selftests/bpf/progs/bpf_iter_tcp4.c +++ b/tools/testing/selftests/bpf/progs/bpf_iter_tcp4.c @@ -122,7 +122,7 @@ static int dump_tcp_sock(struct seq_file *seq, struct tcp_sock *tp, } BPF_SEQ_PRINTF(seq, "%4d: %08X:%04X %08X:%04X ", - seq_num, src, srcp, destp, destp); + seq_num, src, srcp, dest, destp); BPF_SEQ_PRINTF(seq, "%02X %08X:%08X %02X:%08lX %08X %5u %8d %lu %d ", state, tp->write_seq - tp->snd_una, rx_queue, -- 2.30.2