From patchwork Wed May 29 09:38:18 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jiawen Wu X-Patchwork-Id: 13678537 Received: from bg1.exmail.qq.com (bg1.exmail.qq.com [114.132.62.65]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id C18E4167DB1 for ; Wed, 29 May 2024 09:40:50 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=114.132.62.65 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716975653; cv=none; b=cFHxug2Sgr6SOHiBJ+HIbCHugWqP0N1i3E7eeay660nuPb/sjpuegjumnSe/LtwDbhZZFs/TcRit68NLu05TC32hzPmhp9UU5d4+fN+2+FlbwY3SdVoYQRAjOGZoKmWhj1GZtSfL5BPLF8579R9jAdxEsXj0D1fjaCmEcEEH4/Q= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716975653; c=relaxed/simple; bh=0bEdKrPYHajaYLvMUKIP9PC+ZPBiAWNF9EE53Qp3gZE=; h=From:To:Cc:Subject:Date:Message-Id:MIME-Version; b=aMKvsuvYAkmoUoFXdUULOstYuyqAu4sbQUwK9N8DIGiMHBSmj1clY6mq0xDDtQUhDuAOjmsMtKYW/E3Fz0DXX2nszP2jFdS/oy1JUoF5u2hNpxMAsG7wGnVkp+/Qy4lUTC+kt7uFivgROmQaL22XRIzaIaFOrqdrfVN7KMCXhOs= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=trustnetic.com; spf=pass smtp.mailfrom=trustnetic.com; arc=none smtp.client-ip=114.132.62.65 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=trustnetic.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=trustnetic.com X-QQ-mid: bizesmtp88t1716975511twifr8eg X-QQ-Originating-IP: xJ60VAXB6gsZnXnE8gRuMvG2pZ9wh/v12HtfT58tXug= Received: from lap-jiawenwu.trustnetic.com ( [220.184.253.18]) by bizesmtp.qq.com (ESMTP) with id ; Wed, 29 May 2024 17:38:28 +0800 (CST) X-QQ-SSF: 01400000000000L0Z000000A0000000 X-QQ-FEAT: fs34Pe/+C2T7Gtpzk6XMJXcv36jm22uTfb1tYbWIhvq7eS5rFe/Awsvbn53aq lHdGAY9VLILovwM8wKhPUpGpBG3F0dsZCjyEgXOzJNfRWEtObllgK0HJxl84X22Z6OfxpIT rAkStoz2F4tM/91s9Houyrf4/t5zW7l5QcNmLGXqS053WdeEeiq6n2sk+XeOiBhq/OuddQs jAwOyo9rlfYzckLd+qnn5Q0qZHaKMNcsYJh6MvyB4/Zkrr08n6fodU/G1QaHVtfEgUGmHQb Bi1tf/GJ04OS5FiNoGTYkKT8bcQ3Snr+bCGxzdT+IAP9ZNR8beBSghT3uyx7RdaAamoLYUO iAQESriGbwtAynORY4X9KIvhlHnDIWmekXUpmxqP2mXJ9JT8KteKgXK/FzR/LjTeoebst6e X-QQ-GoodBg: 2 X-BIZMAIL-ID: 17379359922282141954 From: Jiawen Wu To: davem@davemloft.net, edumazet@google.com, kuba@kernel.org, pabeni@redhat.com, rmk+kernel@armlinux.org.uk, andrew@lunn.ch, justinstitt@google.com, horms@kernel.org, netdev@vger.kernel.org Cc: mengyuanlou@net-swift.com, Jiawen Wu Subject: [RFC net-next 0/3] add flow director for txgbe Date: Wed, 29 May 2024 17:38:18 +0800 Message-Id: <20240529093821.27108-1-jiawenwu@trustnetic.com> X-Mailer: git-send-email 2.21.0.windows.1 Precedence: bulk X-Mailing-List: netdev@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-QQ-SENDSIZE: 520 Feedback-ID: bizesmtp:trustnetic.com:qybglogicsvrgz:qybglogicsvrgz8a-1 X-Patchwork-Delegate: kuba@kernel.org X-Patchwork-State: RFC Add flow director support for Wangxun 10Gb NICs. Jiawen Wu (3): net: txgbe: add FDIR ATR support net: txgbe: support Flow Director perfect filters net: txgbe: add FDIR info to ethtool ops .../net/ethernet/wangxun/libwx/wx_ethtool.c | 39 +- drivers/net/ethernet/wangxun/libwx/wx_hw.c | 32 +- drivers/net/ethernet/wangxun/libwx/wx_hw.h | 2 + drivers/net/ethernet/wangxun/libwx/wx_lib.c | 62 +- drivers/net/ethernet/wangxun/libwx/wx_lib.h | 1 + drivers/net/ethernet/wangxun/libwx/wx_type.h | 56 +- drivers/net/ethernet/wangxun/txgbe/Makefile | 1 + .../ethernet/wangxun/txgbe/txgbe_ethtool.c | 417 ++++++++++++ .../net/ethernet/wangxun/txgbe/txgbe_fdir.c | 628 ++++++++++++++++++ .../net/ethernet/wangxun/txgbe/txgbe_fdir.h | 18 + .../net/ethernet/wangxun/txgbe/txgbe_main.c | 18 + .../net/ethernet/wangxun/txgbe/txgbe_type.h | 147 ++++ 12 files changed, 1410 insertions(+), 11 deletions(-) create mode 100644 drivers/net/ethernet/wangxun/txgbe/txgbe_fdir.c create mode 100644 drivers/net/ethernet/wangxun/txgbe/txgbe_fdir.h