qcacmn: Send GRO flush indication at end of dp_rx_process

In case of TCP packets being processed by dp_rx_process, send out GRO
flush indication to the thread.

CRs-Fixed: 2500152
Change-Id: I4f464456d423e4680955992c0acf0ed5f4e618b8
This commit is contained in:
Mohit Khanna
2019-07-28 21:38:05 -07:00
committed by nshrivas
parent 9fb7c768c3
commit 698987c896
4 changed files with 29 additions and 7 deletions

View File

@@ -649,6 +649,15 @@ typedef bool (*ol_txrx_tx_flow_control_is_pause_fp)(void *osif_dev);
*/
typedef QDF_STATUS(*ol_txrx_rx_fp)(void *osif_dev, qdf_nbuf_t msdu_list);
/**
* ol_txrx_rx_gro_flush_ind - function to send GRO flush indication to stack
* for a given RX Context Id.
* @osif_dev - handle to the OSIF virtual device object
* @rx_ctx_id - Rx context Id for which gro flush should happen
*/
typedef QDF_STATUS(*ol_txrx_rx_gro_flush_ind_fp)(void *osif_dev,
int rx_ctx_id);
/**
* ol_txrx_stats_rx_fp - receive function to hand batches of data
* frames from txrx to OS shim
@@ -768,6 +777,7 @@ typedef void (*ol_txrx_pktdump_cb)(ol_txrx_soc_handle soc,
* @rx.stack - function to give packets to the stack. Differs from @rx.rx.
* In case RX Threads are enabled, this pointer holds the callback to give
* packets to the stack.
* @rx.rx_gro_flush - GRO flush indication to stack for a given RX CTX ID
* @rx.wai_check - the tx function pointer for WAPI frames
* @rx.mon - the OS shim rx monitor function to deliver
* monitor data to Though in practice, it is probable
@@ -800,6 +810,7 @@ struct ol_txrx_ops {
struct {
ol_txrx_rx_fp rx;
ol_txrx_rx_fp rx_stack;
ol_txrx_rx_gro_flush_ind_fp rx_gro_flush;
ol_txrx_rx_check_wai_fp wai_check;
ol_txrx_rx_mon_fp mon;
ol_txrx_stats_rx_fp stats_rx;