FreeBSD/sys/dev/cxgbe/iw_cxgbe/device.c
/*
 * t4_tom won't load on kernels without TCP_OFFLOAD and this module's dependency
 * on t4_tom ensures that it won't either.  So we don't directly check for
 * TCP_OFFLOAD here.
 */
t4_tom won't load on kernels without TCP_OFFLOAD and this module's dependency
on t4_tom ensures that it won't either.  So we don't directly check for
TCP_OFFLOAD here.
t4_tom won ' t load on kernels without TCP_OFFLOAD and this module ' s dependency on t4_tom ensures that it won ' t either . So we don ' t directly check for TCP_OFFLOAD here .
static int
c4iw_modevent(module_t mod, int cmd, void *arg)
{
	int rc = 0;
#ifdef TCP_OFFLOAD
	switch (cmd) {
	case MOD_LOAD:
		rc = c4iw_mod_load();
		if (rc == 0)
			printf("iw_cxgbe: Chelsio T4/T5 RDMA driver loaded.\n");
		break;
	case MOD_UNLOAD:
		rc = c4iw_mod_unload();
		break;
	default:
		rc = EINVAL;
	}
#else
	printf("t4_tom: compiled without TCP_OFFLOAD support.\n");
	rc = EOPNOTSUPP;
#endif
	return (rc);
}
static int c4iw_modevent ( module_t mod , int cmd , void * arg ) { int rc = 0 ; #ifdef TCP_OFFLOAD switch ( cmd ) { case MOD_LOAD : rc = c4iw_mod_load ( ) ; if ( rc == 0 ) printf ( " \n " ) ; break ; case MOD_UNLOAD : rc = c4iw_mod_unload ( ) ; break ; default : rc = EINVAL ; } #else printf ( " \n " ) ; rc = EOPNOTSUPP ; #endif return ( rc ) ; }
t4_tom won't load on kernels without TCP_OFFLOAD and this module's dependency
 on t4_tom ensures that it won't either.
t4_tom won ' t load on kernels without TCP_OFFLOAD and this module ' s dependency on t4_tom ensures that it won ' t either .