ena_sysctl.h (0e7d31f63b9db869c91228d8ed1e984bdee2b931) ena_sysctl.h (82e558eacf222ac497bc11fa9f2c7778e97fbc7a)
1/*-
2 * SPDX-License-Identifier: BSD-2-Clause
3 *
4 * Copyright (c) 2015-2021 Amazon.com, Inc. or its affiliates.
5 * All rights reserved.
6 *
7 * Redistribution and use in source and binary forms, with or without
8 * modification, are permitted provided that the following conditions

--- 25 unchanged lines hidden (view full) ---

34#ifndef ENA_SYSCTL_H
35#define ENA_SYSCTL_H
36
37#include <sys/types.h>
38#include <sys/sysctl.h>
39
40#include "ena.h"
41
1/*-
2 * SPDX-License-Identifier: BSD-2-Clause
3 *
4 * Copyright (c) 2015-2021 Amazon.com, Inc. or its affiliates.
5 * All rights reserved.
6 *
7 * Redistribution and use in source and binary forms, with or without
8 * modification, are permitted provided that the following conditions

--- 25 unchanged lines hidden (view full) ---

34#ifndef ENA_SYSCTL_H
35#define ENA_SYSCTL_H
36
37#include <sys/types.h>
38#include <sys/sysctl.h>
39
40#include "ena.h"
41
42void ena_sysctl_add_nodes(struct ena_adapter *adapter);
43void ena_sysctl_update_queue_node_nb(struct ena_adapter *adapter, int old,
42void ena_sysctl_add_nodes(struct ena_adapter *adapter);
43void ena_sysctl_update_queue_node_nb(struct ena_adapter *adapter, int old,
44 int new);
45
46extern int ena_enable_9k_mbufs;
47#define ena_mbuf_sz (ena_enable_9k_mbufs ? MJUM9BYTES : MJUMPAGESIZE)
48
49/* Force the driver to use large LLQ (Low Latency Queue) headers. */
50extern bool ena_force_large_llq_header;
51
52#endif /* !(ENA_SYSCTL_H) */
44 int new);
45
46extern int ena_enable_9k_mbufs;
47#define ena_mbuf_sz (ena_enable_9k_mbufs ? MJUM9BYTES : MJUMPAGESIZE)
48
49/* Force the driver to use large LLQ (Low Latency Queue) headers. */
50extern bool ena_force_large_llq_header;
51
52#endif /* !(ENA_SYSCTL_H) */