aboutsummaryrefslogtreecommitdiff
path: root/sys/dev
diff options
context:
space:
mode:
authorNavdeep Parhar <np@FreeBSD.org>2018-12-20 20:34:21 +0000
committerNavdeep Parhar <np@FreeBSD.org>2018-12-20 20:34:21 +0000
commit9877f73541e58b4588475d04dc9c964a091bebb1 (patch)
tree87b96306cb5de268bc55c338c73f708abeee2820 /sys/dev
parentdb8b56134506840832bec2d1ce07b9e00d4d6d71 (diff)
cxgbe(4): Make sure the rx queues start off with the correct timestamp
settings on initialization. Sponsored by: Chelsio Communications
Notes
svn path=/head/; revision=342284
Diffstat (limited to 'sys/dev')
-rw-r--r--sys/dev/cxgbe/t4_sge.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/dev/cxgbe/t4_sge.c b/sys/dev/cxgbe/t4_sge.c
index 2b227194ff19..313d3b3e81aa 100644
--- a/sys/dev/cxgbe/t4_sge.c
+++ b/sys/dev/cxgbe/t4_sge.c
@@ -3435,6 +3435,8 @@ alloc_rxq(struct vi_info *vi, struct sge_rxq *rxq, int intr_idx, int idx,
if (vi->ifp->if_capenable & IFCAP_LRO)
rxq->iq.flags |= IQ_LRO_ENABLED;
#endif
+ if (vi->ifp->if_capenable & IFCAP_HWRXTSTMP)
+ rxq->iq.flags |= IQ_RX_TIMESTAMP;
rxq->ifp = vi->ifp;
children = SYSCTL_CHILDREN(oid);