[openib-general] [PATCH RFC 15/21] ofed_1_2 Add dst_mtu() for iw_cxgb3
Steve Wise
swise at opengridcomputing.com
Mon Jan 15 13:19:49 PST 2007
Add dst_mtu() for iw_cxgb3
Signed-off-by: Steve Wise <swise at opengridcomputing.com>
---
.../backport/2.6.5_sles9_sp3/include/net/dst.h | 13 +++++++++++++
1 files changed, 13 insertions(+), 0 deletions(-)
diff --git a/kernel_addons/backport/2.6.5_sles9_sp3/include/net/dst.h b/kernel_addons/backport/2.6.5_sles9_sp3/include/net/dst.h
new file mode 100644
index 0000000..a399110
--- /dev/null
+++ b/kernel_addons/backport/2.6.5_sles9_sp3/include/net/dst.h
@@ -0,0 +1,13 @@
+#ifndef BACKPORT_DST_SLES9SP3
+#define BACKPORT_DST_SLES9SP3
+#include_next <net/dst.h>
+static inline u32 dst_mtu(struct dst_entry *dst)
+{
+ u32 mtu = dst_metric(dst, RTAX_MTU);
+ /*
+ * Alexey put it here, so ask him about it :)
+ */
+ barrier();
+ return mtu;
+}
+#endif
More information about the general
mailing list