* be2net: SR-IOV, vlan isolation issue
@ 2015-01-09 9:31 Yoann Juet
2015-01-13 21:45 ` Greg Rose
2015-01-14 6:26 ` Sathya Perla
0 siblings, 2 replies; 3+ messages in thread
From: Yoann Juet @ 2015-01-09 9:31 UTC (permalink / raw)
To: netdev@vger.kernel.org; +Cc: Yoann Juet
Hi all,
I recently discovered unattended behavior from Emulex cards with KVM
hypervisor and SR-IOV. On such 10Gbps cards (be2net module, Emulex
OneConnect OCm14102-U3-D devices), guest machines attached to VFs on the
Emulex Physical Functions (PF) see all multicast and broadcast (not
unicast) traffic from/to other VM located on the same PF **BUT** on
other vlans. Just put into promiscuous mode the guest machine's
interface and you will observe inbound, outbound (multicast + broadcast
only) irrelevant traffic.
Please note that irrelevant traffic is not sent to the guest machine
TCP/IP stack. No firewall hitting for instance. The issue is about
traffic monitoring with a VF put into promiscuous mode using a sniffer
like tshark, tcpdump... Vlan isolation seems not 100% effective from the
guest perspective since mcast+bcast information leaks.
A similar issue has already been observed with Broadcom cards and then
patched by the developer team. Refer to the post in archive "bnx2x +
SR-IOV, no internal L2 switching", 12 Feb 2014. Emulex driver seems to
suffer the same problem, isn't it ?
Many thanks for considering my request,
Best regards,
Yoann Juet
----
# ethtool -i eth2
driver: be2net
version: 10.4u
firmware-version: 10.2.470.14
bus-info: 0000:04:00.0
supports-statistics: yes
supports-test: yes
supports-eeprom-access: yes
supports-register-dump: no
supports-priv-flags: no
#lspci -vv
...
[V1] Vendor specific: Emulex OneConnect OCm14102-U3-D 2-port 10GbE Mezz CNA
[V2] Vendor specific: OCm14102-U3-D
...
# uname -a
Linux machriemoor.u06.univ-nantes.prive 3.18.1-dsiun-141008 #12 SMP Wed
Dec 24 11:34:32 CET 2014 x86_64 GNU/Linux
# virsh version
Compiled against library: libvirt 1.2.9
Using library: libvirt 1.2.9
Using API: QEMU 1.2.9
Running hypervisor: QEMU 2.1.2
I'm using libvirt with <hostdev> XML blocks to assign VF to a particular
vlan: For instance:
<interface type='network'>
<mac address='de:ad:ef:ef:f3:01'/>
<source network='pf-eth2'/>
<vlan>
<tag id='888'/>
</vlan>
</interface>
----
^ permalink raw reply [flat|nested] 3+ messages in thread* Re: be2net: SR-IOV, vlan isolation issue
2015-01-09 9:31 be2net: SR-IOV, vlan isolation issue Yoann Juet
@ 2015-01-13 21:45 ` Greg Rose
2015-01-14 6:26 ` Sathya Perla
1 sibling, 0 replies; 3+ messages in thread
From: Greg Rose @ 2015-01-13 21:45 UTC (permalink / raw)
To: Yoann Juet; +Cc: netdev@vger.kernel.org, Yoann Juet
On Fri, Jan 9, 2015 at 1:31 AM, Yoann Juet
<veilletechno-irts@univ-nantes.fr> wrote:
> Hi all,
>
> I recently discovered unattended behavior from Emulex cards with KVM
> hypervisor and SR-IOV. On such 10Gbps cards (be2net module, Emulex
> OneConnect OCm14102-U3-D devices), guest machines attached to VFs on the
> Emulex Physical Functions (PF) see all multicast and broadcast (not unicast)
> traffic from/to other VM located on the same PF **BUT** on other vlans. Just
> put into promiscuous mode the guest machine's interface and you will observe
> inbound, outbound (multicast + broadcast only) irrelevant traffic.
>
> Please note that irrelevant traffic is not sent to the guest machine TCP/IP
> stack. No firewall hitting for instance. The issue is about traffic
> monitoring with a VF put into promiscuous mode using a sniffer like tshark,
> tcpdump... Vlan isolation seems not 100% effective from the guest
> perspective since mcast+bcast information leaks.
>
> A similar issue has already been observed with Broadcom cards and then
> patched by the developer team. Refer to the post in archive "bnx2x + SR-IOV,
> no internal L2 switching", 12 Feb 2014. Emulex driver seems to suffer the
> same problem, isn't it ?
>
> Many thanks for considering my request,
> Best regards,
> Yoann Juet
You may want to contact the emulex maintainers listed in the
MAINTAINERS file or else copy them on this email. They may not be
looking at netdev all the time.
>From the MAINTAINERS file:
SERVER ENGINES 10Gbps NIC - BladeEngine 2 DRIVER
M: Sathya Perla <sathya.perla@emulex.com>
M: Subbu Seetharaman <subbu.seetharaman@emulex.com>
M: Ajit Khaparde <ajit.khaparde@emulex.com>
Just FYI...
- Greg
>
> ----
>
> # ethtool -i eth2
> driver: be2net
> version: 10.4u
> firmware-version: 10.2.470.14
> bus-info: 0000:04:00.0
> supports-statistics: yes
> supports-test: yes
> supports-eeprom-access: yes
> supports-register-dump: no
> supports-priv-flags: no
>
> #lspci -vv
> ...
> [V1] Vendor specific: Emulex OneConnect OCm14102-U3-D 2-port 10GbE Mezz CNA
> [V2] Vendor specific: OCm14102-U3-D
> ...
>
> # uname -a
> Linux machriemoor.u06.univ-nantes.prive 3.18.1-dsiun-141008 #12 SMP Wed Dec
> 24 11:34:32 CET 2014 x86_64 GNU/Linux
>
> # virsh version
> Compiled against library: libvirt 1.2.9
> Using library: libvirt 1.2.9
> Using API: QEMU 1.2.9
> Running hypervisor: QEMU 2.1.2
>
> I'm using libvirt with <hostdev> XML blocks to assign VF to a particular
> vlan: For instance:
>
> <interface type='network'>
> <mac address='de:ad:ef:ef:f3:01'/>
> <source network='pf-eth2'/>
> <vlan>
> <tag id='888'/>
> </vlan>
> </interface>
>
> ----
> --
> To unsubscribe from this list: send the line "unsubscribe netdev" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
^ permalink raw reply [flat|nested] 3+ messages in thread
* RE: be2net: SR-IOV, vlan isolation issue
2015-01-09 9:31 be2net: SR-IOV, vlan isolation issue Yoann Juet
2015-01-13 21:45 ` Greg Rose
@ 2015-01-14 6:26 ` Sathya Perla
1 sibling, 0 replies; 3+ messages in thread
From: Sathya Perla @ 2015-01-14 6:26 UTC (permalink / raw)
To: Yoann Juet, netdev@vger.kernel.org; +Cc: Yoann Juet
> -----Original Message-----
> From: netdev-owner@vger.kernel.org [mailto:netdev-
>
> Hi all,
>
> I recently discovered unattended behavior from Emulex cards with KVM
> hypervisor and SR-IOV. On such 10Gbps cards (be2net module, Emulex
> OneConnect OCm14102-U3-D devices), guest machines attached to VFs on
> the
> Emulex Physical Functions (PF) see all multicast and broadcast (not
> unicast) traffic from/to other VM located on the same PF **BUT** on
> other vlans. Just put into promiscuous mode the guest machine's
> interface and you will observe inbound, outbound (multicast + broadcast
> only) irrelevant traffic.
>
> Please note that irrelevant traffic is not sent to the guest machine
> TCP/IP stack. No firewall hitting for instance. The issue is about
> traffic monitoring with a VF put into promiscuous mode using a sniffer
> like tshark, tcpdump... Vlan isolation seems not 100% effective from the
> guest perspective since mcast+bcast information leaks.
>
> A similar issue has already been observed with Broadcom cards and then
> patched by the developer team. Refer to the post in archive "bnx2x +
> SR-IOV, no internal L2 switching", 12 Feb 2014. Emulex driver seems to
> suffer the same problem, isn't it ?
>
Yoann, thanks for reporting this issue. This issue is caused because
the VF was allowed to go into vlan-promiscuous mode by the PF.
We'll try to provide a fix for this soon...
thanks,
-Sathya
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2015-01-14 6:26 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-01-09 9:31 be2net: SR-IOV, vlan isolation issue Yoann Juet
2015-01-13 21:45 ` Greg Rose
2015-01-14 6:26 ` Sathya Perla
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox