smadaminov / ovs-dpdk-meson-issues

VMware Summer 2021
BSD 3-Clause "New" or "Revised" License
1 stars 1 forks source link

azure mlx5: promiscuous mode not supported #73

Open williamtu opened 2 years ago

williamtu commented 2 years ago

error Error during enabling promiscuous mode for port 0: Unknown error - ignore

PS C:\dpdk\build\app> .\dpdk-testpmd.exe
EAL: Registered [auxiliary] bus.
EAL: Registered [pci] bus.
EAL: Registered [vdev] bus.
EAL: Registered [eth] device class.
EAL: lib.pdump log level changed from disabled to notice
EAL: lib.cfgfile log level changed from disabled to info
EAL: lib.ethdev log level changed from disabled to info
EAL: lib.net log level changed from disabled to info
EAL: lib.rcu log level changed from disabled to error
EAL: pmd.common.iavf log level changed from disabled to notice
EAL: bus.auxiliary log level changed from disabled to notice
EAL: bus.vdev log level changed from disabled to notice
EAL: pmd.common.mlx5 log level changed from disabled to notice
EAL: pmd.net.i40e.init log level changed from disabled to notice
EAL: pmd.net.i40e.driver log level changed from disabled to notice
EAL: pmd.net.ice.init log level changed from disabled to notice
EAL: pmd.net.ice.driver log level changed from disabled to notice
EAL: pmd.net.mlx5 log level changed from disabled to notice
EAL: pmd.net.vmxnet3.init log level changed from disabled to notice
EAL: pmd.net.vmxnet3.driver log level changed from disabled to notice
EAL: testpmd log level changed from disabled to info
EAL: testpmd log level changed from info to debug
testpmd: ARGV C:\dpdk\build\app\dpdk-testpmd.exe
The file 'mydpdk.log' was opened
EAL: FATAL: init PCI
EAL: FATAL: init PCI done
EAL: FATAL: probe devices
EAL: FATAL: probe devices done
Failed to set MTU to 1500 for port 0

Warning! port-topology=paired and odd forward ports number, the last port will pair with itself.

Configuring Port 0 (socket 0)
Port 0: 00:22:48:26:66:74
Checking link statuses...
Done
Error during enabling promiscuous mode for port 0: Unknown error - ignore
No commandline core given, start packet forwarding
io packet forwarding - ports=1 - cores=1 - streams=1 - NUMA support enabled, MP allocation mode: native
Logical Core 1 (socket 0) forwards packets on 1 streams:
  RX P=0/Q=0 (socket 0) -> TX P=0/Q=0 (socket 0) peer=02:00:00:00:00:00

  io packet forwarding packets/burst=32
  nb forwarding cores=1 - nb forwarding ports=1
  port 0: RX queue number: 1 Tx queue number: 1
    Rx offloads=0x0 Tx offloads=0x10000
    RX queue: 0
      RX desc=256 - RX free threshold=64
      RX threshold registers: pthresh=0 hthresh=0  wthresh=0
      RX Offloads=0x0
    TX queue: 0
      TX desc=256 - TX free threshold=0
      TX threshold registers: pthresh=0 hthresh=0  wthresh=0
      TX offloads=0x10000 - TX RS bit threshold=0
Press enter to exit
Telling cores to stop...
Waiting for lcores to finish...

  ---------------------- Forward statistics for port 0  ----------------------
Signal 2 received, preparing to exit...
  RX-packets: 0              RX-dropped: 0             RX-total: 0
  TX-packets: 0              TX-dropped: 0             TX-total: 0
Telling cores to stop...
Waiting for lcores to finish...

another log

EAL: TSC frequency is ~2600000 KHz
EAL: init PCI
EAL: scan bus auxiliary
EAL: PCI scan found 1 devices
EAL: scan bus pci
EAL: rte_mp_action_register() is not implemented
EAL: scan bus vdev
EAL: init PCI done
EAL: lcore 1 is ready (tid=1328;cpuset=[])
EAL: Windows: request_sync() is a stub
EAL: Heap on socket 0 was expanded by 2MB
EAL: probe devices
EAL: Bus (auxiliary) probe.
EAL: PCI device e147:00:02.0 on NUMA socket 0
EAL:   probe driver: 15b3:1016 mlx5_pci
EAL: Probe PCI driver: mlx5_pci (15b3:1016) device: e147:00:02.0 (socket 0)
mlx5_common: probe device "e147:00:02.0".
mlx5_net: naming Ethernet device "e147:00:02.0"
mlx5_common: RTE_MEM is selected.
mlx5_common: initialized B-tree 0000026E297D5DB8 with table 0000026E297D2E80
mlx5_net: mlx5_os_dev_shared_handler_install: is not supported
mlx5_net: MPW isn't supported
mlx5_net: tunnel offloading is not supported
mlx5_net: MPLS over GRE/UDP tunnel offloading is no supported
mlx5_net: counters are not supported
mlx5_net: maximum Rx indirection table size is 512
mlx5_net: VLAN stripping is not supported
mlx5_net: MPS is disabled.
mlx5_net: checksum offloading is supported
mlx5_net: port 0 MAC address is 00:22:48:26:66:74
mlx5_net: port 0 MTU is 1514.
mlx5_net: port 0 forcing Ethernet interface up.
mlx5_net: min tx inline configured: 18
mlx5_common: mlx5 list Mellanox ConnectX-4 Lx Virtual  initialized.
mlx5_common: mlx5 list Mellanox ConnectX-4 Lx Virtual  initialized.
mlx5_common: mlx5 list Mellanox ConnectX-4 Lx Virtual  initialized.
mlx5_common: Hash list Mellanox ConnectX-4 Lx Virtual  with size 0x400 was created.
mlx5_common: mlx5 list Mellanox ConnectX-4 Lx Virtual  entry 0000026E296713C0 new: 1.
mlx5_net: table_level 0 table_id 0 tunnel 0 group 0 registered.
mlx5_common: mlx5 list Mellanox ConnectX-4 Lx Virtual  entry 0000026E29671480 new: 1.
mlx5_net: table_level 0 table_id 0 tunnel 0 group 0 registered.
mlx5_common: mlx5 list Mellanox ConnectX-4 Lx Virtual  entry 0000026E29671540 new: 1.
mlx5_net: table_level 0 table_id 0 tunnel 0 group 0 registered.
mlx5_net: metadata mode 0
mlx5_net: metadata MARK mask 00FFFFFF
mlx5_net: metadata META mask FFFFFFFF
mlx5_net: metadata reg_c0 mask FFFFFFFF
mlx5_common: mlx5 list hrxq initialized.
mlx5_net: port 0 extensive metadata register is not supported.
EAL: Bus (pci) probe.
EAL: probe devices done
testpmd: init EAL done
EAL: rte_mp_action_register() is not implemented
testpmd: port count 1
EAL: Windows: request_sync() is a stub
EAL: Heap on socket 0 was expanded by 6MB
testpmd: create a new mbuf pool <mb_pool_0>: n=155456, size=2176, socket=0
testpmd: preferred mempool ops selected: ring_mp_mc
EAL: Windows: request_sync() is a stub
EAL: Heap on socket 0 was expanded by 2MB
EAL: Windows: request_sync() is a stub
EAL: Heap on socket 0 was expanded by 4MB
EAL: Windows: request_sync() is a stub
EAL: Heap on socket 0 was expanded by 352MB
mlx5_net: port 0 Tx queues number update: 0 -> 1
mlx5_net: port 0 Rx queues number update: 0 -> 1
mlx5_net: port 0 configuring queue 0 for 256 descriptors
mlx5_common: initialized B-tree 0000026E2A481228 with table 0000026E2A47FBC0
mlx5_net: port 0 adding Tx queue 0 to list
mlx5_net: port 0 configuring Rx queue 0 for 256 descriptors
mlx5_common: initialized B-tree 0000026E2A47EEB4 with table 0000026E2A47D940
mlx5_net: port 0 maximum number of segments per packet: 1
mlx5_net: port 0 Rx Queue 0 max LRO message size adjusted to 1280 bytes
mlx5_net: port 0 CRC stripping is enabled, 0 bytes will be subtracted from incoming frames to hide it
mlx5_net: port 0 adding Rx queue 0 to list
mlx5_net: port 0 starting device
mlx5_net: port 0 Rx queues number update: 1 -> 1
mlx5_net: port 0 Tx queue 0 allocated and configured 256 WRs
mlx5_net: port 0 Rx Queue 0 max LRO message size adjusted to 1280 bytes
mlx5_net: port 0 CRC stripping is enabled, 0 bytes will be subtracted from incoming frames to hide it
mlx5_net: port 0 adding Rx queue 0 to list
mlx5_net: port 0 starting device
mlx5_net: port 0 Rx queues number update: 1 -> 1
mlx5_net: port 0 Tx queue 0 allocated and configured 256 WRs
mlx5_net: Port 0 txq 0 updated with 0000026E2A481068.
mlx5_net: Port 0 device_attr.max_qp_wr is 32768.
mlx5_net: Port 0 device_attr.max_sge is 0.
mlx5_net: Port 0 Rx queue registering mp mb_pool_0 having 176 chunks.
mlx5_common: Creating a MR using address (0000026E2A4AF880)
mlx5_common: Extending 0000026E2A4AF880 to [0x26e29600000, 0x26e40400000), page_sz=0x200000, ms_n=183
mlx5_common: MR CREATED (0000026E2A476C40) for 0000026E2A4AF880:
  [0x26e29600000, 0x26e40400000), lkey=0x2010200 base_idx=0 ms_n=183, ms_bmp_n=183
mlx5_common: Inserting MR(0000026E2A476C40) to global cache(0000026E297D5DB0)
mlx5_common: inserted B-tree(0000026E297D5DB8)[1], [0x26e29600000, 0x26e40400000) lkey=0x2010200
mlx5_common: inserted B-tree(0000026E2A47EEB4)[1], [0x26e29600000, 0x26e40400000) lkey=0x2010200
mlx5_net: port 0 SPRQ queue 0 allocated and configured 256 segments (max 256 packets)
mlx5_net: Port 0 rxq 0 updated with 0000026E2A47F218.
EAL: Windows: request_sync() is a stub
EAL: Heap on socket 0 was expanded by 4MB
mlx5_net: port 0 group=0 transfer=0 external=0 fdb_def_rule=0 translate=STANDARD
mlx5_net: port 0 group=0 table=0
mlx5_common: mlx5 list NIC_ingress_0_0_matcher_list initialized.
mlx5_common: mlx5 list Mellanox ConnectX-4 Lx Virtual  entry 0000026E29671600 new: 1.
mlx5_net: table_level 0 table_id 0 tunnel 0 group 0 registered.
mlx5_common: mlx5 list NIC_ingress_0_0_matcher_list entry 0000026E405E8E80 new: 1.
mlx5_common: mlx5 list hrxq entry 0000026E405E6540 new: 1.
mlx5_net: port 0 group=0 transfer=0 external=0 fdb_def_rule=0 translate=STANDARD
mlx5_net: port 0 group=0 table=0
mlx5_common: mlx5 list Mellanox ConnectX-4 Lx Virtual  entry 0000026E29671660 ref: 2.
mlx5_net: table_level 0 table_id 0 tunnel 0 group 0 registered.
mlx5_common: mlx5 list NIC_ingress_0_0_matcher_list entry 0000026E405E60C0 new: 1.
mlx5_common: mlx5 list hrxq entry 0000026E405E65B8 ref: 2.
mlx5_net: port 0 group=0 transfer=0 external=0 fdb_def_rule=0 translate=STANDARD
mlx5_net: port 0 group=0 table=0
mlx5_common: mlx5 list Mellanox ConnectX-4 Lx Virtual  entry 0000026E29671660 ref: 3.
mlx5_net: table_level 0 table_id 0 tunnel 0 group 0 registered.
mlx5_common: mlx5 list NIC_ingress_0_0_matcher_list entry 0000026E405E8900 ref: 2.
mlx5_common: mlx5 list hrxq entry 0000026E405E65B8 ref: 3.
mlx5_net: port 0 has selected Tx function supporting offloads 0010/0050
mlx5_net:       INLIN (inline data)
mlx5_net:       METAD (tx Flow metadata)
williamtu commented 2 years ago
PS C:\dpdk\build\app> ipconfig

Windows IP Configuration

Ethernet adapter Ethernet 4:

   Connection-specific DNS Suffix  . : ybgulvnkebyujfdy5ozcyayqxf.bx.internal.cloudapp.net
   Link-local IPv6 Address . . . . . : fe80::84de:19a3:bf4e:fe58%22
   IPv4 Address. . . . . . . . . . . : 10.0.0.6
   Subnet Mask . . . . . . . . . . . : 255.255.255.0
   Default Gateway . . . . . . . . . : 10.0.0.1

Ethernet adapter Ethernet 14:

   Connection-specific DNS Suffix  . : ybgulvnkebyujfdy5ozcyayqxf.bx.internal.cloudapp.net
   Link-local IPv6 Address . . . . . : fe80::ddd7:7317:a15d:997e%21
   IPv4 Address. . . . . . . . . . . : 10.0.1.5
   Subnet Mask . . . . . . . . . . . : 255.255.255.0
   Default Gateway . . . . . . . . . :

using Ethernet 14

  Adapter 11:
      name=Ethernet 30
      interface_description=Mellanox ConnectX-4 Lx Virtual Ethernet Adapter #14
      short_name=AD-1
      ndis_mode=RSS
      physical_location:
        Bus Slot=2
        Serial=2
        Bus=14763776
        Device=2
        Function=0
      state=ENABLED
      port_guid=0022:48ff:fd26:6674
      node_guid=0022:48ff:fe26:6674
      port_state=PORT_UP
      port_phys_state=LINK_UP
      fw_pages=4
      DevX=True
      DevxFsRules=0xffff
      SmartNic=False
      PacketFilter=0xb
      MsAzureSetup=False
      NdkFmrQp=False
      RfdPages=2304
      RfdAlloc=1
      RfdTotPages=2304
      RfdTotAlloc=1
      link_speed=50.00 Gbps
      active_mtu=1500
      default_roce_version=No RoCE
      link_layer=Ethernet
williamtu commented 2 years ago
    Bus Slot=2
    Serial=2
    Bus=14763776
    Device=2
    Function=0

hex(14763776) '0xe14700'

e147:02:02.0 or e147:00:02.0

The device identifier looks ok to me, the 'c299' value is the segment number of the device SBDF.

          16bits                            8bits                    8bits                     8bits
|---------------------------|--------------------|--------------------|--------------------|
   Segment number          Bus Number    Device Num       Function Number
williamtu commented 2 years ago

working case

EAL: PCI device e147:00:02.0 on NUMA socket 0
EAL:   probe driver: 15b3:1016 mlx5_pci
EAL: Probe PCI driver: mlx5_pci (15b3:1016) device: e147:00:02.0 (socket 0)
mlx5_common: probe device "e147:00:02.0".
mlx5_net: naming Ethernet device "e147:00:02.0"