|
@@ -3326,9 +3326,12 @@ static int be_rx_qs_create(struct be_adapter *adapter)
|
|
|
|
|
|
|
|
memcpy(rss->rss_hkey, rss_key, RSS_HASH_KEY_LEN);
|
|
memcpy(rss->rss_hkey, rss_key, RSS_HASH_KEY_LEN);
|
|
|
|
|
|
|
|
- /* First time posting */
|
|
|
|
|
|
|
+ /* Post 1 less than RXQ-len to avoid head being equal to tail,
|
|
|
|
|
+ * which is a queue empty condition
|
|
|
|
|
+ */
|
|
|
for_all_rx_queues(adapter, rxo, i)
|
|
for_all_rx_queues(adapter, rxo, i)
|
|
|
- be_post_rx_frags(rxo, GFP_KERNEL, MAX_RX_POST);
|
|
|
|
|
|
|
+ be_post_rx_frags(rxo, GFP_KERNEL, RX_Q_LEN - 1);
|
|
|
|
|
+
|
|
|
return 0;
|
|
return 0;
|
|
|
}
|
|
}
|
|
|
|
|
|