Introduce ENA local page cache
Subsystems (4)
cover Introduce ENA local page cache
High incoming pps rate leads to frequent memory allocations by the napi routine to refill the pages of the incoming packets.
On several new instances in AWS fleet, with high pps rates, these frequent allocations create a contention between the different napi routines.
The contention happens because the routines end up accessing the buddy allocator which is a shared resource and requires lock-based synchronization (also, when freeing a page the same lock is held). In our tests we observed that that this contention causes the CPUs that serve the RX queues to reach 100% and damage network performance. While this contention can be relieved by making sure that pages are allocated and freed on the same core, which would allow the driver to take advantage of PCP, this solution is not always available or easy to maintain.
This patchset implements a page cache local to each RX queue. When the napi routine allocates a page, it first checks whether the cache has a previously allocated page that isn't used. If so, this page is fetched instead of allocating a new one. Otherwise, if the cache is out of free pages, a page is allocated using normal allocation path (PCP or buddy allocator) and returned to the caller.
A page that is allocated outside the cache, is afterwards cached, up to cache's maximum size (set to 2048 pages in this patchset).
The pages' availability is tracked by checking their refcount. A cached page has a refcount of 2 when it is passed to the napi routine as an RX buffer. When a refcount of a page reaches 1, the cache assumes that it is free to be re-used.
To avoid traversing all pages in the cache when looking for an available page, we only check the availability of the first page fetched for the RX queue that wasn't returned to the cache yet (i.e. has a refcount of more than 1).
For example, for a cache of size 8 from which pages at indices 0-7 were fetched (and placed in the RX SQ), the next time napi would try to fetch a page from the cache, the cache would check the availability of the page at index 0, and if it is available, this page would be fetched for the napi. The next time napi would try to fetch a page, the cache entry at index 1 would be checked, and so on.
Memory consumption:
In its maximum occupancy the cache would hold 2048 pages per each queue. Providing an interface with 32 queues, 32 * 2048 * 4K = 64MB are being used by the driver for its RX queues.
To avoid choking the system, this feature is only enabled for instances with more than 16 queues which in AWS come with several tens Gigs of RAM. Moreover, the feature can be turned off completely using ethtool.
Having said that, the memory cost of having RX queues with 2K entries would be the same as with 1K entries queue + LPC in worst case, while the latter allocates the memory only in case the traffic rate is higher than the rate of the pages being freed.
Performance results:
4 c5n.18xlarge instances sending iperf TCP traffic to a p4d.24xlarge instance. Packet size: 1500 bytes
c5n.18xlarge specs:
Intel(R) Xeon(R) Platinum 8124M CPU @ 3.00GHz
with 72 cores. 32 queue pairs.
p4d.24xlarge specs:
Intel(R) Xeon(R) Platinum 8275CL CPU @ 3.00GHz with 96 cores. 4 * 32 = 128 (4 interfaces) queue pairs.
| | before | after | | + + | | bandwidth (Gbps) | 260 | 330 | | CPU utilization (%) | 100 | 56 |
Shay Agroskin (3):
net: ena: implement local page cache (LPC) system
net: ena: update README file with a description about LPC
net: ena: support ethtool priv-flags and LPC state change
.../device_drivers/ethernet/amazon/ena.rst | 28 ++ drivers/net/ethernet/amazon/ena/ena_ethtool.c | 56 ++- drivers/net/ethernet/amazon/ena/ena_netdev.c | 369 +++++++++++++++++- drivers/net/ethernet/amazon/ena/ena_netdev.h | 32 ++ 4 files changed, 458 insertions(+), 27 deletions(-)
Signature · 1 line
2.25.1
RFC PATCH 1/3 net: ena: implement local page cache (LPC) system
The page cache holds pages we allocated in the past during napi cycle, and tracks their availability status using page ref count.
The cache can hold up to 2048 pages. Upon allocating a page, we check whether the next entry in the cache contains an unused page, and if so fetch it. If the next page is already used by another entity or if it belongs to a different NUMA core than the napi routine, we allocate a page in the regular way (page from a different NUMA core is replaced by the newly allocated page).
This system can help us reduce the contention between different cores when allocating page since every cache is unique to a queue.
This patch adds the following ethtool counters:
- lpc_warm_up: If the next page in the cache isn't free, and the cache wasn't allocated its maximum possible pages, allocate a new page and store it in the cache. This counter increases everytime it happens. Its maximum value can be N * 'current queue size'.
- lpc_full: The next entry in the cache contains a page that is still used. In such case a page is allocated in the regular way (i.e. dev_alloc())
- lpc_wrong_numa: The next entry in the cache contains a page in a different NUMA node than the napi routine which allocates the page. In this case increase the counter and replace current entry with a page from the same NUMA node.
Note that in all three cases a page should be returned to the caller of the page cache function, and the page would be either from the cache, or from the Linux memory system.
In case the system is out-of-memory the cache returns NULL. This scenario doesn't break the cache's correctness.
The page cache is disabled when having less than 16 queues or when XDP is used.
--- drivers/net/ethernet/amazon/ena/ena_ethtool.c | 3 + drivers/net/ethernet/amazon/ena/ena_netdev.c | 337 ++++++++++++++++-- drivers/net/ethernet/amazon/ena/ena_netdev.h | 30 ++ 3 files changed, 350 insertions(+), 20 deletions(-)
drivers/net/ethernet/amazon/ena/ena_ethtool.c +3 -0
@@ -96,6 +96,9 @@ static const struct ena_stats ena_stats_rx_strings[] = {ENA_STAT_RX_ENTRY (xdp_tx),ENA_STAT_RX_ENTRY (xdp_invalid ),ENA_STAT_RX_ENTRY (xdp_redirect ), +ENA_STAT_RX_ENTRY (lpc_warm_up ), +ENA_STAT_RX_ENTRY (lpc_full ), + ENA_STAT_RX_ENTRY(lpc_wrong_numa), };static const struct ena_stats ena_stats_ena_com_strings[] = {
drivers/net/ethernet/amazon/ena/ena_netdev.c +317 -20
432 lines not on this page · raw message
drivers/net/ethernet/amazon/ena/ena_netdev.h +30 -0
@@ -194,6 +194,7 @@ struct ena_rx_buffer {struct page *page;u32 page_offset;struct ena_com_buf ena_buf; +bool is_lpc_page; }____cacheline_aligned ;struct ena_stats_tx {
@@ -234,8 +235,33 @@ struct ena_stats_rx {u64 xdp_tx;u64 xdp_invalid;u64 xdp_redirect; +u64 lpc_warm_up; +u64 lpc_full; +u64 lpc_wrong_numa; }; +/* LPC definitions */ +#define ENA_LPC_DEFAULT_MULTIPLIER 2 +#define ENA_LPC_MULTIPLIER_UNIT 1024 +#define ENA_LPC_MIN_NUM_OF_CHANNELS 16 + +/* Store DMA address along with the page */ +struct ena_page { +struct page *page; +dma_addr_t dma_addr; +}; + +struct ena_page_cache { +/* How many pages are produced */ +u32 head; +/* How many of the entries were initialized */ +u32 current_size; +/* Maximum number of pages the cache can hold */ +u32 max_size; + +struct ena_page cache[0 ]; +}____cacheline_aligned ; +struct ena_ring {/* Holds the empty requests for TX/RX * out of order completions
@@ -252,6 +278,7 @@ struct ena_ring {struct pci_dev *pdev;struct napi_struct *napi;struct net_device *netdev; +struct ena_page_cache *page_cache;struct ena_com_dev *ena_dev;struct ena_adapter *adapter;struct ena_com_io_cq *ena_com_io_cq;
@@ -333,6 +360,9 @@ struct ena_adapter {u32 num_io_queues;u32 max_num_io_queues; +/* Local page cache size */ +u32 lpc_size; +int msix_vecs;u32 missing_tx_completion_threshold;
Signature · 1 line
2.25.1
Re: [RFC Patch v1 1/3] net: ena: implement local page cache (LPC) system
Quoted 10 lines · Shay Agroskin
The page cache holds pages we allocated in the past during napi cycle, and tracks their availability status using page ref count.
The cache can hold up to 2048 pages. Upon allocating a page, we check whether the next entry in the cache contains an unused page, and if so fetch it. If the next page is already used by another entity or if it belongs to a different NUMA core than the napi routine, we allocate a page in the regular way (page from a different NUMA core is replaced by the newly allocated page).
Quoted 2 lines
This system can help us reduce the contention between different cores when allocating page since every cache is unique to a queue.
For reference, many drivers already use a similar strategy.
Quoted 7 lines
drivers/net/ethernet/amazon/ena/ena_netdev.c +6
-0+ +/* Fetch the cached page (mark the page as used and pass it to the caller). +* If the page belongs to a different NUMA than the current one, free the cache +* page and allocate another one instead. +*/ +static struct page *ena_fetch_cache_page(struct ena_ring *rx_ring,
drivers/net/ethernet/amazon/ena/ena_netdev.c static void ena_free_all_io_rx_resources(struct ena_adapter *adapter) · line 1052
Quoted 10 lines
drivers/net/ethernet/amazon/ena/ena_netdev.c +10
-0+struct ena_page *ena_page, + dma_addr_t *dma, + int current_nid) +{ + /* Remove pages belonging to different node than current_nid from cache */ + if (unlikely(page_to_nid(ena_page->page) != current_nid)) { + ena_increase_stat(&rx_ring->rx_stats.lpc_wrong_numa, 1, &rx_ring->syncp); +ena_replace_cache_page (rx_ring, ena_page); + } +
And they use dev_page_is_reusable() instead of copy/pasting this logic.
As a bonus, they properly deal with pfmemalloc
Re: [RFC Patch v1 1/3] net: ena: implement local page cache (LPC) system
Quoted 13 lines · Eric Dumazet
Quoted 10 lines · Shay Agroskin
The page cache holds pages we allocated in the past during napi cycle, and tracks their availability status using page ref count.
The cache can hold up to 2048 pages. Upon allocating a page, we check whether the next entry in the cache contains an unused page, and if so fetch it. If the next page is already used by another entity or if it belongs to a different NUMA core than the napi routine, we allocate a page in the regular way (page from a different NUMA core is replaced by the newly allocated page).
Quoted 4 lines
Quoted 2 lines
This system can help us reduce the contention between different cores when allocating page since every cache is unique to a queue.
For reference, many drivers already use a similar strategy.
Hi Eric
So rather than yet another implementation, should we push for a generic implementation which any driver can use?
Andrew
Re: [RFC Patch v1 1/3] net: ena: implement local page cache (LPC) system
Quoted 9 lines · Andrew Lunn
Quoted 8 lines · Eric Dumazet
Quoted 5 lines · Shay Agroskin
The page cache holds pages we allocated in the past during napi cycle,
and tracks their availability status using page ref count.The cache can hold up to 2048 pages. Upon allocating a page, we
2048 per core ? IMHO this is too much ! ideally you want twice the napi budget.
you are trying to mitigate against TCP/L4 delays/congestion but this is very prone to DNS attacks, if your memory allocators are under stress, you shouldn't be hogging own pages and worsen the situation.
Quoted 15 lines
Quoted 15 lines
Quoted 14 lines
check
whether the next entry in the cache contains an unused page, and if so
fetch it. If the next page is already used by another entity or if it
belongs to a different NUMA core than the napi routine, we allocate a
page in the regular way (page from a different NUMA core is replaced by
the newly allocated page).This system can help us reduce the contention between different cores
when allocating page since every cache is unique to a queue.
Quoted 7 lines
Quoted 1 line
For reference, many drivers already use a similar strategy.
Hi Eric
So rather than yet another implementation, should we push for a generic implementation which any driver can use?
We already have it:
https://www.kernel.org/doc/html/latest/networking/page_pool.html
also please checkout this fresh page pool extension, SKB buffer recycling RFC, might be useful for the use cases ena are interested in
https://patchwork.kernel.org/project/netdevbpf/patch/[email protected]/
Re: [RFC Patch v1 1/3] net: ena: implement local page cache (LPC) system
Quoted 9 lines · Saeed Mahameed
Quoted 8 lines · Andrew Lunn
Quoted 7 lines · Eric Dumazet
Quoted 4 lines · Shay Agroskin
The page cache holds pages we allocated in the past during napi cycle,
and tracks their availability status using page ref count.
Quoted 8 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
The cache can hold up to 2048 pages. Upon allocating a page, we
2048 per core ? IMHO this is too much ! ideally you want twice the napi budget.
you are trying to mitigate against TCP/L4 delays/congestion but this is very prone to DNS attacks, if your memory allocators are under stress, you shouldn't be hogging own pages and worsen the situation.
First of all, thank you for taking a look in this patchset.
We are trying to mitigate a simultaneous access to a shared resource, the buddy allocator. When using local caches, I reduce the number of accesses to this shared resource by about 90%, thus avoiding this contention.
I might not understand you correctly, but this patch doesn't try to mitigate network peaks. I agree that we're hogging quite a lot of system's resources, I'll run some tests with smaller cache size (e.g. 2x napi badget) and see if it mitigates the problem we have
Quoted 18 lines
Quoted 18 lines
Quoted 17 lines
Quoted 12 lines
check
whether the next entry in the cache contains an unused page, and if so
fetch it. If the next page is already used by another entity or if it
belongs to a different NUMA core than the napi routine, we allocate a
page in the regular way (page from a different NUMA core is replaced by
the newly allocated page).Quoted 3 lines
This system can help us reduce the contention between different cores
when allocating page since every cache is unique to a queue.For reference, many drivers already use a similar strategy.
Quoted 8 lines
Quoted 5 lines
Hi Eric
So rather than yet another implementation, should we push for a generic implementation which any driver can use?
We already have it:
https://www.kernel.org/doc/html/latest/networking/page_pool.html
Yup the original page pool implementation didn't suit our needs since we never got to free the pages using its specialized function for non-XDP traffic.
Quoted 5 lines
also please checkout this fresh page pool extension, SKB buffer recycling RFC, might be useful for the use cases ena are interested in
https://patchwork.kernel.org/project/netdevbpf/patch/[email protected]/
Gone over the code and ran some tests with this patchset. On first look it seems like it does allow us to mitigate the problem this patchset solves. I'll run more tests with it and report on this thread my conclusions.
Thanks a lot for pointing it out (:
Shay
Re: [RFC Patch v1 1/3] net: ena: implement local page cache (LPC) system
In reply to Eric DumazetQuoted 43 lines · Eric Dumazet
Quoted 10 lines · Shay Agroskin
The page cache holds pages we allocated in the past during napi cycle, and tracks their availability status using page ref count.
The cache can hold up to 2048 pages. Upon allocating a page, we check whether the next entry in the cache contains an unused page, and if so fetch it. If the next page is already used by another entity or if it belongs to a different NUMA core than the napi routine, we allocate a page in the regular way (page from a different NUMA core is replaced by the newly allocated page).
Quoted 2 lines
This system can help us reduce the contention between different cores when allocating page since every cache is unique to a queue.
For reference, many drivers already use a similar strategy.
Quoted 21 lines
(quoted diff) +2
-0+ +/* Fetch the cached page (mark the page as used and pass it tothe caller).
+ * If the page belongs to a different NUMA than the current one, free the cache
+ * page and allocate another one instead.
+ */
+static struct page *ena_fetch_cache_page(structena_ring*rx_ring,(quoted diff) +1
-0+ struct ena_page
*ena_page,drivers/net/ethernet/amazon/ena/ena_netdev.c +4
-0+dma_addr_t *dma, + int current_nid) +{ +/* Remove pages belonging to different node than
current_nidfrom cache */(quoted diff) +1
-0+ if (unlikely(page_to_nid(ena_page->page) != current_nid)){
+ena_increase_stat(&rx_ring->rx_stats.lpc_wrong_numa, 1, &rx_ring->syncp);drivers/net/ethernet/amazon/ena/ena_netdev.c static void ena_free_all_io_rx_resources(struct ena_adapter *adapter) · line 1052
Quoted 3 lines
drivers/net/ethernet/amazon/ena/ena_netdev.c +3
-0+ena_replace_cache_page (rx_ring, ena_page); + } +And they use
dev_page_is_reusable()instead of copy/pasting this logic.
Quoted 1 line
As a bonus, they properly deal with pfmemalloc
Thanks for reviewing it, and sorry for the time it took me to reply, I wanted to test some of the suggestions given me here before replying.
Providing that this patchset would still be necessary for our driver after testing the patchset Saeed suggested, I will switch to using dev_page_is_reusable() instead of this expression.
Shay
kernel test robot
build botRe: [RFC Patch v1 1/3] net: ena: implement local page cache (LPC) system
In reply to Shay Agroskin[If your patch is applied to the wrong git tree, kindly drop us a note. And when submitting patch, we suggest to use '--base' as documented in https://git-scm.com/docs/git-format-patch]
Hi Shay,
[FYI, it's a private test report for your RFC patch.]
[auto build test WARNING on net-next/master]
[also build test WARNING on linus/master v5.12-rc2 next-20210309] [If your patch is applied to the wrong git tree, kindly drop us a note. And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch]
url: https://github.com/0day-ci/linux/commits/Shay-Agroskin/Introduce-ENA-local-page-cache/20210310-011341 base: https://git.kernel.org/pub/scm/linux/kernel/git/davem/net-next.git d310ec03a34e92a77302edb804f7d68ee4f01ba0 config: alpha-allyesconfig (attached as .config) compiler: alpha-linux-gcc (GCC) 9.3.0
reproduce (this is a W=1 build):
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross chmod +x ~/bin/make.cross
# https://github.com/0day-ci/linux/commit/643de8f7294f534acc2cc26e4b2fa27147467cd4
git remote add linux-review https://github.com/0day-ci/linux
git fetch --no-tags linux-review Shay-Agroskin/Introduce-ENA-local-page-cache/20210310-011341 git checkout 643de8f7294f534acc2cc26e4b2fa27147467cd4
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=alpha
If you fix the issue, kindly add following tag as appropriate
All warnings (new ones prefixed by >>):
drivers/net/ethernet/amazon/ena/ena_netdev.c: In function 'ena_is_lpc_supported':
>> drivers/net/ethernet/amazon/ena/ena_netdev.c:2799:12: warning: assignment left-hand side might be a candidate for a format attribute [-Wsuggest-attribute=format]
2799 | print_log = (error_print) ? netdev_err : netdev_info;
| ^vim +2799 drivers/net/ethernet/amazon/ena/ena_netdev.c
2791
2792 static bool ena_is_lpc_supported(struct ena_adapter *adapter,
2793 struct ena_ring *rx_ring,
2794 bool error_print)
2795 {
2796 void (*print_log)(const struct net_device *dev, const char *format, ...);
2797 int channels_nr = adapter->num_io_queues + adapter->xdp_num_queues;
2798
> 2799 print_log = (error_print) ? netdev_err : netdev_info;
2800
2801 /* LPC is disabled below min number of channels */
2802 if (channels_nr < ENA_LPC_MIN_NUM_OF_CHANNELS) {
2803 print_log(adapter->netdev,
2804 "Local page cache is disabled for less than %d channels\n",
2805 ENA_LPC_MIN_NUM_OF_CHANNELS);
2806
2807 return false;
2808 }
2809
2810 /* The driver doesn't support page caches under XDP */
2811 if (ena_xdp_present_ring(rx_ring)) {
2812 print_log(adapter->netdev,
2813 "Local page cache is disabled when using XDP\n");
2814 return false;
2815 }
2816
2817 return true;
2818 }
2819
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all(a)lists.01.org
RFC PATCH 2/3 net: ena: update README file with a description about LPC
In reply to Shay AgroskinAdd a description for local page cache system to the ENA driver readme file.
--- .../device_drivers/ethernet/amazon/ena.rst | 25 +++++++++++++++++++ 1 file changed, 25 insertions(+)
Documentation/networking/device_drivers/ethernet/amazon/ena.rst +25 -0
@@ -222,6 +222,31 @@ If the frame length is larger than rx_copybreak, napi_get_frags() is used, otherwise netdev_alloc_skb_ip_align() is used, the buffer content is copied (by CPU) to the SKB, and the buffer is recycled. +Local Page Cache (LPC) +====================== +ENA Linux driver allows to reduce lock contention and improve CPU usage by +allocating RX buffers from a page cache rather than from Linux memory system +(PCP or buddy allocator). The cache is created and binded per RX queue, and +pages allocated for the queue are stored in the cache (up to cache maximum +size). + +When enabled, LPC cache size is ENA_LPC_DEFAULT_MULTIPLIER * 1024 (2048 by +default) pages. + +The cache usage for each queue can be monitored using ``ethtool -S`` counters. Where: + +- *rx_queue#_lpc_warm_up* - number of pages that were allocated and stored in + the cache +- *rx_queue#_lpc_full* - number of pages that were allocated without using the + cache because it didn't have free pages +- *rx_queue#_lpc_wrong_numa* - number of pages from the cache that belong to a + different NUMA node than the CPU which runs the NAPI routine. In this case, + the driver would try to allocate a new page from the same NUMA node instead + +LPC is disabled when using XDP or when using less than 16 queue pairs. Note that +cache usage might increase the memory footprint of the driver (depending on the +traffic). + Statistics ========== The user can obtain ENA device and driver statistics using ethtool.
Signature · 1 line
2.25.1
RFC PATCH 3/3 net: ena: support ethtool priv-flags and LPC state change
In reply to Shay AgroskinAdd support for ethtool private flags show/set to the driver. The first feature added to this infrastructure is Local Page Cache.
The LPC state query returns whether the LPC is currently used in the driver. This is not the same as if LPC is enabled since in XDP case LPC won't be used even if the user required it, and the cache might be turned on right after the XDP program is unloaded.
The LPC state change toggles between an LPC cache size of 0 (i.e. disabled cache) and the size ENA_LPC_DEFAULT_MULTIPLIER * 1024 (equals to 2048).
This patch also documents the private flag support for LPC it the README.rst file.
--- .../device_drivers/ethernet/amazon/ena.rst | 3 ++ drivers/net/ethernet/amazon/ena/ena_ethtool.c | 53 ++++++++++++++++--- drivers/net/ethernet/amazon/ena/ena_netdev.c | 32 +++++++++++ drivers/net/ethernet/amazon/ena/ena_netdev.h | 2 + 4 files changed, 83 insertions(+), 7 deletions(-)
Documentation/networking/device_drivers/ethernet/amazon/ena.rst +3 -0
@@ -232,6 +232,9 @@ size). When enabled, LPC cache size is ENA_LPC_DEFAULT_MULTIPLIER * 1024 (2048 by default) pages. +The feature can be toggled between on/off state using ethtool private flags, +e.g. + # ethtool --set-priv-flags eth1 local_page_cache off The cache usage for each queue can be monitored using ``ethtool -S`` counters. Where:
drivers/net/ethernet/amazon/ena/ena_ethtool.c +46 -7
90 lines not on this page · raw message
drivers/net/ethernet/amazon/ena/ena_netdev.c +32 -0
@@ -2804,6 +2804,11 @@ static bool ena_is_lpc_supported(struct ena_adapter *adapter,"Local page cache is disabled for less than %d channels\n" , ENA_LPC_MIN_NUM_OF_CHANNELS); +/* Disable LPC for such case. It can enabled again through +* ethtool private-flag. +*/ + adapter->lpc_size =0 ; +return false; }
@@ -3063,6 +3068,33 @@ static int ena_close(struct net_device *netdev)return 0 ; } +int ena_set_lpc_state (struct ena_adapter *adapter,bool enabled) +{ +/* In XDP, lpc_size might be positive even with LPC disabled, use cache +* pointer instead. +*/ +struct ena_page_cache *page_cache = adapter->rx_ring->page_cache; + +/* Exit early if LPC state doesn't change */ +if (enabled == !!page_cache) +return 0 ; + +if (enabled && !ena_is_lpc_supported (adapter, adapter->rx_ring, true)) +return -EOPNOTSUPP ; + + adapter->lpc_size = enabled ?ENA_LPC_DEFAULT_MULTIPLIER :0 ; + +/* rtnl lock is already obtained in dev_ioctl() layer, so it's safe to +* re-initialize IO resources. +*/ +if (test_bit (ENA_FLAG_DEV_UP , &adapter->flags)) { +ena_close (adapter->netdev); +ena_up (adapter); + } + +return 0 ; +} +int ena_update_queue_sizes (struct ena_adapter *adapter,u32 new_tx_size,u32 new_rx_size)
drivers/net/ethernet/amazon/ena/ena_netdev.h +2 -0
@@ -430,6 +430,8 @@ void ena_dump_stats_to_buf(struct ena_adapter *adapter, u8 *buf);int ena_update_hw_stats (struct ena_adapter *adapter); +int ena_set_lpc_state (struct ena_adapter *adapter,bool enabled); +int ena_update_queue_sizes (struct ena_adapter *adapter,u32 new_tx_size,u32 new_rx_size);
Signature · 1 line
2.25.1