Author: np
Date: Wed Aug 28 23:31:58 2019
New Revision: 351590
URL: https://svnweb.freebsd.org/changeset/base/351590

Log:
  cxgbe/t4_tom: Use the correct value of sndbuf in AIO Tx.
  
  This should have been part of r351540.
  
  Sponsored by: Chelsio Communications

Modified:
  head/sys/dev/cxgbe/tom/t4_cpl_io.c

Modified: head/sys/dev/cxgbe/tom/t4_cpl_io.c
==============================================================================
--- head/sys/dev/cxgbe/tom/t4_cpl_io.c  Wed Aug 28 22:04:04 2019        
(r351589)
+++ head/sys/dev/cxgbe/tom/t4_cpl_io.c  Wed Aug 28 23:31:58 2019        
(r351590)
@@ -2023,7 +2023,6 @@ alloc_aiotx_mbuf(struct kaiocb *job, int len)
 static void
 t4_aiotx_process_job(struct toepcb *toep, struct socket *so, struct kaiocb 
*job)
 {
-       struct adapter *sc;
        struct sockbuf *sb;
        struct file *fp;
        struct inpcb *inp;
@@ -2032,7 +2031,6 @@ t4_aiotx_process_job(struct toepcb *toep, struct socke
        int error, len;
        bool moretocome, sendmore;
 
-       sc = td_adapter(toep->td);
        sb = &so->so_snd;
        SOCKBUF_UNLOCK(sb);
        fp = job->fd_file;
@@ -2104,8 +2102,8 @@ sendanother:
                moretocome = false;
        } else
                moretocome = true;
-       if (len > sc->tt.sndbuf) {
-               len = sc->tt.sndbuf;
+       if (len > toep->params.sndbuf) {
+               len = toep->params.sndbuf;
                sendmore = true;
        } else
                sendmore = false;
_______________________________________________
[email protected] mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "[email protected]"

Reply via email to