From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-io0-f178.google.com (mail-io0-f178.google.com [209.85.223.178]) by dpdk.org (Postfix) with ESMTP id 860E02B92 for ; Fri, 2 Feb 2018 09:15:11 +0100 (CET) Received: by mail-io0-f178.google.com with SMTP id c17so22097952iod.1 for ; Fri, 02 Feb 2018 00:15:11 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=021foqDDo1SoGJJxfMxQzFbUZPWyYPwCEo8mMtdVGIA=; b=hsaRRm2NvaDgYWPN6z0Mm/DpPvHhuzqs2CbvBE6EoOAy8lV+i8TG6Vs/qSICPJUBxL uHCzDxqj3W7frAYGihMxqWxIOnmB7wPibITYrv4X2IxBB4Pfq3aLJpaMWtzWL23VmN3J 2GMdOd3ZEV2TFBAGcCu29FKpajdTpuhV6w7bV5JaONEFGmp37LX8n3mPncsjjNVWzLO9 2H4cgUDfsewChdkGzOCHK/y3FH8CW386bYIV81YLfbIOkRaeCc6UIYMVCEtJJnXvpZiG kbrwrsrN5mo5Bt+k10BWLu/3SiJZmUY/l0X/cMqd1bMNb7xDuNk1MIVh244R1y1Tk2yd qp8w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=021foqDDo1SoGJJxfMxQzFbUZPWyYPwCEo8mMtdVGIA=; b=PRC3xqUZR9HeDCycA1QaH6buxBp+rb1OietkbcYWGkv6HvLNDvkMDIE80xFtTe9o1A SqamQ3PwAI5nn3dbzanJeWjyfMwoU6oFsIOHCqNJ0Rjw1e8LbhDIEREGwi+29bka8jne F3qeSoGBYNFQMw1iX9k0Zpmd6TTXuUZAq8axypkt4VqaCLKxVEAZxkkBi3Gi3+hXu0uF d02xR0+2uW3oLuTqmpMrABXZw3N5JcKZX6C7HrYGpn8COwUhNYCbAJprcG6HOWm7Z8rA cg5BcOoXLQRhNQEta9iiAA4Tu143ggzZgZZ1apAdBzR14W7YlwdQ6VFKTxi+lQzv31Dm quJg== X-Gm-Message-State: AKwxytd0eNNnIB3Y4P7iZe4xKovzxHht5xXacI0zX2JTrRz0tGXDuFUE 7KMuh47qGUbSQPCioc1UypxYxFXK8aJi7XTpgPOEhg== X-Google-Smtp-Source: AH8x226Gi6JMPPvpjDtp0Ui+mlVunRoyxjOlWAzhi/KbnbIFDC+rKwuFghycZRLLegilJk22Q0t6RRzTYDB3qDJSt+I= X-Received: by 10.107.17.211 with SMTP id 80mr41882110ior.11.1517559310618; Fri, 02 Feb 2018 00:15:10 -0800 (PST) MIME-Version: 1.0 From: Arkady Gilinsky Date: Fri, 02 Feb 2018 08:15:00 +0000 Message-ID: To: dev@dpdk.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.15 Subject: [dpdk-dev] XL710: [Q] traffic steering under DPDK. 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: Fri, 02 Feb 2018 08:15:11 -0000 Hi, Basically we are trying to configure packet steering to specific VF according to L2 filter on XL710 Intel NIC adapter. We need to support steering by MAC address and VLAN VID. We do not need perfect match filtering, packet supposed to be sent to specific VF when MAC address or VLAN VID matches configured values. See pseudocode: =E2=80=9C If(packet->mac =3D=3D expected_mac_vf_1 || packet->vlan.vid =3D=3D expected_vlan_vf_1) { sendToVf_1(packet); return; } =E2=80=A6 =E2=80=9C Typically in production multiple MACs and VLANs will be associated with the same VF. There could be several MACs(10th) and many VLANs(100th) in our system. We are using kernel PF + DPDK VF. - Can we somehow configure XL710 to classify packet by MAC and VLAN separately (OR instead of AND)? (We have a working code that did MAC AND VLAN.) - What mechanism supposed to be used to configure L2 steering? VEB (Virtual Ethernet Bridge) or Flow Director? - i40evf driver from DPDK does not allow us to disable =E2=80=9CCRC strippi= ng=E2=80=9D feature. We cannot set =E2=80=9Chw_strip_crc=E2=80=9D to =E2=80=9C0=E2=80=9D. See = =E2=80=9Ci40e_ethdev_vf.c:1593=E2=80=9D: =E2=80=9C /* For non-DPDK PF drivers, VF has no ability to disable HW * CRC strip, and is implicitly enabled by the PF. */ if (!conf->rxmode.hw_strip_crc) { vf =3D I40EVF_DEV_PRIVATE_TO_VF(dev->data->dev_private); if ((vf->version_major =3D=3D I40E_VIRTCHNL_VERSION_MAJOR) && (vf->version_minor <=3D I40E_VIRTCHNL_VERSION_MINOR)) { /* Peer is running non-DPDK PF driver. */ PMD_INIT_LOG(ERR, "VF can't disable HW CRC Strip"); return -EINVAL; } } =E2=80=9C - We see that VF strips VLAN from packet. Can we preserve tag in the packet= ? Following DPDK API setting does not help: =E2=80=9Cport_conf.rxmode.hw_vlan= _strip =3D 0=E2=80=9D. Please advice. =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D Best regards Arkady Gilinsky.