lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <CANr6G5wMjsrJ4GuGhAT-_4yt0iq_Q=iYG+pH3nzTFg23+Dxt2g@mail.gmail.com>
Date:	Fri, 6 Feb 2015 10:49:34 -0800
From:	Joe Stringer <joestringer@...ira.com>
To:	Andy Zhou <azhou@...ira.com>
Cc:	"dev@...nvswitch.com" <dev@...nvswitch.com>,
	Linux Netdev List <netdev@...r.kernel.org>
Subject: Re: [RFC: add openvswitch actions using BPF 7/9] ofproto-dpif: Add
 eBPF program loader and runtime infrasturcure.

On 4 February 2015 at 14:49, Andy Zhou <azhou@...ira.com> wrote:
> Added a eBPF program loader in ofproto-dpif layer. It only loades
> the OVS programs.
>
> Signed-off-by: Andy Zhou <azhou@...ira.com>
> ---

A little more precise: It only loads BPF programs with sections that
begin with the 'ovs' prefix.

There's a few scattered OVS style things like using ovs_scan(),
removing commented lines.

> +#define BPF_UNIXCTL_CHECK(conn) \
> +    if (bpf_unixctl_check_enable(conn) == -1) return

It seems unusual for OVS code to skimp on some "if(foo()) return"
logic by using a macro.

> +static int
> +bpf_unixctl_check_enable(struct unixctl_conn *conn)

Another minor style thing here, I think "check_enable" is ambiguous.
It's actually checking for datapath support for the feature. (I
realise there are other places in OVS that we do this, and I've been
meaning to clean them up).

> diff --git a/vswitchd/automake.mk b/vswitchd/automake.mk
> index 80affe9..a94720b 100644
> --- a/vswitchd/automake.mk
> +++ b/vswitchd/automake.mk
> @@ -19,6 +19,11 @@ vswitchd_ovs_vswitchd_LDFLAGS = $(AM_LDFLAGS) $(DPDK_vswitchd_LDFLAGS)
>  EXTRA_DIST += vswitchd/INTERNALS
>  MAN_ROOTS += vswitchd/ovs-vswitchd.8.in
>
> +if LINUX
> +vswitchd_ovs_vswitchd_LDADD += lib/libbpf.la
> +vswitchd_ovs_vswitchd_LDADD += -lelf
> +endif
> +

Do we perform a check for the libelf dev headers and library anywhere
in the build process?
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ