From patchwork Thu Feb 21 19:33:14 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: "Kirsher, Jeffrey T" X-Patchwork-Id: 1046432 Return-Path: X-Original-To: patchwork-incoming-netdev@ozlabs.org Delivered-To: patchwork-incoming-netdev@ozlabs.org Authentication-Results: ozlabs.org; spf=none (mailfrom) smtp.mailfrom=vger.kernel.org (client-ip=209.132.180.67; helo=vger.kernel.org; envelope-from=netdev-owner@vger.kernel.org; receiver=) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=intel.com Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by ozlabs.org (Postfix) with ESMTP id 4454Ny4Rfwz9s21 for ; Fri, 22 Feb 2019 06:32:18 +1100 (AEDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726648AbfBUTcJ (ORCPT ); Thu, 21 Feb 2019 14:32:09 -0500 Received: from mga14.intel.com ([192.55.52.115]:51352 "EHLO mga14.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726254AbfBUTcJ (ORCPT ); Thu, 21 Feb 2019 14:32:09 -0500 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga003.jf.intel.com ([10.7.209.27]) by fmsmga103.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 21 Feb 2019 11:32:08 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.58,396,1544515200"; d="scan'208";a="128290520" Received: from jtkirshe-desk1.jf.intel.com ([134.134.177.96]) by orsmga003.jf.intel.com with ESMTP; 21 Feb 2019 11:32:08 -0800 From: Jeff Kirsher To: davem@davemloft.net Cc: Jeff Kirsher , netdev@vger.kernel.org, nhorman@redhat.com, sassmann@redhat.com Subject: [net 0/5][pull request] Intel Wired LAN Driver Fixes 2019-02-21 Date: Thu, 21 Feb 2019 11:33:14 -0800 Message-Id: <20190221193319.22318-1-jeffrey.t.kirsher@intel.com> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 Sender: netdev-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org This series contains fixes to ixgbe and i40e. Majority of the fixes are to resolve XDP issues found in both drivers, there is only one fix which is not XDP related. That one fix resolves an issue seen on older 10GbE devices, where UDP traffic was either being dropped or being transmitted out of order when the bit to enable L3/L4 filtering for transmit switched packets is enabled on older devices that did not support this option. Magnus fixes an XDP issue for both ixgbe and i40e, where receive rings are created but no buffers are allocated for AF_XDP in zero-copy mode, so no packets can be received and no interrupts will be generated so that NAPI poll function that allocates buffers to the rings will never get executed. Björn fixes a race in XDP xmit ring cleanup for i40e, where ndo_xdp_xmit() must be taken into consideration. Added a synchronize_rcu() to wait for napi(s) before clearing the queue. Jan fixes a ixgbe AF_XDP zero-copy transmit issue which can cause a reset to be triggered, so add a check to ensure that netif carrier is 'ok' before trying to transmit packets. The following are changes since commit ae3b564179bfd06f32d051b9e5d72ce4b2a07c37: missing barriers in some of unix_sock ->addr and ->path accesses and are available in the git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/jkirsher/net-queue 40GbE Björn Töpel (1): i40e: fix XDP_REDIRECT/XDP xmit ring cleanup race Jan Sokolowski (1): ixgbe: don't do any AF_XDP zero-copy transmit if netif is not OK Jeff Kirsher (1): ixgbe: fix older devices that do not support IXGBE_MRQC_L3L4TXSWEN Magnus Karlsson (2): i40e: fix potential RX buffer starvation for AF_XDP ixgbe: fix potential RX buffer starvation for AF_XDP drivers/net/ethernet/intel/i40e/i40e_main.c | 27 ++++++++++++++++--- drivers/net/ethernet/intel/i40e/i40e_txrx.c | 4 ++- drivers/net/ethernet/intel/i40e/i40e_xsk.c | 5 ++++ drivers/net/ethernet/intel/ixgbe/ixgbe_main.c | 19 ++++++++++--- drivers/net/ethernet/intel/ixgbe/ixgbe_xsk.c | 15 ++++++++--- 5 files changed, 60 insertions(+), 10 deletions(-)