diff options
author | David Gwynne <dlg@cvs.openbsd.org> | 2020-06-17 06:45:23 +0000 |
---|---|---|
committer | David Gwynne <dlg@cvs.openbsd.org> | 2020-06-17 06:45:23 +0000 |
commit | 30f2001bbde2fe577337a04c801d42bf64e981db (patch) | |
tree | b0c0198008049ad53e2faeb93aa4a52b877141a2 /sys/net/if_gif.c | |
parent | c719e821d9d1034bdfbaffeb6efbf54d5f6c425f (diff) |
make ph_flowid in mbufs 16bits by storing whether it's set in csum_flags.
i've been wanting to do this for a while, and now that we've got
stoeplitz and it gives us 16 bits, it seems like the right time.
Diffstat (limited to 'sys/net/if_gif.c')
-rw-r--r-- | sys/net/if_gif.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/net/if_gif.c b/sys/net/if_gif.c index 07c11fbb40f..333b1ccb469 100644 --- a/sys/net/if_gif.c +++ b/sys/net/if_gif.c @@ -1,4 +1,4 @@ -/* $OpenBSD: if_gif.c,v 1.128 2019/10/04 05:00:49 dlg Exp $ */ +/* $OpenBSD: if_gif.c,v 1.129 2020/06/17 06:45:22 dlg Exp $ */ /* $KAME: if_gif.c,v 1.43 2001/02/20 08:51:07 itojun Exp $ */ /* @@ -355,8 +355,8 @@ gif_send(struct gif_softc *sc, struct mbuf *m, return (-1); flow = otos << 20; - if (ISSET(m->m_pkthdr.ph_flowid, M_FLOWID_VALID)) - flow |= m->m_pkthdr.ph_flowid & M_FLOWID_MASK; + if (ISSET(m->m_pkthdr.csum_flags, M_FLOWID)) + flow |= m->m_pkthdr.ph_flowid; ip6 = mtod(m, struct ip6_hdr *); ip6->ip6_flow = htonl(flow); |