Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 5 Jul 2011 08:10:45 +0900
From:      Takuya ASADA <syuu@dokukino.com>
To:        soc-status@freebsd.org
Subject:   [mq_bpf] status report #6
Message-ID:  <CALG4x-WYvvtSJKkW5%2B-M0tQCYs0mmhB7eH6dmv-nQw-pgbsELg@mail.gmail.com>
In-Reply-To: <CALG4x-VyiEOL4pGm4CRSEjHmsKViv91ruyHixtHgMvTxFKmQ3g@mail.gmail.com>
References:  <CALG4x-VyiEOL4pGm4CRSEjHmsKViv91ruyHixtHgMvTxFKmQ3g@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
*Project summary
The project goal is to support multiqueue network interface on BPF,
and provide interfaces for multithreaded packet processing using BPF.
Modern high performance NICs have multiple receive/send queues and RSS
feature, this allows to process packet concurrently on multiple
processors.
Main purpose of the project is to support these hardware and get
benefit of parallelism.

Here's status update from last week:

* bug fixes & test of "queue len, queue affinity ioctls moved to the
device ioctl"
Last week I had a these problems:
- ifconfig shows invalid affinity value on igb(4)
- SOFTRSS doesn't work, fixing
- multi queue bpf is not well tested after the change

I fixed these in this commit
http://p4web.freebsd.org/@@195722?ac=3D10

Also, tested multiqueue bpf on both HW RSS NIC and SOFTRSS NIC.

This is output of modified version of ifconfig:
igb0: flags=3D8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 150=
0
=C2=A0 =C2=A0 =C2=A0 =C2=A0options=3D1001bb<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWT=
AGGING,JUMBO_MTU,VLAN_HWCSUM,TSO4,MULTIQUEUE>
=C2=A0 =C2=A0 =C2=A0 =C2=A0rxqueue len=3D6 affinity=3D[ 0:0 1:1 2:2 3:3 4:4=
 5:5 ]
=C2=A0 =C2=A0 =C2=A0 =C2=A0txqueue len=3D6 affinity=3D[ 0:0 1:1 2:2 3:3 4:4=
 5:5 ]
=C2=A0 =C2=A0 =C2=A0 =C2=A0ether 00:1b:21:53:ed:58
=C2=A0 =C2=A0 =C2=A0 =C2=A0media: Ethernet autoselect
=C2=A0 =C2=A0 =C2=A0 =C2=A0status: no carrier
igb1: flags=3D8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 150=
0
=C2=A0 =C2=A0 =C2=A0 =C2=A0options=3D1001bb<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWT=
AGGING,JUMBO_MTU,VLAN_HWCSUM,TSO4,MULTIQUEUE>
=C2=A0 =C2=A0 =C2=A0 =C2=A0rxqueue len=3D6 affinity=3D[ 0:0 1:1 2:2 3:3 4:4=
 5:5 ]
=C2=A0 =C2=A0 =C2=A0 =C2=A0txqueue len=3D6 affinity=3D[ 0:0 1:1 2:2 3:3 4:4=
 5:5 ]
=C2=A0 =C2=A0 =C2=A0 =C2=A0ether 00:1b:21:53:ed:59
=C2=A0 =C2=A0 =C2=A0 =C2=A0inet 163.215.189.124 netmask 0xffffffc0 broadcas=
t 163.215.189.127
=C2=A0 =C2=A0 =C2=A0 =C2=A0media: Ethernet autoselect (1000baseT <full-dupl=
ex>)
=C2=A0 =C2=A0 =C2=A0 =C2=A0status: active
msk0: flags=3D8802<BROADCAST,SIMPLEX,MULTICAST> metric 0 mtu 1500
=C2=A0 =C2=A0 =C2=A0 =C2=A0options=3D2c011b<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWT=
AGGING,TSO4,VLAN_HWTSO,LINKSTATE,SOFT_MULTIQUEUE>
=C2=A0 =C2=A0 =C2=A0 =C2=A0rxqueue len=3D6 affinity=3D[ 0:0 1:1 2:2 3:3 4:4=
 5:5 ]
=C2=A0 =C2=A0 =C2=A0 =C2=A0txqueue len=3D1 affinity=3D[ 0:0 ]
=C2=A0 =C2=A0 =C2=A0 =C2=A0ether bc:ae:c5:3e:a6:3c
=C2=A0 =C2=A0 =C2=A0 =C2=A0media: Ethernet autoselect
msk1: flags=3D8802<BROADCAST,SIMPLEX,MULTICAST> metric 0 mtu 1500
=C2=A0 =C2=A0 =C2=A0 =C2=A0options=3D2c011b<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWT=
AGGING,TSO4,VLAN_HWTSO,LINKSTATE,SOFT_MULTIQUEUE>
=C2=A0 =C2=A0 =C2=A0 =C2=A0rxqueue len=3D6 affinity=3D[ 0:0 1:1 2:2 3:3 4:4=
 5:5 ]
=C2=A0 =C2=A0 =C2=A0 =C2=A0txqueue len=3D1 affinity=3D[ 0:0 ]
=C2=A0 =C2=A0 =C2=A0 =C2=A0ether bc:ae:c5:3e:a5:67
=C2=A0 =C2=A0 =C2=A0 =C2=A0media: Ethernet autoselect
fwe0: flags=3D8802<BROADCAST,SIMPLEX,MULTICAST> metric 0 mtu 1500
=C2=A0 =C2=A0 =C2=A0 =C2=A0options=3D200008<VLAN_MTU,SOFT_MULTIQUEUE>
=C2=A0 =C2=A0 =C2=A0 =C2=A0rxqueue len=3D6 affinity=3D[ 0:0 1:1 2:2 3:3 4:4=
 5:5 ]
=C2=A0 =C2=A0 =C2=A0 =C2=A0txqueue len=3D1 affinity=3D[ 0:0 ]
=C2=A0 =C2=A0 =C2=A0 =C2=A0ether 02:1f:c6:09:e4:75
=C2=A0 =C2=A0 =C2=A0 =C2=A0ch 1 dma -1
fwip0: flags=3D8802<BROADCAST,SIMPLEX,MULTICAST> metric 0 mtu 1500
=C2=A0 =C2=A0 =C2=A0 =C2=A0lladdr 0.1f.c6.0.0.9.e4.75.a.2.ff.fe.0.0.0.0
lo0: flags=3D8049<UP,LOOPBACK,RUNNING,MULTICAST> metric 0 mtu 16384
=C2=A0 =C2=A0 =C2=A0 =C2=A0options=3D3<RXCSUM,TXCSUM>
=C2=A0 =C2=A0 =C2=A0 =C2=A0inet 127.0.0.1 netmask 0xff000000
=C2=A0 =C2=A0 =C2=A0 =C2=A0inet6 ::1 prefixlen 128
=C2=A0 =C2=A0 =C2=A0 =C2=A0inet6 fe80::1%lo0 prefixlen 64 scopeid 0xf
=C2=A0 =C2=A0 =C2=A0 =C2=A0nd6 options=3D21<PERFORMNUD,AUTO_LINKLOCAL>
vboxnet0: flags=3D8802<BROADCAST,SIMPLEX,MULTICAST> metric 0 mtu 1500
=C2=A0 =C2=A0 =C2=A0 =C2=A0options=3D200000<SOFT_MULTIQUEUE>
=C2=A0 =C2=A0 =C2=A0 =C2=A0rxqueue len=3D6 affinity=3D[ 0:0 1:1 2:2 3:3 4:4=
 5:5 ]
=C2=A0 =C2=A0 =C2=A0 =C2=A0txqueue len=3D1 affinity=3D[ 0:0 ]
=C2=A0 =C2=A0 =C2=A0 =C2=A0ether 0a:00:27:00:00:00

Now we have rxqueue/txqueue len & affinity info, and options field
shows MULTIQUEUE and SOFT_MULTIQUEUE flags.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CALG4x-WYvvtSJKkW5%2B-M0tQCYs0mmhB7eH6dmv-nQw-pgbsELg>