From patchwork Wed Mar 6 15:23:55 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: David Harton X-Patchwork-Id: 50867 X-Patchwork-Delegate: qi.z.zhang@intel.com Return-Path: X-Original-To: patchwork@dpdk.org Delivered-To: patchwork@dpdk.org Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id DCF5B5F17; Wed, 6 Mar 2019 16:24:13 +0100 (CET) Received: from rcdn-iport-2.cisco.com (rcdn-iport-2.cisco.com [173.37.86.73]) by dpdk.org (Postfix) with ESMTP id 785CD5F0F for ; Wed, 6 Mar 2019 16:24:12 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=cisco.com; i=@cisco.com; l=1192; q=dns/txt; s=iport; t=1551885852; x=1553095452; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=QUemXflXEuZ+QidwLlgBybUYkfzSorTc5w9LpSZgdGs=; b=Im3qQmaDo3CgAFKYBCzaRprJFQncANX8LmWn68Aue1jh+cIMaIX1IhYY p95MGp+l036rdGERZO1cHY+fG7hI57nrHI7vRjP9MgNnv2lQAYiBPTLr/ hPPosQ8JYvseNq9nh0V2FG2WnP5HAPerbtUBzoIdue5A9heFYS30DJhH7 c=; X-IronPort-AV: E=Sophos;i="5.58,448,1544486400"; d="scan'208";a="533569625" Received: from rcdn-core-1.cisco.com ([173.37.93.152]) by rcdn-iport-2.cisco.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 06 Mar 2019 15:24:10 +0000 Received: from cpp-rtpbld-31.cisco.com (cpp-rtpbld-31.cisco.com [172.18.5.114]) by rcdn-core-1.cisco.com (8.15.2/8.15.2) with ESMTP id x26FOA98020995; Wed, 6 Mar 2019 15:24:10 GMT Received: by cpp-rtpbld-31.cisco.com (Postfix, from userid 140087) id 6ECDF989; Wed, 6 Mar 2019 10:24:10 -0500 (EST) From: David Harton To: dev@dpdk.org, wenzhuo.lu@intel.com, konstantin.ananyev@intel.com Cc: David Harton Date: Wed, 6 Mar 2019 10:23:55 -0500 Message-Id: <20190306152355.1697-1-dharton@cisco.com> X-Mailer: git-send-email 2.19.1 MIME-Version: 1.0 X-Outbound-SMTP-Client: 172.18.5.114, cpp-rtpbld-31.cisco.com X-Outbound-Node: rcdn-core-1.cisco.com Subject: [dpdk-dev] [PATCH] net/ixgbe: Restore vlan filter/extend for ixgbvef 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: , Errors-To: dev-bounces@dpdk.org Sender: "dev" ixgevf vlan strip and extend capabilities were removed when migrating to the bit flags implementation. Restoring the capbility to enable these offloads at configuration time. Fixes: ec3b1124d14d (\"net/ixgbe: convert to new Rx offloads API\") Signed-off-by: David Harton --- drivers/net/ixgbe/ixgbe_rxtx.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/drivers/net/ixgbe/ixgbe_rxtx.c b/drivers/net/ixgbe/ixgbe_rxtx.c index e92a70fb3..95c32257c 100644 --- a/drivers/net/ixgbe/ixgbe_rxtx.c +++ b/drivers/net/ixgbe/ixgbe_rxtx.c @@ -2853,15 +2853,13 @@ ixgbe_get_rx_port_offloads(struct rte_eth_dev *dev) DEV_RX_OFFLOAD_TCP_CKSUM | DEV_RX_OFFLOAD_KEEP_CRC | DEV_RX_OFFLOAD_JUMBO_FRAME | + DEV_RX_OFFLOAD_VLAN_FILTER | + DEV_RX_OFFLOAD_VLAN_EXTEND | DEV_RX_OFFLOAD_SCATTER; if (hw->mac.type == ixgbe_mac_82598EB) offloads |= DEV_RX_OFFLOAD_VLAN_STRIP; - if (ixgbe_is_vf(dev) == 0) - offloads |= (DEV_RX_OFFLOAD_VLAN_FILTER | - DEV_RX_OFFLOAD_VLAN_EXTEND); - /* * RSC is only supported by 82599 and x540 PF devices in a non-SR-IOV * mode.