artulab
projects
/
openbsd
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
da1cde2
)
offset rx buffers by ETHER_ALIGN so ip payloads are properly aligned.
author
dlg
<dlg@openbsd.org>
Wed, 21 Aug 2024 01:22:31 +0000
(
01:22
+0000)
committer
dlg
<dlg@openbsd.org>
Wed, 21 Aug 2024 01:22:31 +0000
(
01:22
+0000)
sys/dev/pci/if_rge.c
patch
|
blob
|
history
diff --git
a/sys/dev/pci/if_rge.c
b/sys/dev/pci/if_rge.c
index
b4a09c1
..
c30c4c9
100644
(file)
--- a/
sys/dev/pci/if_rge.c
+++ b/
sys/dev/pci/if_rge.c
@@
-1,4
+1,4
@@
-/* $OpenBSD: if_rge.c,v 1.3
3 2024/08/21 01:17:50
dlg Exp $ */
+/* $OpenBSD: if_rge.c,v 1.3
4 2024/08/21 01:22:31
dlg Exp $ */
/*
* Copyright (c) 2019, 2020, 2023, 2024
@@
-1149,6
+1149,7
@@
rge_newbuf(struct rge_queues *q)
return (ENOBUFS);
m->m_len = m->m_pkthdr.len = MCLBYTES;
+ m_adj(m, ETHER_ALIGN);
idx = q->q_rx.rge_rxq_prodidx;
rxq = &q->q_rx.rge_rxq[idx];