|
36 | 36 | /*****************************************************************************/
|
37 | 37 |
|
38 | 38 | /* Timeout in micro-sec */
|
39 |
| -#define ADMIN_CMD_TIMEOUT_US (1000000) |
| 39 | +#define ADMIN_CMD_TIMEOUT_US (3000000) |
40 | 40 |
|
41 |
| -#define ENA_ASYNC_QUEUE_DEPTH 4 |
| 41 | +#define ENA_ASYNC_QUEUE_DEPTH 16 |
42 | 42 | #define ENA_ADMIN_QUEUE_DEPTH 32
|
43 | 43 |
|
44 | 44 | #define MIN_ENA_VER (((ENA_COMMON_SPEC_VERSION_MAJOR) << \
|
@@ -784,7 +784,7 @@ static int ena_com_get_feature_ex(struct ena_com_dev *ena_dev,
|
784 | 784 | int ret;
|
785 | 785 |
|
786 | 786 | if (!ena_com_check_supported_feature_id(ena_dev, feature_id)) {
|
787 |
| - pr_info("Feature %d isn't supported\n", feature_id); |
| 787 | + pr_debug("Feature %d isn't supported\n", feature_id); |
788 | 788 | return -EPERM;
|
789 | 789 | }
|
790 | 790 |
|
@@ -1126,7 +1126,13 @@ int ena_com_execute_admin_command(struct ena_com_admin_queue *admin_queue,
|
1126 | 1126 | comp_ctx = ena_com_submit_admin_cmd(admin_queue, cmd, cmd_size,
|
1127 | 1127 | comp, comp_size);
|
1128 | 1128 | if (unlikely(IS_ERR(comp_ctx))) {
|
1129 |
| - pr_err("Failed to submit command [%ld]\n", PTR_ERR(comp_ctx)); |
| 1129 | + if (comp_ctx == ERR_PTR(-ENODEV)) |
| 1130 | + pr_debug("Failed to submit command [%ld]\n", |
| 1131 | + PTR_ERR(comp_ctx)); |
| 1132 | + else |
| 1133 | + pr_err("Failed to submit command [%ld]\n", |
| 1134 | + PTR_ERR(comp_ctx)); |
| 1135 | + |
1130 | 1136 | return PTR_ERR(comp_ctx);
|
1131 | 1137 | }
|
1132 | 1138 |
|
@@ -1895,7 +1901,7 @@ int ena_com_set_dev_mtu(struct ena_com_dev *ena_dev, int mtu)
|
1895 | 1901 | int ret;
|
1896 | 1902 |
|
1897 | 1903 | if (!ena_com_check_supported_feature_id(ena_dev, ENA_ADMIN_MTU)) {
|
1898 |
| - pr_info("Feature %d isn't supported\n", ENA_ADMIN_MTU); |
| 1904 | + pr_debug("Feature %d isn't supported\n", ENA_ADMIN_MTU); |
1899 | 1905 | return -EPERM;
|
1900 | 1906 | }
|
1901 | 1907 |
|
@@ -1948,8 +1954,8 @@ int ena_com_set_hash_function(struct ena_com_dev *ena_dev)
|
1948 | 1954 |
|
1949 | 1955 | if (!ena_com_check_supported_feature_id(ena_dev,
|
1950 | 1956 | ENA_ADMIN_RSS_HASH_FUNCTION)) {
|
1951 |
| - pr_info("Feature %d isn't supported\n", |
1952 |
| - ENA_ADMIN_RSS_HASH_FUNCTION); |
| 1957 | + pr_debug("Feature %d isn't supported\n", |
| 1958 | + ENA_ADMIN_RSS_HASH_FUNCTION); |
1953 | 1959 | return -EPERM;
|
1954 | 1960 | }
|
1955 | 1961 |
|
@@ -2112,7 +2118,8 @@ int ena_com_set_hash_ctrl(struct ena_com_dev *ena_dev)
|
2112 | 2118 |
|
2113 | 2119 | if (!ena_com_check_supported_feature_id(ena_dev,
|
2114 | 2120 | ENA_ADMIN_RSS_HASH_INPUT)) {
|
2115 |
| - pr_info("Feature %d isn't supported\n", ENA_ADMIN_RSS_HASH_INPUT); |
| 2121 | + pr_debug("Feature %d isn't supported\n", |
| 2122 | + ENA_ADMIN_RSS_HASH_INPUT); |
2116 | 2123 | return -EPERM;
|
2117 | 2124 | }
|
2118 | 2125 |
|
@@ -2184,7 +2191,7 @@ int ena_com_set_default_hash_ctrl(struct ena_com_dev *ena_dev)
|
2184 | 2191 | hash_ctrl->selected_fields[ENA_ADMIN_RSS_IP4_FRAG].fields =
|
2185 | 2192 | ENA_ADMIN_RSS_L3_SA | ENA_ADMIN_RSS_L3_DA;
|
2186 | 2193 |
|
2187 |
| - hash_ctrl->selected_fields[ENA_ADMIN_RSS_IP4_FRAG].fields = |
| 2194 | + hash_ctrl->selected_fields[ENA_ADMIN_RSS_NOT_IP].fields = |
2188 | 2195 | ENA_ADMIN_RSS_L2_DA | ENA_ADMIN_RSS_L2_SA;
|
2189 | 2196 |
|
2190 | 2197 | for (i = 0; i < ENA_ADMIN_RSS_PROTO_NUM; i++) {
|
@@ -2270,8 +2277,8 @@ int ena_com_indirect_table_set(struct ena_com_dev *ena_dev)
|
2270 | 2277 |
|
2271 | 2278 | if (!ena_com_check_supported_feature_id(
|
2272 | 2279 | ena_dev, ENA_ADMIN_RSS_REDIRECTION_TABLE_CONFIG)) {
|
2273 |
| - pr_info("Feature %d isn't supported\n", |
2274 |
| - ENA_ADMIN_RSS_REDIRECTION_TABLE_CONFIG); |
| 2280 | + pr_debug("Feature %d isn't supported\n", |
| 2281 | + ENA_ADMIN_RSS_REDIRECTION_TABLE_CONFIG); |
2275 | 2282 | return -EPERM;
|
2276 | 2283 | }
|
2277 | 2284 |
|
@@ -2444,11 +2451,9 @@ int ena_com_set_host_attributes(struct ena_com_dev *ena_dev)
|
2444 | 2451 |
|
2445 | 2452 | int ret;
|
2446 | 2453 |
|
2447 |
| - if (!ena_com_check_supported_feature_id(ena_dev, |
2448 |
| - ENA_ADMIN_HOST_ATTR_CONFIG)) { |
2449 |
| - pr_warn("Set host attribute isn't supported\n"); |
2450 |
| - return -EPERM; |
2451 |
| - } |
| 2454 | + /* Host attribute config is called before ena_com_get_dev_attr_feat |
| 2455 | + * so ena_com can't check if the feature is supported. |
| 2456 | + */ |
2452 | 2457 |
|
2453 | 2458 | memset(&cmd, 0x0, sizeof(cmd));
|
2454 | 2459 | admin_queue = &ena_dev->admin_queue;
|
@@ -2542,8 +2547,8 @@ int ena_com_init_interrupt_moderation(struct ena_com_dev *ena_dev)
|
2542 | 2547 |
|
2543 | 2548 | if (rc) {
|
2544 | 2549 | if (rc == -EPERM) {
|
2545 |
| - pr_info("Feature %d isn't supported\n", |
2546 |
| - ENA_ADMIN_INTERRUPT_MODERATION); |
| 2550 | + pr_debug("Feature %d isn't supported\n", |
| 2551 | + ENA_ADMIN_INTERRUPT_MODERATION); |
2547 | 2552 | rc = 0;
|
2548 | 2553 | } else {
|
2549 | 2554 | pr_err("Failed to get interrupt moderation admin cmd. rc: %d\n",
|
|
0 commit comments