aboutsummaryrefslogtreecommitdiff
path: root/sys/dev/sfxge/common/efx_mcdi.h
diff options
context:
space:
mode:
authorAndrew Rybchenko <arybchik@FreeBSD.org>2018-11-26 06:20:13 +0000
committerAndrew Rybchenko <arybchik@FreeBSD.org>2018-11-26 06:20:13 +0000
commitfdbe38cf9d141b62afae760a2f30d545949d8650 (patch)
tree40240151e1fa3f3b199a3606c2be6286ebd63d85 /sys/dev/sfxge/common/efx_mcdi.h
parenta02bd3e38ccefc7c2de92652ebd11d12e53efa85 (diff)
downloadsrc-fdbe38cf9d141b62afae760a2f30d545949d8650.tar.gz
src-fdbe38cf9d141b62afae760a2f30d545949d8650.zip
sfxge(4): add API to control UDP tunnel ports
HW needs to know which UDP packets should be treated as tunnel encapsulation to do inner packet recognition, classification and offloads. Submitted by: Ivan Malov <ivan.malov at oktetlabs.ru> Sponsored by: Solarflare Communications, Inc. Differential Revision: https://reviews.freebsd.org/D18134
Notes
Notes: svn path=/head/; revision=340928
Diffstat (limited to 'sys/dev/sfxge/common/efx_mcdi.h')
-rw-r--r--sys/dev/sfxge/common/efx_mcdi.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/sys/dev/sfxge/common/efx_mcdi.h b/sys/dev/sfxge/common/efx_mcdi.h
index 75b3c47dcfee..c7ce725ec19d 100644
--- a/sys/dev/sfxge/common/efx_mcdi.h
+++ b/sys/dev/sfxge/common/efx_mcdi.h
@@ -386,6 +386,10 @@ efx_mcdi_phy_module_get_info(
EFX_WORD_FIELD(*MCDI_OUT2(_emr, efx_word_t, _ofst), \
EFX_WORD_0)
+#define MCDI_OUT_WORD_FIELD(_emr, _ofst, _field) \
+ EFX_WORD_FIELD(*MCDI_OUT2(_emr, efx_word_t, _ofst), \
+ MC_CMD_ ## _field)
+
#define MCDI_OUT_DWORD(_emr, _ofst) \
EFX_DWORD_FIELD(*MCDI_OUT2(_emr, efx_dword_t, _ofst), \
EFX_DWORD_0)