net/dpaa: update optimal burst size in device info
Signed-off-by: Shreyansh Jain <shreyansh.jain@nxp.com>
This commit is contained in:
parent
0b5deefbe6
commit
2c01a48a50
@ -328,6 +328,8 @@ static void dpaa_eth_dev_info(struct rte_eth_dev *dev,
|
||||
dev_rx_offloads_nodis;
|
||||
dev_info->tx_offload_capa = dev_tx_offloads_sup |
|
||||
dev_tx_offloads_nodis;
|
||||
dev_info->default_rxportconf.burst_size = DPAA_DEF_RX_BURST_SIZE;
|
||||
dev_info->default_txportconf.burst_size = DPAA_DEF_TX_BURST_SIZE;
|
||||
}
|
||||
|
||||
static int dpaa_eth_link_update(struct rte_eth_dev *dev,
|
||||
|
@ -51,6 +51,10 @@
|
||||
/*Maximum number of slots available in TX ring*/
|
||||
#define DPAA_TX_BURST_SIZE 7
|
||||
|
||||
/* Optimal burst size for RX and TX as default */
|
||||
#define DPAA_DEF_RX_BURST_SIZE 7
|
||||
#define DPAA_DEF_TX_BURST_SIZE DPAA_TX_BURST_SIZE
|
||||
|
||||
#ifndef VLAN_TAG_SIZE
|
||||
#define VLAN_TAG_SIZE 4 /** < Vlan Header Length */
|
||||
#endif
|
||||
|
Loading…
Reference in New Issue
Block a user