From patchwork Mon Jun 29 18:01:07 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sriharsha Basavapatna X-Patchwork-Id: 1318962 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=openvswitch.org (client-ip=140.211.166.133; helo=hemlock.osuosl.org; envelope-from=ovs-dev-bounces@openvswitch.org; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=openvswitch.org Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (1024-bit key; unprotected) header.d=broadcom.com header.i=@broadcom.com header.a=rsa-sha256 header.s=google header.b=BAM0Zsvs; dkim-atps=neutral Received: from hemlock.osuosl.org (smtp2.osuosl.org [140.211.166.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 49wb0C21h0z9s6w for ; Tue, 30 Jun 2020 04:01:30 +1000 (AEST) Received: from localhost (localhost [127.0.0.1]) by hemlock.osuosl.org (Postfix) with ESMTP id 6720988494; Mon, 29 Jun 2020 18:01:29 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from hemlock.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id vXed3bQLDCSe; Mon, 29 Jun 2020 18:01:28 +0000 (UTC) Received: from lists.linuxfoundation.org (lf-lists.osuosl.org [140.211.9.56]) by hemlock.osuosl.org (Postfix) with ESMTP id 729C9882AD; Mon, 29 Jun 2020 18:01:28 +0000 (UTC) Received: from lf-lists.osuosl.org (localhost [127.0.0.1]) by lists.linuxfoundation.org (Postfix) with ESMTP id 508E0C07FF; Mon, 29 Jun 2020 18:01:28 +0000 (UTC) X-Original-To: dev@openvswitch.org Delivered-To: ovs-dev@lists.linuxfoundation.org Received: from silver.osuosl.org (smtp3.osuosl.org [140.211.166.136]) by lists.linuxfoundation.org (Postfix) with ESMTP id A81CAC016E for ; Mon, 29 Jun 2020 18:01:26 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by silver.osuosl.org (Postfix) with ESMTP id 357CE203F7 for ; Mon, 29 Jun 2020 18:01:26 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from silver.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 0hOH+xg+VYDU for ; Mon, 29 Jun 2020 18:01:21 +0000 (UTC) X-Greylist: delayed 08:10:42 by SQLgrey-1.7.6 Received: from mail-pj1-f65.google.com (mail-pj1-f65.google.com [209.85.216.65]) by silver.osuosl.org (Postfix) with ESMTPS id 27CC3203BF for ; Mon, 29 Jun 2020 18:01:21 +0000 (UTC) Received: by mail-pj1-f65.google.com with SMTP id u8so8074769pje.4 for ; Mon, 29 Jun 2020 11:01:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=broadcom.com; s=google; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=IRwMJW+c8D4SEsTP+80Qjnw9pNSD/LUWHACgyj6J4hE=; b=BAM0Zsvs1vciwSW85MBtp/to/xcyQkds70REGV2Tr4IZl2Mb+5Hr3YsAoLidR2r3v0 Np4bInnLIvmRVaBJUO9sPdFLsNBOsP3NioQfmWtOroY+7lhIvVy+b3FWuFYEmWXZ19Qh G5NEetlIHPtYlEuM/A5NVPLx3EeAAwZNsID04= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=IRwMJW+c8D4SEsTP+80Qjnw9pNSD/LUWHACgyj6J4hE=; b=GJRcnBMAR6W/R2RX8E0Uyvi+DXUtzJPwhbNsBG9I70Mv/69LTPonxyEVf9ITbeDi/6 7OWuvRDX1ewLFw7Rh23SqM6NHjKjKwdB34HFJo5NR/wpUW1teKtCzrtlomejlDl2cdW4 p7AMusQFqLyUIE1WJlJldKTmkoLe1sEUJkhJEZ/T0vbzar5SUUezVrzddJClFy1ydA3d zhP8PuZfINi3Q2751l0FD5hMM+mPJaXB7NluznufPzD4Md8i03woaHM1Ke4R7iyTtWVC l7mHv9kf564a6Z221eI4UW7tGZEeyJAd06pG6rWVvyXuMH9PPdqkkRONT2CQ/3IuMXfY X8sA== X-Gm-Message-State: AOAM531xdSGC66LRE3NbCn/pJ+2rMScBzGx9ORpZdCZ6fXzB7BSyk7lR fnuPJbMX/q7FnhcDr9BsIYS+CXe1mxT8jiWXhTczkCgAHluzL2Rpb0AZQveMYTGjOfVxxbzjuY0 SoOIAul3GCIXhvGDlxkUBxPYBXdfeUVPaDT2TDq8lY42C3T0hHxM10ObdVStF9vgkoCDgw4kJZZ 0WDG3+w44= X-Google-Smtp-Source: ABdhPJy7tZfQzJr3qQNuT0mlEsKjVGBZdUL5APq96WifwZS00810tsQVkoUZS3HV3Q3lIAJwAYZuFg== X-Received: by 2002:a17:902:6949:: with SMTP id k9mr3976248plt.91.1593453679490; Mon, 29 Jun 2020 11:01:19 -0700 (PDT) Received: from dhcp-10-123-153-36.dhcp.broadcom.net ([192.19.234.250]) by smtp.gmail.com with ESMTPSA id a3sm378963pgd.73.2020.06.29.11.01.17 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 29 Jun 2020 11:01:18 -0700 (PDT) To: dev@openvswitch.org Date: Mon, 29 Jun 2020 14:01:07 -0400 Message-Id: <20200629180107.34370-1-sriharsha.basavapatna@broadcom.com> X-Mailer: git-send-email 2.25.0.rc2 MIME-Version: 1.0 Subject: [ovs-dev] [PATCH] netdev-offload-dpdk: Set transfer attribute to zero for mark/rss offload X-BeenThere: ovs-dev@openvswitch.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-Patchwork-Original-From: Sriharsha Basavapatna via dev From: Sriharsha Basavapatna Reply-To: Sriharsha Basavapatna Errors-To: ovs-dev-bounces@openvswitch.org Sender: "dev" The offload layer doesn't initialize the 'transfer' attribute for mark/rss offload (partial offload). It should be set to 0. Fixes: 60e778c7533a ("netdev-offload-dpdk: Framework for actions offload.") Signed-off-by: Sriharsha Basavapatna --- lib/netdev-offload-dpdk.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/netdev-offload-dpdk.c b/lib/netdev-offload-dpdk.c index 26a75f0f2..4c652fd82 100644 --- a/lib/netdev-offload-dpdk.c +++ b/lib/netdev-offload-dpdk.c @@ -818,7 +818,8 @@ netdev_offload_dpdk_mark_rss(struct flow_patterns *patterns, .group = 0, .priority = 0, .ingress = 1, - .egress = 0 + .egress = 0, + .transfer = 0 }; struct rte_flow_error error; struct rte_flow *flow;