aboutsummaryrefslogtreecommitdiff
path: root/lib/bond.c
diff options
context:
space:
mode:
authorBen Pfaff <blp@nicira.com>2011-05-06 11:27:05 -0700
committerBen Pfaff <blp@nicira.com>2011-05-16 13:40:47 -0700
commitd84d4b88d26e3f37ce24f1d3eebe0d70ef264f73 (patch)
treed53a3f9545711b45ccd43c33bb705767adf695ab /lib/bond.c
parent5eba3806a3a6e0531297e3cd763e23e8c1355abb (diff)
Fix incorrect byte order annotations.
These are not actual bugs, just deceptive use of the wrong function or type. Found by sparse.
Diffstat (limited to 'lib/bond.c')
-rw-r--r--lib/bond.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/bond.c b/lib/bond.c
index 2b540523..929d6823 100644
--- a/lib/bond.c
+++ b/lib/bond.c
@@ -1384,7 +1384,7 @@ static unsigned int
bond_hash_tcp(const struct flow *flow, uint16_t vlan, uint32_t basis)
{
struct flow hash_flow = *flow;
- hash_flow.vlan_tci = vlan;
+ hash_flow.vlan_tci = htons(vlan);
/* The symmetric quality of this hash function is not required, but
* flow_hash_symmetric_l4 already exists, and is sufficient for our