cxgbe/t4_tom: Use the correct value of sndbuf in AIO Tx.

This should have been part of r351540.

Sponsored by:	Chelsio Communications
This commit is contained in:
Navdeep Parhar 2019-08-28 23:31:58 +00:00
parent 610defb17c
commit 5fc7854e69
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=351590

View File

@ -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 socket *so, struct kaiocb *job)
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 @@ t4_aiotx_process_job(struct toepcb *toep, struct socket *so, struct kaiocb *job)
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;