From 483eb2f56657e8e7f419ab1a4fab8dce9ade8609 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Sat, 27 Apr 2024 20:24:20 +0200 Subject: Adding upstream version 14.2.21. Signed-off-by: Daniel Baumann --- src/spdk/dpdk/drivers/net/bnxt/bnxt_util.c | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 src/spdk/dpdk/drivers/net/bnxt/bnxt_util.c (limited to 'src/spdk/dpdk/drivers/net/bnxt/bnxt_util.c') diff --git a/src/spdk/dpdk/drivers/net/bnxt/bnxt_util.c b/src/spdk/dpdk/drivers/net/bnxt/bnxt_util.c new file mode 100644 index 00000000..7d334271 --- /dev/null +++ b/src/spdk/dpdk/drivers/net/bnxt/bnxt_util.c @@ -0,0 +1,18 @@ +/* SPDX-License-Identifier: BSD-3-Clause + * Copyright(c) 2014-2018 Broadcom + * All rights reserved. + */ + +#include + +#include "bnxt_util.h" + +int bnxt_check_zero_bytes(const uint8_t *bytes, int len) +{ + int i; + + for (i = 0; i < len; i++) + if (bytes[i] != 0x00) + return 0; + return 1; +} -- cgit v1.2.3