Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp7816pxa; Tue, 4 Aug 2020 14:59:13 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw9txfcwiDuQOFoQLLG8k4s4Xbry0G64lcNdGBUo/UMpIyXNr2PlRiXr5cHKJzjJ1QK83gY X-Received: by 2002:a17:906:cc47:: with SMTP id mm7mr183747ejb.362.1596578353299; Tue, 04 Aug 2020 14:59:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1596578353; cv=none; d=google.com; s=arc-20160816; b=CfVLubhdPDZG2Uv2xg3MHST5fxOSPapKaUC3yF3bRgQtgAG71ej3djDq7GkQzIyEv2 62CvHxAkG+rvsEFSXb2Yw6Jss19T26yZbmpC9PozoYUum0ohjp6Xbmxh3GIX+4T9SYg7 B0R09/wrPOmt/gauK9hyzdCXoFgd11DtBg68GWJl5WhOsM5Ip3mWwXepE1M1W84+vfI4 Uf/i7Yqfw3Y1XuD1AFu/eOw5g0JLaTlZV87g2gou3EgHGqyWn4Zj8oM530aWXMTL4y9t ucRvc0HO9gUgAIdvtGCNnxKAFuMXEaj0tpBghRM9JiKqbIndYVplF6Dr+VNXmctx5YDz /rhA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=kBOKJp8w9KZXZuz53OUDNEXh+d4eCdFrJ20ncB3veo8=; b=KmpZgpuN6p2SbaTyGwaOZ5mQecUHP6DqBb/WMXpnuBHi8cO0vtKwbYiY/xtOXY6dJI FU5O38+AN1qK9IvERb4O2UNsNuslDL4u4y62/tHcYoAg047qXvtl0vIWFHO3JbPY/SPR tpgrHVeCWARqA9FSK55ZomahkwAmxd+4e/IbHBgZ2DkuGInkVTzoFN3UO7DqdDWN0chc PoBpTzWly9mCcZpwoBxiBTmoAN6w3AaT2DBfZ+3csBKpDcRSlncGqZ3CXoH9SvSOh4wU UxXxxC9tctUTpuXT5wuLS/6WyaaAZl4sTe/8e3NUBthKd2zJq0LkqQodS90GEHUiO+Ai 4+lA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=dPl8A8UN; 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=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id s11si5083edi.214.2020.08.04.14.58.50; Tue, 04 Aug 2020 14:59:13 -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=@redhat.com header.s=mimecast20190719 header.b=dPl8A8UN; 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=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728328AbgHDV6q (ORCPT + 99 others); Tue, 4 Aug 2020 17:58:46 -0400 Received: from us-smtp-2.mimecast.com ([207.211.31.81]:31945 "EHLO us-smtp-delivery-1.mimecast.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1728052AbgHDV6p (ORCPT ); Tue, 4 Aug 2020 17:58:45 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1596578324; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=kBOKJp8w9KZXZuz53OUDNEXh+d4eCdFrJ20ncB3veo8=; b=dPl8A8UNaI7L9Prg2GoJRKqjd6oArOQSlDFlYnDaueto1VzWlu7usI/sPMe7RgTCL1uD37 NCgjEtORJxK65rZcoRa7Y/tER57tyLyGYVboiYbyA+NASBwSv2mWbgRhiZ0SNDIR+YgmP6 WxlKeXf7Z3e3qAN1kJriNOJnNv+xEG0= Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-375-5AV7SC3ANV6U9ZNH25nRiA-1; Tue, 04 Aug 2020 17:58:39 -0400 X-MC-Unique: 5AV7SC3ANV6U9ZNH25nRiA-1 Received: from smtp.corp.redhat.com (int-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.11]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 7483E1DE1; Tue, 4 Aug 2020 21:58:36 +0000 (UTC) Received: from localhost.localdomain (ovpn-113-133.rdu2.redhat.com [10.10.113.133]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 9845272E48; Tue, 4 Aug 2020 21:58:34 +0000 (UTC) Date: Tue, 4 Aug 2020 17:58:32 -0400 From: Neil Horman To: Cong Wang Cc: izabela.bakollari@gmail.com, Neil Horman , Linux Kernel Network Developers , LKML , Jakub Kicinski , linux-kernel-mentees@lists.linuxfoundation.org, David Miller Subject: Re: [Linux-kernel-mentees] [PATCHv2 net-next] dropwatch: Support monitoring of dropped frames Message-ID: <20200804215832.GB72184@localhost.localdomain> References: <20200707171515.110818-1-izabela.bakollari@gmail.com> <20200804160908.46193-1-izabela.bakollari@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Scanned-By: MIMEDefang 2.79 on 10.5.11.11 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Aug 04, 2020 at 02:28:28PM -0700, Cong Wang wrote: > On Tue, Aug 4, 2020 at 9:14 AM wrote: > > > > From: Izabela Bakollari > > > > Dropwatch is a utility that monitors dropped frames by having userspace > > record them over the dropwatch protocol over a file. This augument > > allows live monitoring of dropped frames using tools like tcpdump. > > > > With this feature, dropwatch allows two additional commands (start and > > stop interface) which allows the assignment of a net_device to the > > dropwatch protocol. When assinged, dropwatch will clone dropped frames, > > and receive them on the assigned interface, allowing tools like tcpdump > > to monitor for them. > > > > With this feature, create a dummy ethernet interface (ip link add dev > > dummy0 type dummy), assign it to the dropwatch kernel subsystem, by using > > these new commands, and then monitor dropped frames in real time by > > running tcpdump -i dummy0. > > drop monitor is already able to send dropped packets to user-space, > and wireshark already catches up with this feature: > > https://code.wireshark.org/review/gitweb?p=wireshark.git;a=commitdiff;h=a94a860c0644ec3b8a129fd243674a2e376ce1c8 > > So what you propose here seems pretty much a duplicate? > I had asked Izabela to implement this feature as an alternative approach to doing live capture of dropped packets, as part of the Linux foundation mentorship program. I'm supportive of this additional feature as the added code is fairly minimal, and allows for the use of other user space packet monitoring tools without additional code changes (i.e. tcpdump/snort/etc can now monitor dropped packets without the need to augment those tools with netlink capture code. Best Neil > Thanks. > _______________________________________________ > Linux-kernel-mentees mailing list > Linux-kernel-mentees@lists.linuxfoundation.org > https://lists.linuxfoundation.org/mailman/listinfo/linux-kernel-mentees >