[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20180315.144252.131346271384145814.davem@davemloft.net>
Date: Thu, 15 Mar 2018 14:42:52 -0400 (EDT)
From: David Miller <davem@...emloft.net>
To: john.fastabend@...il.com
Cc: ast@...nel.org, daniel@...earbox.net, davejwatson@...com,
netdev@...r.kernel.org
Subject: Re: [bpf-next PATCH v2 14/18] bpf: sockmap, add sample option to
test apply_bytes helper
From: John Fastabend <john.fastabend@...il.com>
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 <john.fastabend@...il.com>
Acked-by: David S. Miller <davem@...emloft.net>
Powered by blists - more mailing lists