summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
Diffstat (limited to 'sys')
-rw-r--r--sys/arch/octeon/dev/cn30xxipd.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/arch/octeon/dev/cn30xxipd.c b/sys/arch/octeon/dev/cn30xxipd.c
index ca040c1fb23..197c005117c 100644
--- a/sys/arch/octeon/dev/cn30xxipd.c
+++ b/sys/arch/octeon/dev/cn30xxipd.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: cn30xxipd.c,v 1.6 2015/10/24 05:35:42 visa Exp $ */
+/* $OpenBSD: cn30xxipd.c,v 1.7 2016/01/22 01:18:44 jsg Exp $ */
/*
* Copyright (c) 2007 Internet Initiative Japan, Inc.
@@ -166,6 +166,8 @@ cn30xxipd_offload(uint64_t word2, uint16_t *rcflags)
if (ISSET(word2, PIP_WQE_WORD2_IP_NI))
return;
+ cflags = 0;
+
/* Check IP checksum status. */
if (!ISSET(word2, PIP_WQE_WORD2_IP_V6) &&
!ISSET(word2, PIP_WQE_WORD2_IP_IE))