summaryrefslogtreecommitdiffstats
path: root/sys/net/if_var.h
diff options
context:
space:
mode:
authoremax <emax@FreeBSD.org>2012-10-16 20:18:15 +0000
committeremax <emax@FreeBSD.org>2012-10-16 20:18:15 +0000
commit214df82afacb6e4f782e0d8090c25db6a7230fdf (patch)
treedec9f0f9a9c4a5b630ecc54647b2983d7efa02d8 /sys/net/if_var.h
parent4ac8b06a126f93ab2a23f6da8ea7364eb32ef2ba (diff)
downloadFreeBSD-src-214df82afacb6e4f782e0d8090c25db6a7230fdf.zip
FreeBSD-src-214df82afacb6e4f782e0d8090c25db6a7230fdf.tar.gz
introduce concept of ifi_baudrate power factor. the idea is to work
around the problem where high speed interfaces (such as ixgbe(4)) are not able to report real ifi_baudrate. bascially, take a spare byte from struct if_data and use it to store ifi_baudrate power factor. in other words, real ifi_baudrate = ifi_baudrate * 10 ^ ifi_baudrate power factor this should be backwards compatible with old binaries. use ixgbe(4) as an example on how drivers would set ifi_baudrate power factor Discussed with: kib, scottl, glebius MFC after: 1 week
Diffstat (limited to 'sys/net/if_var.h')
-rw-r--r--sys/net/if_var.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/net/if_var.h b/sys/net/if_var.h
index 8a1d5cc..d695ef4 100644
--- a/sys/net/if_var.h
+++ b/sys/net/if_var.h
@@ -228,6 +228,7 @@ typedef void if_init_f_t(void *);
#define if_metric if_data.ifi_metric
#define if_link_state if_data.ifi_link_state
#define if_baudrate if_data.ifi_baudrate
+#define if_baudrate_pf if_data.ifi_baudrate_pf
#define if_hwassist if_data.ifi_hwassist
#define if_ipackets if_data.ifi_ipackets
#define if_ierrors if_data.ifi_ierrors
OpenPOWER on IntegriCloud