From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from shards.monkeyblade.net ([184.105.139.130]:50174 "EHLO shards.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751975AbeCOSmx (ORCPT ); Thu, 15 Mar 2018 14:42:53 -0400 Date: Thu, 15 Mar 2018 14:42:52 -0400 (EDT) Message-Id: <20180315.144252.131346271384145814.davem@davemloft.net> To: john.fastabend@gmail.com Cc: ast@kernel.org, daniel@iogearbox.net, davejwatson@fb.com, netdev@vger.kernel.org Subject: Re: [bpf-next PATCH v2 14/18] bpf: sockmap, add sample option to test apply_bytes helper From: David Miller In-Reply-To: <20180312192415.8039.76958.stgit@john-Precision-Tower-5810> References: <20180312192034.8039.70022.stgit@john-Precision-Tower-5810> <20180312192415.8039.76958.stgit@john-Precision-Tower-5810> Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: netdev-owner@vger.kernel.org List-ID: From: John Fastabend Date: Mon, 12 Mar 2018 12:24:16 -0700 > This adds an option to test the apply_bytes helper. This option lets > the user specify an int on the command line specifying how much data > each verdict should apply to. > > When this is set a map entry is set with the bytes input by the user > and then the specified program --txmsg or --txmsg_redir will use the > value and set the applied data. If no other option is set then a > default --txmsg_apply program is run. This program will drop pkts > if an error is detected on the bytes map lookup. Useful to verify > the map lookup and apply helper are working and causing a hard > error if it is not. > > Signed-off-by: John Fastabend Acked-by: David S. Miller