Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp4852321pxj; Wed, 9 Jun 2021 03:34:02 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxgoMDCKOJrDcuJS3koqx2jl9w0JaJyw/89Rclhjhbxi2oXvd+ym5stLMBohjJcXhacNBTg X-Received: by 2002:a17:906:35cd:: with SMTP id p13mr27944487ejb.24.1623234842668; Wed, 09 Jun 2021 03:34:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1623234842; cv=none; d=google.com; s=arc-20160816; b=oUoQo04MrDjpBgOQRuKe6w/MCzhzQ1rB/eKzh3T2DtPCyZLJoDqZaXIrb7D25G1DJa E7rxVLrYYDgblk+RPTfJ0xhVVGDC/EKD+PUjcjYlf9Ni5T2UpRReFnIzzW926hAZsqnX 9tx407d/1avIKD3HlaXZUQaC05bNw4Bdbar6yWXqLWwkY7ecgcKHXddJ+v2XP+jTHNDf apJyzRI1oBN0mSUsBTqHCxNnfJhAlvCo7DV0A0fNidPzgq6K+KFC2/UR7N6k6YSq2ulP lrxUQtkD1En6QfL7h8ijAh2AgO3q6Ie+Ks3lHuCs8d0RxVrSNlLDb48mfEZkBlLNoH0D jfUg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=3W9/rfnDx5r8xMqYCHqC1/y9wZGARG2M3zeWodp1DGg=; b=HeFSH14rmU+Vu82HVYp8eeClDhNnCgM5CEfuxFkSyou7XXn36V0fdKk00F2mLJUeFV ynODOM20ipZW3uFf5ceVXxMGkQ5rZ16HcpEcK6OKGDN5484CcOlzG9CZLKyfySs8vyVc LMwYXAMZkuU5Hn/VBBPojPbc2OmKt2QygjBrxMbkSP3vwaBY/fHzeimbw0CMwlQNt9pf mRv1FXNuU0wRpU8Wv7Bc2LuBtOO3YpOlrcQdVDHKgy9Qt8bA5leiiUCZL0o7TIgpL794 NLBJpemHN3NflzuzXUeTooZHeW7CQsKCTvyfIbTYnJItJLwVceD82nLrvQjPJP2yi1Bm HcMA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=GnnCDoks; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id e21si1909949ejr.246.2021.06.09.03.33.39; Wed, 09 Jun 2021 03:34:02 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=GnnCDoks; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237078AbhFHTEB (ORCPT + 99 others); Tue, 8 Jun 2021 15:04:01 -0400 Received: from mail.kernel.org ([198.145.29.99]:53124 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236999AbhFHS4O (ORCPT ); Tue, 8 Jun 2021 14:56:14 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 532B86140B; Tue, 8 Jun 2021 18:41:45 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1623177705; bh=gp297IjzCTHFcLfCnYPZDm+VbNrdnDBZcQ0gU7rYKEk=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=GnnCDoksziW7J/QV7VsNXtrYzTy/3uO2JdddNWFFVirU9mCE8kVbEwkWTFFjvOOrO 5bvDTjTn/ahPIkoRTTrhVbzObGcBzBzM+s2SsLOlqs3D1FsoMtUpZ1MwnjNLRk9MIF 3G7Qc7OPcsfT+N5MDPrVQcs5Y9PlBYTfLdw5MgNI= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Jesper Dangaard Brouer , Magnus Karlsson , Vishakha Jambekar , Tony Nguyen , Sasha Levin Subject: [PATCH 5.10 042/137] ixgbevf: add correct exception tracing for XDP Date: Tue, 8 Jun 2021 20:26:22 +0200 Message-Id: <20210608175943.838333493@linuxfoundation.org> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20210608175942.377073879@linuxfoundation.org> References: <20210608175942.377073879@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Magnus Karlsson [ Upstream commit faae81420d162551b6ef2d804aafc00f4cd68e0e ] Add missing exception tracing to XDP when a number of different errors can occur. The support was only partial. Several errors where not logged which would confuse the user quite a lot not knowing where and why the packets disappeared. Fixes: 21092e9ce8b1 ("ixgbevf: Add support for XDP_TX action") Reported-by: Jesper Dangaard Brouer Signed-off-by: Magnus Karlsson Tested-by: Vishakha Jambekar Signed-off-by: Tony Nguyen Signed-off-by: Sasha Levin --- drivers/net/ethernet/intel/ixgbevf/ixgbevf_main.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/net/ethernet/intel/ixgbevf/ixgbevf_main.c b/drivers/net/ethernet/intel/ixgbevf/ixgbevf_main.c index 82fce27f682b..a7d0a459969a 100644 --- a/drivers/net/ethernet/intel/ixgbevf/ixgbevf_main.c +++ b/drivers/net/ethernet/intel/ixgbevf/ixgbevf_main.c @@ -1072,11 +1072,14 @@ static struct sk_buff *ixgbevf_run_xdp(struct ixgbevf_adapter *adapter, case XDP_TX: xdp_ring = adapter->xdp_ring[rx_ring->queue_index]; result = ixgbevf_xmit_xdp_ring(xdp_ring, xdp); + if (result == IXGBEVF_XDP_CONSUMED) + goto out_failure; break; default: bpf_warn_invalid_xdp_action(act); fallthrough; case XDP_ABORTED: +out_failure: trace_xdp_exception(rx_ring->netdev, xdp_prog, act); fallthrough; /* handle aborts by dropping packet */ case XDP_DROP: -- 2.30.2