Received: by 2002:a25:f815:0:0:0:0:0 with SMTP id u21csp152678ybd; Tue, 25 Jun 2019 18:37:44 -0700 (PDT) X-Google-Smtp-Source: APXvYqx+MUIj3QLvEZVvVP/Hdtu/Pdx50dOLtp7j4VWIHOAuV9AZdl3qv/klP4JXMRZ4hIwCdB+Y X-Received: by 2002:a17:902:820c:: with SMTP id x12mr1981906pln.216.1561513064874; Tue, 25 Jun 2019 18:37:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1561513064; cv=none; d=google.com; s=arc-20160816; b=lnm6w9jZJ3wRFtKNtBac3yUb+yUir0Rfgz6Hn+YHu88HPNYZU3sTryJrO3u1c4NYoM zpNA+h39V0CAUnHG7GGTPYYsaxpzYxDV8dTeaWbf7tknBT6JqTofwypx+3B578sHqrxR ljyOdbQxwJLQQa1L1NL4Smqrz6qzPQtfjkc9o6F4ZMAIodAA++MZRxsHXS21aWdkgjRl Z6yJLkmSlb9hUNXMQoYQBpI0lTayPJHV5Elvn02x4Nu3Wiby/VyyBtTn7Wx2f3kReisy h6PmmfNh+g+f5f8jnTFAHqz1VTFYfOAjNJUCD3TVyyzzrphKrFszDS6DjBz6Rfjd70DF bssQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=0jOVApdbcnmQ0gZ+s+iXjEnjmT2qng2C8MAWEXFhcLM=; b=f3+ixvEUYyoR0Nwi9K4FMjZWh+CmgijY4m+fuq90WBgliyzmUeN/fiA3XlKn1iqH0p vVCrbREDO+J7vwZilSCDb0aO7DuUyZ60ZFN9yzLwxU7BqYo84l9MwiWidm/fr9/S18tM oX56yPtgWijVKhe9ZHMnQGRj9Pvru5dGg0w0miTA2I+WxNqcyNoVbvYBESDSj959Y7Sp 6thChRnmqYhm2jRts66TgCW7u/a+BDz8CF+u0LtD/Ok/TsfN5Dr8l3nU/WYq8RXOfUfL lSPTf8iX3zSwaES2L7wWqqFjmDJipEOeAwxZSnuOmvASc/dPj0Bdnq/ks6ZNeDsjGNf8 eJTw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=D7uUPnY0; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id d39si1693376pla.371.2019.06.25.18.37.29; Tue, 25 Jun 2019 18:37:44 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=D7uUPnY0; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726778AbfFZBfs (ORCPT + 99 others); Tue, 25 Jun 2019 21:35:48 -0400 Received: from mail-qt1-f195.google.com ([209.85.160.195]:46949 "EHLO mail-qt1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726750AbfFZBfq (ORCPT ); Tue, 25 Jun 2019 21:35:46 -0400 Received: by mail-qt1-f195.google.com with SMTP id h21so610257qtn.13; Tue, 25 Jun 2019 18:35:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=0jOVApdbcnmQ0gZ+s+iXjEnjmT2qng2C8MAWEXFhcLM=; b=D7uUPnY0JIqehepH86/rg5CV9NOaQrvG3BqpmFHjf6mMuP2rRQze8DKufn7mYx2ZAd wge+/l/A5dnUhkrbqswIWIKk9CZYofTFZyaj/lqvV85J1lLDAYfqxABlTKKNsvoByXUB O4YRz6320HaOIaW6pBhHr+1/5OXnwdhKNBZjaDckxbWoOyHvkDEm6LULYvGrUAZ4qFKf KatbGZKx/hCWWIwWTqi+krbMaf35cgwm5GRGkiCNhb1RhGFTChgut31GbwPL2HEkCwhY Q0GIhvzU2TSSLq4QtYhBFb+CLcL3jcSBsjJNVEXLXhR4onWZ05glVZig+X5uSc7RYV4E WTlA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=0jOVApdbcnmQ0gZ+s+iXjEnjmT2qng2C8MAWEXFhcLM=; b=q8oUS2tg2vGqTtNw4cbJTkUykSSIMj/hzvFwtWyFCyObS46OOTqUUTh5OuupK8QoZ/ jOi17I1LZLnss+L+fVTAtcVXE+la0PdecpkzKl8eyZgrI8TQtEVGKapRVDG+7jIDAz42 MUhOvY+fdMev8oIxcDvu5YtyBSM1/FIvMW8gyu93AE4P0oxZ11yjD+WsUkKMOkIAaPX+ gm6IGGiocnlzXbQOh6CLscpxM0wEWja/qejgH3qdzV3PL7YGVtzQcD4/xDCpj8ni9ucE qQrAlRttZ/nFeRz4/TdmMsGYjHW4YqJxqIMPO/HPqH64yFawHnC9ZkvMKbcNacXoV6fx oV0Q== X-Gm-Message-State: APjAAAUYloPckoW6EG/XO1U7cTAaOfiFHo/UXl22uI8gi0BY8e+hwp5B Wg2UQxhfe8IlBbSYCrBAZPC4JjnK66YITu+V/Yk= X-Received: by 2002:aed:38c2:: with SMTP id k60mr1262888qte.83.1561512945624; Tue, 25 Jun 2019 18:35:45 -0700 (PDT) MIME-Version: 1.0 References: <20190626003852.163986-1-allanzhang@google.com> In-Reply-To: <20190626003852.163986-1-allanzhang@google.com> From: Song Liu Date: Tue, 25 Jun 2019 18:35:34 -0700 Message-ID: Subject: Re: [PATCH bpf-next v6 0/2] bpf: Allow bpf_skb_event_output for more prog types To: allanzhang Cc: Alexei Starovoitov , Daniel Borkmann , Martin KaFai Lau , Song Liu , Yonghong Song , "David S. Miller" , Networking , bpf , open list Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Jun 25, 2019 at 5:39 PM allanzhang wrote: > > Software event output is only enabled by a few prog types right now (TC, > LWT out, XDP, sockops). Many other skb based prog types need > bpf_skb_event_output to produce software event. > > More prog types are enabled to access bpf_skb_event_output in this > patch. > > v2 changes: > Reformating log message. > > v3 changes: > Reformating log message. > > v4 changes: > Reformating log message. > > v5 changes: > Fix typos, reformat comments in event_output.c, move revision history to > cover letter. > > v6 changes: > fix Signed-off-by, fix fixup map creation. > > allanzhang (2): I guess you manually fixed the name in the other two patches, but forgot this one. You can fix it in your .gitconfig file. Make sure to get the proper capital letters. Also, please run ./scripts/checkpatch.pl on your patch files. This will help you find a lot of issues. Thanks, Song > bpf: Allow bpf_skb_event_output for a few prog types > bpf: Add selftests for bpf_perf_event_output > > net/core/filter.c | 6 ++ > tools/testing/selftests/bpf/test_verifier.c | 12 ++- > .../selftests/bpf/verifier/event_output.c | 94 +++++++++++++++++++ > 3 files changed, 111 insertions(+), 1 deletion(-) > create mode 100644 tools/testing/selftests/bpf/verifier/event_output.c > > -- > 2.22.0.410.gd8fdbe21b5-goog >