diff options
author | Jiri Pirko <jiri@resnulli.us> | 2013-12-14 06:32:10 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2013-12-17 15:21:55 -0500 |
commit | e7ef941d3e2ea92d564a0bb9b35b1f392b3a171e (patch) | |
tree | 88960e8594031c15149ed1758765eee08df6bd59 /drivers/net/bonding/bond_netlink.c | |
parent | 482da0fab3a325507d48541c7197c0fca4cc26f2 (diff) |
bondnl: use be32 nla put/get for be32 values
Signed-off-by: Jiri Pirko <jiri@resnulli.us>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/bonding/bond_netlink.c')
-rw-r--r-- | drivers/net/bonding/bond_netlink.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/net/bonding/bond_netlink.c b/drivers/net/bonding/bond_netlink.c index d7d84db9eed7..990793dcccde 100644 --- a/drivers/net/bonding/bond_netlink.c +++ b/drivers/net/bonding/bond_netlink.c | |||
@@ -125,7 +125,7 @@ static int bond_changelink(struct net_device *bond_dev, | |||
125 | int i = 0, rem; | 125 | int i = 0, rem; |
126 | 126 | ||
127 | nla_for_each_nested(attr, data[IFLA_BOND_ARP_IP_TARGET], rem) { | 127 | nla_for_each_nested(attr, data[IFLA_BOND_ARP_IP_TARGET], rem) { |
128 | __be32 target = nla_get_u32(attr); | 128 | __be32 target = nla_get_be32(attr); |
129 | targets[i++] = target; | 129 | targets[i++] = target; |
130 | } | 130 | } |
131 | 131 | ||
@@ -224,7 +224,7 @@ static int bond_fill_info(struct sk_buff *skb, | |||
224 | targets_added = 0; | 224 | targets_added = 0; |
225 | for (i = 0; i < BOND_MAX_ARP_TARGETS; i++) { | 225 | for (i = 0; i < BOND_MAX_ARP_TARGETS; i++) { |
226 | if (bond->params.arp_targets[i]) { | 226 | if (bond->params.arp_targets[i]) { |
227 | nla_put_u32(skb, i, bond->params.arp_targets[i]); | 227 | nla_put_be32(skb, i, bond->params.arp_targets[i]); |
228 | targets_added = 1; | 228 | targets_added = 1; |
229 | } | 229 | } |
230 | } | 230 | } |