[ovs-dev] [PATCHv11] netdev-afxdp: add new netdev type for AF_XDP.
Ben Pfaff
blp at ovn.org
Tue Jun 11 14:53:24 UTC 2019
On Tue, Jun 11, 2019 at 08:47:19AM +0200, Eelco Chaudron wrote:
>
>
> On 8 Jun 2019, at 6:48, William Tu wrote:
>
> > > > > + ethtool -L enp2s0 combined 1
> > > > > + ovs-vsctl set Open_vSwitch . other_config:pmd-cpu-mask=0x10
> > > > > + ovs-vsctl add-port br0 enp2s0 -- set interface enp2s0
> > > > > type="afxdp"
> > > > > \
> > > > > + options:n_rxq=1 options:xdpmode=drv \
> > > > > + other_config:pmd-rxq-affinity="0:4"
> >
> > another feature I'm thinking about to add is a new options
> > for loading custom XDP program
> >
> > For example:
> > ovs-vsctl add-port br0 enp2s0 -- set interface enp2s0 type="afxdp"
> > options:n_rxq=1 options:xdpmode=drv
> > options:xdp_prog=/path/to/xdp.o
> >
> > If users do not specify the path, then it is using the libbpf's default
> > program
> > (which forwards all packets to userspace)
> >
> > If users want to use their own xdp object, then this option can load the
> > xdp object file from the path.
>
> This might be useful, specially if you would like to do some experiments.
There could be a security risk here depending on how we sanitize the
path.
More information about the dev
mailing list