From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-pl1-f193.google.com (mail-pl1-f193.google.com [209.85.214.193]) by dpdk.org (Postfix) with ESMTP id AEF8E1B13A for ; Wed, 21 Nov 2018 21:12:07 +0100 (CET) Received: by mail-pl1-f193.google.com with SMTP id b5so7018692plr.4 for ; Wed, 21 Nov 2018 12:12:07 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20150623.gappssmtp.com; s=20150623; h=date:from:to:cc:subject:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=9etE9KbvY12Hlwq+r8GSe3y0Z+aLQyNKeg7EcfBopNM=; b=KD/4bnk6tMz3x+VztjVXIHlpub1Jq9kEq5cTaNXHG/oWtlbxrMZ7aiK8bj/kUlDr6g Nu4jVEmW6sFSARAMNArN5MiPk0umKfFOJ4Jn+23b9coOk8VriAVdObpMuGF5G/+aaebO D9eJb7CPYL83zMXbCXpGDw1CtgwnWPLkDz3WiAEUnHQS3UQ//JjXPEU7JAhYcrbgDOr8 Hm1cxwdBC7sWDFhC8eFlm+MzQ5GfRtLIXbknCoucfUdveJpnVEYLk7KnMIfPtWXB8MPQ 2kgVJh3/00Q4At5zdTvbZ83awnaH24lLhIQtvJtMr9+dFG2Y1Hx6UPNZTQivWC/30p3d 5X5A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=9etE9KbvY12Hlwq+r8GSe3y0Z+aLQyNKeg7EcfBopNM=; b=dG4mC+rFjMdpMQPR8gAL/zxZ+YHUjBV/FdLHPqWsAxTqNr5lnCZVtv0Nei5BAh4OLo /Qb6T6qyVg0TImYcxOfIlVADN+T+l4tqSlj9mKxUD7x4mFv4Nzs5NF19R/XeUnRoS3Cg YcD256otCHfGA80WOCVx3EPCXeCIS2faj7ZPUdRw291/yhTvMdFwFGBJmm876g5u9eIg dIgztn6OcOpdoMJtW0j13dvgAviI+3633SwYcUWIjFCDmNNIEcszikJ5YmTsc6EtLBHt eqIbq6dYjvALLK+nGsqu6q8u7z6OZI5xXDYN5vgdc24psHZC9oJKlw/3izObmB1HvST/ 1YrA== X-Gm-Message-State: AA+aEWaF94xxYEy5+pD71e+CeLr83ERUB2ijCi2VVUPK1faieUMaSWYn udolQSO+M0hbPWfPmzUy6rR4BA== X-Google-Smtp-Source: AFSGD/V2q1/UhG5c2Grkp+DsmSYBXQmozOwgmUcUSW9gqK0atNLxkgVKDYJCbMyoscs+sz+CD0FlEQ== X-Received: by 2002:a17:902:292b:: with SMTP id g40mr8352904plb.82.1542831126809; Wed, 21 Nov 2018 12:12:06 -0800 (PST) Received: from xeon-e3 (204-195-22-127.wavecable.com. [204.195.22.127]) by smtp.gmail.com with ESMTPSA id t66sm27672048pfd.54.2018.11.21.12.12.06 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 21 Nov 2018 12:12:06 -0800 (PST) Date: Wed, 21 Nov 2018 12:12:04 -0800 From: Stephen Hemminger To: Mit Matelske Cc: shahafs , Thomas Monjalon , dev , Yongseok Koh Message-ID: <20181121121204.297ef328@xeon-e3> In-Reply-To: <1145619802.1261333.1542820311675.JavaMail.zimbra@perftech.com> References: <1203238912.103536.1542300483728.JavaMail.zimbra@perftech.com> <4060784.NMgGY7Cv01@xps> <164311280.707048.1542583391811.JavaMail.zimbra@perftech.com> <383796151.782033.1542640162186.JavaMail.zimbra@perftech.com> <20181119090810.02543f44@xeon-e3> <1145619802.1261333.1542820311675.JavaMail.zimbra@perftech.com> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Subject: Re: [dpdk-dev] mlx5 under FreeBSD X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 21 Nov 2018 20:12:08 -0000 On Wed, 21 Nov 2018 11:11:51 -0600 (CST) Mit Matelske wrote: > > > > Rather than building a complex shim, why not just have an OS dependent section > > of the driver. The bigger issue is that the kernel side functionality in BSD > > is different or missing. For example TAP API is different and not multi-queue. > > Once I started working on it, I had to go this route. I haven't been able to but much > time into it yet, but it is coming along: > > EAL: PCI device 0000:b3:00.0 on NUMA socket 0 > EAL: probe driver: 15b3:1013 net_mlx5 > net_mlx5: mlx5.c:1315: mlx5_pci_probe(): checking device "mlx5_0" uverbs0 /sys/class/infiniband_verbs/uverbs0 /sys/class/infiniband/mlx5_0 > net_mlx5: mlx5.c:1325: mlx5_pci_probe(): PCI information matches for device "mlx5_0" > net_mlx5: mlx5.c:1315: mlx5_pci_probe(): checking device "mlx5_1" uverbs1 /sys/class/infiniband_verbs/uverbs1 /sys/class/infiniband/mlx5_1 > net_mlx5: mlx5.c:1382: mlx5_pci_probe(): no switch support detected > net_mlx5: mlx5.c:796: mlx5_dev_spawn(): MPW isn't supported > net_mlx5: mlx5.c:852: mlx5_dev_spawn(): tunnel offloading disabled due to old OFED/rdma-core version > net_mlx5: mlx5.c:864: mlx5_dev_spawn(): MPLS over GRE/UDP tunnel offloading disabled due to old OFED/rdma-core version or firmware configuration > net_mlx5: mlx5.c:877: mlx5_dev_spawn(): naming Ethernet device "0000:b3:00.0" > net_mlx5: mlx5.c:1007: mlx5_dev_spawn(): checksum offloading is supported > net_mlx5: mlx5.c:1024: mlx5_dev_spawn(): maximum Rx indirection table size is 512 > net_mlx5: mlx5.c:1028: mlx5_dev_spawn(): VLAN stripping is not supported > net_mlx5: mlx5.c:1032: mlx5_dev_spawn(): FCS stripping configuration is not supported > net_mlx5: mlx5.c:1037: mlx5_dev_spawn(): hardware Rx end alignment padding is not supported > net_mlx5: mlx5.c:1052: mlx5_dev_spawn(): MPS is disabled > net_mlx5: mlx5.c:628: mlx5_uar_init_primary(): port 0 reserved UAR address space: 0x880000000 > net_mlx5: mlx5.c:1107: mlx5_dev_spawn(): port 0 MAC address is 00:90:0b:78:2a:ea > net_mlx5: mlx5.c:1114: mlx5_dev_spawn(): port 0 ifname is "mce0" > net_mlx5: mlx5.c:1127: mlx5_dev_spawn(): port 0 MTU is 1500 > net_mlx5: mlx5.c:1142: mlx5_dev_spawn(): flow rules relying on switch offloads will not be supported: cannot open libmnl socket: Address family not supported by protocol family > net_mlx5: mlx5.c:1176: mlx5_dev_spawn(): port 0 forcing Ethernet interface up > net_mlx5: mlx5_ethdev.c:735: mlx5_link_update_unlocked_gs(): port 0 ioctl(SIOCGIFFLAGS) failed: No such file or directory > net_mlx5: mlx5_ethdev.c:664: mlx5_link_update_unlocked_gset(): port 0 ioctl(SIOCGIFFLAGS) failed: No such file or directory > net_mlx5: mlx5_rxq.c:2150: mlx5_hrxq_drop_new(): port 0 cannot allocate QP for drop queue > Segmentation fault (core dumped) > > Working through mlx5_ethdev now... > > Mit Also if you are targeting Azure or Hyper-V, then don't bother porting TAP/VDEV_NETVSC/Failsafe model because that is being replaced by netvsc native PMD. It would be easier to just get that working. It would mean writing a uio equivalent driver for FreeBSD.