Lines Matching refs:rc
89 int rc; in ena_rss_get_hash_key() local
91 rc = ena_com_get_hash_key(ena_dev, hw_key); in ena_rss_get_hash_key()
92 if (rc != 0) in ena_rss_get_hash_key()
93 return rc; in ena_rss_get_hash_key()
105 int qid, rc, i; in ena_rss_init_default() local
107 rc = ena_com_rss_init(ena_dev, ENA_RX_RSS_TABLE_LOG_SIZE); in ena_rss_init_default()
108 if (unlikely(rc != 0)) { in ena_rss_init_default()
110 return (rc); in ena_rss_init_default()
119 rc = ena_com_indirect_table_fill_entry(ena_dev, i, in ena_rss_init_default()
121 if (unlikely((rc != 0) && (rc != EOPNOTSUPP))) { in ena_rss_init_default()
134 rc = ena_rss_set_hash(ena_dev, hash_key); in ena_rss_init_default()
137 rc = ena_com_fill_hash_function(ena_dev, ENA_ADMIN_TOEPLITZ, in ena_rss_init_default()
139 if (unlikely((rc != 0) && (rc != EOPNOTSUPP))) { in ena_rss_init_default()
144 rc = ena_com_set_default_hash_ctrl(ena_dev); in ena_rss_init_default()
145 if (unlikely((rc != 0) && (rc != EOPNOTSUPP))) { in ena_rss_init_default()
150 rc = ena_rss_indir_init(adapter); in ena_rss_init_default()
152 return (rc == EOPNOTSUPP ? 0 : rc); in ena_rss_init_default()
156 return (rc); in ena_rss_init_default()
164 int rc; in ena_rss_configure() local
168 rc = ena_rss_init_default(adapter); in ena_rss_configure()
169 if (unlikely((rc != 0) && (rc != EOPNOTSUPP))) { in ena_rss_configure()
174 return (rc); in ena_rss_configure()
179 rc = ena_com_indirect_table_set(ena_dev); in ena_rss_configure()
180 if (unlikely((rc != 0) && (rc != EOPNOTSUPP))) in ena_rss_configure()
181 return (rc); in ena_rss_configure()
184 rc = ena_com_set_hash_function(ena_dev); in ena_rss_configure()
185 if (unlikely((rc != 0) && (rc != EOPNOTSUPP))) in ena_rss_configure()
186 return (rc); in ena_rss_configure()
189 rc = ena_com_set_hash_ctrl(ena_dev); in ena_rss_configure()
190 if (unlikely((rc != 0) && (rc != EOPNOTSUPP))) in ena_rss_configure()
191 return (rc); in ena_rss_configure()
202 int rc; in ena_rss_init_default_deferred() local
214 rc = ena_rss_init_default(adapter); in ena_rss_init_default_deferred()
216 if (unlikely(rc != 0)) { in ena_rss_init_default_deferred()
232 int rc, i; in ena_rss_indir_get() local
234 rc = ena_com_indirect_table_get(adapter->ena_dev, table); in ena_rss_indir_get()
235 if (rc != 0) { in ena_rss_indir_get()
236 if (rc == EOPNOTSUPP) in ena_rss_indir_get()
242 return (rc); in ena_rss_indir_get()
254 int rc, i; in ena_rss_indir_set() local
257 rc = ena_com_indirect_table_fill_entry(adapter->ena_dev, i, in ena_rss_indir_set()
259 if (rc != 0) { in ena_rss_indir_set()
262 return (rc); in ena_rss_indir_set()
266 rc = ena_com_indirect_table_set(adapter->ena_dev); in ena_rss_indir_set()
267 if (rc == EOPNOTSUPP) in ena_rss_indir_set()
270 else if (rc != 0) in ena_rss_indir_set()
273 return (rc); in ena_rss_indir_set()
280 int rc; in ena_rss_indir_init() local
286 rc = ena_rss_indir_get(adapter, indir->table); in ena_rss_indir_init()
287 if (rc != 0) { in ena_rss_indir_init()
291 return (rc); in ena_rss_indir_init()