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:
parent
a20a02abcd
commit
e1401f7579
@ -68,7 +68,7 @@ struct cpl_set_tcb_rpl;
|
|||||||
#include "offload.h"
|
#include "offload.h"
|
||||||
#include "tom/t4_tom.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 "iw_cxgbe.h"
|
||||||
#include <linux/module.h>
|
#include <linux/module.h>
|
||||||
|
@ -2053,7 +2053,7 @@ t4_uninit_cpl_io_handlers(void)
|
|||||||
#define aio_refs backend4
|
#define aio_refs backend4
|
||||||
|
|
||||||
#define jobtotid(job) \
|
#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
|
static void
|
||||||
aiotx_free_job(struct kaiocb *job)
|
aiotx_free_job(struct kaiocb *job)
|
||||||
@ -2415,7 +2415,7 @@ t4_aiotx_cancel(struct kaiocb *job)
|
|||||||
struct toepcb *toep;
|
struct toepcb *toep;
|
||||||
|
|
||||||
so = job->fd_file->f_data;
|
so = job->fd_file->f_data;
|
||||||
tp = so_sototcpcb(so);
|
tp = sototcpcb(so);
|
||||||
toep = tp->t_toe;
|
toep = tp->t_toe;
|
||||||
MPASS(job->uaiocb.aio_lio_opcode == LIO_WRITE);
|
MPASS(job->uaiocb.aio_lio_opcode == LIO_WRITE);
|
||||||
sb = &so->so_snd;
|
sb = &so->so_snd;
|
||||||
@ -2432,7 +2432,7 @@ t4_aiotx_cancel(struct kaiocb *job)
|
|||||||
int
|
int
|
||||||
t4_aio_queue_aiotx(struct socket *so, struct kaiocb *job)
|
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 toepcb *toep = tp->t_toe;
|
||||||
struct adapter *sc = td_adapter(toep->td);
|
struct adapter *sc = td_adapter(toep->td);
|
||||||
|
|
||||||
|
@ -2137,7 +2137,7 @@ static void
|
|||||||
t4_aio_cancel_active(struct kaiocb *job)
|
t4_aio_cancel_active(struct kaiocb *job)
|
||||||
{
|
{
|
||||||
struct socket *so = job->fd_file->f_data;
|
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 toepcb *toep = tp->t_toe;
|
||||||
struct adapter *sc = td_adapter(toep->td);
|
struct adapter *sc = td_adapter(toep->td);
|
||||||
uint64_t valid_flag;
|
uint64_t valid_flag;
|
||||||
@ -2178,7 +2178,7 @@ static void
|
|||||||
t4_aio_cancel_queued(struct kaiocb *job)
|
t4_aio_cancel_queued(struct kaiocb *job)
|
||||||
{
|
{
|
||||||
struct socket *so = job->fd_file->f_data;
|
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 toepcb *toep = tp->t_toe;
|
||||||
|
|
||||||
DDP_LOCK(toep);
|
DDP_LOCK(toep);
|
||||||
@ -2197,7 +2197,7 @@ t4_aio_cancel_queued(struct kaiocb *job)
|
|||||||
int
|
int
|
||||||
t4_aio_queue_ddp(struct socket *so, struct kaiocb *job)
|
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;
|
struct toepcb *toep = tp->t_toe;
|
||||||
|
|
||||||
|
|
||||||
|
@ -1989,7 +1989,7 @@ t4_tom_deactivate(struct adapter *sc)
|
|||||||
static int
|
static int
|
||||||
t4_aio_queue_tom(struct socket *so, struct kaiocb *job)
|
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;
|
struct toepcb *toep = tp->t_toe;
|
||||||
int error;
|
int error;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user