diff --git a/sys/dev/cxgb/ulp/tom/cxgb_l2t.c b/sys/dev/cxgb/ulp/tom/cxgb_l2t.c index ab5fbe74011..15aa16768d5 100644 --- a/sys/dev/cxgb/ulp/tom/cxgb_l2t.c +++ b/sys/dev/cxgb/ulp/tom/cxgb_l2t.c @@ -42,7 +42,6 @@ __FBSDID("$FreeBSD$"); #endif #include -#include #include #include #include diff --git a/sys/dev/cxgb/ulp/tom/cxgb_listen.c b/sys/dev/cxgb/ulp/tom/cxgb_listen.c index 1d15cf292dc..45bf7575de5 100644 --- a/sys/dev/cxgb/ulp/tom/cxgb_listen.c +++ b/sys/dev/cxgb/ulp/tom/cxgb_listen.c @@ -37,8 +37,12 @@ __FBSDID("$FreeBSD$"); #include #include #include + +#include +#include +#include + #include -#include #include #include @@ -235,7 +239,7 @@ t3_listen_start(struct toedev *dev, struct socket *so, struct t3cdev *cdev) struct mbuf *m; struct cpl_pass_open_req *req; struct tom_data *d = TOM_DATA(dev); - struct inpcb *inp = sotoinpcb(so); + struct inpcb *inp = so_sotoinpcb(so); struct listen_ctx *ctx; if (!TOM_TUNABLE(dev, activated)) @@ -252,7 +256,7 @@ t3_listen_start(struct toedev *dev, struct socket *so, struct t3cdev *cdev) ctx->tom_data = d; ctx->lso = so; - ctx->ulp_mode = TOM_TUNABLE(dev, ddp) && !(so->so_options & SO_NO_DDP) ? ULP_MODE_TCPDDP : 0; + ctx->ulp_mode = TOM_TUNABLE(dev, ddp) && !(so_options_get(so) & SO_NO_DDP) ? ULP_MODE_TCPDDP : 0; LIST_INIT(&ctx->synq_head); stid = cxgb_alloc_stid(d->cdev, d->client, ctx); diff --git a/sys/dev/cxgb/ulp/tom/cxgb_tcp_offload.c b/sys/dev/cxgb/ulp/tom/cxgb_tcp_offload.c index b61e1aca2c9..171cf2e6023 100644 --- a/sys/dev/cxgb/ulp/tom/cxgb_tcp_offload.c +++ b/sys/dev/cxgb/ulp/tom/cxgb_tcp_offload.c @@ -41,8 +41,10 @@ __FBSDID("$FreeBSD$"); #include #include #include +#include +#include + #include -#include #include #include diff --git a/sys/dev/cxgb/ulp/tom/cxgb_tom_sysctl.c b/sys/dev/cxgb/ulp/tom/cxgb_tom_sysctl.c index 1490bfbdc29..a2bcde523a2 100644 --- a/sys/dev/cxgb/ulp/tom/cxgb_tom_sysctl.c +++ b/sys/dev/cxgb/ulp/tom/cxgb_tom_sysctl.c @@ -39,10 +39,14 @@ __FBSDID("$FreeBSD$"); #include #include #include + +#include +#include +#include #include #include + #include -#include #include #include