mirror of
https://github.com/opnsense/src.git
synced 2026-06-11 09:41:03 -04:00
neta: improve TCP LRO
Use the appropriate function to flush correctly all entries. The old code does not remove the element from the hash table, only from the active queue. Reviewed by: Peter Lei, rscheff MFC after: 1 week Sponsored by: Netflix, Inc. Differential Revision: https://reviews.freebsd.org/D46433
This commit is contained in:
parent
0f2b2276ab
commit
5203dcce25
1 changed files with 1 additions and 7 deletions
|
|
@ -3000,8 +3000,6 @@ mvneta_rx_queue(struct mvneta_softc *sc, int q, int npkt)
|
|||
struct mvneta_rx_desc *r;
|
||||
struct mvneta_buf *rxbuf;
|
||||
struct mbuf *m;
|
||||
struct lro_ctrl *lro;
|
||||
struct lro_entry *queued;
|
||||
void *pktbuf;
|
||||
int i, pktlen, processed, ndma;
|
||||
|
||||
|
|
@ -3115,11 +3113,7 @@ rx_lro:
|
|||
/*
|
||||
* Flush any outstanding LRO work
|
||||
*/
|
||||
lro = &rx->lro;
|
||||
while (__predict_false((queued = LIST_FIRST(&lro->lro_active)) != NULL)) {
|
||||
LIST_REMOVE(LIST_FIRST((&lro->lro_active)), next);
|
||||
tcp_lro_flush(lro, queued);
|
||||
}
|
||||
tcp_lro_flush_all(&rx->lro);
|
||||
}
|
||||
|
||||
STATIC void
|
||||
|
|
|
|||
Loading…
Reference in a new issue