From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id 08A07A0093 for ; Thu, 28 May 2020 18:58:06 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 9DE911DC09; Thu, 28 May 2020 18:58:06 +0200 (CEST) Received: from us-smtp-1.mimecast.com (us-smtp-delivery-1.mimecast.com [205.139.110.120]) by dpdk.org (Postfix) with ESMTP id 15FE01DC09 for ; Thu, 28 May 2020 18:58:04 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1590685084; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=9mEsh8OnJrz8vsLu/9h96zNiqiaFqwKZRPg4UHzXkhA=; b=VnPI8mbGs6Kg5qOMJKfg2EZ3V1VVomwi+dB9Z/AqA2AlDp8DdnA6wFXHGNbeGPaHRu4pB0 iAnbiht831N1evYEV4COwxH1wFufGFA0T+N6sU+N9z5OpJsgnJr3XjoBHcbCIsxIamzEPE naAPBULBqinqRIJiaGxPhwftxKVa/Oo= Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-460-nA9jRcHmPwesr1_wYHl12w-1; Thu, 28 May 2020 12:58:02 -0400 X-MC-Unique: nA9jRcHmPwesr1_wYHl12w-1 Received: from smtp.corp.redhat.com (int-mx08.intmail.prod.int.phx2.redhat.com [10.5.11.23]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id AB121107ACCA; Thu, 28 May 2020 16:58:01 +0000 (UTC) Received: from rh.redhat.com (unknown [10.33.36.235]) by smtp.corp.redhat.com (Postfix) with ESMTP id BF5CF2B6E3; Thu, 28 May 2020 16:58:00 +0000 (UTC) From: Kevin Traynor To: stable@dpdk.org, ferruh.yigit@intel.com Cc: Kevin Traynor Date: Thu, 28 May 2020 17:57:51 +0100 Message-Id: <20200528165751.9367-1-ktraynor@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.84 on 10.5.11.23 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 8bit Subject: [dpdk-stable] [PATCH 18.11] kni: fix ethtool build with kernel 5.6 X-BeenThere: stable@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches for DPDK stable branches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: stable-bounces@dpdk.org Sender: "stable" With the following Linux commit a new parameter 'txqueue' has been added to 'ndo_tx_timeout' ndo: 0290bd291cc0 ("netdev: pass the stuck queue to the timeout handler") A check on Linux kernel version is already done in commit 6ff755242707 ("kni: fix build with Linux 5.6") and HAVE_TX_TIMEOUT_TXQUEUE is used to indicate if the extra parameter is required. Update igb ethtool to use the define. Signed-off-by: Kevin Traynor --- kernel/linux/kni/ethtool/igb/igb_main.c | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/kernel/linux/kni/ethtool/igb/igb_main.c b/kernel/linux/kni/ethtool/igb/igb_main.c index cb1b536775..5a07d007a2 100644 --- a/kernel/linux/kni/ethtool/igb/igb_main.c +++ b/kernel/linux/kni/ethtool/igb/igb_main.c @@ -37,4 +37,5 @@ #include +#include "compat.h" #include "igb.h" #include "igb_vmdq.h" @@ -155,5 +156,9 @@ static bool igb_clean_tx_irq(struct igb_q_vector *); static bool igb_clean_rx_irq(struct igb_q_vector *, int); static int igb_ioctl(struct net_device *, struct ifreq *, int cmd); +#ifdef HAVE_TX_TIMEOUT_TXQUEUE +static void igb_tx_timeout(struct net_device *, unsigned int); +#else static void igb_tx_timeout(struct net_device *); +#endif /* HAVE_TX_TIMEOUT_TXQUEUE */ static void igb_reset_task(struct work_struct *); #ifdef HAVE_VLAN_RX_REGISTER @@ -5624,5 +5629,9 @@ static netdev_tx_t igb_xmit_frame(struct sk_buff *skb, * @netdev: network interface device structure **/ +#ifdef HAVE_TX_TIMEOUT_TXQUEUE +static void igb_tx_timeout(struct net_device *netdev, unsigned int txqueue) +#else static void igb_tx_timeout(struct net_device *netdev) +#endif { struct igb_adapter *adapter = netdev_priv(netdev); -- 2.21.3