Merge "qcacld-3.0: check napi_gro_recevie result before do gro flush" into wlan-cld3.driver.lnx.2.0
This commit is contained in:

committed by
Gerrit - the friendly Code Review server

commit
f58f5d9e3f
@@ -1554,9 +1554,12 @@ static QDF_STATUS hdd_gro_rx_bh_disable(struct hdd_adapter *adapter,
|
|||||||
gro_res = napi_gro_receive(napi_to_use, skb);
|
gro_res = napi_gro_receive(napi_to_use, skb);
|
||||||
|
|
||||||
if (hdd_get_current_throughput_level(hdd_ctx) == PLD_BUS_WIDTH_IDLE) {
|
if (hdd_get_current_throughput_level(hdd_ctx) == PLD_BUS_WIDTH_IDLE) {
|
||||||
adapter->hdd_stats.tx_rx_stats.rx_gro_low_tput_flush++;
|
if (gro_res != GRO_DROP && gro_res != GRO_NORMAL) {
|
||||||
|
adapter->hdd_stats.tx_rx_stats.
|
||||||
|
rx_gro_low_tput_flush++;
|
||||||
napi_gro_flush(napi_to_use, false);
|
napi_gro_flush(napi_to_use, false);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
local_bh_enable();
|
local_bh_enable();
|
||||||
|
|
||||||
if (gro_res == GRO_DROP)
|
if (gro_res == GRO_DROP)
|
||||||
|
Reference in New Issue
Block a user