From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-3.9 required=3.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id B73C4C432C0 for ; Tue, 19 Nov 2019 13:34:37 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 8471D222F2 for ; Tue, 19 Nov 2019 13:34:37 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (1024-bit key) header.d=amazon.com header.i=@amazon.com header.b="Avq7wULw" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727791AbfKSNeg (ORCPT ); Tue, 19 Nov 2019 08:34:36 -0500 Received: from smtp-fw-4101.amazon.com ([72.21.198.25]:49955 "EHLO smtp-fw-4101.amazon.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725280AbfKSNeg (ORCPT ); Tue, 19 Nov 2019 08:34:36 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amazon.com; i=@amazon.com; q=dns/txt; s=amazon201209; t=1574170476; x=1605706476; h=from:to:cc:subject:date:message-id:mime-version; bh=O+V9is7PRywZvn0X6rlcWv0NgpDTo1iLwEpH9zV/HGA=; b=Avq7wULwtNvWFxbyrn3gRbr8F5jdfLXZv8O8G2LoJM7V2+qHBOSKq0M1 8upKsuDF6Xp1EzSOM7fBIXzrrFOEkvlCLwb1W/5MrkrW/6OB12CEhTsy5 rLMXuJRjxVq4a0HtxkDihGG5GDsWC3ggc8v3rTgdyJhAo+itdgJHqxj0h g=; IronPort-SDR: 3tMJcwcs3U1ogeVNcJ8NcJkohIEHggT4SSVEG95gImF7bve9Al7s1tl4Xcpa3HfDYFHVm2/VId ANDj9mk9OCPw== X-IronPort-AV: E=Sophos;i="5.68,324,1569283200"; d="scan'208";a="4697741" Received: from iad6-co-svc-p1-lb1-vlan3.amazon.com (HELO email-inbound-relay-2c-87a10be6.us-west-2.amazon.com) ([10.124.125.6]) by smtp-border-fw-out-4101.iad4.amazon.com with ESMTP; 19 Nov 2019 13:34:35 +0000 Received: from EX13MTAUEB001.ant.amazon.com (pdx4-ws-svc-p6-lb7-vlan2.pdx.amazon.com [10.170.41.162]) by email-inbound-relay-2c-87a10be6.us-west-2.amazon.com (Postfix) with ESMTPS id 8D532A1D12; Tue, 19 Nov 2019 13:34:33 +0000 (UTC) Received: from EX13D08UEB004.ant.amazon.com (10.43.60.142) by EX13MTAUEB001.ant.amazon.com (10.43.60.129) with Microsoft SMTP Server (TLS) id 15.0.1367.3; Tue, 19 Nov 2019 13:34:33 +0000 Received: from EX13MTAUEB001.ant.amazon.com (10.43.60.96) by EX13D08UEB004.ant.amazon.com (10.43.60.142) with Microsoft SMTP Server (TLS) id 15.0.1367.3; Tue, 19 Nov 2019 13:34:32 +0000 Received: from HFA16-8226Y22.hfa16.amazon.com (10.218.52.96) by mail-relay.amazon.com (10.43.60.129) with Microsoft SMTP Server id 15.0.1367.3 via Frontend Transport; Tue, 19 Nov 2019 13:34:30 +0000 From: To: , CC: Sameeh Jubran , , , , , , , , , , , , Subject: [PATCH V2 net-next v2 0/3] Introduce XDP to ena Date: Tue, 19 Nov 2019 15:34:16 +0200 Message-ID: <20191119133419.9734-1-sameehj@amazon.com> X-Mailer: git-send-email 2.17.1 MIME-Version: 1.0 Content-Type: text/plain Sender: netdev-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org From: Sameeh Jubran This patchset includes 3 patches: * XDP_DROP implementation * XDP_TX implementation * A fix for an issue which might occur due to the XDP_TX patch. I see fit to place it as a standalone patch for clarity. Difference from RFC v1 (XDP_DROP patch): * Initialized xdp.rxq pointer * Updated max_mtu on attachment of xdp and removed the check from ena_change_mtu() * Moved the xdp execution from ena_rx_skb() to ena_clean_rx_irq() * Moved xdp buff (struct xdp_buff) from rx_ring to the local stack * Started using netlink's extack mechanism to deliver error messages to the user Sameeh Jubran (3): net: ena: implement XDP drop support net: ena: Implement XDP_TX action net: ena: Add first_interrupt field to napi struct drivers/net/ethernet/amazon/ena/ena_ethtool.c | 4 +- drivers/net/ethernet/amazon/ena/ena_netdev.c | 930 +++++++++++++++--- drivers/net/ethernet/amazon/ena/ena_netdev.h | 72 ++ 3 files changed, 867 insertions(+), 139 deletions(-) -- 2.17.1