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/hinic: allocate IO memory with socket id
[dpdk.git]
/
drivers
/
net
/
hinic
/
hinic_pmd_tx.h
diff --git
a/drivers/net/hinic/hinic_pmd_tx.h
b/drivers/net/hinic/hinic_pmd_tx.h
index
8a3df27
..
dabbc6c
100644
(file)
--- a/
drivers/net/hinic/hinic_pmd_tx.h
+++ b/
drivers/net/hinic/hinic_pmd_tx.h
@@
-114,6
+114,7
@@
struct hinic_txq {
u16 q_id;
u16 q_depth;
u32 cos;
u16 q_id;
u16 q_depth;
u32 cos;
+ u32 socket_id;
/* cacheline1 */
struct hinic_txq_stats txq_stats;
/* cacheline1 */
struct hinic_txq_stats txq_stats;
@@
-131,13
+132,14
@@
void hinic_free_tx_resources(struct hinic_txq *txq);
u16 hinic_xmit_pkts(void *tx_queue, struct rte_mbuf **tx_pkts, u16 nb_pkts);
u16 hinic_xmit_pkts(void *tx_queue, struct rte_mbuf **tx_pkts, u16 nb_pkts);
-void hinic_free_all_tx_
skb
s(struct hinic_txq *txq);
+void hinic_free_all_tx_
mbuf
s(struct hinic_txq *txq);
void hinic_txq_get_stats(struct hinic_txq *txq, struct hinic_txq_stats *stats);
void hinic_txq_stats_reset(struct hinic_txq *txq);
void hinic_txq_get_stats(struct hinic_txq *txq, struct hinic_txq_stats *stats);
void hinic_txq_stats_reset(struct hinic_txq *txq);
-int hinic_create_sq(struct hinic_hwdev *hwdev, u16 q_id, u16 sq_depth);
+int hinic_create_sq(struct hinic_hwdev *hwdev, u16 q_id,
+ u16 sq_depth, unsigned int socket_id);
void hinic_destroy_sq(struct hinic_hwdev *hwdev, u16 q_id);
void hinic_destroy_sq(struct hinic_hwdev *hwdev, u16 q_id);