Changeset View
Changeset View
Standalone View
Standalone View
head/sys/dev/sfxge/common/ef10_nic.c
Show First 20 Lines • Show All 1,069 Lines • ▼ Show 20 Lines | #define CAP_FLAG2(flags2, field) \ | ||||
/* | /* | ||||
* Check if the 40G MAC hardware is capable of reporting | * Check if the 40G MAC hardware is capable of reporting | ||||
* statistics for Tx size bins. | * statistics for Tx size bins. | ||||
*/ | */ | ||||
encp->enc_mac_stats_40g_tx_size_bins = | encp->enc_mac_stats_40g_tx_size_bins = | ||||
CAP_FLAG2(flags2, MAC_STATS_40G_TX_SIZE_BINS) ? B_TRUE : B_FALSE; | CAP_FLAG2(flags2, MAC_STATS_40G_TX_SIZE_BINS) ? B_TRUE : B_FALSE; | ||||
/* | |||||
* Check if firmware supports VXLAN and NVGRE tunnels. | |||||
* The capability indicates Geneve protocol support as well. | |||||
*/ | |||||
if (CAP_FLAG(flags, VXLAN_NVGRE)) | |||||
encp->enc_tunnel_encapsulations_supported = | |||||
(1u << EFX_TUNNEL_PROTOCOL_VXLAN) | | |||||
(1u << EFX_TUNNEL_PROTOCOL_GENEVE) | | |||||
(1u << EFX_TUNNEL_PROTOCOL_NVGRE); | |||||
#undef CAP_FLAG | #undef CAP_FLAG | ||||
#undef CAP_FLAG2 | #undef CAP_FLAG2 | ||||
return (0); | return (0); | ||||
fail2: | fail2: | ||||
EFSYS_PROBE(fail2); | EFSYS_PROBE(fail2); | ||||
fail1: | fail1: | ||||
▲ Show 20 Lines • Show All 698 Lines • Show Last 20 Lines |