From: dlg Date: Mon, 25 Jan 2021 09:36:48 +0000 (+0000) Subject: don't lose the M_FLOWID flag if the ipv4 cksum is ok. X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=2d77dc22afd4bb58c6487e9c2291fd387a5beb96;p=openbsd don't lose the M_FLOWID flag if the ipv4 cksum is ok. found while poking around with hrvoje popovski yes jmatthew@ --- diff --git a/sys/dev/pci/if_mcx.c b/sys/dev/pci/if_mcx.c index 55d55d78c07..a33c68af084 100644 --- a/sys/dev/pci/if_mcx.c +++ b/sys/dev/pci/if_mcx.c @@ -1,4 +1,4 @@ -/* $OpenBSD: if_mcx.c,v 1.95 2021/01/25 01:45:55 dlg Exp $ */ +/* $OpenBSD: if_mcx.c,v 1.96 2021/01/25 09:36:48 dlg Exp $ */ /* * Copyright (c) 2017 David Gwynne @@ -6807,7 +6807,7 @@ mcx_process_rx(struct mcx_softc *sc, struct mcx_rx *rx, flags = bemtoh32(&cqe->cq_flags); if (flags & MCX_CQ_ENTRY_FLAGS_L3_OK) - m->m_pkthdr.csum_flags = M_IPV4_CSUM_IN_OK; + m->m_pkthdr.csum_flags |= M_IPV4_CSUM_IN_OK; if (flags & MCX_CQ_ENTRY_FLAGS_L4_OK) m->m_pkthdr.csum_flags |= M_TCP_CSUM_IN_OK | M_UDP_CSUM_IN_OK;