Bug 254507 - bnxt(4) promiscuous mode does not work
Summary: bnxt(4) promiscuous mode does not work
Status: New
Alias: None
Product: Base System
Classification: Unclassified
Component: kern (show other bugs)
Version: 12.2-STABLE
Hardware: amd64 Any
: --- Affects Some People
Assignee: freebsd-net (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-03-23 15:06 UTC by Trond Davidsen
Modified: 2021-03-25 01:46 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Trond Davidsen 2021-03-23 15:06:44 UTC
Hi,
I have a Dell R7515 server with 2 2-port Broadcom NetXtreme BCM5720 cards

bge0@pci0:193:0:0:      class=0x020000 card=0x08fd1028 chip=0x165f14e4 rev=0x00 hdr=0x00
    vendor     = 'Broadcom Inc. and subsidiaries'
    device     = 'NetXtreme BCM5720 2-port Gigabit Ethernet PCIe'
    class      = network
    subclass   = ethernet
bge1@pci0:193:0:1:      class=0x020000 card=0x08fd1028 chip=0x165f14e4 rev=0x00 hdr=0x00
    vendor     = 'Broadcom Inc. and subsidiaries'
    device     = 'NetXtreme BCM5720 2-port Gigabit Ethernet PCIe'
    class      = network
    subclass   = ethernet


dev.bnxt.3.%desc: Broadcom BCM57414 NetXtreme-E 10Gb/25Gb Ethernet
dev.bnxt.2.%desc: Broadcom BCM57414 NetXtreme-E 10Gb/25Gb Ethernet
dev.bnxt.1.%desc: Broadcom BCM57414 NetXtreme-E 10Gb/25Gb Ethernet
dev.bnxt.0.%desc: Broadcom BCM57414 NetXtreme-E 10Gb/25Gb Ethernet

dev.bnxt.0.ver.hwrm_min_ver: 1.2.2
dev.bnxt.0.ver.package_ver: <unknown>
dev.bnxt.0.ver.chip_type: ASIC
dev.bnxt.0.ver.chip_bond_id: 0
dev.bnxt.0.ver.chip_metal: 1
dev.bnxt.0.ver.chip_rev: 1
dev.bnxt.0.ver.chip_num: 5847
dev.bnxt.0.ver.phy_partnumber:
dev.bnxt.0.ver.phy_vendor:
dev.bnxt.0.ver.roce_fw_name: BONO_FW
dev.bnxt.0.ver.netctrl_fw_name: KONG_FW
dev.bnxt.0.ver.mgmt_fw_name: AFW_214.4.42.2
dev.bnxt.0.ver.hwrm_fw_name: CHIMP_FW
dev.bnxt.0.ver.phy: 13.1.11
dev.bnxt.0.ver.roce_fw: 214.0.194
dev.bnxt.0.ver.netctrl_fw: 214.4.7
dev.bnxt.0.ver.mgmt_fw: 214.4.42
dev.bnxt.0.ver.hwrm_fw: 214.4.91
dev.bnxt.0.ver.driver_hwrm_if: 1.8.1.7
dev.bnxt.0.ver.hwrm_if: 1.10.1

We have several of these ports connected to 10Gb mirror ports on Cisco switches, and want
to generate netflow statistics from the traffic.  But when we bring the interface up
with promisc mode the driver does not seem to receive any traffic with tcpdump -n -i bnxt2.
When we move the cable from a port on the Broadcom card to a port on a Intel card
tcpdump -n -i ix0 shows lots of traffic.



/etc/rc.conf:
ifconfig_bnxt2="promisc -tso4 -ts06 -lro"
ifconfig_ix0="promisc"



ifconfig bnxt2:
bnxt2: flags=28943<UP,BROADCAST,RUNNING,PROMISC,SIMPLEX,MULTICAST,PPROMISC> metric 0 mtu 1500
        options=e506bb<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING,JUMBO_MTU,VLAN_HWCSUM,TSO6,LRO,VLAN_HWFILTER,VLAN_HWTSO,RXCSUM_IPV6,TXCSUM_IPV6>
        ether bc:97:e1:74:95:60
        media: Ethernet autoselect (10Gbase-SR <full-duplex,rxpause,txpause>)
        status: active
        nd6 options=29<PERFORMNUD,IFDISABLED,AUTO_LINKLOCAL>



ifconfig ix0:
ix0: flags=28943<UP,BROADCAST,RUNNING,PROMISC,SIMPLEX,MULTICAST,PPROMISC> metric 0 mtu 1500
        options=e53fbb<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING,JUMBO_MTU,VLAN_HWCSUM,TSO4,TSO6,LRO,WOL_UCAST,WOL_MCAST,WOL_MAGIC,VLAN_HWFILTER,VLAN_HWTSO,RXCSUM_IPV6,TXCSUM_IPV6>
        ether 90:e2:ba:73:6b:bc
        media: Ethernet autoselect (10Gbase-SR <full-duplex,rxpause,txpause>)
        status: active
        nd6 options=29<PERFORMNUD,IFDISABLED,AUTO_LINKLOCAL>


Any advice?


-- Trond