diff mbox series

[2/2] net/dpaa2: update RSS hash and other device info fields

Message ID 20180501125249.12409-2-shreyansh.jain@nxp.com
State New
Headers show
Series [1/2] net/dpaa: enhance the RSS hash support | expand

Commit Message

Shreyansh Jain May 1, 2018, 12:52 p.m. UTC
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(+)

-- 
2.14.1
diff mbox series

Patch

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