Module Name: src
Committed By: msaitoh
Date: Wed Dec 15 09:52:44 UTC 2021
Modified Files:
src/sys/dev/pci/ixgbe: ixgbe_dcb_82598.c
Log Message:
Remove dead code. No functional change.
FreeBSD: 0b487fb4547ad1a939be0d523e555557c94b7cd1
DPDK: a6395d471e14e5a7432875dad8fb3533238c5167
To generate a diff of this commit:
cvs rdiff -u -r1.10 -r1.11 src/sys/dev/pci/ixgbe/ixgbe_dcb_82598.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/sys/dev/pci/ixgbe/ixgbe_dcb_82598.c
diff -u src/sys/dev/pci/ixgbe/ixgbe_dcb_82598.c:1.10 src/sys/dev/pci/ixgbe/ixgbe_dcb_82598.c:1.11
--- src/sys/dev/pci/ixgbe/ixgbe_dcb_82598.c:1.10 Fri Dec 10 11:16:54 2021
+++ src/sys/dev/pci/ixgbe/ixgbe_dcb_82598.c Wed Dec 15 09:52:44 2021
@@ -1,4 +1,4 @@
-/* $NetBSD: ixgbe_dcb_82598.c,v 1.10 2021/12/10 11:16:54 msaitoh Exp $ */
+/* $NetBSD: ixgbe_dcb_82598.c,v 1.11 2021/12/15 09:52:44 msaitoh Exp $ */
/******************************************************************************
SPDX-License-Identifier: BSD-3-Clause
@@ -35,7 +35,7 @@
/*$FreeBSD: head/sys/dev/ixgbe/ixgbe_dcb_82598.c 331224 2018-03-19 20:55:05Z erj $*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: ixgbe_dcb_82598.c,v 1.10 2021/12/10 11:16:54 msaitoh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: ixgbe_dcb_82598.c,v 1.11 2021/12/15 09:52:44 msaitoh Exp $");
#include "ixgbe_type.h"
#include "ixgbe_dcb.h"
@@ -70,14 +70,6 @@ s32 ixgbe_dcb_get_tc_stats_82598(struct
stats->qprc[tc] += IXGBE_READ_REG(hw, IXGBE_QPRC(tc));
/* Received Bytes */
stats->qbrc[tc] += IXGBE_READ_REG(hw, IXGBE_QBRC(tc));
-
-#if 0
- /* Can we get rid of these?? Consequently, getting rid
- * of the tc_stats structure.
- */
- tc_stats_array[up]->in_overflow_discards = 0;
- tc_stats_array[up]->out_overflow_discards = 0;
-#endif
}
return IXGBE_SUCCESS;