All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 1/2] net/dpaa: enhance the RSS hash support
@ 2018-05-01 12:52 Shreyansh Jain
  2018-05-01 12:52 ` [PATCH 2/2] net/dpaa2: update RSS hash and other device info fields Shreyansh Jain
  2018-05-01 13:04 ` [PATCH 1/2] net/dpaa: enhance the RSS hash support Shreyansh Jain
  0 siblings, 2 replies; 3+ messages in thread
From: Shreyansh Jain @ 2018-05-01 12:52 UTC (permalink / raw)
  To: ferruh.yigit; +Cc: dev, Hemant Agrawal

From: Hemant Agrawal <hemant.agrawal@nxp.com>

Enhance the RSS hash fields supported by DPAA1.
The RSS Hash key fields are configured external to DPDK, through SoC
specific scripts.

Signed-off-by: Hemant Agrawal <hemant.agrawal@nxp.com>
Acked-by: Shreyansh Jain <shreyansh.jain@nxp.com>
---
 drivers/net/dpaa/dpaa_ethdev.h | 12 ++++--------
 1 file changed, 4 insertions(+), 8 deletions(-)

diff --git a/drivers/net/dpaa/dpaa_ethdev.h b/drivers/net/dpaa/dpaa_ethdev.h
index c051ae32a..df2b38444 100644
--- a/drivers/net/dpaa/dpaa_ethdev.h
+++ b/drivers/net/dpaa/dpaa_ethdev.h
@@ -74,14 +74,10 @@
 #define DPAA_DEBUG_FQ_TX_ERROR   1
 
 #define DPAA_RSS_OFFLOAD_ALL ( \
-	ETH_RSS_FRAG_IPV4 | \
-	ETH_RSS_NONFRAG_IPV4_TCP | \
-	ETH_RSS_NONFRAG_IPV4_UDP | \
-	ETH_RSS_NONFRAG_IPV4_SCTP | \
-	ETH_RSS_FRAG_IPV6 | \
-	ETH_RSS_NONFRAG_IPV6_TCP | \
-	ETH_RSS_NONFRAG_IPV6_UDP | \
-	ETH_RSS_NONFRAG_IPV6_SCTP)
+	ETH_RSS_IP | \
+	ETH_RSS_UDP | \
+	ETH_RSS_TCP | \
+	ETH_RSS_SCTP)
 
 #define DPAA_TX_CKSUM_OFFLOAD_MASK (             \
 		PKT_TX_IP_CKSUM |                \
-- 
2.14.1

^ permalink raw reply related	[flat|nested] 3+ messages in thread

* [PATCH 2/2] net/dpaa2: update RSS hash and other device info fields
  2018-05-01 12:52 [PATCH 1/2] net/dpaa: enhance the RSS hash support Shreyansh Jain
@ 2018-05-01 12:52 ` Shreyansh Jain
  2018-05-01 13:04 ` [PATCH 1/2] net/dpaa: enhance the RSS hash support Shreyansh Jain
  1 sibling, 0 replies; 3+ messages in thread
From: Shreyansh Jain @ 2018-05-01 12:52 UTC (permalink / raw)
  To: ferruh.yigit; +Cc: dev, Hemant Agrawal

From: Hemant Agrawal <hemant.agrawal@nxp.com>

Add RSS Hash fields supported and set default values to other device
information fields.

Signed-off-by: Hemant Agrawal <hemant.agrawal@nxp.com>
Acked-by: Shreyansh Jain <shreyansh.jain@nxp.com>
---
 drivers/net/dpaa2/dpaa2_ethdev.c | 5 +++++
 drivers/net/dpaa2/dpaa2_ethdev.h | 6 ++++++
 2 files changed, 11 insertions(+)

diff --git a/drivers/net/dpaa2/dpaa2_ethdev.c b/drivers/net/dpaa2/dpaa2_ethdev.c
index 2f34022e5..c304b82bd 100644
--- a/drivers/net/dpaa2/dpaa2_ethdev.c
+++ b/drivers/net/dpaa2/dpaa2_ethdev.c
@@ -207,6 +207,11 @@ dpaa2_dev_info_get(struct rte_eth_dev *dev, struct rte_eth_dev_info *dev_info)
 	dev_info->speed_capa = ETH_LINK_SPEED_1G |
 			ETH_LINK_SPEED_2_5G |
 			ETH_LINK_SPEED_10G;
+
+	dev_info->max_hash_mac_addrs = 0;
+	dev_info->max_vfs = 0;
+	dev_info->max_vmdq_pools = ETH_16_POOLS;
+	dev_info->flow_type_rss_offloads = DPAA2_RSS_OFFLOAD_ALL;
 }
 
 static int
diff --git a/drivers/net/dpaa2/dpaa2_ethdev.h b/drivers/net/dpaa2/dpaa2_ethdev.h
index ba0856f3e..bd69f523d 100644
--- a/drivers/net/dpaa2/dpaa2_ethdev.h
+++ b/drivers/net/dpaa2/dpaa2_ethdev.h
@@ -50,6 +50,12 @@
 /* Disable RX tail drop, default is enable */
 #define DPAA2_RX_TAILDROP_OFF	0x04
 
+#define DPAA2_RSS_OFFLOAD_ALL ( \
+	ETH_RSS_IP | \
+	ETH_RSS_UDP | \
+	ETH_RSS_TCP | \
+	ETH_RSS_SCTP)
+
 /* LX2 FRC Parsed values (Little Endian) */
 #define DPAA2_PKT_TYPE_ETHER		0x0060
 #define DPAA2_PKT_TYPE_IPV4		0x0000
-- 
2.14.1

^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [PATCH 1/2] net/dpaa: enhance the RSS hash support
  2018-05-01 12:52 [PATCH 1/2] net/dpaa: enhance the RSS hash support Shreyansh Jain
  2018-05-01 12:52 ` [PATCH 2/2] net/dpaa2: update RSS hash and other device info fields Shreyansh Jain
@ 2018-05-01 13:04 ` Shreyansh Jain
  1 sibling, 0 replies; 3+ messages in thread
From: Shreyansh Jain @ 2018-05-01 13:04 UTC (permalink / raw)
  To: ferruh.yigit; +Cc: dev, Hemant Agrawal

On Tuesday 01 May 2018 06:22 PM, Shreyansh Jain wrote:
> From: Hemant Agrawal <hemant.agrawal@nxp.com>
> 
> Enhance the RSS hash fields supported by DPAA1.
> The RSS Hash key fields are configured external to DPDK, through SoC
> specific scripts.
> 
> Signed-off-by: Hemant Agrawal <hemant.agrawal@nxp.com>
> Acked-by: Shreyansh Jain <shreyansh.jain@nxp.com>
> ---

Self NACK.
Patchset was already sent out by Hemant earlier [1].
[1] http://dpdk.org/ml/archives/dev/2018-May/099844.html

-
Shreyansh

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2018-05-01 12:47 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-05-01 12:52 [PATCH 1/2] net/dpaa: enhance the RSS hash support Shreyansh Jain
2018-05-01 12:52 ` [PATCH 2/2] net/dpaa2: update RSS hash and other device info fields Shreyansh Jain
2018-05-01 13:04 ` [PATCH 1/2] net/dpaa: enhance the RSS hash support Shreyansh Jain

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.