Changeset View
Changeset View
Standalone View
Standalone View
sys/net/if_var.h
Show First 20 Lines • Show All 144 Lines • ▼ Show 20 Lines | enum IF_SA_CNT_WHICH { | ||||
IF_SA_CNT_TOTAL_SW_VAL, | IF_SA_CNT_TOTAL_SW_VAL, | ||||
IF_SA_CNT_TOTAL_HW_VAL, | IF_SA_CNT_TOTAL_HW_VAL, | ||||
IF_SA_CNT_IFP_HW_UPD = IF_SA_CNT_IFP_HW_VAL | IF_SA_CNT_UPD, | IF_SA_CNT_IFP_HW_UPD = IF_SA_CNT_IFP_HW_VAL | IF_SA_CNT_UPD, | ||||
IF_SA_CNT_TOTAL_SW_UPD = IF_SA_CNT_TOTAL_SW_VAL | IF_SA_CNT_UPD, | IF_SA_CNT_TOTAL_SW_UPD = IF_SA_CNT_TOTAL_SW_VAL | IF_SA_CNT_UPD, | ||||
IF_SA_CNT_TOTAL_HW_UPD = IF_SA_CNT_TOTAL_HW_VAL | IF_SA_CNT_UPD, | IF_SA_CNT_TOTAL_HW_UPD = IF_SA_CNT_TOTAL_HW_VAL | IF_SA_CNT_UPD, | ||||
}; | }; | ||||
typedef int (*if_sa_cnt_fn_t)(if_t ifp, void *sa, | typedef int (*if_sa_cnt_fn_t)(if_t ifp, void *sa, | ||||
uint32_t drv_spi, void *priv, struct seclifetime *lt); | uint32_t drv_spi, void *priv, struct seclifetime *lt); | ||||
typedef int (*if_ipsec_hwassist_fn_t)(if_t ifp, void *sav, | |||||
uint32_t drv_spi,void *priv); | |||||
struct ifnet_hw_tsomax { | struct ifnet_hw_tsomax { | ||||
u_int tsomaxbytes; /* TSO total burst length limit in bytes */ | u_int tsomaxbytes; /* TSO total burst length limit in bytes */ | ||||
u_int tsomaxsegcount; /* TSO maximum segment count */ | u_int tsomaxsegcount; /* TSO maximum segment count */ | ||||
u_int tsomaxsegsize; /* TSO maximum segment size in bytes */ | u_int tsomaxsegsize; /* TSO maximum segment size in bytes */ | ||||
}; | }; | ||||
/* Interface encap request types */ | /* Interface encap request types */ | ||||
▲ Show 20 Lines • Show All 560 Lines • ▼ Show 20 Lines | |||||
struct if_ipsec_accel_methods { | struct if_ipsec_accel_methods { | ||||
if_spdadd_fn_t if_spdadd; | if_spdadd_fn_t if_spdadd; | ||||
if_spddel_fn_t if_spddel; | if_spddel_fn_t if_spddel; | ||||
if_sa_in_install_fn_t if_sa_in_install; | if_sa_in_install_fn_t if_sa_in_install; | ||||
if_sa_deinstall_fn_t if_sa_deinstall; | if_sa_deinstall_fn_t if_sa_deinstall; | ||||
if_sa_out_install_fn_t if_sa_out_install; | if_sa_out_install_fn_t if_sa_out_install; | ||||
if_sa_cnt_fn_t if_sa_cnt; | if_sa_cnt_fn_t if_sa_cnt; | ||||
if_ipsec_hwassist_fn_t if_hwassist; | |||||
}; | }; | ||||
void if_setipsec_accel_methods(if_t ifp, const struct if_ipsec_accel_methods *); | void if_setipsec_accel_methods(if_t ifp, const struct if_ipsec_accel_methods *); | ||||
/* TSO */ | /* TSO */ | ||||
void if_hw_tsomax_common(if_t ifp, struct ifnet_hw_tsomax *); | void if_hw_tsomax_common(if_t ifp, struct ifnet_hw_tsomax *); | ||||
int if_hw_tsomax_update(if_t ifp, struct ifnet_hw_tsomax *); | int if_hw_tsomax_update(if_t ifp, struct ifnet_hw_tsomax *); | ||||
/* accessors for struct ifreq */ | /* accessors for struct ifreq */ | ||||
Show All 20 Lines |