aboutsummaryrefslogtreecommitdiff
path: root/sys/dev/vnic/nicvf_queues.h
diff options
context:
space:
mode:
authorZbigniew Bodek <zbb@FreeBSD.org>2016-02-25 14:23:02 +0000
committerZbigniew Bodek <zbb@FreeBSD.org>2016-02-25 14:23:02 +0000
commit332c869727e0c7132da51adf8be70c19b156a41e (patch)
treecf628d208590ac11478febe7b504d42cb67b0465 /sys/dev/vnic/nicvf_queues.h
parent6dc234599fe8d1602ad92b38910453547ae8aee7 (diff)
downloadsrc-332c869727e0c7132da51adf8be70c19b156a41e.tar.gz
src-332c869727e0c7132da51adf8be70c19b156a41e.zip
Improve VNIC performance on Tx path by immediate packet transmission
Don't postpone Tx if the Tx lock can be acquired now. This gives 3x better performance on egress. Reviewed by: wma Obtained from: Semihalf Sponsored by: Cavium Differential Revision: https://reviews.freebsd.org/D5325
Notes
Notes: svn path=/head/; revision=296035
Diffstat (limited to 'sys/dev/vnic/nicvf_queues.h')
-rw-r--r--sys/dev/vnic/nicvf_queues.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/dev/vnic/nicvf_queues.h b/sys/dev/vnic/nicvf_queues.h
index 436bb71d3cb9..010dc2ef2470 100644
--- a/sys/dev/vnic/nicvf_queues.h
+++ b/sys/dev/vnic/nicvf_queues.h
@@ -385,6 +385,8 @@ void nicvf_disable_intr(struct nicvf *, int, int);
void nicvf_clear_intr(struct nicvf *, int, int);
int nicvf_is_intr_enabled(struct nicvf *, int, int);
+int nicvf_tx_mbuf_locked(struct snd_queue *, struct mbuf *);
+
/* Register access APIs */
void nicvf_reg_write(struct nicvf *, uint64_t, uint64_t);
uint64_t nicvf_reg_read(struct nicvf *, uint64_t);