Linux Audio

Check our new training course

Loading...
v6.13.7
 1/* SPDX-License-Identifier: GPL-2.0-only */
 2/* Copyright (C) 2024 Intel Corporation */
 3
 4#ifndef __LIBETH_TYPES_H
 5#define __LIBETH_TYPES_H
 6
 7#include <linux/types.h>
 8
 9/**
10 * struct libeth_sq_napi_stats - "hot" counters to update in Tx completion loop
11 * @packets: completed frames counter
12 * @bytes: sum of bytes of completed frames above
13 * @raw: alias to access all the fields as an array
14 */
15struct libeth_sq_napi_stats {
16	union {
17		struct {
18							u32 packets;
19							u32 bytes;
20		};
21		DECLARE_FLEX_ARRAY(u32, raw);
22	};
23};
24
25#endif /* __LIBETH_TYPES_H */
v6.13.7
 1/* SPDX-License-Identifier: GPL-2.0-only */
 2/* Copyright (C) 2024 Intel Corporation */
 3
 4#ifndef __LIBETH_TYPES_H
 5#define __LIBETH_TYPES_H
 6
 7#include <linux/types.h>
 8
 9/**
10 * struct libeth_sq_napi_stats - "hot" counters to update in Tx completion loop
11 * @packets: completed frames counter
12 * @bytes: sum of bytes of completed frames above
13 * @raw: alias to access all the fields as an array
14 */
15struct libeth_sq_napi_stats {
16	union {
17		struct {
18							u32 packets;
19							u32 bytes;
20		};
21		DECLARE_FLEX_ARRAY(u32, raw);
22	};
23};
24
25#endif /* __LIBETH_TYPES_H */