From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id 34998A04B2 for ; Fri, 1 May 2020 23:22:14 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 894831D976; Fri, 1 May 2020 23:22:13 +0200 (CEST) Received: from mail-vs1-f54.google.com (mail-vs1-f54.google.com [209.85.217.54]) by dpdk.org (Postfix) with ESMTP id B5C5E37A2 for ; Fri, 1 May 2020 23:22:11 +0200 (CEST) Received: by mail-vs1-f54.google.com with SMTP id e10so4508757vsp.12 for ; Fri, 01 May 2020 14:22:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=NmIQGbUlHbZTJISPif4asrIGqqkvmqNeid2/MV+SrIw=; b=GbW44onkcBp5bvy5U1aZTpgJz4AXHDJQvlmGPoPvhGQ1WPb1Uk3+02QoZbunLiuYx3 /IJPkIPg4r/BhejmVDMJe3+iZUc9BN9G4+g1POEypW1/RhP5ZOiVmFtpyoqU1tkWrcLt KCP5YIyTRhzz5FxF7Fw6/dU3NF6cQ8k0i/+e4DvXSSd3mvipEMU7gRWwNtH6L7rF0rqA kEj+IQTn6CLnZXikQ5BudZpQAwupoB/U170oQ4AMYw5eY2JXsi8qmJMdte/AM4rHKdkf ZwjvCyR5zzL2BBapLsBD99/VG23xmcIsYdTgP/A6qL/cnJwEmMbfGk4KRShyqj01wWQw BgVA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=NmIQGbUlHbZTJISPif4asrIGqqkvmqNeid2/MV+SrIw=; b=RkKTdnHY7DK4V7LJ3pS/aDXgPjj4N7m5U+OWYN8/R87qZHhHG7KUYdjdOVzQisSiO7 GzQGd+17TbinJGjjD3PxGBuJXPaD63hcSX3upP8jC2mLmr+eCI+9MvubzpkY/9EPIcZj 8hYr9NNo7h8DpteL+1XB5UllpAxPO/QBhIt1GlTAKDxHWNNFzvXTnA4vah5wv55N3Hcp 0WVRzbRq5ss5e/NU8ncuPh7ixPSCUmNy3UAZc0ynKSAjMEtEGRy+ALElzjE/n4cjXPHg kDiXPqs4n2QAYqrlmap7H2Co47sN6wCxEB3ZA+WCDv/eNC2nBvR/rgNCbAGffgGb1Mht 4D+A== X-Gm-Message-State: AGi0PuatRPfDVDNQX+5/g6KNTJrw8LgCWwe8SPJYcL3M/xjQIyPQ/T5l IXjXfXOH3wTDE6wsRejrYlBHxemIUy8W8UEWFeg= X-Google-Smtp-Source: APiQypL6JpXlYra1mcbuY1biIXDFkYei7+IdeqmlDrK6ywJ+6xezCB93GYJAgM7rI7hoHoYudszEE6G5PzkknpzhTvY= X-Received: by 2002:a67:d892:: with SMTP id f18mr4952613vsj.201.1588368131038; Fri, 01 May 2020 14:22:11 -0700 (PDT) MIME-Version: 1.0 References: <174fe8bd-4b66-7e6b-c45e-32326f9b2b4a@oracle.com> In-Reply-To: <174fe8bd-4b66-7e6b-c45e-32326f9b2b4a@oracle.com> From: Alex Zhang Date: Fri, 1 May 2020 17:22:00 -0400 Message-ID: To: "changchun.zhang@oracle.com" Cc: users@dpdk.org Content-Type: text/plain; charset="UTF-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.15 Subject: Re: [dpdk-users] How does Intel I350 support RSS for double VLAN (QinQ)? X-BeenThere: users@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK usage discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: users-bounces@dpdk.org Sender: "users" > Hi, > > Does anyone know how to support the RSS for receiving packets with double > VLAN or QinQ vlan (0x88A8), for I350 NIC card? > In the I350 datasheet, it is mentioned: > > 7.4.5 > A packet is defined as a VLAN/802.1q packet if its type field matches the > VET. > Double VLAN Support > The I350 supports a mode where most of the received and sent packet have > at least one VLAN tag in > addition to the regular tagging which might optionally be added. This mode > is used for systems where > the switches add an additional tag containing switching information. > Note: > The only packets that may not have the additional VLAN are local packets > that will not have > any VLAN tag. > This mode is activated by setting CTRL_EXT.EXT_VLAN bit. The default value > of this bit is set according > to the EXT_VLAN (bit 1) in the Initialization Control 3 EEPROM word for > ports 0 to 3. See Section 6.2.26 > for more information. > The type of the VLAN tag used for the additional VLAN is defined in the > VET.VET_EXT field. > > Based on above, I can use the > rte_eth_dev_set_vlan_offload(port_id, ETH_VLAN_EXTEND_OFFLOAD) > and > rte_eth_dev_set_vlan_ether_type(port_id, ETH_VLAN_TYPE_OUTER, 0x88A8) > to set the vlan extend offload and the corresponding eth type successfully. > > But the RSS still does not work for QinQ traffic. > > Can anyone have some input? > > Thanks, > -- Alex,