cxgbe: use standard sototcpcb() accessor macro to get socket's tcpcb

Reviewed by:		np
Differential revision:	https://reviews.freebsd.org/D37041
This commit is contained in:
Gleb Smirnoff 2022-10-19 15:15:32 -07:00
parent a20a02abcd
commit e1401f7579
4 changed files with 8 additions and 8 deletions

View File

@ -68,7 +68,7 @@ struct cpl_set_tcb_rpl;
#include "offload.h"
#include "tom/t4_tom.h"
#define TOEPCB(so) ((struct toepcb *)(so_sototcpcb((so))->t_toe))
#define TOEPCB(so) ((struct toepcb *)(sototcpcb((so))->t_toe))
#include "iw_cxgbe.h"
#include <linux/module.h>

View File

@ -2053,7 +2053,7 @@ t4_uninit_cpl_io_handlers(void)
#define aio_refs backend4
#define jobtotid(job) \
(((struct toepcb *)(so_sototcpcb((job)->fd_file->f_data)->t_toe))->tid)
(((struct toepcb *)(sototcpcb((job)->fd_file->f_data)->t_toe))->tid)
static void
aiotx_free_job(struct kaiocb *job)
@ -2415,7 +2415,7 @@ t4_aiotx_cancel(struct kaiocb *job)
struct toepcb *toep;
so = job->fd_file->f_data;
tp = so_sototcpcb(so);
tp = sototcpcb(so);
toep = tp->t_toe;
MPASS(job->uaiocb.aio_lio_opcode == LIO_WRITE);
sb = &so->so_snd;
@ -2432,7 +2432,7 @@ t4_aiotx_cancel(struct kaiocb *job)
int
t4_aio_queue_aiotx(struct socket *so, struct kaiocb *job)
{
struct tcpcb *tp = so_sototcpcb(so);
struct tcpcb *tp = sototcpcb(so);
struct toepcb *toep = tp->t_toe;
struct adapter *sc = td_adapter(toep->td);

View File

@ -2137,7 +2137,7 @@ static void
t4_aio_cancel_active(struct kaiocb *job)
{
struct socket *so = job->fd_file->f_data;
struct tcpcb *tp = so_sototcpcb(so);
struct tcpcb *tp = sototcpcb(so);
struct toepcb *toep = tp->t_toe;
struct adapter *sc = td_adapter(toep->td);
uint64_t valid_flag;
@ -2178,7 +2178,7 @@ static void
t4_aio_cancel_queued(struct kaiocb *job)
{
struct socket *so = job->fd_file->f_data;
struct tcpcb *tp = so_sototcpcb(so);
struct tcpcb *tp = sototcpcb(so);
struct toepcb *toep = tp->t_toe;
DDP_LOCK(toep);
@ -2197,7 +2197,7 @@ t4_aio_cancel_queued(struct kaiocb *job)
int
t4_aio_queue_ddp(struct socket *so, struct kaiocb *job)
{
struct tcpcb *tp = so_sototcpcb(so);
struct tcpcb *tp = sototcpcb(so);
struct toepcb *toep = tp->t_toe;

View File

@ -1989,7 +1989,7 @@ t4_tom_deactivate(struct adapter *sc)
static int
t4_aio_queue_tom(struct socket *so, struct kaiocb *job)
{
struct tcpcb *tp = so_sototcpcb(so);
struct tcpcb *tp = sototcpcb(so);
struct toepcb *toep = tp->t_toe;
int error;