[ovs-dev] [netlink v5 44/61] datapath: Remove non-standard nla_put_be{16, 32, 64} functions.

Ben Pfaff blp at nicira.com
Thu Jan 27 00:23:27 UTC 2011


These aren't part of any version of Linux, so delete them now that the code
does not use them.

Signed-off-by: Ben Pfaff <blp at nicira.com>
Suggested-by: Jesse Gross <jesse at nicira.com>
---
 .../linux-2.6/compat-2.6/include/net/netlink.h     |   37 --------------------
 1 files changed, 0 insertions(+), 37 deletions(-)

diff --git a/datapath/linux-2.6/compat-2.6/include/net/netlink.h b/datapath/linux-2.6/compat-2.6/include/net/netlink.h
index 1f588fe..2ee321b 100644
--- a/datapath/linux-2.6/compat-2.6/include/net/netlink.h
+++ b/datapath/linux-2.6/compat-2.6/include/net/netlink.h
@@ -111,41 +111,4 @@ static inline int nla_type(const struct nlattr *nla)
 }
 #endif
 
-/* The following nla_put_be{16,32,64} functions are not in any version of Linux
- * (although NLA_PUT_BE{16,32,64} are), so we will probably want to add them
- * as part of the patch series when we submit Open vSwitch upstream. */
-
-/**
- * nla_put_be16 - Add a be16 netlink attribute to a socket buffer
- * @skb: socket buffer to add attribute to
- * @attrtype: attribute type
- * @value: numeric value
- */
-static inline int nla_put_be16(struct sk_buff *skb, int attrtype, __be16 value)
-{
-	return nla_put(skb, attrtype, sizeof(__be16), &value);
-}
-
-/**
- * nla_put_be32 - Add a be32 netlink attribute to a socket buffer
- * @skb: socket buffer to add attribute to
- * @attrtype: attribute type
- * @value: numeric value
- */
-static inline int nla_put_be32(struct sk_buff *skb, int attrtype, __be32 value)
-{
-	return nla_put(skb, attrtype, sizeof(__be32), &value);
-}
-
-/**
- * nla_put_64 - Add a be64 netlink attribute to a socket buffer
- * @skb: socket buffer to add attribute to
- * @attrtype: attribute type
- * @value: numeric value
- */
-static inline int nla_put_be64(struct sk_buff *skb, int attrtype, __be64 value)
-{
-	return nla_put(skb, attrtype, sizeof(__be64), &value);
-}
-
 #endif /* net/netlink.h */
-- 
1.7.1





More information about the dev mailing list