diff mbox series

[2/3] net/dpaa: implement max burst size in dev info

Message ID 20171212100520.20502-2-nikhil.agarwal@linaro.org
State New
Headers show
Series [1/3] ethdev: add max burst size to device info | expand

Commit Message

Nikhil Agarwal Dec. 12, 2017, 10:05 a.m. UTC
Signed-off-by: Nikhil Agarwal <nikhil.agarwal@linaro.org>

---
 drivers/net/dpaa/dpaa_ethdev.c | 1 +
 drivers/net/dpaa/dpaa_ethdev.h | 1 +
 2 files changed, 2 insertions(+)

-- 
2.7.4
diff mbox series

Patch

diff --git a/drivers/net/dpaa/dpaa_ethdev.c b/drivers/net/dpaa/dpaa_ethdev.c
index cf5a2ec..79c6cc4 100644
--- a/drivers/net/dpaa/dpaa_ethdev.c
+++ b/drivers/net/dpaa/dpaa_ethdev.c
@@ -242,6 +242,7 @@  static void dpaa_eth_dev_info(struct rte_eth_dev *dev,
 	dev_info->max_tx_queues = dpaa_intf->nb_tx_queues;
 	dev_info->min_rx_bufsize = DPAA_MIN_RX_BUF_SIZE;
 	dev_info->max_rx_pktlen = DPAA_MAX_RX_PKT_LEN;
+	dev_info->max_burst_size = DPAA_MAX_BURST_SIZE;
 	dev_info->max_mac_addrs = DPAA_MAX_MAC_FILTER;
 	dev_info->max_hash_mac_addrs = 0;
 	dev_info->max_vfs = 0;
diff --git a/drivers/net/dpaa/dpaa_ethdev.h b/drivers/net/dpaa/dpaa_ethdev.h
index 5457d61..0400dce 100644
--- a/drivers/net/dpaa/dpaa_ethdev.h
+++ b/drivers/net/dpaa/dpaa_ethdev.h
@@ -64,6 +64,7 @@ 
 
 #define DPAA_MIN_RX_BUF_SIZE 512
 #define DPAA_MAX_RX_PKT_LEN  10240
+#define DPAA_MAX_BURST_SIZE			16
 
 /* RX queue tail drop threshold
  * currently considering 32 KB packets.