ena.c (433ab9b6987b42b3e5b25b8b5dc7e5178c7ef9bb) ena.c (77160654a162b5faa8ad7a02e18d2bef2589f868)
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

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

2074 new_rx_ring_size < ENA_MIN_RING_SIZE) {
2075 ena_log(pdev, ERR,
2076 "Queue creation failed with the smallest possible queue size"
2077 "of %d for both queues. Not retrying with smaller queues\n",
2078 ENA_MIN_RING_SIZE);
2079 return (rc);
2080 }
2081
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

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

2074 new_rx_ring_size < ENA_MIN_RING_SIZE) {
2075 ena_log(pdev, ERR,
2076 "Queue creation failed with the smallest possible queue size"
2077 "of %d for both queues. Not retrying with smaller queues\n",
2078 ENA_MIN_RING_SIZE);
2079 return (rc);
2080 }
2081
2082 ena_log(pdev, INFO,
2083 "Retrying queue creation with sizes TX=%d, RX=%d\n",
2084 new_tx_ring_size, new_rx_ring_size);
2085
2082 set_io_rings_size(adapter, new_tx_ring_size, new_rx_ring_size);
2083 }
2084}
2085
2086int
2087ena_up(struct ena_adapter *adapter)
2088{
2089 int rc = 0;

--- 1891 unchanged lines hidden ---
2086 set_io_rings_size(adapter, new_tx_ring_size, new_rx_ring_size);
2087 }
2088}
2089
2090int
2091ena_up(struct ena_adapter *adapter)
2092{
2093 int rc = 0;

--- 1891 unchanged lines hidden ---