smadaminov / ovs-dpdk-meson-issues

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

mlx5cmd sniffer failed #71

Open williamtu opened 2 years ago

williamtu commented 2 years ago

PS C:\dpdk\build\app> Mlx5Cmd.exe -Sniffer -Name "Ethernet 26" -start -filename a.pcap UtilDeviceIoControl MLX5_FUNCTION_SNIFFER_START Failed 0x80070032

  Adapter 10:
      name=Ethernet 26
      interface_description=Mellanox ConnectX-4 Lx Virtual Ethernet Adapter #13
      short_name=AD-1
      ndis_mode=RSS
      physical_location:
        Bus Slot=2
        Serial=2
        Bus=2025728
        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

at the sender side, using Linux DPDK

root@dpdk-ubuntu:~# ethtool -S enP7663s2 | grep tx_
     tx_vport_unicast_packets: 516463040
     tx_vport_unicast_bytes: 33053675510
     tx_vport_multicast_packets: 16
     tx_vport_multicast_bytes: 1216

tx_vport_unicast_packets | Unicast packets transmitted, steered from a port including Raw Ethernet QP/DPDK traffic, excluding RDMA traffic

mellanox ethtool doc https://community.mellanox.com/s/article/understanding-mlx5-ethtool-counters

williamtu commented 2 years ago
From a5c7d01197e870ab9c87ff5eebb0dd294fc22195 Mon Sep 17 00:00:00 2001
From: Tal Shnaiderman <talshn@nvidia.com>
Date: Thu, 30 Sep 2021 16:34:22 +0300
Subject: [PATCH] net/mlx5: drop set_promisc failure on VF

Signed-off-by: Tal Shnaiderman <talshn@nvidia.com>
---
 drivers/net/mlx5/windows/mlx5_os.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/drivers/net/mlx5/windows/mlx5_os.c b/drivers/net/mlx5/windows/mlx5_os.c
index 1ce2337b55..bca381ed19 100644
--- a/drivers/net/mlx5/windows/mlx5_os.c
+++ b/drivers/net/mlx5/windows/mlx5_os.c
@@ -887,8 +887,7 @@ mlx5_os_set_promisc(struct rte_eth_dev *dev, int enable)
 {
    (void)dev;
    (void)enable;
-   DRV_LOG(WARNING, "%s: is not supported", __func__);
-   return -ENOTSUP;
+   return 0;
 }

 /**
-- 
2.16.1.windows.4
williamtu commented 2 years ago
PS C:\dpdk\build\app> Mlx5Cmd.exe -VPortMapping
Adapter Name            VPort ID  FID     Vhca ID   Hw ID   IsTrusted  Filter MAC Address  Func MAC Add
ress   VM Name
------------            --------  ------  --------  ------  ---------  ------------------  ------------
-----  -------
Ethernet 31             MlxQueryOid(OID_MLX_QUERY_VPORT_MAPPING) failed 0x80070057