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 0FD28A0471 for ; Fri, 16 Aug 2019 07:55:21 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id E12EC1BEBC; Fri, 16 Aug 2019 07:55:19 +0200 (CEST) Received: from mx0b-0016f401.pphosted.com (mx0b-0016f401.pphosted.com [67.231.156.173]) by dpdk.org (Postfix) with ESMTP id 930D7A69 for ; Fri, 16 Aug 2019 07:55:18 +0200 (CEST) Received: from pps.filterd (m0045851.ppops.net [127.0.0.1]) by mx0b-0016f401.pphosted.com (8.16.0.42/8.16.0.42) with SMTP id x7G5t7af020319; Thu, 15 Aug 2019 22:55:16 -0700 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=marvell.com; h=from : to : cc : subject : date : message-id : mime-version : content-type : content-transfer-encoding; s=pfpt0818; bh=l755fsGHKFciLenBOF+hYHnyL6B9R/VqVG/Uaou679k=; b=fVuxy1R6+9CNdVS3L4LVnWFLVYjSStQ3iwPGRDYlEO1aQLyWHHbnAVL5adzpIWCg8lIU ipa6cGqLJmjLdoffCnYCqUy9BjbBcECSr/Cz/Kg3zf25r2hvwgXsWcZzHJf3RT5BJT9q Lzjb3w4RqrVQWEHdG/wqMto8diAMRIuA69af3pf/sFQ2Ef2VQYAWUi3DgMj5HftQ/jIR eT6JUSUDg60Cqaou5ohC25WjPMnjFoZ0/+gu7I30iqoRnGIqHdUap55/hVTQ37bx59Uq k17c52JdHQgnDN4KJAp9XMCr4zXRh9TpqxLgWTc+cCvdFo3GwoBoWKhRfukHb1IUn1N9 8A== Received: from sc-exch01.marvell.com ([199.233.58.181]) by mx0b-0016f401.pphosted.com with ESMTP id 2udefw1jk1-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NOT); Thu, 15 Aug 2019 22:55:16 -0700 Received: from SC-EXCH03.marvell.com (10.93.176.83) by SC-EXCH01.marvell.com (10.93.176.81) with Microsoft SMTP Server (TLS) id 15.0.1367.3; Thu, 15 Aug 2019 22:55:14 -0700 Received: from maili.marvell.com (10.93.176.43) by SC-EXCH03.marvell.com (10.93.176.83) with Microsoft SMTP Server id 15.0.1367.3 via Frontend Transport; Thu, 15 Aug 2019 22:55:14 -0700 Received: from BG-LT7430.marvell.com (bg-lt7430.marvell.com [10.28.10.255]) by maili.marvell.com (Postfix) with ESMTP id 7FFC03F703F; Thu, 15 Aug 2019 22:55:12 -0700 (PDT) From: To: , CC: , Pavan Nikhilesh Date: Fri, 16 Aug 2019 11:25:03 +0530 Message-ID: <20190816055511.2322-1-pbhagavatula@marvell.com> X-Mailer: git-send-email 2.17.1 MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8bit X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:5.22.84,1.0.8 definitions=2019-08-16_03:2019-08-14,2019-08-16 signatures=0 Subject: [dpdk-dev] [PATCH 0/7] ethdev: add new Rx offload flags X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" From: Pavan Nikhilesh Add new Rx offload flags `DEV_RX_OFFLOAD_RSS_HASH` and `DEV_RX_OFFLOAD_FLOW_MARK`. These flags can be used to enable/disable PMD writes to rte_mbuf fields `hash.rss` and `hash.fdir.hi` and also `ol_flags:PKT_RX_RSS` and `ol_flags:PKT_RX_FDIR`. Add new packet type set function `rte_eth_dev_set_supported_ptypes`, allows application to inform PMDs about the packet types it is interested in. Based on ptypes requested by application PMDs can optimize the Rx path. For example, if a given PMD doesn't support any packet types that the application is interested in then the application can disable[1] writes to `mbuf.packet_type` done by the PMD and use a software ptype parser. [1] rte_eth_dev_set_supported_ptypes(*port_id*, 0); Pavan Nikhilesh (7): ethdev: add set ptype function ethdev: add mbuf RSS update as a offload ethdev: add flow action type update as an offload net: update Rx RSS hash offload capabilities net: update Rx flow action offload capabilities net: add ptype set default functionality examples/eventdev_pipeline: add new Rx RSS hash offload doc/guides/nics/features.rst | 24 ++++++++++++++++++--- drivers/net/atlantic/atl_ethdev.c | 12 +++++++++++ drivers/net/bnxt/bnxt_ethdev.c | 14 ++++++++++++- drivers/net/cxgbe/cxgbe.h | 3 ++- drivers/net/cxgbe/cxgbe_ethdev.c | 10 +++++++++ drivers/net/dpaa/dpaa_ethdev.c | 13 +++++++++++- drivers/net/dpaa2/dpaa2_ethdev.c | 13 +++++++++++- drivers/net/e1000/igb_ethdev.c | 13 ++++++++++++ drivers/net/e1000/igb_rxtx.c | 3 ++- drivers/net/enetc/enetc_ethdev.c | 10 +++++++++ drivers/net/enic/enic_ethdev.c | 10 +++++++++ drivers/net/enic/enic_res.c | 4 +++- drivers/net/failsafe/failsafe_ops.c | 10 +++++++++ drivers/net/fm10k/fm10k_ethdev.c | 13 +++++++++++- drivers/net/hinic/hinic_pmd_ethdev.c | 3 ++- drivers/net/i40e/i40e_ethdev.c | 5 ++++- drivers/net/i40e/i40e_ethdev_vf.c | 1 + drivers/net/i40e/i40e_rxtx.c | 9 ++++++++ drivers/net/i40e/i40e_rxtx.h | 1 + drivers/net/iavf/iavf_ethdev.c | 16 +++++++++++++- drivers/net/ice/ice_ethdev.c | 5 ++++- drivers/net/ice/ice_rxtx.c | 9 ++++++++ drivers/net/ice/ice_rxtx.h | 1 + drivers/net/ixgbe/ixgbe_ethdev.c | 13 ++++++++++++ drivers/net/ixgbe/ixgbe_rxtx.c | 4 +++- drivers/net/liquidio/lio_ethdev.c | 3 ++- drivers/net/mlx4/mlx4.c | 1 + drivers/net/mlx4/mlx4.h | 1 + drivers/net/mlx4/mlx4_ethdev.c | 21 +++++++++++++++++++ drivers/net/mlx4/mlx4_rxq.c | 3 ++- drivers/net/mlx5/mlx5.c | 2 ++ drivers/net/mlx5/mlx5.h | 1 + drivers/net/mlx5/mlx5_ethdev.c | 21 +++++++++++++++++++ drivers/net/mlx5/mlx5_rxq.c | 4 +++- drivers/net/mvneta/mvneta_ethdev.c | 22 +++++++++++++++++++ drivers/net/mvpp2/mrvl_ethdev.c | 22 +++++++++++++++++++ drivers/net/netvsc/hn_ethdev.c | 3 ++- drivers/net/netvsc/hn_rndis.c | 3 ++- drivers/net/netvsc/hn_var.h | 3 ++- drivers/net/netvsc/hn_vf.c | 10 ++++++++- drivers/net/nfp/nfp_net.c | 13 +++++++++++- drivers/net/octeontx/octeontx_ethdev.c | 10 +++++++++ drivers/net/octeontx2/otx2_ethdev.c | 4 +++- drivers/net/octeontx2/otx2_ethdev.h | 17 ++++++++------- drivers/net/octeontx2/otx2_flow_parse.c | 3 ++- drivers/net/octeontx2/otx2_lookup.c | 9 ++++++++ drivers/net/qede/qede_ethdev.c | 14 ++++++++++++- drivers/net/sfc/sfc_ethdev.c | 11 ++++++++++ drivers/net/sfc/sfc_rx.c | 4 +++- drivers/net/tap/rte_eth_tap.c | 10 +++++++++ drivers/net/thunderx/nicvf_ethdev.c | 10 +++++++++ drivers/net/thunderx/nicvf_ethdev.h | 3 ++- drivers/net/vmxnet3/vmxnet3_ethdev.c | 15 ++++++++++++- examples/eventdev_pipeline/main.c | 4 ++++ lib/librte_ethdev/rte_ethdev.c | 28 +++++++++++++++++++++++++ lib/librte_ethdev/rte_ethdev.h | 19 +++++++++++++++++ lib/librte_ethdev/rte_ethdev_core.h | 6 ++++++ 57 files changed, 483 insertions(+), 36 deletions(-) -- 2.22.0