git.droids-corp.org
/
dpdk.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
net/ice/base: update GTPU EH dummy packets for FDIR
[dpdk.git]
/
drivers
/
net
/
mlx4
/
mlx4.c
diff --git
a/drivers/net/mlx4/mlx4.c
b/drivers/net/mlx4/mlx4.c
index
284dcb9
..
041c193
100644
(file)
--- a/
drivers/net/mlx4/mlx4.c
+++ b/
drivers/net/mlx4/mlx4.c
@@
-195,7
+195,7
@@
mlx4_free_verbs_buf(void *ptr, void *data __rte_unused)
* @return
* 0 on success, a negative errno value otherwise and rte_errno is set.
*/
* @return
* 0 on success, a negative errno value otherwise and rte_errno is set.
*/
-
static
int
+int
mlx4_proc_priv_init(struct rte_eth_dev *dev)
{
struct mlx4_proc_priv *ppriv;
mlx4_proc_priv_init(struct rte_eth_dev *dev)
{
struct mlx4_proc_priv *ppriv;
@@
-207,13
+207,13
@@
mlx4_proc_priv_init(struct rte_eth_dev *dev)
*/
ppriv_size = sizeof(struct mlx4_proc_priv) +
dev->data->nb_tx_queues * sizeof(void *);
*/
ppriv_size = sizeof(struct mlx4_proc_priv) +
dev->data->nb_tx_queues * sizeof(void *);
- ppriv = rte_malloc_socket("mlx4_proc_priv", ppriv_size,
- RTE_CACHE_LINE_SIZE, dev->device->numa_node);
+ ppriv = rte_
z
malloc_socket("mlx4_proc_priv", ppriv_size,
+
RTE_CACHE_LINE_SIZE, dev->device->numa_node);
if (!ppriv) {
rte_errno = ENOMEM;
return -rte_errno;
}
if (!ppriv) {
rte_errno = ENOMEM;
return -rte_errno;
}
- ppriv->uar_table_sz =
ppriv_size
;
+ ppriv->uar_table_sz =
dev->data->nb_tx_queues
;
dev->process_private = ppriv;
return 0;
}
dev->process_private = ppriv;
return 0;
}
@@
-224,7
+224,7
@@
mlx4_proc_priv_init(struct rte_eth_dev *dev)
* @param dev
* Pointer to Ethernet device structure.
*/
* @param dev
* Pointer to Ethernet device structure.
*/
-
static
void
+void
mlx4_proc_priv_uninit(struct rte_eth_dev *dev)
{
if (!dev->process_private)
mlx4_proc_priv_uninit(struct rte_eth_dev *dev)
{
if (!dev->process_private)