From patchwork Tue May 30 02:26:24 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mengyuan Lou X-Patchwork-Id: 13259113 Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net [23.128.96.19]) (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 802F8EDF for ; Tue, 30 May 2023 02:27:08 +0000 (UTC) Received: from smtpbg151.qq.com (smtpbg151.qq.com [18.169.211.239]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 07FAB9D for ; Mon, 29 May 2023 19:27:03 -0700 (PDT) X-QQ-mid: bizesmtp68t1685413613tmleps9u Received: from localhost.localdomain ( [183.159.96.128]) by bizesmtp.qq.com (ESMTP) with id ; Tue, 30 May 2023 10:26:52 +0800 (CST) X-QQ-SSF: 01400000000000N0Z000000A0000000 X-QQ-FEAT: CR3LFp2JE4keLOj7WX5573zGpsX2JOUUKSBtCXvyGRavj4kcCWE38JdDEK4Pm Iwn6c0ujmnSF4hpuTrz7qFS6B+D2JRDuszNLGukW11AT0tXXfooWOY4BEDP5qmAfhK4LJJC WaAvyy3gBRp32uxOlL/kaUtvqinsbUsbX4kL3kzhBsOEPvtblScEI3w2hslMKH3qtT1w4k2 4C+8iaScw3h4uzUey2XeEc3nUYAHBPOUS/oLXlke/jkNKS03+6Q7HDcFuJDs1EFuKlwP1NK dP2RJL/Xcz1t8Sd4rg4hufV8VawSG9RBGFxO3ld7IqsY1om26Q5z4e2LaMPyCAt6XAVUAPz +5A5/1L+HVhcFNwkjsOvsPkeyu8C/t8IOL1bH0kXoXGPBB9kt/yvNCCIg/11w== X-QQ-GoodBg: 2 X-BIZMAIL-ID: 9831410808361457951 From: Mengyuan Lou To: netdev@vger.kernel.org Cc: jiawenwu@trustnetic.com, Mengyuan Lou Subject: [RESEND,PATCH net-next v7 0/8] Wangxun netdev features support Date: Tue, 30 May 2023 10:26:24 +0800 Message-Id: <20230530022632.17938-1-mengyuanlou@net-swift.com> X-Mailer: git-send-email 2.40.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:net-swift.com:qybglogicsvrgz:qybglogicsvrgz5a-3 X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H5,RCVD_IN_MSPIKE_WL,SPF_HELO_PASS,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net X-Patchwork-Delegate: kuba@kernel.org Implement tx_csum and rx_csum to support hardware checksum offload. Implement ndo_vlan_rx_add_vid and ndo_vlan_rx_kill_vid. Implement ndo_set_features. Enable macros in netdev features which wangxun can support. changes v7: - Remove fragmented packets parsing. - Jakub Kicinski: https://lore.kernel.org/netdev/20230523210454.12963d67@kernel.org/ changes v6: - Fix some code spelling errors. changes v5: - Add ndo_set_features support. - Move wx_decode_ptype() and wx_ptype_lookup to C file. - Remove wx_fwd_adapter. changes v4: - Yunsheng Lin: https://lore.kernel.org/netdev/c4b9765d-7213-2718-5de3-5e8231753b95@huawei.com/ changes v3: - Yunsheng Lin: Tidy up logic for wx_encode_tx_desc_ptype. changes v2: - Andrew Lunn: Add ETH_P_CNM Congestion Notification Message to if_ether.h. Remove lro support. - Yunsheng Lin: https://lore.kernel.org/netdev/eb75ae23-8c19-bbc5-e99a-9b853511affa@huawei.com/ Mengyuan Lou (8): net: wangxun: libwx add tx offload functions net: wangxun: libwx add rx offload functions net: wangxun: Implement vlan add and kill functions net: libwx: Implement xx_set_features ops net: ngbe: Add netdev features support net: ngbe: Implement vlan add and remove ops net: txgbe: Add netdev features support net: txgbe: Implement vlan add and remove ops drivers/net/ethernet/wangxun/libwx/wx_hw.c | 272 ++++++- drivers/net/ethernet/wangxun/libwx/wx_hw.h | 3 + drivers/net/ethernet/wangxun/libwx/wx_lib.c | 734 +++++++++++++++++- drivers/net/ethernet/wangxun/libwx/wx_lib.h | 1 + drivers/net/ethernet/wangxun/libwx/wx_type.h | 214 ++++- drivers/net/ethernet/wangxun/ngbe/ngbe_main.c | 20 +- drivers/net/ethernet/wangxun/ngbe/ngbe_type.h | 1 + .../net/ethernet/wangxun/txgbe/txgbe_main.c | 25 +- .../net/ethernet/wangxun/txgbe/txgbe_type.h | 1 + 9 files changed, 1250 insertions(+), 21 deletions(-)