Bug 204326 - [patch] sys/dev/oce bugged promiscuous mode
Summary: [patch] sys/dev/oce bugged promiscuous mode
Status: Closed FIXED
Alias: None
Product: Base System
Classification: Unclassified
Component: kern (show other bugs)
Version: 11.2-STABLE
Hardware: amd64 Any
: --- Affects Only Me
Assignee: freebsd-net (Nobody)
URL:
Keywords: patch
Depends on:
Blocks:
 
Reported: 2015-11-06 09:46 UTC by Sergey Akhmatov
Modified: 2019-01-18 04:00 UTC (History)
3 users (show)

See Also:


Attachments
Promisc mode fix (431 bytes, patch)
2015-11-06 09:46 UTC, Sergey Akhmatov
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Sergey Akhmatov 2015-11-06 09:46:10 UTC
Created attachment 162845 [details]
Promisc mode fix

Poblem observed on HP NC550SFP NIC

$ dmesg
oce0: <Emulex CNA NIC function:///10.0.664.0///> mem 
0xfbff0000-0xfbff3fff,0xfbfc0000-0xfbfdffff,0xfbfa0000-0xfbfbffff irq 32 

$ pciconf –vl
oce0 at pci0:4:0:0:        class=0x020000 card=0x1747103c chip=0x070019a2 
rev=0x02 hdr=0x00
     vendor     = 'Emulex Corporation'
     device     = 'OneConnect 10Gb NIC'
     class      = network
     subclass   = ethernet

Putting interface to promisc mode either by tcpdump, or by ifconfig oce0 promisc actually has no effect: only unicast frames with destination MAC matching NIC's and broadcast frames are visible.

Patch fixes problem. It was received from Emulex tech support in June, but haven't made it to HEAD yet.
Comment 1 Sergey Akhmatov 2017-02-21 11:05:24 UTC
Anyone? More than a year have passed, the bug is still there.
Comment 2 mg 2017-09-01 15:59:12 UTC
Bug & patch confirmed. 
CARP will be unable to handle traffic because of the virtual mac addresses of the vhid's. 

BTW: Emulex driver support is not available anymore with the email listed in the oce.ko manpage.
Comment 3 mg 2017-09-01 16:13:26 UTC
(In reply to mg from comment #2)
The bug is affecting ALL FreeBSD Versions and makes CARP and promise unusable. 
This is an enterprise server nic. So the severity of upstreaming the patch should be increased.
Comment 4 Oleksandr Tymoshenko freebsd_committer freebsd_triage 2019-01-18 04:00:57 UTC
Closing as fixed. The fix was committed to head as base r306219 and to stable/11 as base r338938