From 2d77dc22afd4bb58c6487e9c2291fd387a5beb96 Mon Sep 17 00:00:00 2001 From: dlg Date: Mon, 25 Jan 2021 09:36:48 +0000 Subject: [PATCH] don't lose the M_FLOWID flag if the ipv4 cksum is ok. found while poking around with hrvoje popovski yes jmatthew@ --- sys/dev/pci/if_mcx.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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; -- 2.20.1