mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-27 11:55:06 +00:00
remove socketvar.h, add more selective includes
This commit is contained in:
parent
849cca9b8e
commit
006c3d2eb6
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=181067
@ -42,7 +42,6 @@ __FBSDID("$FreeBSD$");
|
||||
#endif
|
||||
|
||||
#include <sys/socket.h>
|
||||
#include <sys/socketvar.h>
|
||||
#include <net/if.h>
|
||||
#include <net/ethernet.h>
|
||||
#include <net/if_vlan_var.h>
|
||||
|
@ -37,8 +37,12 @@ __FBSDID("$FreeBSD$");
|
||||
#include <sys/lock.h>
|
||||
#include <sys/mbuf.h>
|
||||
#include <sys/mutex.h>
|
||||
|
||||
#include <sys/sockopt.h>
|
||||
#include <sys/sockstate.h>
|
||||
#include <sys/sockbuf.h>
|
||||
|
||||
#include <sys/socket.h>
|
||||
#include <sys/socketvar.h>
|
||||
#include <sys/syslog.h>
|
||||
|
||||
#include <net/if.h>
|
||||
@ -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);
|
||||
|
@ -41,8 +41,10 @@ __FBSDID("$FreeBSD$");
|
||||
#include <sys/kernel.h>
|
||||
#include <sys/sysctl.h>
|
||||
#include <sys/mbuf.h>
|
||||
#include <sys/sockopt.h>
|
||||
#include <sys/sockbuf.h>
|
||||
|
||||
#include <sys/socket.h>
|
||||
#include <sys/socketvar.h>
|
||||
|
||||
#include <net/if.h>
|
||||
#include <net/if_types.h>
|
||||
|
@ -39,10 +39,14 @@ __FBSDID("$FreeBSD$");
|
||||
#include <sys/mbuf.h>
|
||||
#include <sys/module.h>
|
||||
#include <sys/mutex.h>
|
||||
|
||||
#include <sys/sockopt.h>
|
||||
#include <sys/sockstate.h>
|
||||
#include <sys/sockbuf.h>
|
||||
#include <sys/socket.h>
|
||||
#include <sys/sysctl.h>
|
||||
|
||||
#include <sys/syslog.h>
|
||||
#include <sys/socketvar.h>
|
||||
|
||||
#include <net/if.h>
|
||||
#include <net/route.h>
|
||||
|
Loading…
Reference in New Issue
Block a user